{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7fd49e52-84f1-4ea1-be12-4e39d9e3fb9a",
    "slug": "CoH8le",
    "name": "rare-heart",
    "description": "A Rust-based AI-powered automation API with secure webhook handling.",
    "url": "https://railway.com/deploy/CoH8le",
    "upstream": {
      "repo_url": "https://github.com/thealphakenya/earn_vaults"
    }
  },
  "services": [
    {
      "name": "earn_vaults",
      "source": {
        "repo": "https://github.com/thealphakenya/earn_vaults"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "earn_vaults",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "API_KEY",
      "service": "earn_vaults",
      "description": "Environment Type (production/development)",
      "secret": true,
      "strategy": "default",
      "default": "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"
    },
    {
      "key": "BACKUP_DIR",
      "service": "earn_vaults",
      "description": "Server Port",
      "secret": false,
      "strategy": "default",
      "default": "./backups"
    },
    {
      "key": "DATABASE_URL",
      "service": "earn_vaults",
      "description": "Railway Authentication Token (Keep this secure)",
      "secret": false,
      "strategy": "default",
      "default": "sqlite://earn_vault.db"
    },
    {
      "key": "RAILWAY_TOKEN",
      "service": "earn_vaults",
      "description": "API Key for AI Manager (Replace with your actual API key)",
      "secret": true,
      "strategy": "default",
      "default": "0c0aa75f-1170-4857-8d05-906e6867a7d1"
    },
    {
      "key": "RAILWAY_ENVIRONMENT",
      "service": "earn_vaults",
      "description": "Directory for Database Backups",
      "secret": false,
      "strategy": "default",
      "default": "production"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "CoH8le"
      }
    },
    "cli": "railway deploy --template CoH8le",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7fd49e52-84f1-4ea1-be12-4e39d9e3fb9a",
            "serializedConfig": {
              "services": {
                "a6a8f092-47e1-41c1-9704-72c9f51e4192": {
                  "name": "earn_vaults",
                  "deploy": {
                    "startCommand": "cargo run --release",
                    "healthcheckPath": "/health",
                    "preDeployCommand": "cargo install diesel_cli --no-default-features --features sqlite diesel migration run"
                  },
                  "source": {
                    "repo": "thealphakenya/earn_vaults",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "API_KEY": {
                      "description": "Environment Type (production/development)",
                      "defaultValue": "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"
                    },
                    "BACKUP_DIR": {
                      "description": "Server Port",
                      "defaultValue": "./backups"
                    },
                    "DATABASE_URL": {
                      "description": "Railway Authentication Token (Keep this secure)",
                      "defaultValue": "sqlite://earn_vault.db"
                    },
                    "RAILWAY_TOKEN": {
                      "description": "API Key for AI Manager (Replace with your actual API key)",
                      "defaultValue": "0c0aa75f-1170-4857-8d05-906e6867a7d1"
                    },
                    "RAILWAY_ENVIRONMENT": {
                      "description": "Directory for Database Backups",
                      "defaultValue": "production"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "earn_vaults",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T08:29:30.144Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_10432d3b2e734068875a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
