{
  "lexicon": 1,
  "id": "sh.tangled.repo.hiddenRef",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "Create a hidden ref in a repository",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "repo",
            "forkRef",
            "remoteRef"
          ],
          "properties": {
            "repo": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the repository"
            },
            "forkRef": {
              "type": "string",
              "description": "Fork reference name"
            },
            "remoteRef": {
              "type": "string",
              "description": "Remote reference name"
            }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "success"
          ],
          "properties": {
            "success": {
              "type": "boolean",
              "description": "Whether the hidden ref was created successfully"
            },
            "ref": {
              "type": "string",
              "description": "The created hidden ref name"
            },
            "error": {
              "type": "string",
              "description": "Error message if creation failed"
            }
          }
        }
      }
    }
  }
}
