{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotAuthorized"
        },
        {
          "name": "DelegationNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "party.whey.writeproxy.defs#limitsView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "caller": {
            "format": "did",
            "type": "string"
          },
          "delegation": {
            "maxLength": 128,
            "type": "string"
          },
          "scope": {
            "default": "service",
            "enum": [
              "service",
              "caller",
              "delegation"
            ],
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Effective limits, usage, and remaining quota for a service, caller, or delegation scope. scope=service is public; scope=caller requires caller service auth; scope=delegation requires delegator service auth.",
  "id": "party.whey.writeproxy.getLimits",
  "lexicon": 1
}
