{
  "lexicon": 1,
  "id": "org.tangled.temp.repo.updateSiteConfig",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Create or update the site configuration for a repository and trigger a deployment.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["repoDid", "branch", "dir"],
          "properties": {
            "repoDid": {
              "type": "string",
              "format": "did",
              "description": "DID of the repository as minted by the knot."
            },
            "branch": {
              "type": "string",
              "description": "Branch to deploy from."
            },
            "dir": {
              "type": "string",
              "description": "Directory within the repository to deploy (e.g. '/' or '/docs')."
            },
            "isIndex": {
              "type": "boolean",
              "description": "Whether this repo should serve as the index (root) for the claimed domain."
            }
          }
        }
      },
      "errors": [
        { "name": "NoDomainClaim", "description": "The account does not have an active domain claim." }
      ]
    }
  }
}
