{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Replace the traffic caps that apply to every Client without caps of its own.",
      "errors": [
        {
          "description": "The Provider has no operator.",
          "name": "OperatorNotSet"
        },
        {
          "description": "The caller is not the Provider's operator.",
          "name": "NotOperator"
        },
        {
          "description": "The Provider can't make this change itself. Its operator must make it by hand.",
          "name": "UneditableConfig"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "trafficCap": {
              "description": "The new default caps. Empty means no cap.",
              "items": {
                "ref": "link.jetbridge.provider#trafficCap",
                "type": "ref"
              },
              "maxLength": 14,
              "type": "array"
            }
          },
          "required": [
            "trafficCap"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "changed": {
              "description": "Whether this changed anything: false when the Provider already had these caps.",
              "type": "boolean"
            }
          },
          "required": [
            "changed"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "link.jetbridge.setDefaultCaps",
  "lexicon": 1
}
