{
  "lexicon": 1,
  "id": "sh.tangled.repo.compare",
  "defs": {
    "main": {
      "type": "query",
      "parameters": {
        "type": "params",
        "required": ["repo", "rev1", "rev2"],
        "properties": {
          "repo": {
            "type": "string",
            "description": "Repository identifier in format 'did:plc:.../repoName'"
          },
          "rev1": {
            "type": "string",
            "description": "First revision (commit, branch, or tag)"
          },
          "rev2": {
            "type": "string",
            "description": "Second revision (commit, branch, or tag)"
          }
        }
      },
      "output": {
        "encoding": "*/*",
        "description": "Compare output in application/json"
      },
      "errors": [
        {
          "name": "RepoNotFound",
          "description": "Repository not found or access denied"
        },
        {
          "name": "RevisionNotFound",
          "description": "One or both revisions not found"
        },
        {
          "name": "InvalidRequest",
          "description": "Invalid request parameters"
        },
        {
          "name": "CompareError",
          "description": "Failed to compare revisions"
        }
      ]
    }
  }
}
