link.jetbridge.approve

Approve a Client, replacing any approval it has.

Repository @jetbridge.link did:web:jetbridge.link namespace authority
Details · procedure
Kindprocedure
Authorityjetbridge.link
Commit rev3n2rhevopik22
Indexed
cid bafyreib2hfvvvwj3tjzlcm7ogu6uxn5h7s3jnafbztogcewvvrsohsc6b4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Approve a Client, replacing any approval it has.",
      "errors": [
        {
          "description": "The Provider has no operator.",
          "name": "OperatorNotSet"
        },
        {
          "description": "The caller is not the Provider's operator.",
          "name": "NotOperator"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "client": {
              "description": "The Client to approve.",
              "format": "did",
              "type": "string"
            },
            "expiresAt": {
              "description": "When the approval ends. Left out for no end.",
              "format": "datetime",
              "type": "string"
            },
            "maxHostnames": {
              "description": "Most hostnames the Client may serve at once. Left out to keep the Provider's default.",
              "minimum": 1,
              "type": "integer"
            },
            "trafficCap": {
              "description": "Caps that replace all of the Provider's default caps for the Client. Empty means no cap. Left out to keep the defaults.",
              "items": {
                "ref": "link.jetbridge.provider#trafficCap",
                "type": "ref"
              },
              "maxLength": 14,
              "type": "array"
            }
          },
          "required": [
            "client"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uri": {
              "description": "The approval record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "link.jetbridge.approve",
  "lexicon": 1
}