{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "NotOperator"
        },
        {
          "name": "DelegationNotFound"
        },
        {
          "name": "RegistrationNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "delegation": {
              "maxLength": 128,
              "type": "string"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "quotas": {
              "ref": "party.whey.writeproxy.defs#quotas",
              "type": "ref"
            },
            "scope": {
              "enum": [
                "service",
                "delegation",
                "caller",
                "registration"
              ],
              "type": "string"
            }
          },
          "required": [
            "scope",
            "quotas"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "quotas": {
              "ref": "party.whey.writeproxy.defs#quotas",
              "type": "ref"
            }
          },
          "required": [
            "quotas"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Set quotas for the service, a delegation, a caller, or a registration.",
  "id": "party.whey.writeproxy.admin.setQuotas",
  "lexicon": 1
}
