{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "DelegationNotFound"
        },
        {
          "name": "RequestNotFound"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "name": "AlreadyAllowed"
        },
        {
          "name": "Conflict"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delegation": {
              "maxLength": 128,
              "type": "string"
            },
            "ifCallerRevision": {
              "minimum": 0,
              "type": "integer"
            },
            "requestId": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "delegation",
            "requestId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "callerRevision": {
              "minimum": 0,
              "type": "integer"
            },
            "request": {
              "ref": "party.whey.writeproxy.defs#callerRequest",
              "type": "ref"
            }
          },
          "required": [
            "request",
            "callerRevision"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Approve a caller-access request by adding the caller to the delegation's DID allowlist. Only the delegation's repo owner may call this.",
  "id": "party.whey.writeproxy.approveCallerRequest",
  "lexicon": 1
}
