{
  "components": {
    "schemas": {
      "ApiKey": {
        "additionalProperties": false,
        "properties": {
          "allScopes": {
            "description": "`true` for a key that holds every scope, also the ones added later.",
            "type": "boolean"
          },
          "applicationId": {
            "description": "The application the key belongs to.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "createdAt": {
            "description": "When it was made, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it stops working; `null` for a key that does not expire."
          },
          "hint": {
            "description": "The secret's last characters, to tell keys apart.",
            "type": "string"
          },
          "id": {
            "description": "The key's id: never its secret.",
            "type": "string"
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it last made a call; `null` when it never has."
          },
          "mode": {
            "description": "`test` (nothing is sent, nothing costs) or `live`.",
            "enum": [
              "live",
              "test"
            ],
            "type": "string"
          },
          "name": {
            "description": "Your own name for the key.",
            "type": "string"
          },
          "revokedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` while the key works."
          },
          "scopes": {
            "description": "What the key may do.",
            "items": {
              "enum": [
                "sms:send",
                "sms:read",
                "email:send",
                "email:read",
                "letters:send",
                "letters:read",
                "calls:write",
                "calls:read",
                "calls:client",
                "numbers:manage",
                "numbers:read",
                "agents:manage",
                "solutions:manage",
                "transcription:write",
                "transcription:read",
                "webhooks:manage",
                "events:read",
                "profiles:manage",
                "contacts:manage",
                "usage:read",
                "privacy:erase"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "allScopes",
          "applicationId",
          "createdAt",
          "expiresAt",
          "hint",
          "id",
          "lastUsedAt",
          "mode",
          "name",
          "revokedAt",
          "scopes"
        ],
        "type": "object"
      },
      "ApiRequest": {
        "additionalProperties": false,
        "properties": {
          "client": {
            "description": "The calling client's name, from the `telkit-client` header or the first word of `user-agent`; `null` when neither was sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "clientVersion": {
            "description": "The calling client's version; `null` when it sent none.",
            "type": [
              "string",
              "null"
            ]
          },
          "code": {
            "description": "The error's `code`; `null` when the call succeeded.",
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "description": "When the call was answered.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "durationMs": {
            "description": "How long Telkit took to answer, in milliseconds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "id": {
            "description": "The log line's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "keyId": {
            "description": "The id of the API key or the client token that made the call.",
            "type": "string"
          },
          "method": {
            "description": "The HTTP method of the operation called, such as `POST`.",
            "type": [
              "string",
              "null"
            ]
          },
          "path": {
            "description": "The operation's path as the reference writes it, such as `/v2/sms/{id}`.",
            "type": "string"
          },
          "principal": {
            "description": "What made the call: an API key, or an app user's client token.",
            "enum": [
              "apiKey",
              "clientToken"
            ],
            "type": "string"
          },
          "requestId": {
            "description": "The call's request id: an error body carries the same `requestId`.",
            "type": "string"
          },
          "resourceId": {
            "description": "The `id` a successful answer named, such as the message a send made; `null` otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "description": "The HTTP status of the answer.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "client",
          "clientVersion",
          "code",
          "createdAt",
          "durationMs",
          "id",
          "keyId",
          "method",
          "path",
          "principal",
          "requestId",
          "resourceId",
          "status"
        ],
        "type": "object"
      },
      "Application": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When it was made, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The application's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "name": {
            "description": "What the dashboard shows, and what a statement prints for it.",
            "type": "string"
          },
          "services": {
            "description": "The services it says it uses. They shape the dashboard and gate nothing.",
            "items": {
              "enum": [
                "sms",
                "email",
                "letters",
                "phone"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "slug": {
            "description": "Its short name, unique in the organization: lowercase letters, digits, hyphens.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "id",
          "name",
          "services",
          "slug"
        ],
        "type": "object"
      },
      "Call": {
        "additionalProperties": false,
        "properties": {
          "answeredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was answered, ISO 8601 in UTC; `null` when it was not, or not yet."
          },
          "createdAt": {
            "description": "When it was started, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "direction": {
            "description": "`outbound`: you started it; `inbound`: someone called one of your numbers.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "endReason": {
            "description": "Why it ended: `hangup`, `busy`, `no_answer`, `rejected`, `cancelled`, `limit_reached`, `media_failed`, `speech_failed`, `unfunded` (an inbound call your balance could not fund) or `anonymous_blocked` (an inbound caller who gave no number, where those are blocked); `null` while it is under way.",
            "type": [
              "string",
              "null"
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended, ISO 8601 in UTC; `null` while it is under way."
          },
          "from": {
            "description": "The number the call comes from, in E.164: your number on an outbound call, the caller's on an inbound one; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The call's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "labels": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own labels on the call, as names and values; `null` when it has none."
          },
          "minutes": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The billed minutes, once the call ended (0 when it was never answered); `null` before."
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the call cost, once it settled; `null` before."
          },
          "reference": {
            "description": "Your own id for the call; `null` when you gave none.",
            "type": [
              "string",
              "null"
            ]
          },
          "simulated": {
            "description": "`true`: a test key's call, which dials no phone and costs nothing.",
            "type": "boolean"
          },
          "state": {
            "description": "`queued` and `dialing` before the phone rings, `ringing`, `answered` while it is connected (its minutes run), then one final state: `ended` (answered, then over), `unanswered` (busy, no answer or rejected) or `failed` (never dialled, or refused). `uncertain`: the dial's answer was lost; it is not dialled again and moves on when the outcome is known.",
            "enum": [
              "queued",
              "dialing",
              "uncertain",
              "ringing",
              "answered",
              "ended",
              "unanswered",
              "failed"
            ],
            "type": "string"
          },
          "to": {
            "description": "The number called, in E.164; `null` on a call between app users.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "answeredAt",
          "createdAt",
          "direction",
          "endReason",
          "endedAt",
          "from",
          "id",
          "identity",
          "labels",
          "minutes",
          "price",
          "reference",
          "simulated",
          "state",
          "to"
        ],
        "type": "object"
      },
      "CallAction": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it runs on.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The action's id: `calls.actions.get` reads it, `calls.actions.cancel` stops it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "description": "Where the action stands now: `preparing` (its speech is being made), `ready` (queued), `running`, `done`, `failed`, `cancelled` (stopped, or the call ended first) or `uncertain` (the answer of a paid speech was lost; Telkit's staff settle it).",
            "enum": [
              "preparing",
              "ready",
              "running",
              "done",
              "failed",
              "uncertain",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "state"
        ],
        "type": "object"
      },
      "CallActionDetails": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it runs on.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "createdAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "digits": {
            "description": "What a `gather` heard on the keypad.",
            "type": [
              "string",
              "null"
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended, ISO 8601 in UTC; `null` until then."
          },
          "heard": {
            "description": "What a `gather` heard said.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The action's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "kind": {
            "description": "`dtmf` is `calls.sendDigits`.",
            "enum": [
              "play",
              "say",
              "gather",
              "dtmf",
              "speak"
            ],
            "type": "string"
          },
          "outcome": {
            "description": "How it ended: `completed`, `timeout` (a `gather` that heard nothing in time), `stopped` or `failed`; `null` until it has ended.",
            "type": [
              "string",
              "null"
            ]
          },
          "participantId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The phone it ran for; `null`: the whole call."
          },
          "state": {
            "description": "`preparing` (its speech is being made), `ready` (queued), `running`, `done`, `failed`, `cancelled` (stopped, or the call ended first) or `uncertain` (the answer of a paid speech was lost; Telkit's staff settle it).",
            "enum": [
              "preparing",
              "ready",
              "running",
              "done",
              "failed",
              "uncertain",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "callId",
          "createdAt",
          "digits",
          "endedAt",
          "heard",
          "id",
          "kind",
          "outcome",
          "participantId",
          "state"
        ],
        "type": "object"
      },
      "CallAgentConversation": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "items": {
            "description": "Every line of the conversation, oldest first, in one answer; empty for a call without an agent.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "at": {
                  "description": "When the caller was heard, or when the agent finished saying it.",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "type": "string"
                },
                "interrupted": {
                  "description": "The caller cut the agent off.",
                  "type": "boolean"
                },
                "speaker": {
                  "description": "`agent`: the AI agent; `phone_leg`: the caller.",
                  "enum": [
                    "phone_leg",
                    "agent"
                  ],
                  "type": "string"
                },
                "text": {
                  "description": "What was said.",
                  "type": "string"
                }
              },
              "required": [
                "at",
                "interrupted",
                "speaker",
                "text"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "callId",
          "items"
        ],
        "type": "object"
      },
      "CallJoinToken": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the token lets its holder join.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "expiresAt": {
            "description": "When the token stops letting anyone join, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "identity": {
            "description": "The app user's name in the call's room.",
            "type": "string"
          },
          "token": {
            "description": "`null` when none could be signed now.",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "description": "Where `@telkit/client` joins the call.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "callId",
          "expiresAt",
          "identity",
          "token",
          "url"
        ],
        "type": "object"
      },
      "CallLiveTranscript": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it transcribes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "doneAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it became `done`, ISO 8601 in UTC; `null` until then."
          },
          "id": {
            "description": "The live transcript's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "language": {
            "anyOf": [
              {
                "enum": [
                  "no",
                  "en"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The language named at the start (`no`, `en`); `null` when none was."
          },
          "lastSeq": {
            "description": "The position of the newest line change.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "participants": {
            "description": "Each transcribed participant, held and charged on its own.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "billedMinutes": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The started minutes it was charged for, once it settled; `null` before."
                },
                "ending": {
                  "anyOf": [
                    {
                      "enum": [
                        "audio_ended",
                        "stopped",
                        "lost",
                        "refused",
                        "ceiling"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "How its hearing ended: `audio_ended`, `stopped`, `ceiling` (its funded minutes were heard), `lost` or `refused`; `null` while it is not over."
                },
                "fundedMinutes": {
                  "description": "The minutes held for it; it is cut when they are heard.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "heardSeconds": {
                  "description": "The seconds heard so far.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "minutePrice": {
                  "$ref": "#/components/schemas/Price",
                  "description": "What each started heard minute costs."
                },
                "participantId": {
                  "description": "The transcribed participant.",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                "price": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Price"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "What it cost, once it settled."
                },
                "state": {
                  "description": "`waiting`: funded, not hearing yet; `running`; `stopped`: over for good (it left, the transcription stopped or the call ended); `unfunded`: your balance did not cover it, so it was never transcribed; `failed`.",
                  "enum": [
                    "waiting",
                    "running",
                    "stopped",
                    "unfunded",
                    "failed"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "billedMinutes",
                "ending",
                "fundedMinutes",
                "heardSeconds",
                "minutePrice",
                "participantId",
                "price",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "simulated": {
            "description": "`true`: a test key's live transcript.",
            "type": "boolean"
          },
          "startedAt": {
            "description": "When it was started, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "state": {
            "description": "`pending` while the call is on and until its last lines have arrived; `done`: the whole transcript is stored.",
            "enum": [
              "pending",
              "done"
            ],
            "type": "string"
          },
          "stopped": {
            "description": "`true`: `calls.liveTranscript.stop` was called; nothing more is heard.",
            "type": "boolean"
          },
          "transcribes": {
            "description": "Whom it transcribes: the dialled phone (`caller`) or every phone (`all`).",
            "enum": [
              "caller",
              "all"
            ],
            "type": "string"
          }
        },
        "required": [
          "callId",
          "doneAt",
          "id",
          "language",
          "lastSeq",
          "participants",
          "simulated",
          "startedAt",
          "state",
          "stopped",
          "transcribes"
        ],
        "type": "object"
      },
      "CallLiveTranscriptLine": {
        "additionalProperties": false,
        "properties": {
          "endMs": {
            "description": "Where the line ends, in milliseconds from the transcript's start.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "final": {
            "description": "`true`: the line will not change again; `false`: it may still be revised.",
            "type": "boolean"
          },
          "id": {
            "description": "The line's id: a revised line keeps it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "interrupted": {
            "description": "The AI agent's words were cut off.",
            "type": "boolean"
          },
          "participantId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The participant who said it; `null` for the AI agent's words."
          },
          "seq": {
            "description": "The line's position; a revised line comes again with a new one.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "speaker": {
            "description": "`phone_leg`: a transcribed phone (`participantId`); `agent`: the call's AI agent.",
            "enum": [
              "phone_leg",
              "agent"
            ],
            "type": "string"
          },
          "startMs": {
            "description": "From the transcript's start.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "text": {
            "description": "What was said, as heard so far.",
            "type": "string"
          }
        },
        "required": [
          "endMs",
          "final",
          "id",
          "interrupted",
          "participantId",
          "seq",
          "speaker",
          "startMs",
          "text"
        ],
        "type": "object"
      },
      "CallMove": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the participant belongs to and is billed by.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "createdAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "failure": {
            "description": "Why it failed; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The move's id: `calls.moves.get` reads it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "meetingId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The meeting it moves into; `null` when it moves into a call."
          },
          "participantId": {
            "description": "The participant that moves.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "settledAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was done or failed, ISO 8601 in UTC; `null` while it is `pending`."
          },
          "state": {
            "description": "`pending` until the move is confirmed, `done`, `failed` (`failure` says why; it stays where it was) or `uncertain` when the answer was lost: it is not sent again and settles by where the participant is.",
            "enum": [
              "pending",
              "done",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "target": {
            "description": "Where it goes: `call` (another call) or `meeting_live` (a meeting room).",
            "enum": [
              "call",
              "meeting_live"
            ],
            "type": "string"
          },
          "toCallId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The call it moves into; `null` when it moves into a meeting."
          }
        },
        "required": [
          "callId",
          "createdAt",
          "failure",
          "id",
          "meetingId",
          "participantId",
          "settledAt",
          "state",
          "target",
          "toCallId"
        ],
        "type": "object"
      },
      "CallOffer": {
        "additionalProperties": false,
        "properties": {
          "acceptedBy": {
            "description": "Who took it: the member's id, your app user's id, or the participant id of the phone that answered.",
            "type": [
              "string",
              "null"
            ]
          },
          "acceptedKind": {
            "anyOf": [
              {
                "enum": [
                  "member",
                  "app_user",
                  "phone"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What took it: `member` (a person on the dashboard's phone), `app_user` or `phone`; `null` while nobody has."
          },
          "callId": {
            "description": "The call it rings for.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "expiresAt": {
            "description": "When it stops ringing if nobody takes it.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The offer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "description": "`ringing` (a call has one at a time), then `accepted` (the first to take it won), `expired` (nobody took it in time) or `cancelled`.",
            "enum": [
              "ringing",
              "accepted",
              "expired",
              "cancelled"
            ],
            "type": "string"
          },
          "targets": {
            "description": "Everyone the offer names, each with where its ring stands.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "description": "`member`: a person on the dashboard's phone; `app_user`: a user of your own app; `phone`: a phone number.",
                  "enum": [
                    "member",
                    "app_user",
                    "phone"
                  ],
                  "type": "string"
                },
                "skipReason": {
                  "anyOf": [
                    {
                      "enum": [
                        "not_member",
                        "unavailable",
                        "busy",
                        "after_call"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why a member was not rung: `not_member`, `unavailable` (not set as available), `busy` (in a call) or `after_call` (just out of one); `null` for a target that was rung."
                },
                "state": {
                  "description": "`ringing`; `accepted`: it took the call; `stopped`: another target took it or the offer ended; `skipped`: it was never rung (`skipReason`).",
                  "enum": [
                    "ringing",
                    "accepted",
                    "stopped",
                    "skipped"
                  ],
                  "type": "string"
                },
                "targetId": {
                  "description": "The member's id, your app user's id, or the phone's participant id.",
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "skipReason",
                "state",
                "targetId"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "acceptedBy",
          "acceptedKind",
          "callId",
          "expiresAt",
          "id",
          "state",
          "targets"
        ],
        "type": "object"
      },
      "CallOfferAccepted": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the app user joins.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "expiresAt": {
            "description": "When the join token stops letting anyone join, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The offer that was taken.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "description": "The app user's name in the call's room.",
            "type": "string"
          },
          "state": {
            "const": "accepted",
            "description": "Always `accepted`.",
            "type": "string"
          },
          "token": {
            "description": "The join token; `null` when none was signed.",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "description": "Where `@telkit/client` joins the call.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "callId",
          "expiresAt",
          "id",
          "identity",
          "state",
          "token",
          "url"
        ],
        "type": "object"
      },
      "CallParticipant": {
        "additionalProperties": false,
        "properties": {
          "acts": {
            "additionalProperties": false,
            "description": "What can be done with the participant now. A hint for a user interface: the act itself still decides.",
            "properties": {
              "audio": {
                "description": "Its audio mode can be set.",
                "type": "boolean"
              },
              "hold": {
                "description": "It can be put on hold or taken off hold.",
                "type": "boolean"
              },
              "leave": {
                "description": "The person who asks can leave the call here.",
                "type": "boolean"
              },
              "move": {
                "description": "It can be moved into another call.",
                "type": "boolean"
              },
              "mute": {
                "description": "It can be muted or unmuted.",
                "type": "boolean"
              },
              "remove": {
                "description": "It can be removed from the call.",
                "type": "boolean"
              },
              "token": {
                "description": "A new join token can be made for it.",
                "type": "boolean"
              },
              "transfer": {
                "description": "Its place in the call can be transferred.",
                "type": "boolean"
              }
            },
            "required": [
              "audio",
              "hold",
              "leave",
              "move",
              "mute",
              "remove",
              "token",
              "transfer"
            ],
            "type": "object"
          },
          "answeredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it answered or joined, ISO 8601 in UTC; `null` when it has not."
          },
          "audioMode": {
            "description": "`talk`: it hears and is heard by everyone; `listen`: nobody hears it; `whisper`: only `whisperTo` hears it.",
            "enum": [
              "talk",
              "listen",
              "whisper"
            ],
            "type": "string"
          },
          "away": {
            "description": "`true`: it is on hold, or moved into another call or a meeting.",
            "type": "boolean"
          },
          "displayName": {
            "description": "The name you gave an app user or a bot; `null` when none.",
            "type": [
              "string",
              "null"
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it left the call, ISO 8601 in UTC; `null` while it is in it."
          },
          "externalRef": {
            "description": "Your own id for an app user or a bot; `null` for other participants.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null`: a person on the dashboard's phone."
          },
          "kind": {
            "description": "`phone`: a phone on the phone network; `app`: a user of your own app; `bot`: your own bot program; `member`: a person on the dashboard's phone; `agent`: an AI agent; `stream`: a media stream to your server; `worker`: Telkit's own voice.",
            "enum": [
              "phone",
              "app",
              "member",
              "agent",
              "worker",
              "stream",
              "bot"
            ],
            "type": "string"
          },
          "muted": {
            "description": "`true`: the others do not hear it.",
            "type": "boolean"
          },
          "number": {
            "description": "A phone's number in E.164; `null` for a participant without one.",
            "type": [
              "string",
              "null"
            ]
          },
          "personId": {
            "description": "The person on the dashboard's phone; `null` for every other participant.",
            "type": [
              "string",
              "null"
            ]
          },
          "role": {
            "anyOf": [
              {
                "enum": [
                  "primary",
                  "leg"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`primary`: the call's own phone (the one dialled, or the caller of an inbound call); `leg`: a participant added to the call; `null` for a person on the dashboard's phone."
          },
          "self": {
            "description": "`true`: the seat of the person who asks, on the dashboard's phone. Always `false` for an API key.",
            "type": "boolean"
          },
          "state": {
            "description": "`queued` and `dialing` before it rings, `ringing`, `answered` while it is in the call, then `ended`, `unanswered` or `failed`; `uncertain`: the dial's answer was lost.",
            "enum": [
              "queued",
              "dialing",
              "uncertain",
              "ringing",
              "answered",
              "ended",
              "unanswered",
              "failed"
            ],
            "type": "string"
          },
          "whisperTo": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The participant a `whisper` is heard by; `null` in the other modes."
          }
        },
        "required": [
          "acts",
          "answeredAt",
          "audioMode",
          "away",
          "displayName",
          "endedAt",
          "externalRef",
          "id",
          "kind",
          "muted",
          "number",
          "personId",
          "role",
          "self",
          "state",
          "whisperTo"
        ],
        "type": "object"
      },
      "CallPhoneParticipant": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it was added to.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "fundedSeconds": {
            "description": "How long the phone may talk on the money held.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "id": {
            "description": "The new participant's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "minutePrice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What each started minute costs."
          },
          "state": {
            "description": "`queued` and `dialing` before it rings, `ringing`, `answered` while it is in the call, then `ended`, `unanswered` or `failed`; `uncertain`: the dial's answer was lost. `calls.participants.list` shows where it stands.",
            "enum": [
              "queued",
              "dialing",
              "uncertain",
              "ringing",
              "answered",
              "ended",
              "unanswered",
              "failed"
            ],
            "type": "string"
          },
          "to": {
            "description": "The number dialled, in E.164.",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "fundedSeconds",
          "id",
          "minutePrice",
          "state",
          "to"
        ],
        "type": "object"
      },
      "CallRecordingSetting": {
        "additionalProperties": false,
        "properties": {
          "enabled": {
            "description": "`true`: every call of the application is recorded.",
            "type": "boolean"
          },
          "notice": {
            "description": "The whole sentence the other party hears first; `null` when no notice plays.",
            "type": [
              "string",
              "null"
            ]
          },
          "playNotice": {
            "description": "`true`: the other party hears the notice first, and the recording begins once it was heard; `false`: the call is recorded from the answer.",
            "type": "boolean"
          },
          "purpose": {
            "description": "Why the calls are recorded, as the notice says it; `null`: the notice says only that the call is recorded.",
            "type": [
              "string",
              "null"
            ]
          },
          "purposeMax": {
            "description": "The most characters `purpose` may have.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "summarize": {
            "description": "`true`: every recorded call gets a summary after its transcript.",
            "type": "boolean"
          },
          "transcribe": {
            "description": "`true`: every recorded call is transcribed after it.",
            "type": "boolean"
          },
          "updatedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the setting last changed, ISO 8601 in UTC; `null` when it was never set."
          }
        },
        "required": [
          "enabled",
          "notice",
          "playNotice",
          "purpose",
          "purposeMax",
          "summarize",
          "transcribe",
          "updatedAt"
        ],
        "type": "object"
      },
      "CallStream": {
        "additionalProperties": false,
        "properties": {
          "attempts": {
            "description": "Dials made: the first and every reconnect.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "audio": {
            "description": "`talk`: audio both ways; `listen`: the call's audio to your server only.",
            "enum": [
              "talk",
              "listen"
            ],
            "type": "string"
          },
          "billedMinutes": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The started minutes it was charged for, once it is over; `null` before."
          },
          "callId": {
            "description": "The call whose audio it carries.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "createdAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "endReason": {
            "description": "Why it is over: `stopped` (you stopped it), `call_ended`, `heard_participant_left`, `funded_ceiling` (its minutes were used), `endpoint_closed` (your server closed the WebSocket), `dial_failed` (no WebSocket came) or `connection_lost`; `null` while it runs.",
            "type": [
              "string",
              "null"
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was over, ISO 8601 in UTC; `null` while it runs."
          },
          "endpointId": {
            "description": "The webhook endpoint the audio goes to.",
            "type": "string"
          },
          "failure": {
            "description": "What went wrong, in words; `null` when nothing did.",
            "type": [
              "string",
              "null"
            ]
          },
          "framesIn": {
            "description": "The audio frames received from your server so far.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "framesOut": {
            "description": "The audio frames sent to your server so far.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "fundedMinutes": {
            "description": "The minutes held for it; it ends at them.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "id": {
            "description": "The stream's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "listen": {
            "additionalProperties": false,
            "description": "Whom the stream hears.",
            "properties": {
              "mode": {
                "description": "`single`: one participant; `mixed`: every person in the call, mixed.",
                "enum": [
                  "single",
                  "mixed"
                ],
                "type": "string"
              },
              "participantId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The one participant a `single` stream hears; `null` when `mixed`."
              }
            },
            "required": [
              "mode",
              "participantId"
            ],
            "type": "object"
          },
          "minutePrice": {
            "$ref": "#/components/schemas/Price",
            "description": "What each started minute costs."
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once it ended."
          },
          "reconnect": {
            "description": "`true`: your server is dialled again when the WebSocket breaks.",
            "type": "boolean"
          },
          "simulated": {
            "description": "`true`: a test key's stream, which connects to nothing.",
            "type": "boolean"
          },
          "state": {
            "description": "`requested`, `connecting` while your server is dialled, `streaming`, then `ended` or `failed` (`endReason` and `failure` say why).",
            "enum": [
              "requested",
              "connecting",
              "streaming",
              "ended",
              "failed"
            ],
            "type": "string"
          },
          "streamingAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When audio first flowed, ISO 8601 in UTC; `null` when it never has."
          }
        },
        "required": [
          "attempts",
          "audio",
          "billedMinutes",
          "callId",
          "createdAt",
          "endReason",
          "endedAt",
          "endpointId",
          "failure",
          "framesIn",
          "framesOut",
          "fundedMinutes",
          "id",
          "listen",
          "minutePrice",
          "price",
          "reconnect",
          "simulated",
          "state",
          "streamingAt"
        ],
        "type": "object"
      },
      "CallSummary": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it summarizes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "failure": {
            "description": "Why no summary was made; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The summary's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the summary cost, once it settled; `null` before."
          },
          "state": {
            "description": "`waiting` for the call's transcript, `dispatched` while it is made, `done`, `failed` (nothing charged; `failure` says why) or `uncertain` when the answer was lost: Telkit's staff settle it.",
            "enum": [
              "waiting",
              "dispatched",
              "done",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "text": {
            "description": "The summary, once it is `done`; `null` before.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "callId",
          "failure",
          "id",
          "price",
          "state",
          "text"
        ],
        "type": "object"
      },
      "CallTransfer": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The transfer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "kind": {
            "description": "`blind`: the transferor leaves when the target answers; `attended`: the transferor first talks with the target while the others are on hold, then completes or cancels.",
            "enum": [
              "blind",
              "attended"
            ],
            "type": "string"
          },
          "state": {
            "description": "`dialing` while the target rings; `consulting` (attended: the target answered and talks with the transferor); `completed`; `cancelled`; `failed` (the target never answered or left, or the transferred party left first: the call stays as it was). `dialing` and `consulting` are the active states.",
            "enum": [
              "dialing",
              "consulting",
              "completed",
              "cancelled",
              "failed"
            ],
            "type": "string"
          },
          "targetId": {
            "description": "The participant that was dialled to take the place.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The target's number, in E.164.",
            "type": "string"
          },
          "transfereeId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The participant that is transferred: the one other party of the call; `null` when the call has more than one."
          },
          "transferorId": {
            "description": "The participant whose place moves.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "kind",
          "state",
          "targetId",
          "to",
          "transfereeId",
          "transferorId"
        ],
        "type": "object"
      },
      "ClientToken": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "The app user it is for.",
            "type": "string"
          },
          "expiresAt": {
            "description": "When it stops working, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "expiresInSeconds": {
            "description": "The token's life as Telkit counted it: time the next one from the answer.",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          },
          "id": {
            "description": "The token's id.",
            "type": "string"
          },
          "token": {
            "description": "The secret, answered once.",
            "type": "string"
          }
        },
        "required": [
          "appUserId",
          "expiresAt",
          "expiresInSeconds",
          "id",
          "token"
        ],
        "type": "object"
      },
      "Email": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "Its files in order: a sent email's, then a received email's.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "contentId": {
                  "description": "The `Content-ID` the HTML shows the file inline by (`cid:<contentId>`).",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "contentType": {
                  "description": "The file's media type (`application/pdf`); `null` when unknown.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "filename": {
                  "description": "The file's name.",
                  "type": "string"
                },
                "id": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "A received file's id: download it with `GET /email/{id}/attachments/{attachmentId}`. null on a sent file."
                },
                "sha256": {
                  "description": "The hex SHA-256 of the stored bytes; null until a received file is stored.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sizeBytes": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "null while a received file is fetched."
                },
                "skipReason": {
                  "anyOf": [
                    {
                      "enum": [
                        "too_many_files",
                        "too_large",
                        "receiving_unsupported",
                        "fetch_failed",
                        "infected",
                        "scan_unavailable"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why a received file was not stored: `too_many_files` or `too_large` (past what one email keeps), `receiving_unsupported` or `fetch_failed` (the file could not be fetched), `infected`, or `scan_unavailable` (it could not be scanned, so it was not stored). `null` unless `state` is `skipped`."
                },
                "state": {
                  "description": "`stored` (a sent file, or a received one ready to download), `pending` while Telkit fetches a received file, `skipped` (see `skipReason`).",
                  "enum": [
                    "pending",
                    "stored",
                    "skipped"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "contentId",
                "contentType",
                "filename",
                "id",
                "sha256",
                "sizeBytes",
                "skipReason",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "bcc": {
            "description": "The blind-copy recipients the email provider reports for a received email (seldom any); empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "blockedReason": {
            "anyOf": [
              {
                "enum": [
                  "blocked_sender",
                  "dmarc_failed",
                  "day_cap"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the receiving domain's rules stopped this received email: `blocked_sender` (its block list), `dmarc_failed` (the domain requires DMARC) or `day_cap` (the domain's day cap was reached). null on an email they never stopped. It stays after the email is let through; `state` says whether it is still stopped."
          },
          "cc": {
            "description": "The copy recipients a received email names; empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When Telkit took the send, or received the email. ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "deliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as delivered; `null` until then."
          },
          "direction": {
            "description": "`outbound`: you sent it. `inbound`: you received it.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "failedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as failed; `null` when it has not."
          },
          "failureReason": {
            "description": "Why it failed, in words; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "`Name <address>`, or the address alone.",
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Every header of a received email, names in lower case; empty on a sent email.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "html": {
            "description": "The HTML body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The email's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "inReplyTo": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "The answered email's id.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own id of the answered email; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email of yours this one answers, with your own reference of it; null when it answers none Telkit holds."
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "person",
                  "automatic",
                  "delivery_report"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What kind of mail a received email is, read from its headers: `person` (someone wrote it), `automatic` (an out-of-office answer or another machine's mail) or `delivery_report` (a bounce). null on a sent email."
          },
          "latestSendAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instant after which the message is never sent, ISO 8601 in UTC; `null` when the send named none."
          },
          "original": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "sha256": {
                    "description": "The hex SHA-256 of the stored bytes; null until stored.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sizeBytes": {
                    "anyOf": [
                      {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The stored length in bytes; null until stored."
                  },
                  "skipReason": {
                    "anyOf": [
                      {
                        "enum": [
                          "too_many_files",
                          "too_large",
                          "receiving_unsupported",
                          "fetch_failed",
                          "infected",
                          "scan_unavailable"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Why the original is not kept; null unless `state` is `skipped`."
                  },
                  "state": {
                    "description": "`pending` while Telkit fetches it from the email provider, `stored` when it can be downloaded, `skipped` when it is not kept (`skipReason`).",
                    "enum": [
                      "pending",
                      "stored",
                      "skipped"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "sha256",
                  "sizeBytes",
                  "skipReason",
                  "state"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The original message file of a received email (an `.eml` with every part as the sender's server gave it): download it with `GET /email/{messageId}/original` once `stored`. null on a sent email."
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What it costs you: the send, or receiving it. Excluding VAT."
          },
          "recipients": {
            "description": "How many addresses it went to.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own id of the send; null when it named none, and on a received email.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyTo": {
            "description": "The address a reply goes to; `null` when it names none.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyToAddresses": {
            "description": "Every `Reply-To` address of a received email; `replyTo` is the first of them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rfcInReplyTo": {
            "description": "The first `Message-ID` a received email's `In-Reply-To` header names; null when none.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcMessageId": {
            "description": "The email's own `Message-ID`, in angle brackets. On a sent email it is the id the mail server gave it, known after its first status event; null until then, and on an email a test key sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcReferences": {
            "description": "The `Message-ID`s of a received email's `References` header, oldest first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sendWindow": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "days": {
                    "description": "The weekdays it is open.",
                    "items": {
                      "enum": [
                        "mon",
                        "tue",
                        "wed",
                        "thu",
                        "fri",
                        "sat",
                        "sun"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "from": {
                    "description": "Local time the window opens, `HH:MM` (24-hour).",
                    "type": "string"
                  },
                  "skipPublicHolidays": {
                    "description": "Whether it is closed on Norway's public holidays.",
                    "type": "boolean"
                  },
                  "timeZone": {
                    "description": "The IANA time zone the times are read in.",
                    "type": "string"
                  },
                  "until": {
                    "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                    "type": "string"
                  }
                },
                "required": [
                  "days",
                  "from",
                  "skipPublicHolidays",
                  "timeZone",
                  "until"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The hours the message may be sent, with every default filled in; `null` when the send named none."
          },
          "senderChecks": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "dkim": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "dmarc": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "spf": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "dkim",
                  "dmarc",
                  "spf"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the receiving mail server found of the sender (SPF, DKIM, DMARC). `dmarc: pass` means the sender's domain is the one in `from`. null on a sent email and when the email provider gave no result."
          },
          "sentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as sent; `null` until then."
          },
          "simulated": {
            "description": "`true`: a test key's email; nothing left Telkit.",
            "type": "boolean"
          },
          "state": {
            "description": "Where it is now. Sent: `queued`, `in_flight` (being handed over), `sent`, `delivered`, then possibly `bounced` or `complained` (the receiving server reports those later); `failed` when it was refused or could not be sent; `uncertain` when Telkit could not learn whether it was taken (it is never sent again); `scheduled` and `cancelled` only on a campaign's email. Received: `held_for_balance` (kept back until your balance pays for receiving it), then `received`; `blocked` when the receiving domain's rules stopped it.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          },
          "subject": {
            "description": "The subject line.",
            "type": "string"
          },
          "text": {
            "description": "The plain-text body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "threadId": {
            "description": "The thread the email is in: `email.list` reads it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The addresses it went to.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendorDeliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the receiving mail server took it, as reported; `null` when no time was given."
          },
          "vendorFailedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it failed, as reported; `null` when no time was given."
          },
          "vendorReceivedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email provider's own time of receipt; `createdAt` is when Telkit stored it."
          },
          "vendorSentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time of the same state as the sending mail server reported it; `null` when it gave none."
          },
          "via": {
            "anyOf": [
              {
                "enum": [
                  "saved_sender",
                  "catch_all"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How a received email found its profile: `saved_sender` (the profile saved the address it came to) or `catch_all` (the profile takes the domain's other addresses). null on a sent email."
          }
        },
        "required": [
          "attachments",
          "bcc",
          "blockedReason",
          "cc",
          "createdAt",
          "deliveredAt",
          "direction",
          "failedAt",
          "failureReason",
          "from",
          "headers",
          "html",
          "id",
          "identity",
          "inReplyTo",
          "kind",
          "latestSendAt",
          "original",
          "price",
          "recipients",
          "reference",
          "replyTo",
          "replyToAddresses",
          "rfcInReplyTo",
          "rfcMessageId",
          "rfcReferences",
          "sendWindow",
          "senderChecks",
          "sentAt",
          "simulated",
          "state",
          "subject",
          "text",
          "threadId",
          "to",
          "vendorDeliveredAt",
          "vendorFailedAt",
          "vendorReceivedAt",
          "vendorSentAt",
          "via"
        ],
        "type": "object"
      },
      "EmailDomain": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When it was added, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "default": {
            "description": "`true`: a send of its identity without `from` goes from this domain.",
            "type": "boolean"
          },
          "defaultFrom": {
            "description": "What a send from this domain without `from` sends as: `Name <address>`.",
            "type": [
              "string",
              "null"
            ]
          },
          "domain": {
            "description": "The domain name: `post.firma.no`.",
            "type": "string"
          },
          "id": {
            "description": "The domain's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "lastCheckedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the DNS records were last checked, ISO 8601 in UTC; `null` before the first check."
          },
          "problem": {
            "description": "What the last check found wrong with the domain, in words; `null` when nothing.",
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "description": "Why it was rejected, in words; `null` otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "receiveDayCap": {
            "description": "Receiving: the most mail the domain takes in a day (Europe/Oslo); later mail is stored stopped, uncharged.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "receiving": {
            "description": "Whether you asked for the domain to receive email.",
            "type": "boolean"
          },
          "receivingReady": {
            "description": "`true` once the records are verified for receiving.",
            "type": "boolean"
          },
          "records": {
            "description": "The DNS records to publish.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "The host name to publish it on.",
                  "type": "string"
                },
                "priority": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The record's priority (an `MX` record); `null` when it has none."
                },
                "purpose": {
                  "description": "What the record is for: sending, receiving, …",
                  "type": "string"
                },
                "required": {
                  "description": "Whether the record must be published.",
                  "type": "boolean"
                },
                "status": {
                  "description": "What the last check found of it.",
                  "type": "string"
                },
                "ttl": {
                  "description": "The time to live to set, as text; `null` when none is given.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "type": {
                  "description": "The record's type, such as `TXT`, `MX` or `CNAME`.",
                  "type": "string"
                },
                "value": {
                  "description": "The record's value.",
                  "type": "string"
                }
              },
              "required": [
                "name",
                "priority",
                "purpose",
                "required",
                "status",
                "ttl",
                "type",
                "value"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "requireDmarc": {
            "description": "Receiving: `true` stores a mail whose DMARC result is `fail` stopped (`blocked`), uncharged.",
            "type": "boolean"
          },
          "sending": {
            "description": "`true` once the records are verified for sending.",
            "type": "boolean"
          },
          "state": {
            "description": "`pending` until its DNS records are verified, then `active`: only an active domain sends for a live key. `rejected`: the domain was refused; `ended`: it was removed.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a `pending` domain waits on: `dns_check` (publish `records`; Telkit checks them); `null` when it waits on nothing."
          }
        },
        "required": [
          "createdAt",
          "default",
          "defaultFrom",
          "domain",
          "id",
          "identity",
          "lastCheckedAt",
          "problem",
          "reason",
          "receiveDayCap",
          "receiving",
          "receivingReady",
          "records",
          "requireDmarc",
          "sending",
          "state",
          "waitingOn"
        ],
        "type": "object"
      },
      "EmailDomainBlock": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When the sender was blocked, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The entry's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "kind": {
            "description": "`address` or `domain`.",
            "enum": [
              "address",
              "domain"
            ],
            "type": "string"
          },
          "sender": {
            "description": "The blocked address, or the blocked domain (it also names its subdomains).",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "id",
          "kind",
          "sender"
        ],
        "type": "object"
      },
      "EmailOptOut": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "The email address that gets no email.",
            "type": "string"
          },
          "allIdentities": {
            "description": "true: it stops the email of every identity of the application (`identity` is then null).",
            "type": "boolean"
          },
          "createdAt": {
            "description": "When it was put on the list, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The entry's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          }
        },
        "required": [
          "address",
          "allIdentities",
          "createdAt",
          "id",
          "identity"
        ],
        "type": "object"
      },
      "Event": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "description": "The event's own fields, by `event` and `version`."
          },
          "event": {
            "description": "What happened, such as `sms.status`.",
            "type": "string"
          },
          "id": {
            "description": "The event's id: the same in a webhook, the log and the stream.",
            "type": "string"
          },
          "occurredAt": {
            "description": "When it happened.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "position": {
            "description": "Its place in your log; send it as `after` to read what came after it.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "version": {
            "description": "The version of `data`'s shape.",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "data",
          "event",
          "id",
          "occurredAt",
          "position",
          "version"
        ],
        "type": "object"
      },
      "Identity": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "additionalProperties": false,
            "description": "The address in the business register.",
            "properties": {
              "city": {
                "description": "The city; `null` when the register has none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "description": "The address's country, ISO 3166-1 alpha-2; `null` when the register has none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "lines": {
                "description": "The street address; empty when the register has none.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "postalCode": {
                "description": "The postal code; `null` when the register has none.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "city",
              "country",
              "lines",
              "postalCode"
            ],
            "type": "object"
          },
          "country": {
            "description": "The country of the business register, ISO 3166-1 alpha-2.",
            "type": "string"
          },
          "createdAt": {
            "description": "When it was made, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "displayName": {
            "description": "The name your customers see.",
            "type": "string"
          },
          "documents": {
            "description": "Its current documents.",
            "items": {
              "$ref": "#/components/schemas/IdentityDocument"
            },
            "type": "array"
          },
          "id": {
            "description": "Telkit's id of the identity.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "legalName": {
            "description": "The name in the business register.",
            "type": "string"
          },
          "own": {
            "description": "`true` for your own company (`self`).",
            "type": "boolean"
          },
          "reason": {
            "description": "Why Telkit rejected or suspended it.",
            "type": [
              "string",
              "null"
            ]
          },
          "reference": {
            "description": "Your own id for the business; `null` when it has none.",
            "type": [
              "string",
              "null"
            ]
          },
          "registrationNumber": {
            "description": "The number in the business register; in Norway the organization number.",
            "type": "string"
          },
          "requirements": {
            "description": "The documents still needed before it can be submitted.",
            "items": {
              "enum": [
                "registration_certificate",
                "authorization",
                "signatory_id",
                "other"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "signatory": {
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "Who signs for the business: the contact Telkit and the number carriers ask for. `phone` in E.164.",
                "properties": {
                  "email": {
                    "description": "The signatory's email address.",
                    "format": "email",
                    "maxLength": 254,
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                    "type": "string"
                  },
                  "name": {
                    "description": "The signatory's full name.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "phone": {
                    "description": "The signatory's phone number, E.164: `+4791234567`.",
                    "pattern": "^\\+[1-9]\\d{6,14}$",
                    "type": "string"
                  },
                  "role": {
                    "description": "The signatory's role in the business, for example its general manager.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who signs for the business; `null` when none is given."
          },
          "state": {
            "description": "`draft` until it is submitted, `submitted` while Telkit reviews it, then `approved`, `rejected` (`reason`; correct it and submit again) or `suspended`. Your own company is `approved` once it is verified.",
            "enum": [
              "draft",
              "submitted",
              "approved",
              "rejected",
              "suspended"
            ],
            "type": "string"
          },
          "updatedAt": {
            "description": "When it last changed, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "address",
          "country",
          "createdAt",
          "displayName",
          "documents",
          "id",
          "legalName",
          "own",
          "reason",
          "reference",
          "registrationNumber",
          "requirements",
          "signatory",
          "state",
          "updatedAt"
        ],
        "type": "object"
      },
      "IdentityDocument": {
        "additionalProperties": false,
        "properties": {
          "contentType": {
            "description": "The file's media type: `application/pdf`.",
            "type": "string"
          },
          "fileName": {
            "description": "The file's name.",
            "type": "string"
          },
          "id": {
            "description": "The document's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "kind": {
            "description": "What it proves: `registration_certificate`, `authorization`, `signatory_id` or `other`.",
            "enum": [
              "registration_certificate",
              "authorization",
              "signatory_id",
              "other"
            ],
            "type": "string"
          },
          "sizeBytes": {
            "description": "The file's size in bytes.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "uploadedAt": {
            "description": "When it was uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "contentType",
          "fileName",
          "id",
          "kind",
          "sizeBytes",
          "uploadedAt"
        ],
        "type": "object"
      },
      "Letter": {
        "additionalProperties": false,
        "description": "`price` is what the letter cost once Digipost took it; until then the amount held for it, and nothing for a letter that failed.",
        "properties": {
          "colour": {
            "description": "Whether it prints in colour (paper only).",
            "type": "boolean"
          },
          "createdAt": {
            "description": "When Telkit took the send, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "deliveredAs": {
            "anyOf": [
              {
                "enum": [
                  "digital",
                  "paper"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How it reached the recipient: `digital` (a mailbox) or `paper`; `null` until that is known."
          },
          "deliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A digital letter: when it reached the mailbox; `null` until then."
          },
          "delivery": {
            "description": "How the send asked for it to go: `digital_or_paper`, `digital_only` or `paper_only`.",
            "enum": [
              "digital_or_paper",
              "digital_only",
              "paper_only"
            ],
            "type": "string"
          },
          "documentSha256": {
            "description": "The hex SHA-256 of the PDF Digipost got.",
            "type": [
              "string",
              "null"
            ]
          },
          "failedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it failed; `null` when it has not."
          },
          "failureReason": {
            "description": "Why it failed, in words; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The letter's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "pages": {
            "description": "The pages of the letter's PDF.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "postedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A paper letter: when it was posted; `null` until then."
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What the letter cost once it was taken; until then the amount held for it, and zero for a letter that failed. Excluding VAT."
          },
          "reference": {
            "description": "Your own id for the send; `null` when it named none.",
            "type": [
              "string",
              "null"
            ]
          },
          "sentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was handed over for delivery; `null` until then."
          },
          "sheets": {
            "description": "The sheets of paper it prints on.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "simulated": {
            "description": "`true` for a letter in test mode: nothing left Telkit.",
            "type": "boolean"
          },
          "state": {
            "description": "Where it is now: `queued`, `in_flight` (being handed over), then `delivered` (in a digital mailbox) or `printing` and `posted` (on paper); `failed` from any state before those ends; `uncertain` when Telkit could not learn whether it was taken (it is never sent again).",
            "enum": [
              "queued",
              "in_flight",
              "uncertain",
              "printing",
              "delivered",
              "posted",
              "failed"
            ],
            "type": "string"
          },
          "subject": {
            "description": "The subject: shown in the mailbox.",
            "type": "string"
          },
          "to": {
            "additionalProperties": false,
            "description": "Who the letter is to.",
            "properties": {
              "city": {
                "description": "The city; empty when the letter has none.",
                "type": "string"
              },
              "lines": {
                "description": "Empty, with an empty `postalCode` and `city`, when a letter by id has none.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "name": {
                "description": "The recipient's name.",
                "type": "string"
              },
              "nationalIdMasked": {
                "description": "The national id the letter was sent to, masked (the birth date and `*****`); the full number is never answered.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "postalCode": {
                "description": "The postal code; empty when the letter has none.",
                "type": "string"
              },
              "registrationNumber": {
                "description": "The Norwegian organisation number the letter was sent to; `null` when it named none.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "city",
              "lines",
              "name",
              "nationalIdMasked",
              "postalCode",
              "registrationNumber"
            ],
            "type": "object"
          }
        },
        "required": [
          "colour",
          "createdAt",
          "deliveredAs",
          "deliveredAt",
          "delivery",
          "documentSha256",
          "failedAt",
          "failureReason",
          "id",
          "identity",
          "pages",
          "postedAt",
          "price",
          "reference",
          "sentAt",
          "sheets",
          "simulated",
          "state",
          "subject",
          "to"
        ],
        "type": "object"
      },
      "LetterAccount": {
        "additionalProperties": false,
        "properties": {
          "connectedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the account was connected, ISO 8601 in UTC; `null` until then."
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Until when Telkit checks the open connection, ISO 8601 in UTC; after it, connect again. `null` unless `pending`."
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "paperOnly": {
            "description": "Whether the connected account may send a letter with `delivery: \"paper_only\"`: Digipost allows it per account.",
            "type": "boolean"
          },
          "startedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the open connection was started, ISO 8601 in UTC; `null` unless `pending`."
          },
          "state": {
            "description": "`none`: no Digipost account is connected. `pending`: a connection is started and waits on the business's registration at Digipost, or on Digipost's approval. `connected`: live letters in the business's name go with its own account.",
            "enum": [
              "none",
              "pending",
              "connected"
            ],
            "type": "string"
          }
        },
        "required": [
          "connectedAt",
          "expiresAt",
          "identity",
          "paperOnly",
          "startedAt",
          "state"
        ],
        "type": "object"
      },
      "LetterSender": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "additionalProperties": false,
            "description": "The return address the letters carry.",
            "properties": {
              "city": {
                "description": "The city.",
                "type": "string"
              },
              "lines": {
                "description": "The address lines above the postal code.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "postalCode": {
                "description": "The postal code.",
                "type": "string"
              }
            },
            "required": [
              "city",
              "lines",
              "postalCode"
            ],
            "type": "object"
          },
          "createdAt": {
            "description": "When it was made, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The letter sender's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "logoUrl": {
            "description": "A short-lived link to the logo.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "The sender name the letters carry.",
            "type": "string"
          },
          "reason": {
            "description": "Why it was rejected, in words; `null` otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "`pending` while Telkit reviews it, then `active`: only an active letter sender sends for a live key. `rejected`: refused; `ended`: it was ended. A change puts an active one back to `pending`.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a `pending` letter sender waits on: `telkit_review`; `null` when it waits on nothing."
          }
        },
        "required": [
          "address",
          "createdAt",
          "id",
          "identity",
          "logoUrl",
          "name",
          "reason",
          "state",
          "waitingOn"
        ],
        "type": "object"
      },
      "Number": {
        "additionalProperties": false,
        "properties": {
          "area": {
            "description": "The area it was ordered in (the digits after the country code); `null` for an SMS number.",
            "type": [
              "string",
              "null"
            ]
          },
          "assignedTo": {
            "description": "The seller it belongs to in your own system («selger-17»).",
            "type": [
              "string",
              "null"
            ]
          },
          "capabilities": {
            "additionalProperties": false,
            "description": "What the number can do. A Norwegian number for calls sends no SMS, and a Norwegian SMS number takes no calls.",
            "properties": {
              "calls": {
                "additionalProperties": false,
                "description": "The calls it carries.",
                "properties": {
                  "inbound": {
                    "description": "`true`: it takes calls.",
                    "type": "boolean"
                  },
                  "outbound": {
                    "description": "`true`: a call can be made from it.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "inbound",
                  "outbound"
                ],
                "type": "object"
              },
              "sms": {
                "additionalProperties": false,
                "description": "The SMS it carries.",
                "properties": {
                  "inbound": {
                    "description": "`true`: an SMS sent to it reaches Telkit.",
                    "type": "boolean"
                  },
                  "outbound": {
                    "description": "The countries an SMS from it reaches; empty: it sends no SMS.",
                    "items": {
                      "enum": [
                        "AT",
                        "BE",
                        "BG",
                        "HR",
                        "CY",
                        "CZ",
                        "DK",
                        "EE",
                        "FI",
                        "FR",
                        "DE",
                        "GR",
                        "HU",
                        "IE",
                        "IT",
                        "LV",
                        "LT",
                        "LU",
                        "MT",
                        "NL",
                        "PL",
                        "PT",
                        "RO",
                        "SK",
                        "SI",
                        "ES",
                        "SE",
                        "NO",
                        "IS",
                        "LI",
                        "CH",
                        "GB",
                        "US"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "inbound",
                  "outbound"
                ],
                "type": "object"
              }
            },
            "required": [
              "calls",
              "sms"
            ],
            "type": "object"
          },
          "country": {
            "description": "The number's country, as a two-letter ISO 3166-1 code (`NO`).",
            "enum": [
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IE",
              "IT",
              "LV",
              "LT",
              "LU",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "NO",
              "IS",
              "LI",
              "CH",
              "GB",
              "US"
            ],
            "type": "string"
          },
          "createdAt": {
            "description": "When it was ordered, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "defaultFor": {
            "description": "What its identity uses it for when a call or an SMS names no `from`: `calls`, `sms`.",
            "items": {
              "enum": [
                "calls",
                "sms"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended, ISO 8601 in UTC; `null` while it has not ended."
          },
          "id": {
            "description": "The number's id. Every `numbers` operation takes it in place of the number.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "monthlyPrice": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it costs a month on your plan (0 inside the numbers the plan includes); `null` until it is delivered, for a test number, or when your plan puts no price on it."
          },
          "number": {
            "description": "The number in E.164; `null` until Telkit has delivered it.",
            "type": [
              "string",
              "null"
            ]
          },
          "person": {
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "Who uses the number («Ola Nilsen», «Selger»).",
                "properties": {
                  "name": {
                    "description": "The person's name («Ola Nilsen»).",
                    "type": "string"
                  },
                  "role": {
                    "description": "The person's role («Selger»); `null` when none was given.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "name",
                  "role"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who uses the number («Ola Nilsen», «Selger»); `null` when no one is named."
          },
          "reason": {
            "description": "Why it was refused or ended.",
            "type": [
              "string",
              "null"
            ]
          },
          "route": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "decideSeconds": {
                    "description": "How many seconds a `webhook` route waits for your answer to `call.incoming` before `fallback`; 20 when never set.",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "fallback": {
                    "description": "What a `webhook` route does when no answer came in time: `message` (the caller hears Telkit's message; the value when never set) or `forward` (the call goes to `forwardTo`).",
                    "enum": [
                      "message",
                      "forward"
                    ],
                    "type": "string"
                  },
                  "flowId": {
                    "anyOf": [
                      {
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The call flow a `flow` route runs; `null` on every other route."
                  },
                  "forwardTo": {
                    "description": "The number a `forward` route, or a `webhook` route whose `fallback` is `forward`, dials, in E.164; `null` on every other route.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "target": {
                    "description": "`none`: the caller hears Telkit's message; `webhook`: your answer to `call.incoming` decides; `forward`: the call goes to `forwardTo`; `flow`: the call flow `flowId` runs.",
                    "enum": [
                      "none",
                      "webhook",
                      "forward",
                      "flow"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "decideSeconds",
                  "fallback",
                  "flowId",
                  "forwardTo",
                  "target"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What an inbound call does: `none` (Telkit's message), `webhook` (`call.incoming` decides; `fallback` after `decideSeconds`), `forward` (to `forwardTo`), `flow` (the call flow `flowId`). `null` on a number that takes no calls, is not delivered or has ended."
          },
          "simulated": {
            "description": "`true`: a test number, which reaches no one.",
            "type": "boolean"
          },
          "state": {
            "description": "`pending`: ordered and not in use yet (`waitingOn` says why); `active`: in use; `rejected`: the order was refused (`reason`); `ended`: released or taken back.",
            "enum": [
              "pending",
              "active",
              "rejected",
              "ended"
            ],
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a `pending` number waits on, `null` when it waits on nothing: `telkit_review` (Telkit's staff handle the order), `vendor_review` (the number is on its way from the carrier), `number_routing` (delivered, and being connected for calls), `address_check` (your company's address is being checked), `fee_payment` (its fee is not paid)."
          }
        },
        "required": [
          "area",
          "assignedTo",
          "capabilities",
          "country",
          "createdAt",
          "defaultFor",
          "endedAt",
          "id",
          "identity",
          "monthlyPrice",
          "number",
          "person",
          "reason",
          "route",
          "simulated",
          "state",
          "waitingOn"
        ],
        "type": "object"
      },
      "Price": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "In the currency's smallest unit: 69 is 0,69 kr.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "currency": {
            "description": "The currency, ISO 4217.",
            "enum": [
              "NOK"
            ],
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "Recording": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it records.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "channels": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "1: every party mixed; 2: the parties alternate between two channels in the order they joined. `null` until the recording started."
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended, ISO 8601 in UTC; `null` while it records."
          },
          "id": {
            "description": "The recording's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the recording cost, once it settled; `null` before."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The recorded length in whole seconds, once it is known; `null` before."
          },
          "simulated": {
            "description": "`true`: a test key's recording.",
            "type": "boolean"
          },
          "startedAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "state": {
            "description": "`waiting`: asked for at the call's start, it begins when the call is answered; `recording`; `stopping`: a stop was asked for and its final length is not known yet; `stored`: its file can be read; `failed`: there is no file.",
            "enum": [
              "waiting",
              "recording",
              "stopping",
              "stored",
              "failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "callId",
          "channels",
          "endedAt",
          "id",
          "price",
          "seconds",
          "simulated",
          "startedAt",
          "state"
        ],
        "type": "object"
      },
      "Sms": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When Telkit took the send, or received the SMS. ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "deliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When its delivery was confirmed; `null` until then."
          },
          "direction": {
            "description": "`outbound`: you sent it; `inbound`: you received it.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "failedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it failed; `null` when it has not."
          },
          "failureReason": {
            "description": "Why it failed, in words; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "A sender name or a number; `null` for Telkit's shared reply number.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The SMS's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "inReplyTo": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A received SMS: the SMS of yours it answers."
          },
          "latestSendAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instant after which the message is never sent, ISO 8601 in UTC; `null` when the send named none."
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What it costs you: the send, or receiving it. Excluding VAT."
          },
          "reference": {
            "description": "Your own id for the send; `null` when it named none, and on a received SMS.",
            "type": [
              "string",
              "null"
            ]
          },
          "scheduledAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it is set to be sent, ISO 8601 in UTC; `null` for a send that goes at once."
          },
          "segments": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The SMS parts the text takes, as the price counts them."
          },
          "sendWindow": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "days": {
                    "description": "The weekdays it is open.",
                    "items": {
                      "enum": [
                        "mon",
                        "tue",
                        "wed",
                        "thu",
                        "fri",
                        "sat",
                        "sun"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "from": {
                    "description": "Local time the window opens, `HH:MM` (24-hour).",
                    "type": "string"
                  },
                  "skipPublicHolidays": {
                    "description": "Whether it is closed on Norway's public holidays.",
                    "type": "boolean"
                  },
                  "timeZone": {
                    "description": "The IANA time zone the times are read in.",
                    "type": "string"
                  },
                  "until": {
                    "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                    "type": "string"
                  }
                },
                "required": [
                  "days",
                  "from",
                  "skipPublicHolidays",
                  "timeZone",
                  "until"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The hours the message may be sent, with every default filled in; `null` when the send named none."
          },
          "sentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was handed over for delivery; `null` until then."
          },
          "simulated": {
            "description": "`true` for an SMS in test mode: nothing left Telkit.",
            "type": "boolean"
          },
          "state": {
            "description": "Where it is now. Sent: `scheduled`, `queued`, `in_flight` (being handed over), `sent`, then `delivered` or `failed`; `cancelled` for a scheduled one that was cancelled; `uncertain` when Telkit could not learn whether it was taken (it is never sent again). Received: `held_for_balance` (kept back until your balance pays for receiving it), then `received`.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "failed",
              "cancelled",
              "held_for_balance",
              "received"
            ],
            "type": "string"
          },
          "text": {
            "description": "The message text; `null` when it is no longer kept.",
            "type": [
              "string",
              "null"
            ]
          },
          "to": {
            "description": "The number it went to, E.164: the recipient's, or the number of yours that received it. `null` on an answer to Telkit's shared reply number.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "createdAt",
          "deliveredAt",
          "direction",
          "failedAt",
          "failureReason",
          "from",
          "id",
          "identity",
          "inReplyTo",
          "latestSendAt",
          "price",
          "reference",
          "scheduledAt",
          "segments",
          "sendWindow",
          "sentAt",
          "simulated",
          "state",
          "text",
          "to"
        ],
        "type": "object"
      },
      "SmsOptOut": {
        "additionalProperties": false,
        "properties": {
          "allIdentities": {
            "description": "true: it stops the SMS of every identity of the application (`identity` is then null).",
            "type": "boolean"
          },
          "changedAt": {
            "description": "When it last opted out, or back in.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The opt-out's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "number": {
            "description": "The number, E.164.",
            "type": "string"
          },
          "optedOut": {
            "description": "`true` while the number is on the list; `false` once it was removed or answered an opt-in word.",
            "type": "boolean"
          }
        },
        "required": [
          "allIdentities",
          "changedAt",
          "id",
          "identity",
          "number",
          "optedOut"
        ],
        "type": "object"
      },
      "SmsSender": {
        "additionalProperties": false,
        "properties": {
          "approvedUntil": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "An own mobile number's approval ends then (90 days)."
          },
          "countries": {
            "description": "The countries it reaches (ISO 3166-1 alpha-2).",
            "items": {
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When it was made, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "default": {
            "description": "`true`: a send for its identity that names no `from` uses it.",
            "type": "boolean"
          },
          "id": {
            "description": "The sender's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "reason": {
            "description": "Why it was rejected or withdrawn, in words; `null` otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "`pending` until Telkit approves the name or the number's code is confirmed, then `active`: only an active sender sends for a live key. `rejected`: refused; `ended`: it was ended; `withdrawn`: another organization proved the mobile number as its own.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          },
          "type": {
            "description": "`name`: a sender name; `mobile`: an own mobile number.",
            "enum": [
              "name",
              "mobile"
            ],
            "type": "string"
          },
          "value": {
            "description": "The name, or the number in E.164.",
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a `pending` sender waits on: `telkit_review` (a name), `own_mobile_code` (the code sent to the phone) or `own_mobile_takeover` (the number moves from its earlier holder, seconds). `null` when it waits on nothing."
          }
        },
        "required": [
          "approvedUntil",
          "countries",
          "createdAt",
          "default",
          "id",
          "identity",
          "reason",
          "state",
          "type",
          "value",
          "waitingOn"
        ],
        "type": "object"
      },
      "SmsSenderRegistration": {
        "additionalProperties": false,
        "properties": {
          "countries": {
            "description": "Where it registers the name, ISO 3166-1 alpha-2.",
            "items": {
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended; `null` while it has not."
          },
          "id": {
            "description": "The registration's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "note": {
            "description": "The note the request carried; `null` when it had none.",
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "description": "Why it was refused.",
            "type": [
              "string",
              "null"
            ]
          },
          "sender": {
            "description": "The sender name it registers.",
            "type": "string"
          },
          "state": {
            "description": "`pending` until it is approved and its fee is paid, then `active`: the name reaches its countries. `rejected`: refused; `ended`: ended.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a pending registration waits on: the vendor's review, or its fee."
          }
        },
        "required": [
          "countries",
          "createdAt",
          "endedAt",
          "id",
          "note",
          "reason",
          "sender",
          "state",
          "waitingOn"
        ],
        "type": "object"
      },
      "SmsThread": {
        "additionalProperties": false,
        "properties": {
          "contactName": {
            "description": "The name your contacts give the number.",
            "type": [
              "string",
              "null"
            ]
          },
          "held": {
            "description": "SMS from them kept back until your balance pays for receiving them.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Sms"
            },
            "type": "array"
          },
          "lastMessageAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the newest SMS of the conversation was made; `null` while there is none."
          },
          "needsAnswer": {
            "description": "The newest SMS came from them, and was not an opt-out word.",
            "type": "boolean"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          },
          "number": {
            "description": "The other phone's number, E.164.",
            "type": "string"
          },
          "replyFrom": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "from": {
                    "description": "Send the answer with this `from`; `null`: with `sharedReplyNumber: true`.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "from"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where an answer should go from to land in the same conversation on their phone: the number they last wrote to, else the sender of your last SMS. `null` while there is no SMS."
          }
        },
        "required": [
          "contactName",
          "held",
          "items",
          "lastMessageAt",
          "needsAnswer",
          "next",
          "number",
          "replyFrom"
        ],
        "type": "object"
      },
      "Speech": {
        "additionalProperties": false,
        "properties": {
          "characters": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The characters the speech was charged for, once made."
          },
          "createdAt": {
            "description": "When it was asked for or uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The audio's id: what `calls.play`, `calls.start` and `stt.transcribe` take as `audioId`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language it is spoken in (`no`, `en`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Your own name for it; speech made without one is named by the start of its text.",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once made; `null` before."
          },
          "readyAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it became `ready`, ISO 8601 in UTC; `null` until then."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its length in whole seconds, once measured; `null` before."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "description": "`tts`: made from `text`; `upload`: uploaded audio, with no text or voice.",
            "enum": [
              "tts",
              "upload"
            ],
            "type": "string"
          },
          "state": {
            "description": "`pending` while it is made, `ready` to play, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "ready",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text it speaks; `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "voice": {
            "description": "The id of the voice that speaks it (`tts.voices.list`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "characters",
          "createdAt",
          "id",
          "identity",
          "language",
          "name",
          "price",
          "readyAt",
          "seconds",
          "simulated",
          "source",
          "state",
          "text",
          "voice"
        ],
        "type": "object"
      },
      "StartedCall": {
        "additionalProperties": false,
        "properties": {
          "answeredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was answered, ISO 8601 in UTC; `null` when it was not, or not yet."
          },
          "createdAt": {
            "description": "When it was started, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "direction": {
            "description": "`outbound`: you started it; `inbound`: someone called one of your numbers.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "endReason": {
            "description": "Why it ended: `hangup`, `busy`, `no_answer`, `rejected`, `cancelled`, `limit_reached`, `media_failed`, `speech_failed`, `unfunded` (an inbound call your balance could not fund) or `anonymous_blocked` (an inbound caller who gave no number, where those are blocked); `null` while it is under way.",
            "type": [
              "string",
              "null"
            ]
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended, ISO 8601 in UTC; `null` while it is under way."
          },
          "from": {
            "description": "The number the call comes from, in E.164: your number on an outbound call, the caller's on an inbound one; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The call's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "labels": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own labels on the call, as names and values; `null` when it has none."
          },
          "minutes": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The billed minutes, once the call ended (0 when it was never answered); `null` before."
          },
          "participants": {
            "description": "The app users of `participants`, in the order sent, each with its `url` and `token` for `@telkit/client`.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "expiresAt": {
                  "description": "When the token stops letting anyone join, ISO 8601 in UTC. It only limits joining: a participant who is in stays in.",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "type": "string"
                },
                "identity": {
                  "description": "The participant's name inside the call's media session. It is not a business identity.",
                  "type": "string"
                },
                "kind": {
                  "description": "`app`: a user of your own app; `bot`: your own bot program; `phone`: a phone.",
                  "enum": [
                    "phone",
                    "app",
                    "bot"
                  ],
                  "type": "string"
                },
                "participantId": {
                  "description": "The participant's id, for the `calls.appParticipants` and `calls.participants` acts.",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                "token": {
                  "description": "The join token: hand it to `@telkit/client` in your app, or to your bot. It only lets its holder join this call as this participant. `null` when none could be made.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "url": {
                  "description": "The address to connect to with `token`; `null` when no token could be made: ask for a fresh one with `calls.appParticipants.createToken`.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "expiresAt",
                "identity",
                "kind",
                "participantId",
                "token",
                "url"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the call cost, once it settled; `null` before."
          },
          "reference": {
            "description": "Your own id for the call; `null` when you gave none.",
            "type": [
              "string",
              "null"
            ]
          },
          "simulated": {
            "description": "`true`: a test key's call, which dials no phone and costs nothing.",
            "type": "boolean"
          },
          "state": {
            "description": "`queued` and `dialing` before the phone rings, `ringing`, `answered` while it is connected (its minutes run), then one final state: `ended` (answered, then over), `unanswered` (busy, no answer or rejected) or `failed` (never dialled, or refused). `uncertain`: the dial's answer was lost; it is not dialled again and moves on when the outcome is known.",
            "enum": [
              "queued",
              "dialing",
              "uncertain",
              "ringing",
              "answered",
              "ended",
              "unanswered",
              "failed"
            ],
            "type": "string"
          },
          "to": {
            "description": "The number called, in E.164; `null` on a call between app users.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "answeredAt",
          "createdAt",
          "direction",
          "endReason",
          "endedAt",
          "from",
          "id",
          "identity",
          "labels",
          "minutes",
          "participants",
          "price",
          "reference",
          "simulated",
          "state",
          "to"
        ],
        "type": "object"
      },
      "Transcript": {
        "additionalProperties": false,
        "properties": {
          "completedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was finished, ISO 8601 in UTC; `null` until then."
          },
          "createdAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "detectedLanguage": {
            "description": "The language detected in the audio; `null` when none was.",
            "type": [
              "string",
              "null"
            ]
          },
          "diarize": {
            "description": "`true`: it was asked to tell the speakers apart.",
            "type": "boolean"
          },
          "failureReason": {
            "description": "Why it failed; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The transcript's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language asked for (`no`, `en`); `null` when it was left to detection.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once done; `null` before."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The audio's length in whole seconds: as measured at first, as billed once `done`; `null` until it is known."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "additionalProperties": false,
            "description": "What was transcribed: a link (`url`, kept as the audio `audioId`), uploaded audio (`audioId`), or a call's recording (`recordingId` and `callId`).",
            "properties": {
              "audioId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The audio that was transcribed (`tts.get` reads it): uploaded audio, or the copy Telkit kept of a link; `null` for a recording."
              },
              "callId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The call of that recording; `null` for other sources."
              },
              "recordingId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The call recording that was transcribed; `null` for other sources."
              },
              "url": {
                "description": "The link that was transcribed; `null` for other sources.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "audioId",
              "callId",
              "recordingId",
              "url"
            ],
            "type": "object"
          },
          "state": {
            "description": "`pending` or `queued` until it is sent, `in_flight` while it is transcribed, `done`, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "queued",
              "in_flight",
              "uncertain",
              "done",
              "failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "completedAt",
          "createdAt",
          "detectedLanguage",
          "diarize",
          "failureReason",
          "id",
          "identity",
          "language",
          "price",
          "seconds",
          "simulated",
          "source",
          "state"
        ],
        "type": "object"
      },
      "TranscriptStream": {
        "additionalProperties": false,
        "properties": {
          "billedMinutes": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The minutes it was charged for, each started minute counting whole; `null` until it has ended."
          },
          "createdAt": {
            "description": "When it was funded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "encoding": {
            "description": "The audio it takes: `pcm_s16le` (16-bit little-endian PCM at 16 kHz) or `mulaw` (µ-law at 8 kHz).",
            "enum": [
              "pcm_s16le",
              "mulaw"
            ],
            "type": "string"
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended, ISO 8601 in UTC; `null` until then."
          },
          "endedBy": {
            "description": "Why it ended; `null` until it has. `closed`: you closed it; `funded_limit`: `maxMinutes` were used; `expired`: no WebSocket opened in time; `disconnected`: the WebSocket closed without a stop; `rate_limited`: too many frames were sent; `protocol_error`: a frame the WebSocket refused; `wall_clock_cap`: the WebSocket was open as long as one may be; `revoked`: the key behind it was revoked or aged out; `server_closed`, `speech_failed` and `lost`: it failed on Telkit's side.",
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "description": "Its WebSocket must open before this.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "fundedSeconds": {
            "description": "The most audio it takes: `maxMinutes` in seconds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "heardMs": {
            "description": "The audio heard so far, in milliseconds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "id": {
            "description": "The stream's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language it listens for (`no`, `en`).",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once ended; `null` before."
          },
          "sampleRate": {
            "description": "The audio's sample rate in Hz: 16000 for PCM, 8000 for µ-law.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "state": {
            "description": "`funded` until its WebSocket opens, `streaming`, then `ended` (`endedBy` says why); it settles once, at the minutes heard.",
            "enum": [
              "funded",
              "streaming",
              "ended"
            ],
            "type": "string"
          }
        },
        "required": [
          "billedMinutes",
          "createdAt",
          "encoding",
          "endedAt",
          "endedBy",
          "expiresAt",
          "fundedSeconds",
          "heardMs",
          "id",
          "identity",
          "language",
          "price",
          "sampleRate",
          "simulated",
          "state"
        ],
        "type": "object"
      },
      "Webhook": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When it was made.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "delivery": {
            "description": "`live`: events are sent as they happen; `paused`: they wait and are sent when it is `live` again; `muted`: they are not sent.",
            "enum": [
              "live",
              "paused",
              "muted"
            ],
            "type": "string"
          },
          "description": {
            "description": "Your own note on it.",
            "type": [
              "string",
              "null"
            ]
          },
          "ed25519": {
            "description": "Whether each delivery is also signed with the webhook's own Ed25519 key.",
            "type": "boolean"
          },
          "events": {
            "description": "The events it receives.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "health": {
            "description": "`active`; `degraded` while attempts fail; `held` when every attempt failed for days or the address answered 410: nothing is sent until it is released.",
            "enum": [
              "active",
              "degraded",
              "held"
            ],
            "type": "string"
          },
          "id": {
            "description": "The webhook's id.",
            "type": "string"
          },
          "publicKey": {
            "description": "The public half of that key, to verify with; null when off.",
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "description": "When it last changed.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "url": {
            "description": "Where each event is sent, as a signed POST.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "delivery",
          "description",
          "ed25519",
          "events",
          "health",
          "id",
          "publicKey",
          "updatedAt",
          "url"
        ],
        "type": "object"
      },
      "WebhookAttempt": {
        "additionalProperties": false,
        "properties": {
          "attempt": {
            "description": "Which try of its delivery it was: 1 for the first.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "deliveryId": {
            "description": "The delivery it tried (`webhooks.deliveries.list`); null for a test.",
            "type": [
              "string",
              "null"
            ]
          },
          "durationMs": {
            "description": "How long the address took to answer.",
            "type": [
              "number",
              "null"
            ]
          },
          "error": {
            "description": "Why no answer came, when none did.",
            "type": [
              "string",
              "null"
            ]
          },
          "event": {
            "description": "The event's name; `webhook.test` for a test.",
            "type": "string"
          },
          "excerpt": {
            "description": "The start of what the address answered, kept until `webhooks.eraseResponses` or its retention.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The attempt's id.",
            "type": "string"
          },
          "kind": {
            "description": "`delivery`: one try at delivering an event; `test`: a message `webhooks.test` sent.",
            "enum": [
              "delivery",
              "test"
            ],
            "type": "string"
          },
          "messageId": {
            "description": "The `webhook-id` header it carried.",
            "type": "string"
          },
          "outcome": {
            "anyOf": [
              {
                "enum": [
                  "delivered",
                  "rejected",
                  "gone",
                  "redirected",
                  "unreachable",
                  "refused",
                  "lost"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`delivered` (a 2xx), `rejected`, `gone` (410), `redirected`, `unreachable`, `refused` (the address may not be called) or `lost`; null while no answer is recorded."
          },
          "phase": {
            "description": "`sending`: no answer yet; `answered`: `outcome` says how; `lost`: closed without a recorded answer.",
            "enum": [
              "sending",
              "answered",
              "lost"
            ],
            "type": "string"
          },
          "startedAt": {
            "description": "When it was sent.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The HTTP status the address answered."
          },
          "url": {
            "description": "The address it was sent to, as the webhook had it then.",
            "type": "string"
          }
        },
        "required": [
          "attempt",
          "deliveryId",
          "durationMs",
          "error",
          "event",
          "excerpt",
          "id",
          "kind",
          "messageId",
          "outcome",
          "phase",
          "startedAt",
          "status",
          "url"
        ],
        "type": "object"
      },
      "WebhookDelivery": {
        "additionalProperties": false,
        "properties": {
          "attempts": {
            "description": "How many attempts were made.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "createdAt": {
            "description": "When it was made.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended `delivered`, `dead` or `skipped`; null while it is under way."
          },
          "event": {
            "description": "The event's name.",
            "type": "string"
          },
          "failureReason": {
            "description": "Why it ended `dead` or `skipped`; null otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The delivery's id.",
            "type": "string"
          },
          "messageId": {
            "description": "The `webhook-id` header of every attempt of it, the same when it is sent again: a receiver removes duplicates by it.",
            "type": "string"
          },
          "nextAttemptAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When a `pending` delivery is tried next; null in every other state."
          },
          "redeliveryOf": {
            "description": "The delivery this one sends again (`webhooks.deliveries.redeliver`); null for the first delivery of an event.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "`pending`: it is tried at `nextAttemptAt`; `waiting`: nothing is sent until what `waitingOn` names clears; `delivered`: the address answered 2xx; `dead`: every attempt failed, or it waited too long (`webhooks.deliveries.replay` and `webhooks.recover` send it again); `skipped`: it was never sent, because the webhook was muted or no longer received the event.",
            "enum": [
              "pending",
              "waiting",
              "delivered",
              "dead",
              "skipped"
            ],
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "endpoint_paused",
                  "endpoint_held",
                  "pin_unreachable"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `waiting` delivery is not sent: `endpoint_paused` (the webhook's `delivery` is `paused`), `endpoint_held` (its `health` is `held`) or `pin_unreachable` (the stored event cannot be turned into the version the webhook receives); null otherwise."
          },
          "webhookId": {
            "description": "The webhook it goes to.",
            "type": "string"
          }
        },
        "required": [
          "attempts",
          "createdAt",
          "endedAt",
          "event",
          "failureReason",
          "id",
          "messageId",
          "nextAttemptAt",
          "redeliveryOf",
          "state",
          "waitingOn",
          "webhookId"
        ],
        "type": "object"
      },
      "event.balance.low.v2": {
        "additionalProperties": false,
        "properties": {
          "balance": {
            "additionalProperties": false,
            "description": "The balance right after the move, held money included, excluding VAT.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          },
          "line": {
            "additionalProperties": false,
            "description": "The line the balance fell below, excluding VAT. 1: the balance ran out.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          }
        },
        "required": [
          "balance",
          "line"
        ],
        "type": "object"
      },
      "event.call.answered.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call: read it with `GET /calls/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "participantId": {
            "description": "The leg that connected.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "identity",
          "participantId",
          "to"
        ],
        "type": "object"
      },
      "event.call.ended.v2": {
        "additionalProperties": false,
        "properties": {
          "answered": {
            "type": "boolean"
          },
          "assignedTo": {
            "description": "The seller the number belonged to when the call came in; null: nobody's.",
            "type": [
              "string",
              "null"
            ]
          },
          "endReason": {
            "type": "string"
          },
          "endedAt": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "from": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The call: read it with `GET /calls/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "minutes": {
            "description": "The billed minutes.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "price": {
            "additionalProperties": false,
            "description": "What the call cost, everything settled.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          },
          "reference": {
            "description": "Your own reference for the call; `null` when it has none.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "enum": [
              "queued",
              "dialing",
              "uncertain",
              "ringing",
              "answered",
              "ended",
              "unanswered",
              "failed"
            ],
            "type": "string"
          },
          "to": {
            "description": "`null` on a call between app users.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "answered",
          "assignedTo",
          "endReason",
          "endedAt",
          "from",
          "id",
          "identity",
          "minutes",
          "price",
          "reference",
          "state",
          "to"
        ],
        "type": "object"
      },
      "event.call.gather.completed.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "digits": {
            "description": "The keys pressed; empty when none.",
            "type": "string"
          },
          "id": {
            "description": "The action `calls.say`, `play` or `gather` queued.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "outcome": {
            "enum": [
              "completed",
              "timeout",
              "stopped",
              "failed"
            ],
            "type": "string"
          },
          "participantId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "speech": {
            "description": "A spoken answer, the first final line heard; null when none.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "callId",
          "digits",
          "id",
          "identity",
          "outcome",
          "participantId",
          "speech"
        ],
        "type": "object"
      },
      "event.call.incoming.v2": {
        "additionalProperties": false,
        "properties": {
          "assignedTo": {
            "description": "The number's seller when the call arrived; null: nobody's.",
            "type": [
              "string",
              "null"
            ]
          },
          "decideBy": {
            "description": "Answer, reject or forward the call before then; after it, `fallback` runs.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "fallback": {
            "enum": [
              "message",
              "forward"
            ],
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "id": {
            "description": "The call: read it with `GET /calls/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "numberId": {
            "description": "Your number the call came in on.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "participantId": {
            "description": "The caller's leg.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "assignedTo",
          "decideBy",
          "fallback",
          "from",
          "id",
          "identity",
          "numberId",
          "participantId",
          "to"
        ],
        "type": "object"
      },
      "event.call.liveTranscript.ready.v2": {
        "additionalProperties": false,
        "properties": {
          "agentLines": {
            "description": "How many of those lines are what the call's AI agent said.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "callId": {
            "description": "The call it belongs to; read the transcript and its lines by the call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The live transcript.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "lines": {
            "description": "Final lines in the stitched transcript, the AI agent's included.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "price": {
            "additionalProperties": false,
            "description": "What the transcript cost: started heard minutes per leg; 0 with a test key.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          }
        },
        "required": [
          "agentLines",
          "callId",
          "id",
          "identity",
          "lines",
          "price"
        ],
        "type": "object"
      },
      "event.call.machineDetected.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call: read it with `GET /calls/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "price": {
            "additionalProperties": false,
            "description": "What the detection cost, once per answered call; 0 with a test key.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          },
          "reason": {
            "description": "What the verdict rests on.",
            "enum": [
              "short_greeting",
              "long_greeting",
              "phrase",
              "no_speech",
              "classifier",
              "ended_early",
              "listener_failed"
            ],
            "type": "string"
          },
          "result": {
            "description": "Who answered, best effort: a person, a machine, or unknown.",
            "enum": [
              "human",
              "machine",
              "unknown"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "identity",
          "price",
          "reason",
          "result"
        ],
        "type": "object"
      },
      "event.call.missed.v2": {
        "additionalProperties": false,
        "properties": {
          "assignedTo": {
            "description": "The number's seller when the call arrived; null: nobody's.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "type": "string"
          },
          "id": {
            "description": "The call: read it with `GET /calls/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "numberId": {
            "description": "Your number the call came in on.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "reason": {
            "enum": [
              "no_route",
              "blocked",
              "unfunded",
              "fallback"
            ],
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "assignedTo",
          "from",
          "id",
          "identity",
          "numberId",
          "reason",
          "to"
        ],
        "type": "object"
      },
      "event.call.offer.accepted.v2": {
        "additionalProperties": false,
        "properties": {
          "acceptedBy": {
            "description": "Who took it: the member's id, your app user's id, or the participant id of the phone that answered.",
            "type": "string"
          },
          "acceptedKind": {
            "enum": [
              "member",
              "app_user",
              "phone"
            ],
            "type": "string"
          },
          "callId": {
            "description": "The call the offer rang on.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The offer: read it with `GET /calls/offers/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          }
        },
        "required": [
          "acceptedBy",
          "acceptedKind",
          "callId",
          "id",
          "identity"
        ],
        "type": "object"
      },
      "event.call.offer.expired.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the offer rang on.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The offer: read it with `GET /calls/offers/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          }
        },
        "required": [
          "callId",
          "id",
          "identity"
        ],
        "type": "object"
      },
      "event.call.participant.moved.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call that pays for the leg.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The move: read it with `GET /calls/{callId}/moves/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "meetingId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "participantId": {
            "description": "The leg that moved.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "target": {
            "enum": [
              "call",
              "meeting_live"
            ],
            "type": "string"
          },
          "toCallId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "callId",
          "id",
          "meetingId",
          "participantId",
          "target",
          "toCallId"
        ],
        "type": "object"
      },
      "event.call.participant.updated.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call: read it with `GET /calls/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "participantId": {
            "description": "The leg that moved.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "enum": [
              "queued",
              "dialing",
              "uncertain",
              "ringing",
              "answered",
              "ended",
              "unanswered",
              "failed"
            ],
            "type": "string"
          },
          "to": {
            "description": "The number it dialled; `null` for an app or bot participant.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "participantId",
          "state",
          "to"
        ],
        "type": "object"
      },
      "event.call.playback.ended.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The action `calls.say`, `play` or `gather` queued.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "op": {
            "enum": [
              "play",
              "say"
            ],
            "type": "string"
          },
          "outcome": {
            "enum": [
              "completed",
              "timeout",
              "stopped",
              "failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "identity",
          "op",
          "outcome"
        ],
        "type": "object"
      },
      "event.call.recording.failed.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "failureReason": {
            "description": "Why no file came; nothing was charged.",
            "type": "string"
          },
          "id": {
            "description": "The recording.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          }
        },
        "required": [
          "callId",
          "failureReason",
          "id",
          "identity"
        ],
        "type": "object"
      },
      "event.call.recording.ready.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The recording: read it with `GET /calls/recordings/{id}` for a link.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "price": {
            "additionalProperties": false,
            "description": "What the recording cost; 0 with a test key.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          },
          "seconds": {
            "description": "The recorded length in whole seconds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "callId",
          "id",
          "identity",
          "price",
          "seconds"
        ],
        "type": "object"
      },
      "event.call.stopped.v2": {
        "additionalProperties": false,
        "properties": {
          "answered": {
            "description": "Whether the call was answered.",
            "type": "boolean"
          },
          "assignedTo": {
            "description": "The seller the number belonged to when the call came in; null: nobody's.",
            "type": [
              "string",
              "null"
            ]
          },
          "endReason": {
            "description": "Why the call stopped.",
            "type": "string"
          },
          "endedAt": {
            "description": "When the last leg closed.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "from": {
            "description": "The number the call came from.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The call: read it with `GET /calls/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "minutes": {
            "description": "The minutes of the legs that have closed; the final count is on `call.ended`.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own reference for the call; `null` when it has none.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "The state the call's own leg ended in.",
            "enum": [
              "queued",
              "dialing",
              "uncertain",
              "ringing",
              "answered",
              "ended",
              "unanswered",
              "failed"
            ],
            "type": "string"
          },
          "to": {
            "description": "The number the call went to; `null` on a call between app users.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "answered",
          "assignedTo",
          "endReason",
          "endedAt",
          "from",
          "id",
          "identity",
          "minutes",
          "reference",
          "state",
          "to"
        ],
        "type": "object"
      },
      "event.call.summary.ready.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The summary: `GET /calls/{callId}/summary` reads it again.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "price": {
            "additionalProperties": false,
            "description": "What the summary cost; 0 with a test key.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "price",
          "text"
        ],
        "type": "object"
      },
      "event.call.transfer.updated.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call being transferred.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The transfer: read it with `GET /calls/{callId}/transfers/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "state": {
            "description": "The state the transfer reached.",
            "enum": [
              "dialing",
              "consulting",
              "completed",
              "cancelled",
              "failed"
            ],
            "type": "string"
          },
          "targetId": {
            "description": "The participant dialled to take the call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The number the transfer dials.",
            "type": "string"
          },
          "transferorId": {
            "description": "The participant that transfers the call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "identity",
          "state",
          "targetId",
          "to",
          "transferorId"
        ],
        "type": "object"
      },
      "event.email.domain.changed.v2": {
        "additionalProperties": false,
        "properties": {
          "change": {
            "description": "What happened to the domain.",
            "enum": [
              "ready",
              "check_failed",
              "sending_lost",
              "provider_refused",
              "receiving_lost"
            ],
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "domainId": {
            "description": "Telkit's id of the domain's DNS setup, the same for every application that sends from the domain.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The domain: read it with `GET /email/domains/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company. Its `reference` is on `identities.get`."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "receivingReady": {
            "type": "boolean"
          },
          "sending": {
            "description": "`true` once the records are verified for sending.",
            "type": "boolean"
          }
        },
        "required": [
          "change",
          "domain",
          "domainId",
          "id",
          "identity",
          "reason",
          "receivingReady",
          "sending"
        ],
        "type": "object"
      },
      "event.email.optedIn.v2": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "type": "string"
          },
          "allIdentities": {
            "description": "true: it concerns the email of every identity of the application.",
            "type": "boolean"
          },
          "at": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "source": {
            "description": "How the change was made: unsubscribe_link (the recipient used a campaign's unsubscribe link), api (an API key) or dashboard (a signed-in person).",
            "enum": [
              "unsubscribe_link",
              "api",
              "dashboard"
            ],
            "type": "string"
          }
        },
        "required": [
          "address",
          "allIdentities",
          "at",
          "identity",
          "source"
        ],
        "type": "object"
      },
      "event.email.optedOut.v2": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "type": "string"
          },
          "allIdentities": {
            "description": "true: it concerns the email of every identity of the application.",
            "type": "boolean"
          },
          "at": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "source": {
            "description": "How the change was made: unsubscribe_link (the recipient used a campaign's unsubscribe link), api (an API key) or dashboard (a signed-in person).",
            "enum": [
              "unsubscribe_link",
              "api",
              "dashboard"
            ],
            "type": "string"
          }
        },
        "required": [
          "address",
          "allIdentities",
          "at",
          "identity",
          "source"
        ],
        "type": "object"
      },
      "event.email.received.v3": {
        "additionalProperties": false,
        "properties": {
          "addresses": {
            "description": "Each address of `to`, split into its local part, its `+` tag and its domain.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "address": {
                  "description": "The whole address, in lower case.",
                  "type": "string"
                },
                "domain": {
                  "description": "The part after `@`.",
                  "type": "string"
                },
                "localPart": {
                  "description": "The part before `@`, without the `+` tag.",
                  "type": "string"
                },
                "tag": {
                  "description": "The part after the first `+` of the local part; null when the address has none.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "address",
                "domain",
                "localPart",
                "tag"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "at": {
            "description": "When Telkit stored the email.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "attachmentCount": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many files the email carried; read them with the email."
          },
          "cc": {
            "description": "The copy recipients the email names.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "from": {
            "description": "The sender's address.",
            "type": "string"
          },
          "fromName": {
            "description": "The sender's name; null when none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The email: read it with `GET /email/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company. Its `reference` is on `identities.get`."
          },
          "inReplyTo": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email of yours this one answers, with your own reference of it; null when it answers none Telkit holds."
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "person",
                  "automatic",
                  "delivery_report"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`person`, `automatic` (an out-of-office answer or another machine's mail) or `delivery_report` (a bounce); null on an event stored as version 1."
          },
          "replyTo": {
            "description": "The email's `Reply-To` addresses.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "senderChecks": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "dkim": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "dmarc": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "spf": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "dkim",
                  "dmarc",
                  "spf"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the receiving mail server found of the sender (SPF, DKIM, DMARC); null when the email provider gave no result."
          },
          "subject": {
            "description": "The subject line.",
            "type": "string"
          },
          "threadId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The thread the email is in: `email.list` reads it."
          },
          "to": {
            "description": "The addresses of the profile the email came to.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "via": {
            "anyOf": [
              {
                "enum": [
                  "saved_sender",
                  "catch_all"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the email found its profile: `saved_sender` (the profile saved the address) or `catch_all`."
          }
        },
        "required": [
          "addresses",
          "at",
          "attachmentCount",
          "cc",
          "from",
          "fromName",
          "id",
          "identity",
          "inReplyTo",
          "kind",
          "replyTo",
          "senderChecks",
          "subject",
          "threadId",
          "to",
          "via"
        ],
        "type": "object"
      },
      "event.email.status.v2": {
        "additionalProperties": false,
        "properties": {
          "at": {
            "description": "When Telkit saw the state.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "attachments": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "filename": {
                      "description": "The file's name.",
                      "type": "string"
                    },
                    "sha256": {
                      "description": "The hex SHA-256 of the bytes the email vendor got.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "filename",
                    "sha256"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The files the email carried, in order, each with the SHA-256 of the bytes the email vendor got; empty when it carried none, null on events stored before Telkit carried them."
          },
          "bounceKind": {
            "anyOf": [
              {
                "enum": [
                  "hard",
                  "soft",
                  "suppressed",
                  "unknown"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the address did not take the email, as the email vendor reports it: hard (permanent: the address takes no email), soft (temporary: a full mailbox, a server that is down), suppressed (not tried: the address is on the vendor's suppression list after an earlier bounce or complaint) or unknown (the vendor did not say). Set on state bounced, and suppressed on a failed that the vendor's suppression caused; null on every other state and on events stored before Telkit carried it."
          },
          "id": {
            "description": "The email: read it with `GET /email/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "simulated": {
            "description": "A test key's email: nothing was sent and nothing was charged.",
            "type": "boolean"
          },
          "state": {
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          },
          "to": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendorAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email vendor's own time of it; null when it gave none."
          },
          "vendorReason": {
            "description": "The email vendor's own explanation of the bounce or suppression, as it gave it (often the receiving mail server's answer), at most 1000 characters; null when it gave none and on every other state.",
            "type": [
              "string",
              "null"
            ]
          },
          "vendorSentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email vendor's own time of the send, once it reported it: on `sent` when its report came first, and on every later state when its report came before that state; null until then and on events stored before Telkit carried it. `GET /email/{id}` always has the latest."
          }
        },
        "required": [
          "at",
          "attachments",
          "bounceKind",
          "id",
          "identity",
          "reference",
          "simulated",
          "state",
          "to",
          "vendorAt",
          "vendorReason",
          "vendorSentAt"
        ],
        "type": "object"
      },
      "event.identity.changed.v2": {
        "additionalProperties": false,
        "properties": {
          "change": {
            "description": "What happened to the identity.",
            "enum": [
              "submitted",
              "withdrawn",
              "approved",
              "rejected",
              "suspended",
              "id_document_requested",
              "archived",
              "moved"
            ],
            "type": "string"
          },
          "displayName": {
            "description": "The name your customers see.",
            "type": "string"
          },
          "id": {
            "description": "The identity: read it with `GET /identities/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "reason": {
            "description": "Why Telkit rejected or suspended it.",
            "type": [
              "string",
              "null"
            ]
          },
          "registrationNumber": {
            "type": "string"
          },
          "state": {
            "enum": [
              "draft",
              "submitted",
              "approved",
              "rejected",
              "suspended"
            ],
            "type": "string"
          }
        },
        "required": [
          "change",
          "displayName",
          "id",
          "reason",
          "registrationNumber",
          "state"
        ],
        "type": "object"
      },
      "event.letter.account.changed.v2": {
        "additionalProperties": false,
        "properties": {
          "connectedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was connected, ISO 8601 in UTC; `null` when it is not connected."
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company. Its `reference` is on `identities.get`."
          },
          "state": {
            "description": "`connected`: live letters in the business's name go with its own Digipost account from now on. `none`: the account was taken away, and its live letters are refused until it is connected again.",
            "enum": [
              "none",
              "pending",
              "connected"
            ],
            "type": "string"
          }
        },
        "required": [
          "connectedAt",
          "identity",
          "state"
        ],
        "type": "object"
      },
      "event.letter.sender.changed.v2": {
        "additionalProperties": false,
        "properties": {
          "decision": {
            "enum": [
              "approved",
              "rejected"
            ],
            "type": "string"
          },
          "id": {
            "description": "The letter sender.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company. Its `reference` is on `identities.get`."
          },
          "name": {
            "type": "string"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "revision": {
            "description": "Which version of the letterhead was decided: each change is reviewed again.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "state": {
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          }
        },
        "required": [
          "decision",
          "id",
          "identity",
          "name",
          "reason",
          "revision",
          "state"
        ],
        "type": "object"
      },
      "event.letter.status.v2": {
        "additionalProperties": false,
        "properties": {
          "at": {
            "description": "When Telkit saw the state.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "deliveredAs": {
            "anyOf": [
              {
                "enum": [
                  "digital",
                  "paper"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "delivery": {
            "description": "Where the letter may go: digital_or_paper (a Digipost mailbox, else paper), digital_only or paper_only.",
            "enum": [
              "digital_or_paper",
              "digital_only",
              "paper_only"
            ],
            "type": "string"
          },
          "documentSha256": {
            "description": "The hex SHA-256 of the PDF Telkit handed on for this letter (the same bytes on every state), as documentSha256 on the letter's read; null on letters and events from before Telkit kept the hash.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The letter: read it with `GET /letters/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "nationalIdMasked": {
            "description": "The recipient's national id masked (the birth-date part and *****); null unless the letter names one. The full number is never answered.",
            "type": [
              "string",
              "null"
            ]
          },
          "recipientKind": {
            "description": "How the letter names its recipient: name_and_address, national_id or organization_number.",
            "enum": [
              "name_and_address",
              "national_id",
              "organization_number"
            ],
            "type": "string"
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "registrationNumber": {
            "description": "The business the letter was sent to by its registration number; null otherwise.",
            "type": [
              "string",
              "null"
            ]
          },
          "senderId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The letter sender the letter went under (profile.senders.letters.list); null on events from before the status carried it."
          },
          "senderName": {
            "description": "The sender's name as the letter carries it; null on events from before the status carried it.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "enum": [
              "queued",
              "in_flight",
              "uncertain",
              "printing",
              "delivered",
              "posted",
              "failed"
            ],
            "type": "string"
          },
          "vendorAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The postal service's own time of it (taken, delivered, postmarked); null when it gave none."
          }
        },
        "required": [
          "at",
          "deliveredAs",
          "delivery",
          "documentSha256",
          "id",
          "identity",
          "nationalIdMasked",
          "recipientKind",
          "reference",
          "registrationNumber",
          "senderId",
          "senderName",
          "state",
          "vendorAt"
        ],
        "type": "object"
      },
      "event.number.changed.v2": {
        "additionalProperties": false,
        "properties": {
          "area": {
            "description": "The area it was ordered in (after the country code); `null` when the order named none or the event does not say.",
            "type": [
              "string",
              "null"
            ]
          },
          "change": {
            "description": "What happened to the number.",
            "enum": [
              "approved",
              "ordered",
              "active",
              "rejected",
              "released"
            ],
            "type": "string"
          },
          "country": {
            "anyOf": [
              {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "HR",
                  "CY",
                  "CZ",
                  "DK",
                  "EE",
                  "FI",
                  "FR",
                  "DE",
                  "GR",
                  "HU",
                  "IE",
                  "IT",
                  "LV",
                  "LT",
                  "LU",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SK",
                  "SI",
                  "ES",
                  "SE",
                  "NO",
                  "IS",
                  "LI",
                  "CH",
                  "GB",
                  "US"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The country it was ordered in; `null` when the event does not say."
          },
          "id": {
            "description": "The number: read it with `GET /numbers/{id}`. Before delivery, its order's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company. Its `reference` is on `identities.get`."
          },
          "number": {
            "description": "The number in E.164; `null` until Telkit has delivered it.",
            "type": [
              "string",
              "null"
            ]
          },
          "reason": {
            "description": "Why it was refused or ended.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "enum": [
              "pending",
              "active",
              "rejected",
              "ended"
            ],
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "area",
          "change",
          "country",
          "id",
          "identity",
          "number",
          "reason",
          "state",
          "waitingOn"
        ],
        "type": "object"
      },
      "event.sms.optedIn.v2": {
        "additionalProperties": false,
        "properties": {
          "allIdentities": {
            "description": "true: it concerns the SMS of every identity of the application.",
            "type": "boolean"
          },
          "at": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "number": {
            "type": "string"
          },
          "source": {
            "description": "How the change was made: reply_word (the recipient answered by SMS), unsubscribe_link, api (an API key) or dashboard (a signed-in person).",
            "enum": [
              "reply_word",
              "unsubscribe_link",
              "api",
              "dashboard"
            ],
            "type": "string"
          }
        },
        "required": [
          "allIdentities",
          "at",
          "identity",
          "number",
          "source"
        ],
        "type": "object"
      },
      "event.sms.optedOut.v2": {
        "additionalProperties": false,
        "properties": {
          "allIdentities": {
            "description": "true: it concerns the SMS of every identity of the application.",
            "type": "boolean"
          },
          "at": {
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "number": {
            "type": "string"
          },
          "source": {
            "description": "How the change was made: reply_word (the recipient answered by SMS), unsubscribe_link, api (an API key) or dashboard (a signed-in person).",
            "enum": [
              "reply_word",
              "unsubscribe_link",
              "api",
              "dashboard"
            ],
            "type": "string"
          }
        },
        "required": [
          "allIdentities",
          "at",
          "identity",
          "number",
          "source"
        ],
        "type": "object"
      },
      "event.sms.received.v2": {
        "additionalProperties": false,
        "properties": {
          "at": {
            "description": "When Telkit stored it.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "id": {
            "description": "The SMS: read it with `GET /sms/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "inReplyTo": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The SMS of yours it answers; `null` when it answers none."
          },
          "segments": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "text": {
            "type": "string"
          },
          "to": {
            "description": "The number of yours it came to; `null` when it answered an SMS from Telkit's shared reply number.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "at",
          "from",
          "id",
          "identity",
          "inReplyTo",
          "segments",
          "text",
          "to"
        ],
        "type": "object"
      },
      "event.sms.sender.changed.v2": {
        "additionalProperties": false,
        "properties": {
          "approvedUntil": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "An own mobile number's approval ends then (90 days)."
          },
          "change": {
            "description": "What happened to the sender.",
            "enum": [
              "approved",
              "rejected",
              "activated",
              "fee_failed",
              "released",
              "revoked",
              "expiring",
              "expired",
              "withdrawn"
            ],
            "type": "string"
          },
          "id": {
            "description": "The sender: read it with `GET /sms/senders/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company. Its `reference` is on `identities.get`."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "name",
              "mobile",
              "sms_number",
              "number",
              "email_domain",
              "letter_sender"
            ],
            "type": "string"
          },
          "value": {
            "description": "The name, or the number in E.164, or the domain.",
            "type": "string"
          },
          "waitingOn": {
            "anyOf": [
              {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "approvedUntil",
          "change",
          "id",
          "identity",
          "reason",
          "state",
          "type",
          "value",
          "waitingOn"
        ],
        "type": "object"
      },
      "event.sms.sender.registration.changed.v2": {
        "additionalProperties": false,
        "properties": {
          "countries": {
            "description": "Where it registers the sender, ISO 3166-1 alpha-2.",
            "items": {
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "description": "The registration's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company. Its `reference` is on `identities.get`."
          },
          "kind": {
            "description": "What is registered: a sender name abroad, or a US number for business text messages.",
            "enum": [
              "name_abroad",
              "us_business_text"
            ],
            "type": "string"
          },
          "reason": {
            "description": "Why it was refused.",
            "type": [
              "string",
              "null"
            ]
          },
          "senderId": {
            "description": "The sender it registers.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "description": "The state the registration reached.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          }
        },
        "required": [
          "countries",
          "id",
          "identity",
          "kind",
          "reason",
          "senderId",
          "state"
        ],
        "type": "object"
      },
      "event.sms.status.v2": {
        "additionalProperties": false,
        "properties": {
          "at": {
            "description": "When Telkit saw the state.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The SMS: read it with `GET /sms/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "reference": {
            "type": [
              "string",
              "null"
            ]
          },
          "segments": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The SMS parts the text takes, as the price counts them."
          },
          "state": {
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "failed",
              "cancelled",
              "held_for_balance",
              "received"
            ],
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "at",
          "id",
          "identity",
          "reference",
          "segments",
          "state",
          "to"
        ],
        "type": "object"
      },
      "event.stt.completed.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The transcript: read it with `GET /stt/{id}` for its text.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "additionalProperties": false,
            "description": "What it cost; 0 with a test key.",
            "properties": {
              "amount": {
                "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "currency": {
                "description": "ISO 4217, as `account.getBalance` answers it.",
                "type": "string"
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "type": "object"
          },
          "seconds": {
            "description": "The billed length in whole seconds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "source": {
            "additionalProperties": false,
            "description": "A call's recording (`recordingId` and `callId`); both `null` for audio you sent.",
            "properties": {
              "callId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "recordingId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "callId",
              "recordingId"
            ],
            "type": "object"
          }
        },
        "required": [
          "id",
          "identity",
          "language",
          "price",
          "seconds",
          "source"
        ],
        "type": "object"
      },
      "event.stt.failed.v2": {
        "additionalProperties": false,
        "properties": {
          "failureReason": {
            "type": "string"
          },
          "id": {
            "description": "The transcript: nothing was charged.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          }
        },
        "required": [
          "failureReason",
          "id",
          "identity"
        ],
        "type": "object"
      },
      "event.test.v2": {
        "additionalProperties": false,
        "properties": {
          "mode": {
            "description": "`test` or `live`: the mode of the key that sent it.",
            "enum": [
              "live",
              "test"
            ],
            "type": "string"
          }
        },
        "required": [
          "mode"
        ],
        "type": "object"
      },
      "failure": {
        "properties": {
          "code": {
            "enum": [
              "invalid_request",
              "internal_error",
              "unavailable",
              "not_found"
            ],
            "type": "string"
          },
          "commit": {
            "const": "unknown",
            "type": "string"
          },
          "issues": {
            "items": {
              "properties": {
                "message": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryAfterMs": {
            "minimum": 0,
            "type": "integer"
          },
          "retryable": {
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "operation.account.applications.archive.body": {
        "additionalProperties": false,
        "properties": {
          "moveTo": {
            "description": "With `numbers: move`: the `id` of the application that takes them over.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "numbers": {
            "description": "What happens to its identities, numbers and senders: `move` takes them to `moveTo`, `end` ends them. Needed when it holds any (`archive_choice_required`).",
            "enum": [
              "move",
              "end"
            ],
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.account.applications.archive.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The application's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "moveTo": {
            "description": "With `numbers: move`: the `id` of the application that takes them over.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "numbers": {
            "description": "What happens to its identities, numbers and senders: `move` takes them to `moveTo`, `end` ends them. Needed when it holds any (`archive_choice_required`).",
            "enum": [
              "move",
              "end"
            ],
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.account.applications.archive.output": {
        "additionalProperties": false,
        "properties": {
          "archivedAt": {
            "description": "When it was archived, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The archived application's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identitiesMoved": {
            "description": "The identities moved to `moveTo`; 0 when none were moved.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "revokedKeyIds": {
            "description": "The API keys this archive revoked; empty on a repeat.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sendersEnded": {
            "description": "The numbers and senders ended.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "sendersMoved": {
            "description": "The numbers and senders moved, the company's own included.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "archivedAt",
          "id",
          "identitiesMoved",
          "revokedKeyIds",
          "sendersEnded",
          "sendersMoved"
        ],
        "type": "object"
      },
      "operation.account.applications.create.input": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "What the dashboard shows, and what a statement prints for it.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "services": {
            "description": "The services it will use; none when left out.",
            "items": {
              "enum": [
                "sms",
                "email",
                "letters",
                "phone"
              ],
              "type": "string"
            },
            "maxItems": 4,
            "type": "array"
          },
          "slug": {
            "description": "Its short name; made from `name` when left out.",
            "pattern": "^[a-z0-9][a-z0-9-]{0,62}$",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.account.applications.create.output": {
        "$ref": "#/components/schemas/Application"
      },
      "operation.account.applications.getUsage.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "groupBy": {
            "description": "One line per `service` (the default) or per `day`.",
            "enum": [
              "day",
              "service"
            ],
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "month": {
            "description": "The Oslo month `YYYY-MM`; the current month when left out.",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.account.applications.getUsage.output": {
        "additionalProperties": false,
        "properties": {
          "groupBy": {
            "description": "How each application's lines are grouped: per `service` or per `day`.",
            "enum": [
              "day",
              "service"
            ],
            "type": "string"
          },
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "applicationId": {
                  "description": "The application's id.",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                "usage": {
                  "description": "Its lines in the month, as `account.getUsage` answers one application's.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "balance": {
                        "$ref": "#/components/schemas/Price",
                        "description": "The part the balance paid."
                      },
                      "count": {
                        "description": "How many charges it holds.",
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "day": {
                        "description": "The Oslo date `YYYY-MM-DD`; per day only.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "included": {
                        "$ref": "#/components/schemas/Price",
                        "description": "The part the plan's included amount paid."
                      },
                      "price": {
                        "$ref": "#/components/schemas/Price",
                        "description": "What it cost, excluding VAT: `included` plus `balance`."
                      },
                      "service": {
                        "anyOf": [
                          {
                            "enum": [
                              "sms",
                              "email",
                              "letter",
                              "phone",
                              "speech"
                            ],
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "Per service only."
                      }
                    },
                    "required": [
                      "balance",
                      "count",
                      "day",
                      "included",
                      "price",
                      "service"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "applicationId",
                "usage"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "month": {
            "description": "The Oslo month `YYYY-MM` the usage is for.",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
            "type": "string"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "groupBy",
          "items",
          "month",
          "next"
        ],
        "type": "object"
      },
      "operation.account.applications.keys.create.body": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "Your own name for the key, to tell keys apart.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "scopes": {
            "description": "What the key may do: sending, calls, numbers and senders, and reading. Never a scope that manages applications or erases data.",
            "items": {
              "enum": [
                "sms:send",
                "sms:read",
                "email:send",
                "email:read",
                "letters:send",
                "letters:read",
                "calls:write",
                "calls:read",
                "calls:client",
                "numbers:read",
                "numbers:manage",
                "usage:read",
                "transcription:read",
                "events:read",
                "webhooks:manage"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "name",
          "scopes"
        ],
        "type": "object"
      },
      "operation.account.applications.keys.create.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The application's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "name": {
            "description": "Your own name for the key, to tell keys apart.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "scopes": {
            "description": "What the key may do: sending, calls, numbers and senders, and reading. Never a scope that manages applications or erases data.",
            "items": {
              "enum": [
                "sms:send",
                "sms:read",
                "email:send",
                "email:read",
                "letters:send",
                "letters:read",
                "calls:write",
                "calls:read",
                "calls:client",
                "numbers:read",
                "numbers:manage",
                "usage:read",
                "transcription:read",
                "events:read",
                "webhooks:manage"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "scopes"
        ],
        "type": "object"
      },
      "operation.account.applications.keys.create.output": {
        "additionalProperties": false,
        "properties": {
          "allScopes": {
            "description": "`true` for a key that holds every scope, also the ones added later.",
            "type": "boolean"
          },
          "applicationId": {
            "description": "The application the key belongs to.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "createdAt": {
            "description": "When it was made, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "expiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it stops working; `null` for a key that does not expire."
          },
          "hint": {
            "description": "The secret's last characters, to tell keys apart.",
            "type": "string"
          },
          "id": {
            "description": "The key's id: never its secret.",
            "type": "string"
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it last made a call; `null` when it never has."
          },
          "mode": {
            "description": "`test` (nothing is sent, nothing costs) or `live`.",
            "enum": [
              "live",
              "test"
            ],
            "type": "string"
          },
          "name": {
            "description": "Your own name for the key.",
            "type": "string"
          },
          "revokedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` while the key works."
          },
          "scopes": {
            "description": "What the key may do.",
            "items": {
              "enum": [
                "sms:send",
                "sms:read",
                "email:send",
                "email:read",
                "letters:send",
                "letters:read",
                "calls:write",
                "calls:read",
                "calls:client",
                "numbers:manage",
                "numbers:read",
                "agents:manage",
                "solutions:manage",
                "transcription:write",
                "transcription:read",
                "webhooks:manage",
                "events:read",
                "profiles:manage",
                "contacts:manage",
                "usage:read",
                "privacy:erase"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "token": {
            "description": "The key's secret: send it as the bearer token. Answered here and never again.",
            "type": "string"
          }
        },
        "required": [
          "allScopes",
          "applicationId",
          "createdAt",
          "expiresAt",
          "hint",
          "id",
          "lastUsedAt",
          "mode",
          "name",
          "revokedAt",
          "scopes",
          "token"
        ],
        "type": "object"
      },
      "operation.account.applications.keys.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The application's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.account.applications.keys.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/ApiKey"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.account.applications.keys.revoke.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The application's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "keyId": {
            "description": "The key's `id`.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "keyId"
        ],
        "type": "object"
      },
      "operation.account.applications.keys.revoke.output": {
        "$ref": "#/components/schemas/ApiKey"
      },
      "operation.account.applications.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.account.applications.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Application"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.account.applications.setLimit.body": {
        "additionalProperties": false,
        "properties": {
          "dayLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most in an Oslo day, excluding VAT; `null` or left out: none."
          },
          "monthLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends may cost in an Oslo month, excluding VAT; `null`: none."
          }
        },
        "required": [
          "monthLimit"
        ],
        "type": "object"
      },
      "operation.account.applications.setLimit.input": {
        "additionalProperties": false,
        "properties": {
          "dayLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most in an Oslo day, excluding VAT; `null` or left out: none."
          },
          "id": {
            "description": "The application's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "monthLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends may cost in an Oslo month, excluding VAT; `null`: none."
          }
        },
        "required": [
          "id",
          "monthLimit"
        ],
        "type": "object"
      },
      "operation.account.applications.setLimit.output": {
        "additionalProperties": false,
        "properties": {
          "day": {
            "description": "The Oslo date `YYYY-MM-DD` that `daySpent` covers.",
            "type": "string"
          },
          "dayLimit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends and calls may cost in an Oslo day, excluding VAT; `null`: no limit."
          },
          "daySpent": {
            "$ref": "#/components/schemas/Price",
            "description": "What counts against `dayLimit` so far this day, excluding VAT."
          },
          "month": {
            "description": "The Oslo month `YYYY-MM` that `monthSpent` covers.",
            "type": "string"
          },
          "monthLimit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends and calls may cost in an Oslo month, excluding VAT; `null`: no limit."
          },
          "monthSpent": {
            "$ref": "#/components/schemas/Price",
            "description": "What counts against `monthLimit` so far this month, excluding VAT."
          }
        },
        "required": [
          "day",
          "dayLimit",
          "daySpent",
          "month",
          "monthLimit",
          "monthSpent"
        ],
        "type": "object"
      },
      "operation.account.applications.update.body": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "The new name: what the dashboard shows, and what a statement prints for it.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.account.applications.update.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The application's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "name": {
            "description": "The new name: what the dashboard shows, and what a statement prints for it.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "operation.account.applications.update.output": {
        "$ref": "#/components/schemas/Application"
      },
      "operation.account.get.input": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "operation.account.get.output": {
        "additionalProperties": false,
        "properties": {
          "application": {
            "additionalProperties": false,
            "description": "The application the key belongs to.",
            "properties": {
              "createdAt": {
                "description": "When it was made, ISO 8601 in UTC.",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              "id": {
                "description": "The application's id.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "name": {
                "description": "The application's name.",
                "type": "string"
              }
            },
            "required": [
              "createdAt",
              "id",
              "name"
            ],
            "type": "object"
          },
          "mode": {
            "description": "The key's mode: `test` (nothing is sent, nothing costs) or `live`.",
            "enum": [
              "live",
              "test"
            ],
            "type": "string"
          },
          "organization": {
            "additionalProperties": false,
            "description": "The organization the key belongs to: your company.",
            "properties": {
              "country": {
                "description": "ISO 3166-1 alpha-2: where it is registered.",
                "type": "string"
              },
              "id": {
                "description": "The organization's id.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "name": {
                "description": "The organization's name.",
                "type": "string"
              },
              "registrationNumber": {
                "description": "Its number in the business register; in Norway the organization number.",
                "type": "string"
              }
            },
            "required": [
              "country",
              "id",
              "name",
              "registrationNumber"
            ],
            "type": "object"
          },
          "verified": {
            "description": "`true` once Telkit has verified the organization.",
            "type": "boolean"
          }
        },
        "required": [
          "application",
          "mode",
          "organization",
          "verified"
        ],
        "type": "object"
      },
      "operation.account.getBalance.input": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "operation.account.getBalance.output": {
        "additionalProperties": false,
        "properties": {
          "available": {
            "$ref": "#/components/schemas/Price",
            "description": "What a new send or call can use, excluding VAT."
          },
          "balance": {
            "$ref": "#/components/schemas/Price",
            "description": "The whole balance, excluding VAT: `available` plus `reserved`."
          },
          "included": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "endsAt": {
                    "description": "When the paid period ends (not included), ISO 8601 in UTC.",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                    "type": "string"
                  },
                  "granted": {
                    "$ref": "#/components/schemas/Price",
                    "description": "The amount the plan includes for the period."
                  },
                  "reserved": {
                    "$ref": "#/components/schemas/Price",
                    "description": "What is held of it for sends and calls in flight."
                  },
                  "startsAt": {
                    "description": "When the paid period starts, ISO 8601 in UTC.",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                    "type": "string"
                  },
                  "used": {
                    "$ref": "#/components/schemas/Price",
                    "description": "What is used of it."
                  }
                },
                "required": [
                  "endsAt",
                  "granted",
                  "reserved",
                  "startsAt",
                  "used"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The plan's included amount for the paid period that holds now, excluding VAT; `null` without one."
          },
          "reserved": {
            "$ref": "#/components/schemas/Price",
            "description": "What is held for sends and calls in flight, excluding VAT."
          }
        },
        "required": [
          "available",
          "balance",
          "included",
          "reserved"
        ],
        "type": "object"
      },
      "operation.account.getSettings.input": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "operation.account.getSettings.output": {
        "additionalProperties": false,
        "properties": {
          "countries": {
            "description": "The countries this application's sends and calls reach: the organization's, narrowed by the application's own list.",
            "items": {
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "limit": {
            "additionalProperties": false,
            "description": "The application's spending limits (`null`: none) and what counts against them now, excluding VAT.",
            "properties": {
              "day": {
                "description": "The Oslo date `YYYY-MM-DD` that `daySpent` covers.",
                "type": "string"
              },
              "dayLimit": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Price"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The most its sends and calls may cost in an Oslo day, excluding VAT; `null`: no limit."
              },
              "daySpent": {
                "$ref": "#/components/schemas/Price",
                "description": "What counts against `dayLimit` so far this day, excluding VAT."
              },
              "month": {
                "description": "The Oslo month `YYYY-MM` that `monthSpent` covers.",
                "type": "string"
              },
              "monthLimit": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Price"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The most its sends and calls may cost in an Oslo month, excluding VAT; `null`: no limit."
              },
              "monthSpent": {
                "$ref": "#/components/schemas/Price",
                "description": "What counts against `monthLimit` so far this month, excluding VAT."
              }
            },
            "required": [
              "day",
              "dayLimit",
              "daySpent",
              "month",
              "monthLimit",
              "monthSpent"
            ],
            "type": "object"
          },
          "monthLimits": {
            "description": "The plan's limits on SMS and email recipients in a month, and this month's use; empty when the plan has none, and for a test key.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "kind": {
                  "description": "What is counted: `sms` (SMS parts) or `email` (email recipients).",
                  "enum": [
                    "sms",
                    "email"
                  ],
                  "type": "string"
                },
                "limit": {
                  "description": "The most the plan allows in the month.",
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "month": {
                  "description": "The Oslo month `YYYY-MM` counted.",
                  "type": "string"
                },
                "used": {
                  "description": "How many are used so far in the month.",
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "kind",
                "limit",
                "month",
                "used"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "organizationCountries": {
            "description": "The countries Telkit allows the organization.",
            "items": {
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "ownCountries": {
            "anyOf": [
              {
                "items": {
                  "enum": [
                    "AT",
                    "BE",
                    "BG",
                    "HR",
                    "CY",
                    "CZ",
                    "DK",
                    "EE",
                    "FI",
                    "FR",
                    "DE",
                    "GR",
                    "HU",
                    "IE",
                    "IT",
                    "LV",
                    "LT",
                    "LU",
                    "MT",
                    "NL",
                    "PL",
                    "PT",
                    "RO",
                    "SK",
                    "SI",
                    "ES",
                    "SE",
                    "NO",
                    "IS",
                    "LI",
                    "CH",
                    "GB",
                    "US"
                  ],
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The application's own list; `null` when it has none and reaches every country the organization does."
          },
          "pauses": {
            "description": "The pauses Telkit holds on this application's sends now; empty when none.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "applicationId": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The application it holds; `null` when it holds the whole organization, or one key."
                },
                "channel": {
                  "anyOf": [
                    {
                      "enum": [
                        "sms",
                        "email",
                        "letter",
                        "phone",
                        "speech"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The channel it holds; `null` holds every channel."
                },
                "id": {
                  "description": "The pause's id.",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                "keyId": {
                  "description": "The API key it holds, which is the key that asks; `null` otherwise.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pausedAt": {
                  "description": "When the pause began, ISO 8601 in UTC.",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "type": "string"
                },
                "reason": {
                  "description": "Why Telkit holds it, in words.",
                  "type": "string"
                }
              },
              "required": [
                "applicationId",
                "channel",
                "id",
                "keyId",
                "pausedAt",
                "reason"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "countries",
          "limit",
          "monthLimits",
          "organizationCountries",
          "ownCountries",
          "pauses"
        ],
        "type": "object"
      },
      "operation.account.getUsage.input": {
        "additionalProperties": false,
        "properties": {
          "groupBy": {
            "description": "One item per `day` (the default) or per `service`.",
            "enum": [
              "day",
              "service"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "month": {
            "description": "The Oslo month `YYYY-MM`; the current month when left out.",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.account.getUsage.output": {
        "additionalProperties": false,
        "properties": {
          "groupBy": {
            "description": "How the items are grouped: per `day` or per `service`.",
            "enum": [
              "day",
              "service"
            ],
            "type": "string"
          },
          "items": {
            "description": "One item per day or per service that has usage in the month.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "balance": {
                  "$ref": "#/components/schemas/Price",
                  "description": "The part the balance paid."
                },
                "count": {
                  "description": "How many charges it holds.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "day": {
                  "description": "The Oslo date `YYYY-MM-DD`; per day only.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "included": {
                  "$ref": "#/components/schemas/Price",
                  "description": "The part the plan's included amount paid."
                },
                "price": {
                  "$ref": "#/components/schemas/Price",
                  "description": "What it cost, excluding VAT: `included` plus `balance`."
                },
                "service": {
                  "anyOf": [
                    {
                      "enum": [
                        "sms",
                        "email",
                        "letter",
                        "phone",
                        "speech"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Per service only."
                }
              },
              "required": [
                "balance",
                "count",
                "day",
                "included",
                "price",
                "service"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "month": {
            "description": "The Oslo month `YYYY-MM` the usage is for.",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
            "type": "string"
          }
        },
        "required": [
          "groupBy",
          "items",
          "month"
        ],
        "type": "object"
      },
      "operation.account.privacy.eraseRecipient.input": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "description": "The recipient's email address: selects the emails to and from it.",
            "format": "email",
            "maxLength": 320,
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
            "type": "string"
          },
          "letterAddress": {
            "additionalProperties": false,
            "description": "A letter's recipient as it was addressed: the name and the postal code.",
            "properties": {
              "name": {
                "description": "The recipient's name, as the letter wrote it.",
                "maxLength": 320,
                "minLength": 1,
                "type": "string"
              },
              "postalCode": {
                "description": "The postal code the letter went to.",
                "maxLength": 320,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name",
              "postalCode"
            ],
            "type": "object"
          },
          "letterRecipient": {
            "additionalProperties": false,
            "description": "A letter's recipient by exactly one id: a `nationalId` with the `name` the letter was written to, or a `registrationNumber`, optionally with the `name` of one person there.",
            "properties": {
              "name": {
                "description": "The name the letter was written to; needed with `nationalId`.",
                "maxLength": 320,
                "minLength": 1,
                "type": "string"
              },
              "nationalId": {
                "description": "A Norwegian national identity number, 11 digits.",
                "type": "string"
              },
              "registrationNumber": {
                "description": "A Norwegian organisation number.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "phone": {
            "description": "The recipient's number in E.164, such as `+4791234567`: selects their SMS and calls.",
            "maxLength": 320,
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.account.privacy.eraseRecipient.output": {
        "additionalProperties": false,
        "properties": {
          "complete": {
            "description": "`false` while rows are pending, or more rows are left than one call erases: call again.",
            "type": "boolean"
          },
          "keptShared": {
            "description": "The kinds of rows that matched but that test and live share, which a test key leaves; empty for a live key.",
            "items": {
              "enum": [
                "contact_records",
                "flow_sms_cooldowns"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "pending": {
            "description": "Rows left as they are because they are still in flight: a message being sent, a live call, a recording or transcript still being made.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "complete",
          "keptShared",
          "pending"
        ],
        "type": "object"
      },
      "operation.account.privacy.getRetention.input": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "operation.account.privacy.getRetention.output": {
        "additionalProperties": false,
        "properties": {
          "days": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many days message content and call records are kept; `null` keeps them until they are deleted."
          }
        },
        "required": [
          "days"
        ],
        "type": "object"
      },
      "operation.account.privacy.setRetention.input": {
        "additionalProperties": false,
        "properties": {
          "days": {
            "anyOf": [
              {
                "maximum": 3650,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many days to keep them; `null` keeps them until they are deleted."
          }
        },
        "required": [
          "days"
        ],
        "type": "object"
      },
      "operation.account.privacy.setRetention.output": {
        "additionalProperties": false,
        "properties": {
          "days": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How many days message content and call records are kept; `null` keeps them until they are deleted."
          }
        },
        "required": [
          "days"
        ],
        "type": "object"
      },
      "operation.account.requests.getSummary.input": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "operation.account.requests.getSummary.output": {
        "additionalProperties": false,
        "properties": {
          "calls": {
            "description": "How many calls were made.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "codes": {
            "description": "Every error code the calls met, most frequent first.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "description": "An error `code` the calls met.",
                  "type": "string"
                },
                "count": {
                  "description": "How many calls answered it.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "status": {
                  "description": "The HTTP status it was answered with.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "code",
                "count",
                "status"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "since": {
            "description": "The start of the 24 hours counted.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "statuses": {
            "additionalProperties": false,
            "description": "The calls by the class of their HTTP status.",
            "properties": {
              "2xx": {
                "description": "The calls answered with a status from 200 to 299.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "4xx": {
                "description": "The calls answered with a status from 400 to 499.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "5xx": {
                "description": "The calls answered with a status from 500 to 599.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "2xx",
              "4xx",
              "5xx"
            ],
            "type": "object"
          }
        },
        "required": [
          "calls",
          "codes",
          "since",
          "statuses"
        ],
        "type": "object"
      },
      "operation.account.requests.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "code": {
            "description": "Only the calls that answered this error code.",
            "maxLength": 128,
            "pattern": "^[a-z][a-z0-9_]*$",
            "type": "string"
          },
          "keyId": {
            "description": "Only the calls this API key or client token made.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "requestId": {
            "description": "The call with this request id: an error body carries it as `requestId`.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "resourceId": {
            "description": "The calls whose answer named this `id`, such as the message a send made.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "status": {
            "description": "Only the calls whose HTTP status is in this class.",
            "enum": [
              "2xx",
              "4xx",
              "5xx"
            ],
            "type": "string"
          },
          "window": {
            "description": "How far back to read; `30d`, everything that is kept, when left out.",
            "enum": [
              "1h",
              "24h",
              "7d",
              "30d"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.account.requests.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/ApiRequest"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.calls.actions.cancel.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The action's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.actions.cancel.output": {
        "$ref": "#/components/schemas/CallActionDetails"
      },
      "operation.calls.actions.get.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The action's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.actions.get.output": {
        "$ref": "#/components/schemas/CallActionDetails"
      },
      "operation.calls.actions.stop.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.actions.stop.output": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "remaining": {
            "description": "The actions that go on: those whose paid speech has an unknown outcome (`uncertain`).",
            "items": {
              "$ref": "#/components/schemas/CallActionDetails"
            },
            "type": "array"
          },
          "stopped": {
            "description": "The actions this call stopped; empty when none were open.",
            "items": {
              "$ref": "#/components/schemas/CallActionDetails"
            },
            "type": "array"
          }
        },
        "required": [
          "callId",
          "remaining",
          "stopped"
        ],
        "type": "object"
      },
      "operation.calls.answer.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbound call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.answer.output": {
        "additionalProperties": false,
        "properties": {
          "forwardLegId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the forwarded part of the call; `null` when the command forwarded nothing."
          },
          "id": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "routing": {
            "description": "Where the inbound call's routing stands after the command: `answered` (you took it; a forward may still follow), `rejected` or `forwarded`.",
            "enum": [
              "deciding",
              "answered",
              "rejected",
              "forwarded",
              "message",
              "ended"
            ],
            "type": "string"
          }
        },
        "required": [
          "forwardLegId",
          "id",
          "routing"
        ],
        "type": "object"
      },
      "operation.calls.appParticipants.add.body": {
        "additionalProperties": false,
        "properties": {
          "participant": {
            "description": "Who joins: an app user or a bot, as `kind` says.",
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "displayName": {
                    "description": "The name the others in the call see: at most 100 characters.",
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "externalRef": {
                    "description": "Your own id for the app user or the bot: at most 200 characters.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "kind": {
                    "const": "app",
                    "description": "`app`: a user of your own app, who joins with `@telkit/client`.",
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "displayName": {
                    "description": "The name the others in the call see: at most 100 characters.",
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "externalRef": {
                    "description": "Your own id for the app user or the bot: at most 200 characters.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "kind": {
                    "const": "bot",
                    "description": "`bot`: your own bot program, which joins the call with its token.",
                    "type": "string"
                  },
                  "maxMinutes": {
                    "description": "The most minutes the bot may stay in the call: 1 to 120.",
                    "maximum": 120,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "participant"
        ],
        "type": "object"
      },
      "operation.calls.appParticipants.add.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The live call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "participant": {
            "description": "Who joins: an app user or a bot, as `kind` says.",
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "displayName": {
                    "description": "The name the others in the call see: at most 100 characters.",
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "externalRef": {
                    "description": "Your own id for the app user or the bot: at most 200 characters.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "kind": {
                    "const": "app",
                    "description": "`app`: a user of your own app, who joins with `@telkit/client`.",
                    "type": "string"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "displayName": {
                    "description": "The name the others in the call see: at most 100 characters.",
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "externalRef": {
                    "description": "Your own id for the app user or the bot: at most 200 characters.",
                    "maxLength": 200,
                    "minLength": 1,
                    "type": "string"
                  },
                  "kind": {
                    "const": "bot",
                    "description": "`bot`: your own bot program, which joins the call with its token.",
                    "type": "string"
                  },
                  "maxMinutes": {
                    "description": "The most minutes the bot may stay in the call: 1 to 120.",
                    "maximum": 120,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [
                  "kind"
                ],
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "callId",
          "participant"
        ],
        "type": "object"
      },
      "operation.calls.appParticipants.add.output": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "description": "When the token stops letting anyone join, ISO 8601 in UTC. It only limits joining: a participant who is in stays in.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "identity": {
            "description": "The participant's name inside the call's media session. It is not a business identity.",
            "type": "string"
          },
          "kind": {
            "description": "`app`: a user of your own app; `bot`: your own bot program; `phone`: a phone.",
            "enum": [
              "phone",
              "app",
              "bot"
            ],
            "type": "string"
          },
          "participantId": {
            "description": "The participant's id, for the `calls.appParticipants` and `calls.participants` acts.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "token": {
            "description": "The join token: hand it to `@telkit/client` in your app, or to your bot. It only lets its holder join this call as this participant. `null` when none could be made.",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "description": "The address to connect to with `token`; `null` when no token could be made: ask for a fresh one with `calls.appParticipants.createToken`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "expiresAt",
          "identity",
          "kind",
          "participantId",
          "token",
          "url"
        ],
        "type": "object"
      },
      "operation.calls.appParticipants.createToken.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The app user's or bot's participant id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.appParticipants.createToken.output": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "description": "When the token stops letting anyone join, ISO 8601 in UTC. It only limits joining: a participant who is in stays in.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "identity": {
            "description": "The participant's name inside the call's media session. It is not a business identity.",
            "type": "string"
          },
          "kind": {
            "description": "`app`: a user of your own app; `bot`: your own bot program; `phone`: a phone.",
            "enum": [
              "phone",
              "app",
              "bot"
            ],
            "type": "string"
          },
          "participantId": {
            "description": "The participant's id, for the `calls.appParticipants` and `calls.participants` acts.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "token": {
            "description": "The join token: hand it to `@telkit/client` in your app, or to your bot. It only lets its holder join this call as this participant. `null` when none could be made.",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "description": "The address to connect to with `token`; `null` when no token could be made: ask for a fresh one with `calls.appParticipants.createToken`.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "expiresAt",
          "identity",
          "kind",
          "participantId",
          "token",
          "url"
        ],
        "type": "object"
      },
      "operation.calls.appParticipants.remove.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The app user's or bot's participant id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.appParticipants.remove.output": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "removed": {
            "description": "`true`: it is out of the call.",
            "type": "boolean"
          }
        },
        "required": [
          "callId",
          "id",
          "removed"
        ],
        "type": "object"
      },
      "operation.calls.clientTokens.create.input": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "Your own id for the app user.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "ttlSeconds": {
            "default": 3600,
            "description": "How long the token lives, in seconds: 60 to 86 400. Left out: 3 600.",
            "maximum": 86400,
            "minimum": 60,
            "type": "integer"
          }
        },
        "required": [
          "appUserId"
        ],
        "type": "object"
      },
      "operation.calls.clientTokens.create.output": {
        "$ref": "#/components/schemas/ClientToken"
      },
      "operation.calls.clientTokens.revoke.input": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "Your own id for the app user.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "appUserId"
        ],
        "type": "object"
      },
      "operation.calls.clientTokens.revoke.output": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "The app user whose tokens ended.",
            "type": "string"
          },
          "revoked": {
            "description": "How many live tokens ended.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "appUserId",
          "revoked"
        ],
        "type": "object"
      },
      "operation.calls.createAppUserToken.body": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "Your app user who took the call's offer.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "appUserId"
        ],
        "type": "object"
      },
      "operation.calls.createAppUserToken.input": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "Your app user who took the call's offer.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "callId": {
            "description": "The live call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "appUserId",
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.createAppUserToken.output": {
        "$ref": "#/components/schemas/CallJoinToken"
      },
      "operation.calls.forward.body": {
        "additionalProperties": false,
        "properties": {
          "to": {
            "description": "The phone number to forward the call to, in E.164. It passes the same checks as the `to` of a call you start.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.calls.forward.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbound call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The phone number to forward the call to, in E.164. It passes the same checks as the `to` of a call you start.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "to"
        ],
        "type": "object"
      },
      "operation.calls.forward.output": {
        "additionalProperties": false,
        "properties": {
          "forwardLegId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the forwarded part of the call; `null` when the command forwarded nothing."
          },
          "id": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "routing": {
            "description": "Where the inbound call's routing stands after the command: `answered` (you took it; a forward may still follow), `rejected` or `forwarded`.",
            "enum": [
              "deciding",
              "answered",
              "rejected",
              "forwarded",
              "message",
              "ended"
            ],
            "type": "string"
          }
        },
        "required": [
          "forwardLegId",
          "id",
          "routing"
        ],
        "type": "object"
      },
      "operation.calls.gather.body": {
        "additionalProperties": false,
        "properties": {
          "finishOnKey": {
            "description": "A key that ends the gather when it is pressed (`#`).",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "*",
              "#"
            ],
            "type": "string"
          },
          "input": {
            "description": "What it listens for: `dtmf` (keypad digits), `speech` (a spoken answer) or `both` (whichever comes first). Left out: `dtmf`.",
            "enum": [
              "dtmf",
              "speech",
              "both"
            ],
            "type": "string"
          },
          "language": {
            "description": "The language of a spoken answer (`no`, `en`). Left out: `no`.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "maxDigits": {
            "description": "The most keypad digits to take: 1 to 32.",
            "maximum": 32,
            "minimum": 1,
            "type": "integer"
          },
          "timeoutSeconds": {
            "description": "How many seconds of silence end the gather: 1 to 60.",
            "maximum": 60,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "maxDigits",
          "timeoutSeconds"
        ],
        "type": "object"
      },
      "operation.calls.gather.input": {
        "additionalProperties": false,
        "properties": {
          "finishOnKey": {
            "description": "A key that ends the gather when it is pressed (`#`).",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "*",
              "#"
            ],
            "type": "string"
          },
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "input": {
            "description": "What it listens for: `dtmf` (keypad digits), `speech` (a spoken answer) or `both` (whichever comes first). Left out: `dtmf`.",
            "enum": [
              "dtmf",
              "speech",
              "both"
            ],
            "type": "string"
          },
          "language": {
            "description": "The language of a spoken answer (`no`, `en`). Left out: `no`.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "maxDigits": {
            "description": "The most keypad digits to take: 1 to 32.",
            "maximum": 32,
            "minimum": 1,
            "type": "integer"
          },
          "timeoutSeconds": {
            "description": "How many seconds of silence end the gather: 1 to 60.",
            "maximum": 60,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "maxDigits",
          "timeoutSeconds"
        ],
        "type": "object"
      },
      "operation.calls.gather.output": {
        "$ref": "#/components/schemas/CallAction"
      },
      "operation.calls.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.get.output": {
        "$ref": "#/components/schemas/Call"
      },
      "operation.calls.getAgentConversation.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.getAgentConversation.output": {
        "$ref": "#/components/schemas/CallAgentConversation"
      },
      "operation.calls.getRecordingSetting.input": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "operation.calls.getRecordingSetting.output": {
        "$ref": "#/components/schemas/CallRecordingSetting"
      },
      "operation.calls.getSummary.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.getSummary.output": {
        "$ref": "#/components/schemas/CallSummary"
      },
      "operation.calls.hangUp.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.hangUp.output": {
        "additionalProperties": false,
        "properties": {
          "ended": {
            "description": "Always `true`: the call is ended, also when it already was.",
            "type": "boolean"
          },
          "id": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "ended",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "direction": {
            "description": "Only `outbound` or only `inbound` calls. Left out: both.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "reference": {
            "description": "Only calls with your reference.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "since": {
            "description": "Only calls started at or after this instant, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "until": {
            "description": "Only calls started before this instant, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.calls.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Call"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.delete.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it transcribes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "description": "`true`: it and its lines are gone.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the live transcript that was deleted.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "deleted",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.follow.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "A position (`seq`) read before; left out: from the start.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "callId": {
            "description": "The call it transcribes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.follow.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The live transcript's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "lastSeq": {
            "description": "The position of the last line change.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "state": {
            "description": "The transcript's state when the stream ended.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "lastSeq",
          "state"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.follow.part": {
        "$ref": "#/components/schemas/CallLiveTranscriptLine"
      },
      "operation.calls.liveTranscript.get.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it transcribes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.get.output": {
        "$ref": "#/components/schemas/CallLiveTranscript"
      },
      "operation.calls.liveTranscript.listLines.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "A position (`seq`) read before; left out: from the start.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "callId": {
            "description": "The call it transcribes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "limit": {
            "description": "The most lines to answer: 1 to 200. Left out: 200.",
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.listLines.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The live transcript's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "items": {
            "description": "The lines changed after `after`, oldest change first.",
            "items": {
              "$ref": "#/components/schemas/CallLiveTranscriptLine"
            },
            "type": "array"
          },
          "lastSeq": {
            "description": "The position of the newest line change: when the last item's `seq` equals it, you have read everything so far.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "state": {
            "description": "`pending` while lines may still come; `done`: no more will.",
            "enum": [
              "pending",
              "done"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "items",
          "lastSeq",
          "state"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.start.body": {
        "additionalProperties": false,
        "properties": {
          "language": {
            "description": "The language spoken (`no`, `en`). Left out: Norwegian is heard.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "transcribes": {
            "description": "The dialled phone (`caller`) or every phone on the call (`all`).",
            "enum": [
              "caller",
              "all"
            ],
            "type": "string"
          }
        },
        "required": [
          "transcribes"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.start.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it transcribes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "language": {
            "description": "The language spoken (`no`, `en`). Left out: Norwegian is heard.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "transcribes": {
            "description": "The dialled phone (`caller`) or every phone on the call (`all`).",
            "enum": [
              "caller",
              "all"
            ],
            "type": "string"
          }
        },
        "required": [
          "callId",
          "transcribes"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.start.output": {
        "$ref": "#/components/schemas/CallLiveTranscript"
      },
      "operation.calls.liveTranscript.stop.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it transcribes.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.liveTranscript.stop.output": {
        "$ref": "#/components/schemas/CallLiveTranscript"
      },
      "operation.calls.moves.get.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The `id` of the call the participant belongs to.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The move's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.moves.get.output": {
        "$ref": "#/components/schemas/CallMove"
      },
      "operation.calls.offers.accept.body": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "Your app user who takes the call.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "appUserId"
        ],
        "type": "object"
      },
      "operation.calls.offers.accept.input": {
        "additionalProperties": false,
        "properties": {
          "appUserId": {
            "description": "Your app user who takes the call.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The offer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "appUserId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.offers.accept.output": {
        "$ref": "#/components/schemas/CallOfferAccepted"
      },
      "operation.calls.offers.cancel.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The offer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.offers.cancel.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The offer.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "description": "`cancelled` after this call.",
            "enum": [
              "ringing",
              "accepted",
              "expired",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "state"
        ],
        "type": "object"
      },
      "operation.calls.offers.create.input": {
        "additionalProperties": false,
        "properties": {
          "appUsers": {
            "description": "Your app users' ids, as `@telkit/client` rings them.",
            "items": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 20,
            "type": "array"
          },
          "callId": {
            "description": "The live call to ring them on.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "members": {
            "description": "Members' browser phones (Bedrift); one rings while «Ledig».",
            "items": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 20,
            "type": "array"
          },
          "phones": {
            "description": "Numbers to ring; the first to answer joins the call.",
            "items": {
              "maxLength": 40,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 20,
            "type": "array"
          },
          "ringSeconds": {
            "description": "How long it rings; 30 when left out.",
            "maximum": 120,
            "minimum": 5,
            "type": "integer"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.offers.create.output": {
        "$ref": "#/components/schemas/CallOffer"
      },
      "operation.calls.offers.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The offer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.offers.get.output": {
        "$ref": "#/components/schemas/CallOffer"
      },
      "operation.calls.participants.addPhone.body": {
        "additionalProperties": false,
        "properties": {
          "to": {
            "description": "The phone number to dial into the call.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.calls.participants.addPhone.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The live call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The phone number to dial into the call.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "callId",
          "to"
        ],
        "type": "object"
      },
      "operation.calls.participants.addPhone.output": {
        "$ref": "#/components/schemas/CallPhoneParticipant"
      },
      "operation.calls.participants.hold.body": {
        "additionalProperties": false,
        "properties": {
          "held": {
            "description": "`true`: put it on hold; `false`: take it off hold.",
            "type": "boolean"
          }
        },
        "required": [
          "held"
        ],
        "type": "object"
      },
      "operation.calls.participants.hold.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "held": {
            "description": "`true`: put it on hold; `false`: take it off hold.",
            "type": "boolean"
          },
          "id": {
            "description": "The participant's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "held",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.participants.hold.output": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "held": {
            "description": "`true`: it is on hold now.",
            "type": "boolean"
          },
          "id": {
            "description": "The participant.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "held",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.participants.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.participants.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallParticipant"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.calls.participants.move.body": {
        "additionalProperties": false,
        "properties": {
          "toCallId": {
            "description": "The `id` of the live call of your application to move it into.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "toCallId"
        ],
        "type": "object"
      },
      "operation.calls.participants.move.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The `id` of the call the participant is in.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "toCallId": {
            "description": "The `id` of the live call of your application to move it into.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "toCallId"
        ],
        "type": "object"
      },
      "operation.calls.participants.move.output": {
        "$ref": "#/components/schemas/CallMove"
      },
      "operation.calls.participants.mute.body": {
        "additionalProperties": false,
        "properties": {
          "muted": {
            "description": "`true`: mute it; `false`: unmute it.",
            "type": "boolean"
          }
        },
        "required": [
          "muted"
        ],
        "type": "object"
      },
      "operation.calls.participants.mute.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "muted": {
            "description": "`true`: mute it; `false`: unmute it.",
            "type": "boolean"
          }
        },
        "required": [
          "callId",
          "id",
          "muted"
        ],
        "type": "object"
      },
      "operation.calls.participants.mute.output": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "muted": {
            "description": "`true`: it is muted now.",
            "type": "boolean"
          }
        },
        "required": [
          "callId",
          "id",
          "muted"
        ],
        "type": "object"
      },
      "operation.calls.participants.remove.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.participants.remove.output": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "removed": {
            "description": "`true`: it is out of the call.",
            "type": "boolean"
          }
        },
        "required": [
          "callId",
          "id",
          "removed"
        ],
        "type": "object"
      },
      "operation.calls.participants.setAudio.body": {
        "additionalProperties": false,
        "properties": {
          "audioMode": {
            "description": "`talk`: everyone hears it; `listen`: nobody hears it; `whisper`: only `whisperTo` hears it.",
            "enum": [
              "talk",
              "listen",
              "whisper"
            ],
            "type": "string"
          },
          "whisperTo": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "With `whisper`: the one other participant who hears it; without it, or naming the participant itself, a `whisper` answers `call_whisper_target_invalid`. Ignored in the other modes."
          }
        },
        "required": [
          "audioMode"
        ],
        "type": "object"
      },
      "operation.calls.participants.setAudio.input": {
        "additionalProperties": false,
        "properties": {
          "audioMode": {
            "description": "`talk`: everyone hears it; `listen`: nobody hears it; `whisper`: only `whisperTo` hears it.",
            "enum": [
              "talk",
              "listen",
              "whisper"
            ],
            "type": "string"
          },
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "whisperTo": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "With `whisper`: the one other participant who hears it; without it, or naming the participant itself, a `whisper` answers `call_whisper_target_invalid`. Ignored in the other modes."
          }
        },
        "required": [
          "audioMode",
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.participants.setAudio.output": {
        "additionalProperties": false,
        "properties": {
          "audioMode": {
            "description": "The mode it has now: `talk` (everyone hears it), `listen` (nobody hears it) or `whisper` (only `whisperTo` hears it).",
            "enum": [
              "talk",
              "listen",
              "whisper"
            ],
            "type": "string"
          },
          "callId": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The participant.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "whisperTo": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The participant a `whisper` is heard by; `null` in the other modes."
          }
        },
        "required": [
          "audioMode",
          "callId",
          "id",
          "whisperTo"
        ],
        "type": "object"
      },
      "operation.calls.play.body": {
        "additionalProperties": false,
        "properties": {
          "audioId": {
            "description": "A ready clip of your audio library: the `id` of a `tts.speak` or a `calls.audio.upload`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "audioId"
        ],
        "type": "object"
      },
      "operation.calls.play.input": {
        "additionalProperties": false,
        "properties": {
          "audioId": {
            "description": "A ready clip of your audio library: the `id` of a `tts.speak` or a `calls.audio.upload`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "audioId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.play.output": {
        "$ref": "#/components/schemas/CallAction"
      },
      "operation.calls.recordings.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The recording's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.recordings.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "description": "Always `true`: it is gone from every read.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the recording that was deleted.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "deleted",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.recordings.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The recording's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.recordings.get.output": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it records.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "channels": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "1: every party mixed; 2: the parties alternate between two channels in the order they joined. `null` until the recording started."
          },
          "endedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it ended, ISO 8601 in UTC; `null` while it records."
          },
          "id": {
            "description": "The recording's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the recording cost, once it settled; `null` before."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The recorded length in whole seconds, once it is known; `null` before."
          },
          "simulated": {
            "description": "`true`: a test key's recording.",
            "type": "boolean"
          },
          "startedAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "state": {
            "description": "`waiting`: asked for at the call's start, it begins when the call is answered; `recording`; `stopping`: a stop was asked for and its final length is not known yet; `stored`: its file can be read; `failed`: there is no file.",
            "enum": [
              "waiting",
              "recording",
              "stopping",
              "stored",
              "failed"
            ],
            "type": "string"
          },
          "url": {
            "description": "A link to the stored file, valid until `urlExpiresAt`; `null` before it is stored.",
            "type": [
              "string",
              "null"
            ]
          },
          "urlExpiresAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When `url` stops working, ISO 8601 in UTC: 15 minutes after this answer; `null` when there is no link."
          }
        },
        "required": [
          "callId",
          "channels",
          "endedAt",
          "id",
          "price",
          "seconds",
          "simulated",
          "startedAt",
          "state",
          "url",
          "urlExpiresAt"
        ],
        "type": "object"
      },
      "operation.calls.recordings.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "callId": {
            "description": "Only this call's recordings.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "since": {
            "description": "Only recordings started at or after this instant, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "until": {
            "description": "Only recordings started before this instant, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.calls.recordings.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Recording"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.calls.recordings.start.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The `id` of the live call to record.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.recordings.start.output": {
        "$ref": "#/components/schemas/Recording"
      },
      "operation.calls.recordings.stop.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The recording's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.recordings.stop.output": {
        "$ref": "#/components/schemas/Recording"
      },
      "operation.calls.reject.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbound call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.reject.output": {
        "additionalProperties": false,
        "properties": {
          "forwardLegId": {
            "anyOf": [
              {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the forwarded part of the call; `null` when the command forwarded nothing."
          },
          "id": {
            "description": "The call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "routing": {
            "description": "Where the inbound call's routing stands after the command: `answered` (you took it; a forward may still follow), `rejected` or `forwarded`.",
            "enum": [
              "deciding",
              "answered",
              "rejected",
              "forwarded",
              "message",
              "ended"
            ],
            "type": "string"
          }
        },
        "required": [
          "forwardLegId",
          "id",
          "routing"
        ],
        "type": "object"
      },
      "operation.calls.say.body": {
        "additionalProperties": false,
        "properties": {
          "interruptible": {
            "description": "With a `gather` after it: the caller's first key, or their first words, stops the text.",
            "type": "boolean"
          },
          "language": {
            "description": "The text's language. Left out: the voice's own language, else Norwegian.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text to read aloud: at most 1 000 characters.",
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "voice": {
            "description": "A voice id from `tts.voices.list`. Left out: the language's standard voice (Norwegian when no language is named either).",
            "maxLength": 9,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "operation.calls.say.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "interruptible": {
            "description": "With a `gather` after it: the caller's first key, or their first words, stops the text.",
            "type": "boolean"
          },
          "language": {
            "description": "The text's language. Left out: the voice's own language, else Norwegian.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text to read aloud: at most 1 000 characters.",
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "voice": {
            "description": "A voice id from `tts.voices.list`. Left out: the language's standard voice (Norwegian when no language is named either).",
            "maxLength": 9,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "type": "object"
      },
      "operation.calls.say.output": {
        "$ref": "#/components/schemas/CallAction"
      },
      "operation.calls.sendDigits.body": {
        "additionalProperties": false,
        "properties": {
          "digits": {
            "description": "The keypad tones to send, in order: the characters `0-9`, `*` and `#`.",
            "maxLength": 32,
            "minLength": 1,
            "pattern": "^[0-9*#]+$",
            "type": "string"
          }
        },
        "required": [
          "digits"
        ],
        "type": "object"
      },
      "operation.calls.sendDigits.input": {
        "additionalProperties": false,
        "properties": {
          "digits": {
            "description": "The keypad tones to send, in order: the characters `0-9`, `*` and `#`.",
            "maxLength": 32,
            "minLength": 1,
            "pattern": "^[0-9*#]+$",
            "type": "string"
          },
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "digits",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.sendDigits.output": {
        "$ref": "#/components/schemas/CallAction"
      },
      "operation.calls.start.input": {
        "additionalProperties": false,
        "properties": {
          "amd": {
            "additionalProperties": false,
            "description": "Detect an answering machine. The mode `voicemail_drop` plays `drop` after its greeting.",
            "properties": {
              "drop": {
                "additionalProperties": false,
                "description": "What `voicemail_drop` leaves on the voicemail: a `say` or a `play`, never both.",
                "properties": {
                  "play": {
                    "additionalProperties": false,
                    "description": "A clip of your audio library played when the phone answers.",
                    "properties": {
                      "audioId": {
                        "description": "A ready clip of your audio library.",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "audioId"
                    ],
                    "type": "object"
                  },
                  "say": {
                    "additionalProperties": false,
                    "description": "A text read aloud when the phone answers.",
                    "properties": {
                      "language": {
                        "description": "The text's language. Left out: the voice's own language, else Norwegian.",
                        "enum": [
                          "no",
                          "en"
                        ],
                        "type": "string"
                      },
                      "text": {
                        "description": "The text to read aloud: at most 1 000 characters.",
                        "maxLength": 1000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "voice": {
                        "description": "A voice id from `tts.voices.list`. Left out: the language's standard voice (Norwegian when no language is named either).",
                        "maxLength": 9,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "text"
                    ],
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "mode": {
                "description": "`detect`: only tell what answered (the event `call.machineDetected`); `hangup_on_machine`: hang up when a machine answers; `voicemail_drop`: leave `drop` on the voicemail after its greeting.",
                "enum": [
                  "detect",
                  "hangup_on_machine",
                  "voicemail_drop"
                ],
                "type": "string"
              }
            },
            "required": [
              "mode"
            ],
            "type": "object"
          },
          "conference": {
            "description": "Keep the call open while anyone is in it; without it, a call between app users ends when one is left.",
            "type": "boolean"
          },
          "from": {
            "description": "The number to call from, or its `id`. Left out: the default number for calls of the business `identity` names, or of your own company.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "labels": {
            "additionalProperties": {
              "maxLength": 200,
              "type": "string"
            },
            "description": "Your own labels on the call, as names and values: at most 20, each name and value at most 200 characters.",
            "propertyNames": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "type": "object"
          },
          "liveTranscription": {
            "description": "Live speech to text from the answer: the dialled phone (`caller`) or everyone (`all`).",
            "enum": [
              "off",
              "caller",
              "all"
            ],
            "type": "string"
          },
          "maxMinutes": {
            "description": "The longest the call may last, in minutes: 1 to 60. Left out: 60.",
            "maximum": 60,
            "minimum": 1,
            "type": "integer"
          },
          "participants": {
            "description": "App users to put in the call, each funded for its own minutes. Each gets a `url` and a `token` in the answer, for `@telkit/client` in your app.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "displayName": {
                  "description": "The name the others in the call see: at most 100 characters.",
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "externalRef": {
                  "description": "Your own id for the app user or the bot: at most 200 characters.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "kind": {
                  "const": "app",
                  "description": "`app`: a user of your own app, who joins with `@telkit/client`.",
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ],
              "type": "object"
            },
            "maxItems": 20,
            "type": "array"
          },
          "play": {
            "additionalProperties": false,
            "description": "A clip of your audio library played when the phone answers.",
            "properties": {
              "audioId": {
                "description": "A ready clip of your audio library.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "audioId"
            ],
            "type": "object"
          },
          "record": {
            "description": "Record the call from its answer.",
            "type": "boolean"
          },
          "reference": {
            "description": "Your own id for the call. `calls.list` finds your calls by it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "repeat": {
            "description": "Play the `say` or `play` twice.",
            "type": "boolean"
          },
          "say": {
            "additionalProperties": false,
            "description": "A text read aloud when the phone answers.",
            "properties": {
              "language": {
                "description": "The text's language. Left out: the voice's own language, else Norwegian.",
                "enum": [
                  "no",
                  "en"
                ],
                "type": "string"
              },
              "text": {
                "description": "The text to read aloud: at most 1 000 characters.",
                "maxLength": 1000,
                "minLength": 1,
                "type": "string"
              },
              "voice": {
                "description": "A voice id from `tts.voices.list`. Left out: the language's standard voice (Norwegian when no language is named either).",
                "maxLength": 9,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "text"
            ],
            "type": "object"
          },
          "stream": {
            "additionalProperties": false,
            "description": "A media stream to your own server that opens when the dialled phone answers.",
            "properties": {
              "audio": {
                "description": "`talk`: audio both ways, so your server can speak into the call; `listen`: the call's audio to your server only. Left out: `talk`.",
                "enum": [
                  "talk",
                  "listen"
                ],
                "type": "string"
              },
              "customParameters": {
                "additionalProperties": {
                  "maxLength": 499,
                  "type": "string"
                },
                "description": "Your own names and values, sent to your server in the stream's `start` message: at most 20. `from_number` and `to_number` are added unless you name them.",
                "propertyNames": {
                  "maxLength": 499,
                  "minLength": 1,
                  "type": "string"
                },
                "type": "object"
              },
              "endpointId": {
                "description": "The `id` of a webhook you registered (`webhooks.create`): its `https://` address is dialled as `wss://`.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "listen": {
                "description": "Whom the stream hears: one participant (`single`) or everyone mixed (`mixed`). Left out: the call's own phone.",
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "const": "single",
                        "description": "`single`: it hears one participant.",
                        "type": "string"
                      },
                      "participantId": {
                        "description": "The participant it hears. Left out: the call's own phone.",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "mode": {
                        "const": "mixed",
                        "description": "`mixed`: it hears every person in the call, mixed into one.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "mode"
                    ],
                    "type": "object"
                  }
                ]
              },
              "maxMinutes": {
                "description": "The most minutes it may stream: 1 to 120, and never past the call's own funded time.",
                "maximum": 120,
                "minimum": 1,
                "type": "integer"
              },
              "reconnect": {
                "description": "Dial your server again when the WebSocket breaks without a close, a bounded number of times. Left out: `true`.",
                "type": "boolean"
              }
            },
            "required": [
              "endpointId"
            ],
            "type": "object"
          },
          "summary": {
            "description": "Summarize the call from its transcript (needs `transcribe`). Left out: your application's own setting decides; `false`: no summary for this call.",
            "type": "boolean"
          },
          "to": {
            "description": "The phone number to dial. Left out: a call between the app users of `participants`.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "transcribe": {
            "description": "Transcribe the recording after the call (needs `record`).",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "operation.calls.start.output": {
        "$ref": "#/components/schemas/StartedCall"
      },
      "operation.calls.streams.get.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The stream's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.streams.get.output": {
        "$ref": "#/components/schemas/CallStream"
      },
      "operation.calls.streams.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "callId"
        ],
        "type": "object"
      },
      "operation.calls.streams.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallStream"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.calls.streams.start.body": {
        "additionalProperties": false,
        "properties": {
          "audio": {
            "description": "`talk`: audio both ways, so your server can speak into the call; `listen`: the call's audio to your server only. Left out: `talk`.",
            "enum": [
              "talk",
              "listen"
            ],
            "type": "string"
          },
          "customParameters": {
            "additionalProperties": {
              "maxLength": 499,
              "type": "string"
            },
            "description": "Your own names and values, sent to your server in the stream's `start` message: at most 20. `from_number` and `to_number` are added unless you name them.",
            "propertyNames": {
              "maxLength": 499,
              "minLength": 1,
              "type": "string"
            },
            "type": "object"
          },
          "endpointId": {
            "description": "The `id` of a webhook you registered (`webhooks.create`): its `https://` address is dialled as `wss://`.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "listen": {
            "description": "Whom the stream hears: one participant (`single`) or everyone mixed (`mixed`). Left out: the call's own phone.",
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "const": "single",
                    "description": "`single`: it hears one participant.",
                    "type": "string"
                  },
                  "participantId": {
                    "description": "The participant it hears. Left out: the call's own phone.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "const": "mixed",
                    "description": "`mixed`: it hears every person in the call, mixed into one.",
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              }
            ]
          },
          "maxMinutes": {
            "description": "The most minutes it may stream: 1 to 120, and never past the call's own funded time.",
            "maximum": 120,
            "minimum": 1,
            "type": "integer"
          },
          "reconnect": {
            "description": "Dial your server again when the WebSocket breaks without a close, a bounded number of times. Left out: `true`.",
            "type": "boolean"
          }
        },
        "required": [
          "endpointId"
        ],
        "type": "object"
      },
      "operation.calls.streams.start.input": {
        "additionalProperties": false,
        "properties": {
          "audio": {
            "description": "`talk`: audio both ways, so your server can speak into the call; `listen`: the call's audio to your server only. Left out: `talk`.",
            "enum": [
              "talk",
              "listen"
            ],
            "type": "string"
          },
          "callId": {
            "description": "The live call whose audio is streamed.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "customParameters": {
            "additionalProperties": {
              "maxLength": 499,
              "type": "string"
            },
            "description": "Your own names and values, sent to your server in the stream's `start` message: at most 20. `from_number` and `to_number` are added unless you name them.",
            "propertyNames": {
              "maxLength": 499,
              "minLength": 1,
              "type": "string"
            },
            "type": "object"
          },
          "endpointId": {
            "description": "The `id` of a webhook you registered (`webhooks.create`): its `https://` address is dialled as `wss://`.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "listen": {
            "description": "Whom the stream hears: one participant (`single`) or everyone mixed (`mixed`). Left out: the call's own phone.",
            "oneOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "const": "single",
                    "description": "`single`: it hears one participant.",
                    "type": "string"
                  },
                  "participantId": {
                    "description": "The participant it hears. Left out: the call's own phone.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "mode": {
                    "const": "mixed",
                    "description": "`mixed`: it hears every person in the call, mixed into one.",
                    "type": "string"
                  }
                },
                "required": [
                  "mode"
                ],
                "type": "object"
              }
            ]
          },
          "maxMinutes": {
            "description": "The most minutes it may stream: 1 to 120, and never past the call's own funded time.",
            "maximum": 120,
            "minimum": 1,
            "type": "integer"
          },
          "reconnect": {
            "description": "Dial your server again when the WebSocket breaks without a close, a bounded number of times. Left out: `true`.",
            "type": "boolean"
          }
        },
        "required": [
          "callId",
          "endpointId"
        ],
        "type": "object"
      },
      "operation.calls.streams.start.output": {
        "$ref": "#/components/schemas/CallStream"
      },
      "operation.calls.streams.stop.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The stream's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.streams.stop.output": {
        "$ref": "#/components/schemas/CallStream"
      },
      "operation.calls.transfers.cancel.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The transfer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.transfers.cancel.output": {
        "$ref": "#/components/schemas/CallTransfer"
      },
      "operation.calls.transfers.complete.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The transfer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.transfers.complete.output": {
        "$ref": "#/components/schemas/CallTransfer"
      },
      "operation.calls.transfers.get.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The transfer's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id"
        ],
        "type": "object"
      },
      "operation.calls.transfers.get.output": {
        "$ref": "#/components/schemas/CallTransfer"
      },
      "operation.calls.transfers.start.body": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "description": "`blind`: the transferor leaves when the target answers. `attended`: the transferor talks with the target first, and you end it with `complete` or `cancel`. Left out: `blind`.",
            "enum": [
              "blind",
              "attended"
            ],
            "type": "string"
          },
          "to": {
            "description": "The phone number that takes the place.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "transferorId": {
            "description": "The participant whose place moves.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "to",
          "transferorId"
        ],
        "type": "object"
      },
      "operation.calls.transfers.start.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "kind": {
            "description": "`blind`: the transferor leaves when the target answers. `attended`: the transferor talks with the target first, and you end it with `complete` or `cancel`. Left out: `blind`.",
            "enum": [
              "blind",
              "attended"
            ],
            "type": "string"
          },
          "to": {
            "description": "The phone number that takes the place.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "transferorId": {
            "description": "The participant whose place moves.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "to",
          "transferorId"
        ],
        "type": "object"
      },
      "operation.calls.transfers.start.output": {
        "$ref": "#/components/schemas/CallTransfer"
      },
      "operation.calls.update.body": {
        "additionalProperties": false,
        "properties": {
          "labels": {
            "additionalProperties": {
              "maxLength": 200,
              "type": "string"
            },
            "description": "Your own labels on the call, as names and values: at most 20, each name and value at most 200 characters. They replace the ones it had.",
            "propertyNames": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "type": "object"
          },
          "reference": {
            "anyOf": [
              {
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own id for the call; `null` removes it."
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.calls.update.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "labels": {
            "additionalProperties": {
              "maxLength": 200,
              "type": "string"
            },
            "description": "Your own labels on the call, as names and values: at most 20, each name and value at most 200 characters. They replace the ones it had.",
            "propertyNames": {
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "type": "object"
          },
          "reference": {
            "anyOf": [
              {
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your own id for the call; `null` removes it."
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.calls.update.output": {
        "$ref": "#/components/schemas/Call"
      },
      "operation.email.attachments.get.input": {
        "additionalProperties": false,
        "properties": {
          "attachmentId": {
            "description": "The file's `id` in the email's `attachments`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "id": {
            "description": "The received email's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "attachmentId",
          "id"
        ],
        "type": "object"
      },
      "operation.email.attachments.get.output": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "description": "When the link stops working.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "filename": {
            "description": "The name the download is saved under.",
            "type": "string"
          },
          "url": {
            "description": "A short-lived link that downloads the file; it never shows it in a browser.",
            "type": "string"
          }
        },
        "required": [
          "expiresAt",
          "filename",
          "url"
        ],
        "type": "object"
      },
      "operation.email.domains.blocks.create.body": {
        "additionalProperties": false,
        "properties": {
          "sender": {
            "description": "An email address (`ola@example.com`) or a domain (`example.com`, which also names its subdomains).",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "sender"
        ],
        "type": "object"
      },
      "operation.email.domains.blocks.create.input": {
        "additionalProperties": false,
        "properties": {
          "domain": {
            "description": "The domain (`post.firma.no`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "sender": {
            "description": "An email address (`ola@example.com`) or a domain (`example.com`, which also names its subdomains).",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "domain",
          "sender"
        ],
        "type": "object"
      },
      "operation.email.domains.blocks.create.output": {
        "$ref": "#/components/schemas/EmailDomainBlock"
      },
      "operation.email.domains.blocks.delete.input": {
        "additionalProperties": false,
        "properties": {
          "domain": {
            "description": "The domain (`post.firma.no`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The entry's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "domain",
          "id"
        ],
        "type": "object"
      },
      "operation.email.domains.blocks.delete.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The id the call named.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "removed": {
            "description": "false: no entry with this id was on the list (removed before, or never there).",
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "removed"
        ],
        "type": "object"
      },
      "operation.email.domains.blocks.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "domain": {
            "description": "The domain (`post.firma.no`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "domain"
        ],
        "type": "object"
      },
      "operation.email.domains.blocks.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/EmailDomainBlock"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.email.domains.create.input": {
        "additionalProperties": false,
        "properties": {
          "defaultFrom": {
            "description": "What a send from the domain without `from` sends as: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`, an address on the domain.",
            "maxLength": 377,
            "minLength": 1,
            "type": "string"
          },
          "domain": {
            "description": "The domain to send from: `post.firma.no`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "receiving": {
            "description": "Receive email too. Left out: no.",
            "type": "boolean"
          }
        },
        "required": [
          "domain"
        ],
        "type": "object"
      },
      "operation.email.domains.create.output": {
        "$ref": "#/components/schemas/EmailDomain"
      },
      "operation.email.domains.delete.input": {
        "additionalProperties": false,
        "properties": {
          "domain": {
            "description": "The domain (`post.firma.no`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "domain"
        ],
        "type": "object"
      },
      "operation.email.domains.delete.output": {
        "additionalProperties": false,
        "properties": {
          "domain": {
            "description": "The domain name.",
            "type": "string"
          },
          "id": {
            "description": "The removed domain's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "description": "The state the removal left it in.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          }
        },
        "required": [
          "domain",
          "id",
          "state"
        ],
        "type": "object"
      },
      "operation.email.domains.get.input": {
        "additionalProperties": false,
        "properties": {
          "domain": {
            "description": "The domain (`post.firma.no`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "domain"
        ],
        "type": "object"
      },
      "operation.email.domains.get.output": {
        "$ref": "#/components/schemas/EmailDomain"
      },
      "operation.email.domains.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "state": {
            "description": "Only domains in this state. Left out: pending and active.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.email.domains.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/EmailDomain"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.email.domains.update.body": {
        "additionalProperties": false,
        "properties": {
          "default": {
            "const": true,
            "description": "`true`: the domain becomes its identity's default for email. It must be active.",
            "type": "boolean"
          },
          "defaultFrom": {
            "anyOf": [
              {
                "description": "What a send from the domain without `from` sends as: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`, an address on the domain.",
                "maxLength": 377,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a send from the domain without `from` sends as (`\"Firma <post@firma.no>\"`); `null` removes it. Left out: unchanged."
          },
          "receiveDayCap": {
            "anyOf": [
              {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Receiving: the most mail the domain takes in a day (Europe/Oslo); later mail is stored stopped, uncharged. `null`: the default, 1000. Left out: unchanged."
          },
          "receiving": {
            "description": "Whether the domain receives email too. Left out: unchanged.",
            "type": "boolean"
          },
          "requireDmarc": {
            "description": "Receiving: store a mail whose DMARC result is `fail` stopped (`blocked`), uncharged. Every other result is let in. Left out: unchanged.",
            "type": "boolean"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.email.domains.update.input": {
        "additionalProperties": false,
        "properties": {
          "default": {
            "const": true,
            "description": "`true`: the domain becomes its identity's default for email. It must be active.",
            "type": "boolean"
          },
          "defaultFrom": {
            "anyOf": [
              {
                "description": "What a send from the domain without `from` sends as: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`, an address on the domain.",
                "maxLength": 377,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What a send from the domain without `from` sends as (`\"Firma <post@firma.no>\"`); `null` removes it. Left out: unchanged."
          },
          "domain": {
            "description": "The domain (`post.firma.no`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "receiveDayCap": {
            "anyOf": [
              {
                "maximum": 1000000,
                "minimum": 1,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Receiving: the most mail the domain takes in a day (Europe/Oslo); later mail is stored stopped, uncharged. `null`: the default, 1000. Left out: unchanged."
          },
          "receiving": {
            "description": "Whether the domain receives email too. Left out: unchanged.",
            "type": "boolean"
          },
          "requireDmarc": {
            "description": "Receiving: store a mail whose DMARC result is `fail` stopped (`blocked`), uncharged. Every other result is let in. Left out: unchanged.",
            "type": "boolean"
          }
        },
        "required": [
          "domain"
        ],
        "type": "object"
      },
      "operation.email.domains.update.output": {
        "$ref": "#/components/schemas/EmailDomain"
      },
      "operation.email.domains.verify.input": {
        "additionalProperties": false,
        "properties": {
          "domain": {
            "description": "The domain (`post.firma.no`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "domain"
        ],
        "type": "object"
      },
      "operation.email.domains.verify.output": {
        "$ref": "#/components/schemas/EmailDomain"
      },
      "operation.email.forward.body": {
        "additionalProperties": false,
        "properties": {
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`. Left out: the address the received email came to.",
            "maxLength": 377,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "includeAttachments": {
            "description": "false: forward the email without its files. Left out or true: every stored file of the email is attached again.",
            "type": "boolean"
          },
          "latestSendAt": {
            "description": "After this instant (ISO 8601 with an offset) the email is never sent: it fails with `latest_send_passed` and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "note": {
            "description": "Your own text, placed above the forwarded email.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "replyTo": {
            "description": "The address a reply goes to. Left out: where an answer to the received email would go (its reply-to address, else its sender).",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the email may be sent; outside them it waits for the next opening. Left out: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "to": {
            "anyOf": [
              {
                "maxLength": 254,
                "minLength": 3,
                "type": "string"
              },
              {
                "items": {
                  "maxLength": 254,
                  "minLength": 3,
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array"
              }
            ],
            "description": "One address, or a list of them."
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.email.forward.input": {
        "additionalProperties": false,
        "properties": {
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`. Left out: the address the received email came to.",
            "maxLength": 377,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The received email to forward.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "includeAttachments": {
            "description": "false: forward the email without its files. Left out or true: every stored file of the email is attached again.",
            "type": "boolean"
          },
          "latestSendAt": {
            "description": "After this instant (ISO 8601 with an offset) the email is never sent: it fails with `latest_send_passed` and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "note": {
            "description": "Your own text, placed above the forwarded email.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "replyTo": {
            "description": "The address a reply goes to. Left out: where an answer to the received email would go (its reply-to address, else its sender).",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the email may be sent; outside them it waits for the next opening. Left out: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "to": {
            "anyOf": [
              {
                "maxLength": 254,
                "minLength": 3,
                "type": "string"
              },
              {
                "items": {
                  "maxLength": 254,
                  "minLength": 3,
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array"
              }
            ],
            "description": "One address, or a list of them."
          }
        },
        "required": [
          "id",
          "to"
        ],
        "type": "object"
      },
      "operation.email.forward.output": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "Its files in order: a sent email's, then a received email's.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "contentId": {
                  "description": "The `Content-ID` the HTML shows the file inline by (`cid:<contentId>`).",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "contentType": {
                  "description": "The file's media type (`application/pdf`); `null` when unknown.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "filename": {
                  "description": "The file's name.",
                  "type": "string"
                },
                "id": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "A received file's id: download it with `GET /email/{id}/attachments/{attachmentId}`. null on a sent file."
                },
                "sha256": {
                  "description": "The hex SHA-256 of the stored bytes; null until a received file is stored.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sizeBytes": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "null while a received file is fetched."
                },
                "skipReason": {
                  "anyOf": [
                    {
                      "enum": [
                        "too_many_files",
                        "too_large",
                        "receiving_unsupported",
                        "fetch_failed",
                        "infected",
                        "scan_unavailable"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why a received file was not stored: `too_many_files` or `too_large` (past what one email keeps), `receiving_unsupported` or `fetch_failed` (the file could not be fetched), `infected`, or `scan_unavailable` (it could not be scanned, so it was not stored). `null` unless `state` is `skipped`."
                },
                "state": {
                  "description": "`stored` (a sent file, or a received one ready to download), `pending` while Telkit fetches a received file, `skipped` (see `skipReason`).",
                  "enum": [
                    "pending",
                    "stored",
                    "skipped"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "contentId",
                "contentType",
                "filename",
                "id",
                "sha256",
                "sizeBytes",
                "skipReason",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "bcc": {
            "description": "The blind-copy recipients the email provider reports for a received email (seldom any); empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "blockedReason": {
            "anyOf": [
              {
                "enum": [
                  "blocked_sender",
                  "dmarc_failed",
                  "day_cap"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the receiving domain's rules stopped this received email: `blocked_sender` (its block list), `dmarc_failed` (the domain requires DMARC) or `day_cap` (the domain's day cap was reached). null on an email they never stopped. It stays after the email is let through; `state` says whether it is still stopped."
          },
          "cc": {
            "description": "The copy recipients a received email names; empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When Telkit took the send, or received the email. ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "deliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as delivered; `null` until then."
          },
          "direction": {
            "description": "`outbound`: you sent it. `inbound`: you received it.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "failedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as failed; `null` when it has not."
          },
          "failureReason": {
            "description": "Why it failed, in words; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "`Name <address>`, or the address alone.",
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Every header of a received email, names in lower case; empty on a sent email.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "html": {
            "description": "The HTML body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The email's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "inReplyTo": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "The answered email's id.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own id of the answered email; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email of yours this one answers, with your own reference of it; null when it answers none Telkit holds."
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "person",
                  "automatic",
                  "delivery_report"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What kind of mail a received email is, read from its headers: `person` (someone wrote it), `automatic` (an out-of-office answer or another machine's mail) or `delivery_report` (a bounce). null on a sent email."
          },
          "latestSendAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instant after which the message is never sent, ISO 8601 in UTC; `null` when the send named none."
          },
          "original": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "sha256": {
                    "description": "The hex SHA-256 of the stored bytes; null until stored.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sizeBytes": {
                    "anyOf": [
                      {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The stored length in bytes; null until stored."
                  },
                  "skipReason": {
                    "anyOf": [
                      {
                        "enum": [
                          "too_many_files",
                          "too_large",
                          "receiving_unsupported",
                          "fetch_failed",
                          "infected",
                          "scan_unavailable"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Why the original is not kept; null unless `state` is `skipped`."
                  },
                  "state": {
                    "description": "`pending` while Telkit fetches it from the email provider, `stored` when it can be downloaded, `skipped` when it is not kept (`skipReason`).",
                    "enum": [
                      "pending",
                      "stored",
                      "skipped"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "sha256",
                  "sizeBytes",
                  "skipReason",
                  "state"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The original message file of a received email (an `.eml` with every part as the sender's server gave it): download it with `GET /email/{messageId}/original` once `stored`. null on a sent email."
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What it costs you: the send, or receiving it. Excluding VAT."
          },
          "recipients": {
            "description": "How many addresses it went to.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own id of the send; null when it named none, and on a received email.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyTo": {
            "description": "The address a reply goes to; `null` when it names none.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyToAddresses": {
            "description": "Every `Reply-To` address of a received email; `replyTo` is the first of them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rfcInReplyTo": {
            "description": "The first `Message-ID` a received email's `In-Reply-To` header names; null when none.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcMessageId": {
            "description": "The email's own `Message-ID`, in angle brackets. On a sent email it is the id the mail server gave it, known after its first status event; null until then, and on an email a test key sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcReferences": {
            "description": "The `Message-ID`s of a received email's `References` header, oldest first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sendWindow": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "days": {
                    "description": "The weekdays it is open.",
                    "items": {
                      "enum": [
                        "mon",
                        "tue",
                        "wed",
                        "thu",
                        "fri",
                        "sat",
                        "sun"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "from": {
                    "description": "Local time the window opens, `HH:MM` (24-hour).",
                    "type": "string"
                  },
                  "skipPublicHolidays": {
                    "description": "Whether it is closed on Norway's public holidays.",
                    "type": "boolean"
                  },
                  "timeZone": {
                    "description": "The IANA time zone the times are read in.",
                    "type": "string"
                  },
                  "until": {
                    "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                    "type": "string"
                  }
                },
                "required": [
                  "days",
                  "from",
                  "skipPublicHolidays",
                  "timeZone",
                  "until"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The hours the message may be sent, with every default filled in; `null` when the send named none."
          },
          "senderChecks": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "dkim": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "dmarc": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "spf": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "dkim",
                  "dmarc",
                  "spf"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the receiving mail server found of the sender (SPF, DKIM, DMARC). `dmarc: pass` means the sender's domain is the one in `from`. null on a sent email and when the email provider gave no result."
          },
          "sentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as sent; `null` until then."
          },
          "simulated": {
            "description": "`true`: a test key's email; nothing left Telkit.",
            "type": "boolean"
          },
          "state": {
            "description": "Where it is now. Sent: `queued`, `in_flight` (being handed over), `sent`, `delivered`, then possibly `bounced` or `complained` (the receiving server reports those later); `failed` when it was refused or could not be sent; `uncertain` when Telkit could not learn whether it was taken (it is never sent again); `scheduled` and `cancelled` only on a campaign's email. Received: `held_for_balance` (kept back until your balance pays for receiving it), then `received`; `blocked` when the receiving domain's rules stopped it.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          },
          "subject": {
            "description": "The subject line.",
            "type": "string"
          },
          "testCopy": {
            "description": "`true` when this test-mode send went to the sign-in address of a member of your company, who then also gets a real copy of its subject and text (a few a day).",
            "type": "boolean"
          },
          "text": {
            "description": "The plain-text body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "threadId": {
            "description": "The thread the email is in: `email.list` reads it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The addresses it went to.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendorDeliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the receiving mail server took it, as reported; `null` when no time was given."
          },
          "vendorFailedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it failed, as reported; `null` when no time was given."
          },
          "vendorReceivedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email provider's own time of receipt; `createdAt` is when Telkit stored it."
          },
          "vendorSentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time of the same state as the sending mail server reported it; `null` when it gave none."
          },
          "via": {
            "anyOf": [
              {
                "enum": [
                  "saved_sender",
                  "catch_all"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How a received email found its profile: `saved_sender` (the profile saved the address it came to) or `catch_all` (the profile takes the domain's other addresses). null on a sent email."
          }
        },
        "required": [
          "attachments",
          "bcc",
          "blockedReason",
          "cc",
          "createdAt",
          "deliveredAt",
          "direction",
          "failedAt",
          "failureReason",
          "from",
          "headers",
          "html",
          "id",
          "identity",
          "inReplyTo",
          "kind",
          "latestSendAt",
          "original",
          "price",
          "recipients",
          "reference",
          "replyTo",
          "replyToAddresses",
          "rfcInReplyTo",
          "rfcMessageId",
          "rfcReferences",
          "sendWindow",
          "senderChecks",
          "sentAt",
          "simulated",
          "state",
          "subject",
          "testCopy",
          "text",
          "threadId",
          "to",
          "vendorDeliveredAt",
          "vendorFailedAt",
          "vendorReceivedAt",
          "vendorSentAt",
          "via"
        ],
        "type": "object"
      },
      "operation.email.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The email's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.email.get.output": {
        "$ref": "#/components/schemas/Email"
      },
      "operation.email.getOriginal.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The received email's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.email.getOriginal.output": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "description": "When the link stops working.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "filename": {
            "description": "The name the download is saved under.",
            "type": "string"
          },
          "sha256": {
            "description": "The hex SHA-256 of the file's bytes.",
            "type": "string"
          },
          "sizeBytes": {
            "description": "The file's length in bytes.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "url": {
            "description": "A short-lived link that downloads the file (an `.eml`); it never shows it in a browser.",
            "type": "string"
          }
        },
        "required": [
          "expiresAt",
          "filename",
          "sha256",
          "sizeBytes",
          "url"
        ],
        "type": "object"
      },
      "operation.email.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "direction": {
            "description": "Only the sent (`outbound`) or only the received (`inbound`); both when left out.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "reference": {
            "description": "Only the sends with this reference.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "since": {
            "description": "Only the email made at or after this instant, ISO 8601 with an offset.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "state": {
            "description": "Only the email in this state.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          },
          "stopped": {
            "description": "`true`: only the received email a receiving domain's rules stopped (`state: blocked`), uncharged and deleted after 30 days unless you let it through (`POST /email/{id}/release`). Left out: every email but those, unless `state` names `blocked`.",
            "type": "boolean"
          },
          "threadId": {
            "description": "Only the emails of one thread: the `threadId` of any email in it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "until": {
            "description": "Only the email made before this instant, ISO 8601 with an offset.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.email.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Email"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.email.optOuts.create.input": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "The email address.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "allIdentities": {
            "description": "true: every identity of the application, instead of one. Not with `identity`.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "operation.email.optOuts.create.output": {
        "$ref": "#/components/schemas/EmailOptOut"
      },
      "operation.email.optOuts.delete.input": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "The email address.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "allIdentities": {
            "description": "true: every identity of the application, instead of one. Not with `identity`.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "address"
        ],
        "type": "object"
      },
      "operation.email.optOuts.delete.output": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "The address the call named.",
            "type": "string"
          },
          "removed": {
            "description": "false: the address was not on the list (removed before, or never there).",
            "type": "boolean"
          }
        },
        "required": [
          "address",
          "removed"
        ],
        "type": "object"
      },
      "operation.email.optOuts.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "allIdentities": {
            "description": "true: every identity of the application, instead of one. Not with `identity`.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.email.optOuts.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/EmailOptOut"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.email.quote.input": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "The files to attach: each as base64 `content`, or as the `uploadId` of an upload.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "content": {
                  "description": "The file's bytes as base64.",
                  "maxLength": 13981016,
                  "minLength": 1,
                  "type": "string"
                },
                "contentId": {
                  "description": "Shows an image inline in `html` as `cid:<contentId>`.",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9._@-]+$",
                  "type": "string"
                },
                "contentType": {
                  "description": "The file's media type. Left out: read from the ending of `filename`.",
                  "enum": [
                    "application/pdf",
                    "image/png",
                    "image/jpeg",
                    "image/gif",
                    "image/webp",
                    "text/plain",
                    "text/csv",
                    "text/calendar",
                    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                    "application/vnd.openxmlformats-officedocument.presentationml.presentation",
                    "application/vnd.oasis.opendocument.text",
                    "application/vnd.oasis.opendocument.spreadsheet"
                  ],
                  "type": "string"
                },
                "filename": {
                  "description": "The file's name, as the recipient sees it: one line.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "uploadId": {
                  "description": "A file uploaded first (`POST /upload/api/email.attachments.upload`).",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                }
              },
              "required": [
                "filename"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`, on a domain of yours (of `identity` when it names one). Left out: the `defaultFrom` of the domain that is the identity's default for email.",
            "maxLength": 377,
            "minLength": 1,
            "type": "string"
          },
          "html": {
            "description": "An HTML version of the body.",
            "maxLength": 500000,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "inReplyTo": {
            "description": "The id of an email of yours, sent or received, that this one answers: it joins its thread.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "latestSendAt": {
            "description": "After this instant (ISO 8601 with an offset) the email is never sent: it fails with `latest_send_passed` and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "replyTo": {
            "description": "The address a reply goes to.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the email may be sent; outside them it waits for the next opening. Left out: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "subject": {
            "description": "The subject line. With a template it may be left out: the template's title is used.",
            "maxLength": 998,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A template of yours to send instead of `text`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "text": {
            "description": "The plain-text body. Name exactly one of `text` and `templateId`.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "to": {
            "anyOf": [
              {
                "maxLength": 254,
                "minLength": 3,
                "type": "string"
              },
              {
                "items": {
                  "maxLength": 254,
                  "minLength": 3,
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array"
              }
            ],
            "description": "One address, or a list of them."
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places (`{{name}}`), by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.email.quote.output": {
        "additionalProperties": false,
        "properties": {
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "The price of the whole send, excluding VAT: every recipient."
          },
          "recipients": {
            "description": "How many addresses the send names.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "unitPrice": {
            "$ref": "#/components/schemas/Price",
            "description": "The price for one recipient, excluding VAT."
          }
        },
        "required": [
          "price",
          "recipients",
          "unitPrice"
        ],
        "type": "object"
      },
      "operation.email.receiveTest.input": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "The email's files, at most 3, each with its bytes as `contentBase64`; `contentId` marks an image the HTML shows inline. They are stored at once, by the limits of a received email's files.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "contentBase64": {
                  "description": "The file's bytes as base64.",
                  "maxLength": 13981016,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9+/]+={0,2}$",
                  "type": "string"
                },
                "contentId": {
                  "description": "The `Content-ID` of an image the HTML shows inline as `cid:<contentId>`.",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9._@-]+$",
                  "type": "string"
                },
                "contentType": {
                  "description": "The file's type as the email names it (`application/pdf`).",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "filename": {
                  "description": "The file's name.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "contentBase64",
                "filename"
              ],
              "type": "object"
            },
            "maxItems": 3,
            "type": "array"
          },
          "cc": {
            "description": "The copy recipients the email names.",
            "items": {
              "maxLength": 254,
              "minLength": 3,
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "from": {
            "description": "The sender's address.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "fromName": {
            "description": "The name shown beside the sender's address.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The email's own headers, by name (stored in lower case). `auto-submitted: auto-replied` makes it an automatic reply and `x-failed-recipients` a delivery report (`kind`); `in-reply-to` and `references` place it in a thread by `Message-ID`; `message-id` is its own id (Telkit gives it one when left out).",
            "propertyNames": {
              "maxLength": 100,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9!#$%&'*+.^_`|~-]+$",
              "type": "string"
            },
            "type": "object"
          },
          "html": {
            "description": "The HTML body.",
            "maxLength": 500000,
            "type": "string"
          },
          "inReplyTo": {
            "description": "The `messageId` of an email of the profile in test mode that this one answers: it is tied to that email and joins its thread. Use it to answer an email you sent with a test key, which carries no `Message-ID` a header could name.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "replyTo": {
            "description": "The email's `Reply-To` address: where a reply goes.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "senderChecks": {
            "additionalProperties": false,
            "description": "What the receiving server would have found of the sender (SPF, DKIM, DMARC). Each one left out is `pass`. `dmarc: fail` is stopped by a domain that requires DMARC.",
            "properties": {
              "dkim": {
                "description": "The check's result; left out: `pass`.",
                "enum": [
                  "pass",
                  "fail",
                  "inconclusive",
                  "error",
                  "unknown"
                ],
                "type": "string"
              },
              "dmarc": {
                "description": "The check's result; left out: `pass`.",
                "enum": [
                  "pass",
                  "fail",
                  "inconclusive",
                  "error",
                  "unknown"
                ],
                "type": "string"
              },
              "spf": {
                "description": "The check's result; left out: `pass`.",
                "enum": [
                  "pass",
                  "fail",
                  "inconclusive",
                  "error",
                  "unknown"
                ],
                "type": "string"
              }
            },
            "type": "object"
          },
          "subject": {
            "description": "The subject line.",
            "maxLength": 998,
            "type": "string"
          },
          "text": {
            "description": "The plain-text body.",
            "maxLength": 200000,
            "type": "string"
          },
          "to": {
            "description": "The addresses the email came to. Any address is accepted and the email lands in the key's profile. An address on an email domain the profile has (verified or not) meets that domain's block list and DMARC requirement; the day cap does not count test email.",
            "items": {
              "maxLength": 254,
              "minLength": 3,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "from",
          "subject",
          "to"
        ],
        "type": "object"
      },
      "operation.email.receiveTest.output": {
        "additionalProperties": false,
        "properties": {
          "blockedReason": {
            "anyOf": [
              {
                "enum": [
                  "blocked_sender",
                  "dmarc_failed",
                  "day_cap"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why it was stopped; null when it was not."
          },
          "id": {
            "description": "The stored email's id: read it with `GET /email/{id}`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "description": "`received`, or `blocked` when a rule of an email domain the profile has stopped it.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          }
        },
        "required": [
          "blockedReason",
          "id",
          "state"
        ],
        "type": "object"
      },
      "operation.email.release.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The stopped email to let through.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.email.release.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The email's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "state": {
            "description": "`received` once it is let through; `held_for_balance` when the balance could not pay for it (it is received after the next top-up).",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "state"
        ],
        "type": "object"
      },
      "operation.email.reply.body": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "The files to attach: each as base64 `content`, or as the `uploadId` of an upload.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "content": {
                  "description": "The file's bytes as base64.",
                  "maxLength": 13981016,
                  "minLength": 1,
                  "type": "string"
                },
                "contentId": {
                  "description": "Shows an image inline in `html` as `cid:<contentId>`.",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9._@-]+$",
                  "type": "string"
                },
                "contentType": {
                  "description": "The file's media type. Left out: read from the ending of `filename`.",
                  "enum": [
                    "application/pdf",
                    "image/png",
                    "image/jpeg",
                    "image/gif",
                    "image/webp",
                    "text/plain",
                    "text/csv",
                    "text/calendar",
                    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                    "application/vnd.openxmlformats-officedocument.presentationml.presentation",
                    "application/vnd.oasis.opendocument.text",
                    "application/vnd.oasis.opendocument.spreadsheet"
                  ],
                  "type": "string"
                },
                "filename": {
                  "description": "The file's name, as the recipient sees it: one line.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "uploadId": {
                  "description": "A file uploaded first (`POST /upload/api/email.attachments.upload`).",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                }
              },
              "required": [
                "filename"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`. Left out: the address the received email came to.",
            "maxLength": 377,
            "minLength": 1,
            "type": "string"
          },
          "html": {
            "description": "An HTML version of the body.",
            "maxLength": 500000,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "latestSendAt": {
            "description": "After this instant (ISO 8601 with an offset) the email is never sent: it fails with `latest_send_passed` and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "replyTo": {
            "description": "The address a reply goes to.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the email may be sent; outside them it waits for the next opening. Left out: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "subject": {
            "description": "The subject line. Left out: the received email's subject with `Re:` before it, once.",
            "maxLength": 998,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A template of yours to send instead of `text`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "text": {
            "description": "The plain-text body. Name exactly one of `text` and `templateId`.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places (`{{name}}`), by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.email.reply.input": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "The files to attach: each as base64 `content`, or as the `uploadId` of an upload.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "content": {
                  "description": "The file's bytes as base64.",
                  "maxLength": 13981016,
                  "minLength": 1,
                  "type": "string"
                },
                "contentId": {
                  "description": "Shows an image inline in `html` as `cid:<contentId>`.",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9._@-]+$",
                  "type": "string"
                },
                "contentType": {
                  "description": "The file's media type. Left out: read from the ending of `filename`.",
                  "enum": [
                    "application/pdf",
                    "image/png",
                    "image/jpeg",
                    "image/gif",
                    "image/webp",
                    "text/plain",
                    "text/csv",
                    "text/calendar",
                    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                    "application/vnd.openxmlformats-officedocument.presentationml.presentation",
                    "application/vnd.oasis.opendocument.text",
                    "application/vnd.oasis.opendocument.spreadsheet"
                  ],
                  "type": "string"
                },
                "filename": {
                  "description": "The file's name, as the recipient sees it: one line.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "uploadId": {
                  "description": "A file uploaded first (`POST /upload/api/email.attachments.upload`).",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                }
              },
              "required": [
                "filename"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`. Left out: the address the received email came to.",
            "maxLength": 377,
            "minLength": 1,
            "type": "string"
          },
          "html": {
            "description": "An HTML version of the body.",
            "maxLength": 500000,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The received email to answer.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "latestSendAt": {
            "description": "After this instant (ISO 8601 with an offset) the email is never sent: it fails with `latest_send_passed` and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "replyTo": {
            "description": "The address a reply goes to.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the email may be sent; outside them it waits for the next opening. Left out: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "subject": {
            "description": "The subject line. Left out: the received email's subject with `Re:` before it, once.",
            "maxLength": 998,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A template of yours to send instead of `text`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "text": {
            "description": "The plain-text body. Name exactly one of `text` and `templateId`.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places (`{{name}}`), by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.email.reply.output": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "Its files in order: a sent email's, then a received email's.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "contentId": {
                  "description": "The `Content-ID` the HTML shows the file inline by (`cid:<contentId>`).",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "contentType": {
                  "description": "The file's media type (`application/pdf`); `null` when unknown.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "filename": {
                  "description": "The file's name.",
                  "type": "string"
                },
                "id": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "A received file's id: download it with `GET /email/{id}/attachments/{attachmentId}`. null on a sent file."
                },
                "sha256": {
                  "description": "The hex SHA-256 of the stored bytes; null until a received file is stored.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sizeBytes": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "null while a received file is fetched."
                },
                "skipReason": {
                  "anyOf": [
                    {
                      "enum": [
                        "too_many_files",
                        "too_large",
                        "receiving_unsupported",
                        "fetch_failed",
                        "infected",
                        "scan_unavailable"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why a received file was not stored: `too_many_files` or `too_large` (past what one email keeps), `receiving_unsupported` or `fetch_failed` (the file could not be fetched), `infected`, or `scan_unavailable` (it could not be scanned, so it was not stored). `null` unless `state` is `skipped`."
                },
                "state": {
                  "description": "`stored` (a sent file, or a received one ready to download), `pending` while Telkit fetches a received file, `skipped` (see `skipReason`).",
                  "enum": [
                    "pending",
                    "stored",
                    "skipped"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "contentId",
                "contentType",
                "filename",
                "id",
                "sha256",
                "sizeBytes",
                "skipReason",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "bcc": {
            "description": "The blind-copy recipients the email provider reports for a received email (seldom any); empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "blockedReason": {
            "anyOf": [
              {
                "enum": [
                  "blocked_sender",
                  "dmarc_failed",
                  "day_cap"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the receiving domain's rules stopped this received email: `blocked_sender` (its block list), `dmarc_failed` (the domain requires DMARC) or `day_cap` (the domain's day cap was reached). null on an email they never stopped. It stays after the email is let through; `state` says whether it is still stopped."
          },
          "cc": {
            "description": "The copy recipients a received email names; empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When Telkit took the send, or received the email. ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "deliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as delivered; `null` until then."
          },
          "direction": {
            "description": "`outbound`: you sent it. `inbound`: you received it.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "failedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as failed; `null` when it has not."
          },
          "failureReason": {
            "description": "Why it failed, in words; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "`Name <address>`, or the address alone.",
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Every header of a received email, names in lower case; empty on a sent email.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "html": {
            "description": "The HTML body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The email's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "inReplyTo": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "The answered email's id.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own id of the answered email; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email of yours this one answers, with your own reference of it; null when it answers none Telkit holds."
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "person",
                  "automatic",
                  "delivery_report"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What kind of mail a received email is, read from its headers: `person` (someone wrote it), `automatic` (an out-of-office answer or another machine's mail) or `delivery_report` (a bounce). null on a sent email."
          },
          "latestSendAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instant after which the message is never sent, ISO 8601 in UTC; `null` when the send named none."
          },
          "original": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "sha256": {
                    "description": "The hex SHA-256 of the stored bytes; null until stored.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sizeBytes": {
                    "anyOf": [
                      {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The stored length in bytes; null until stored."
                  },
                  "skipReason": {
                    "anyOf": [
                      {
                        "enum": [
                          "too_many_files",
                          "too_large",
                          "receiving_unsupported",
                          "fetch_failed",
                          "infected",
                          "scan_unavailable"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Why the original is not kept; null unless `state` is `skipped`."
                  },
                  "state": {
                    "description": "`pending` while Telkit fetches it from the email provider, `stored` when it can be downloaded, `skipped` when it is not kept (`skipReason`).",
                    "enum": [
                      "pending",
                      "stored",
                      "skipped"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "sha256",
                  "sizeBytes",
                  "skipReason",
                  "state"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The original message file of a received email (an `.eml` with every part as the sender's server gave it): download it with `GET /email/{messageId}/original` once `stored`. null on a sent email."
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What it costs you: the send, or receiving it. Excluding VAT."
          },
          "recipients": {
            "description": "How many addresses it went to.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own id of the send; null when it named none, and on a received email.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyTo": {
            "description": "The address a reply goes to; `null` when it names none.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyToAddresses": {
            "description": "Every `Reply-To` address of a received email; `replyTo` is the first of them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rfcInReplyTo": {
            "description": "The first `Message-ID` a received email's `In-Reply-To` header names; null when none.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcMessageId": {
            "description": "The email's own `Message-ID`, in angle brackets. On a sent email it is the id the mail server gave it, known after its first status event; null until then, and on an email a test key sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcReferences": {
            "description": "The `Message-ID`s of a received email's `References` header, oldest first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sendWindow": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "days": {
                    "description": "The weekdays it is open.",
                    "items": {
                      "enum": [
                        "mon",
                        "tue",
                        "wed",
                        "thu",
                        "fri",
                        "sat",
                        "sun"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "from": {
                    "description": "Local time the window opens, `HH:MM` (24-hour).",
                    "type": "string"
                  },
                  "skipPublicHolidays": {
                    "description": "Whether it is closed on Norway's public holidays.",
                    "type": "boolean"
                  },
                  "timeZone": {
                    "description": "The IANA time zone the times are read in.",
                    "type": "string"
                  },
                  "until": {
                    "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                    "type": "string"
                  }
                },
                "required": [
                  "days",
                  "from",
                  "skipPublicHolidays",
                  "timeZone",
                  "until"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The hours the message may be sent, with every default filled in; `null` when the send named none."
          },
          "senderChecks": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "dkim": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "dmarc": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "spf": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "dkim",
                  "dmarc",
                  "spf"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the receiving mail server found of the sender (SPF, DKIM, DMARC). `dmarc: pass` means the sender's domain is the one in `from`. null on a sent email and when the email provider gave no result."
          },
          "sentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as sent; `null` until then."
          },
          "simulated": {
            "description": "`true`: a test key's email; nothing left Telkit.",
            "type": "boolean"
          },
          "state": {
            "description": "Where it is now. Sent: `queued`, `in_flight` (being handed over), `sent`, `delivered`, then possibly `bounced` or `complained` (the receiving server reports those later); `failed` when it was refused or could not be sent; `uncertain` when Telkit could not learn whether it was taken (it is never sent again); `scheduled` and `cancelled` only on a campaign's email. Received: `held_for_balance` (kept back until your balance pays for receiving it), then `received`; `blocked` when the receiving domain's rules stopped it.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          },
          "subject": {
            "description": "The subject line.",
            "type": "string"
          },
          "testCopy": {
            "description": "`true` when this test-mode send went to the sign-in address of a member of your company, who then also gets a real copy of its subject and text (a few a day).",
            "type": "boolean"
          },
          "text": {
            "description": "The plain-text body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "threadId": {
            "description": "The thread the email is in: `email.list` reads it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The addresses it went to.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendorDeliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the receiving mail server took it, as reported; `null` when no time was given."
          },
          "vendorFailedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it failed, as reported; `null` when no time was given."
          },
          "vendorReceivedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email provider's own time of receipt; `createdAt` is when Telkit stored it."
          },
          "vendorSentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time of the same state as the sending mail server reported it; `null` when it gave none."
          },
          "via": {
            "anyOf": [
              {
                "enum": [
                  "saved_sender",
                  "catch_all"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How a received email found its profile: `saved_sender` (the profile saved the address it came to) or `catch_all` (the profile takes the domain's other addresses). null on a sent email."
          }
        },
        "required": [
          "attachments",
          "bcc",
          "blockedReason",
          "cc",
          "createdAt",
          "deliveredAt",
          "direction",
          "failedAt",
          "failureReason",
          "from",
          "headers",
          "html",
          "id",
          "identity",
          "inReplyTo",
          "kind",
          "latestSendAt",
          "original",
          "price",
          "recipients",
          "reference",
          "replyTo",
          "replyToAddresses",
          "rfcInReplyTo",
          "rfcMessageId",
          "rfcReferences",
          "sendWindow",
          "senderChecks",
          "sentAt",
          "simulated",
          "state",
          "subject",
          "testCopy",
          "text",
          "threadId",
          "to",
          "vendorDeliveredAt",
          "vendorFailedAt",
          "vendorReceivedAt",
          "vendorSentAt",
          "via"
        ],
        "type": "object"
      },
      "operation.email.send.input": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "The files to attach: each as base64 `content`, or as the `uploadId` of an upload.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "content": {
                  "description": "The file's bytes as base64.",
                  "maxLength": 13981016,
                  "minLength": 1,
                  "type": "string"
                },
                "contentId": {
                  "description": "Shows an image inline in `html` as `cid:<contentId>`.",
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9._@-]+$",
                  "type": "string"
                },
                "contentType": {
                  "description": "The file's media type. Left out: read from the ending of `filename`.",
                  "enum": [
                    "application/pdf",
                    "image/png",
                    "image/jpeg",
                    "image/gif",
                    "image/webp",
                    "text/plain",
                    "text/csv",
                    "text/calendar",
                    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
                    "application/vnd.openxmlformats-officedocument.presentationml.presentation",
                    "application/vnd.oasis.opendocument.text",
                    "application/vnd.oasis.opendocument.spreadsheet"
                  ],
                  "type": "string"
                },
                "filename": {
                  "description": "The file's name, as the recipient sees it: one line.",
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                "uploadId": {
                  "description": "A file uploaded first (`POST /upload/api/email.attachments.upload`).",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                }
              },
              "required": [
                "filename"
              ],
              "type": "object"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`, on a domain of yours (of `identity` when it names one). Left out: the `defaultFrom` of the domain that is the identity's default for email.",
            "maxLength": 377,
            "minLength": 1,
            "type": "string"
          },
          "html": {
            "description": "An HTML version of the body.",
            "maxLength": 500000,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "inReplyTo": {
            "description": "The id of an email of yours, sent or received, that this one answers: it joins its thread.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "latestSendAt": {
            "description": "After this instant (ISO 8601 with an offset) the email is never sent: it fails with `latest_send_passed` and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "replyTo": {
            "description": "The address a reply goes to.",
            "maxLength": 254,
            "minLength": 3,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the email may be sent; outside them it waits for the next opening. Left out: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "subject": {
            "description": "The subject line. With a template it may be left out: the template's title is used.",
            "maxLength": 998,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A template of yours to send instead of `text`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "text": {
            "description": "The plain-text body. Name exactly one of `text` and `templateId`.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "to": {
            "anyOf": [
              {
                "maxLength": 254,
                "minLength": 3,
                "type": "string"
              },
              {
                "items": {
                  "maxLength": 254,
                  "minLength": 3,
                  "type": "string"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array"
              }
            ],
            "description": "One address, or a list of them."
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places (`{{name}}`), by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.email.send.output": {
        "additionalProperties": false,
        "properties": {
          "attachments": {
            "description": "Its files in order: a sent email's, then a received email's.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "contentId": {
                  "description": "The `Content-ID` the HTML shows the file inline by (`cid:<contentId>`).",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "contentType": {
                  "description": "The file's media type (`application/pdf`); `null` when unknown.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "filename": {
                  "description": "The file's name.",
                  "type": "string"
                },
                "id": {
                  "anyOf": [
                    {
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "A received file's id: download it with `GET /email/{id}/attachments/{attachmentId}`. null on a sent file."
                },
                "sha256": {
                  "description": "The hex SHA-256 of the stored bytes; null until a received file is stored.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sizeBytes": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "null while a received file is fetched."
                },
                "skipReason": {
                  "anyOf": [
                    {
                      "enum": [
                        "too_many_files",
                        "too_large",
                        "receiving_unsupported",
                        "fetch_failed",
                        "infected",
                        "scan_unavailable"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why a received file was not stored: `too_many_files` or `too_large` (past what one email keeps), `receiving_unsupported` or `fetch_failed` (the file could not be fetched), `infected`, or `scan_unavailable` (it could not be scanned, so it was not stored). `null` unless `state` is `skipped`."
                },
                "state": {
                  "description": "`stored` (a sent file, or a received one ready to download), `pending` while Telkit fetches a received file, `skipped` (see `skipReason`).",
                  "enum": [
                    "pending",
                    "stored",
                    "skipped"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "contentId",
                "contentType",
                "filename",
                "id",
                "sha256",
                "sizeBytes",
                "skipReason",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "bcc": {
            "description": "The blind-copy recipients the email provider reports for a received email (seldom any); empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "blockedReason": {
            "anyOf": [
              {
                "enum": [
                  "blocked_sender",
                  "dmarc_failed",
                  "day_cap"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the receiving domain's rules stopped this received email: `blocked_sender` (its block list), `dmarc_failed` (the domain requires DMARC) or `day_cap` (the domain's day cap was reached). null on an email they never stopped. It stays after the email is let through; `state` says whether it is still stopped."
          },
          "cc": {
            "description": "The copy recipients a received email names; empty on a sent email.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "description": "When Telkit took the send, or received the email. ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "deliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as delivered; `null` until then."
          },
          "direction": {
            "description": "`outbound`: you sent it. `inbound`: you received it.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "failedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as failed; `null` when it has not."
          },
          "failureReason": {
            "description": "Why it failed, in words; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "description": "`Name <address>`, or the address alone.",
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Every header of a received email, names in lower case; empty on a sent email.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "html": {
            "description": "The HTML body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The email's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "inReplyTo": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "The answered email's id.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own id of the answered email; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email of yours this one answers, with your own reference of it; null when it answers none Telkit holds."
          },
          "kind": {
            "anyOf": [
              {
                "enum": [
                  "person",
                  "automatic",
                  "delivery_report"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What kind of mail a received email is, read from its headers: `person` (someone wrote it), `automatic` (an out-of-office answer or another machine's mail) or `delivery_report` (a bounce). null on a sent email."
          },
          "latestSendAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The instant after which the message is never sent, ISO 8601 in UTC; `null` when the send named none."
          },
          "original": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "sha256": {
                    "description": "The hex SHA-256 of the stored bytes; null until stored.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sizeBytes": {
                    "anyOf": [
                      {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The stored length in bytes; null until stored."
                  },
                  "skipReason": {
                    "anyOf": [
                      {
                        "enum": [
                          "too_many_files",
                          "too_large",
                          "receiving_unsupported",
                          "fetch_failed",
                          "infected",
                          "scan_unavailable"
                        ],
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Why the original is not kept; null unless `state` is `skipped`."
                  },
                  "state": {
                    "description": "`pending` while Telkit fetches it from the email provider, `stored` when it can be downloaded, `skipped` when it is not kept (`skipReason`).",
                    "enum": [
                      "pending",
                      "stored",
                      "skipped"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "sha256",
                  "sizeBytes",
                  "skipReason",
                  "state"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The original message file of a received email (an `.eml` with every part as the sender's server gave it): download it with `GET /email/{messageId}/original` once `stored`. null on a sent email."
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What it costs you: the send, or receiving it. Excluding VAT."
          },
          "recipients": {
            "description": "How many addresses it went to.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own id of the send; null when it named none, and on a received email.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyTo": {
            "description": "The address a reply goes to; `null` when it names none.",
            "type": [
              "string",
              "null"
            ]
          },
          "replyToAddresses": {
            "description": "Every `Reply-To` address of a received email; `replyTo` is the first of them.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "rfcInReplyTo": {
            "description": "The first `Message-ID` a received email's `In-Reply-To` header names; null when none.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcMessageId": {
            "description": "The email's own `Message-ID`, in angle brackets. On a sent email it is the id the mail server gave it, known after its first status event; null until then, and on an email a test key sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "rfcReferences": {
            "description": "The `Message-ID`s of a received email's `References` header, oldest first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "sendWindow": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "days": {
                    "description": "The weekdays it is open.",
                    "items": {
                      "enum": [
                        "mon",
                        "tue",
                        "wed",
                        "thu",
                        "fri",
                        "sat",
                        "sun"
                      ],
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "from": {
                    "description": "Local time the window opens, `HH:MM` (24-hour).",
                    "type": "string"
                  },
                  "skipPublicHolidays": {
                    "description": "Whether it is closed on Norway's public holidays.",
                    "type": "boolean"
                  },
                  "timeZone": {
                    "description": "The IANA time zone the times are read in.",
                    "type": "string"
                  },
                  "until": {
                    "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                    "type": "string"
                  }
                },
                "required": [
                  "days",
                  "from",
                  "skipPublicHolidays",
                  "timeZone",
                  "until"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The hours the message may be sent, with every default filled in; `null` when the send named none."
          },
          "senderChecks": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "dkim": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "dmarc": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "spf": {
                    "description": "`pass`, `fail`, `inconclusive` (the check could not decide), `error` (the check itself failed) or `unknown` (not checked).",
                    "enum": [
                      "pass",
                      "fail",
                      "inconclusive",
                      "error",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "dkim",
                  "dmarc",
                  "spf"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the receiving mail server found of the sender (SPF, DKIM, DMARC). `dmarc: pass` means the sender's domain is the one in `from`. null on a sent email and when the email provider gave no result."
          },
          "sentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When Telkit recorded it as sent; `null` until then."
          },
          "simulated": {
            "description": "`true`: a test key's email; nothing left Telkit.",
            "type": "boolean"
          },
          "state": {
            "description": "Where it is now. Sent: `queued`, `in_flight` (being handed over), `sent`, `delivered`, then possibly `bounced` or `complained` (the receiving server reports those later); `failed` when it was refused or could not be sent; `uncertain` when Telkit could not learn whether it was taken (it is never sent again); `scheduled` and `cancelled` only on a campaign's email. Received: `held_for_balance` (kept back until your balance pays for receiving it), then `received`; `blocked` when the receiving domain's rules stopped it.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "bounced",
              "complained",
              "failed",
              "cancelled",
              "held_for_balance",
              "received",
              "blocked"
            ],
            "type": "string"
          },
          "subject": {
            "description": "The subject line.",
            "type": "string"
          },
          "testCopy": {
            "description": "`true` when this test-mode send went to the sign-in address of a member of your company, who then also gets a real copy of its subject and text (a few a day).",
            "type": "boolean"
          },
          "text": {
            "description": "The plain-text body; `null` when there is none.",
            "type": [
              "string",
              "null"
            ]
          },
          "threadId": {
            "description": "The thread the email is in: `email.list` reads it.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "to": {
            "description": "The addresses it went to.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "vendorDeliveredAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the receiving mail server took it, as reported; `null` when no time was given."
          },
          "vendorFailedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it failed, as reported; `null` when no time was given."
          },
          "vendorReceivedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The email provider's own time of receipt; `createdAt` is when Telkit stored it."
          },
          "vendorSentAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The time of the same state as the sending mail server reported it; `null` when it gave none."
          },
          "via": {
            "anyOf": [
              {
                "enum": [
                  "saved_sender",
                  "catch_all"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How a received email found its profile: `saved_sender` (the profile saved the address it came to) or `catch_all` (the profile takes the domain's other addresses). null on a sent email."
          }
        },
        "required": [
          "attachments",
          "bcc",
          "blockedReason",
          "cc",
          "createdAt",
          "deliveredAt",
          "direction",
          "failedAt",
          "failureReason",
          "from",
          "headers",
          "html",
          "id",
          "identity",
          "inReplyTo",
          "kind",
          "latestSendAt",
          "original",
          "price",
          "recipients",
          "reference",
          "replyTo",
          "replyToAddresses",
          "rfcInReplyTo",
          "rfcMessageId",
          "rfcReferences",
          "sendWindow",
          "senderChecks",
          "sentAt",
          "simulated",
          "state",
          "subject",
          "testCopy",
          "text",
          "threadId",
          "to",
          "vendorDeliveredAt",
          "vendorFailedAt",
          "vendorReceivedAt",
          "vendorSentAt",
          "via"
        ],
        "type": "object"
      },
      "operation.events.follow.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "Answer the events after this `position`; left out: from the oldest kept. `events.list`'s `head` is the position «from now».",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "types": {
            "description": "Only these events (`sms.status`); left out: every event.",
            "items": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          }
        },
        "type": "object"
      },
      "operation.events.follow.output": {
        "type": "null"
      },
      "operation.events.follow.part": {
        "$ref": "#/components/schemas/Event"
      },
      "operation.events.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The event's `id`, as a webhook's body and the log carry it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.events.get.output": {
        "$ref": "#/components/schemas/Event"
      },
      "operation.events.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "Answer the events after this `position`; left out: from the oldest kept. `events.list`'s `head` is the position «from now».",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "types": {
            "description": "Only these events (`sms.status`); left out: every event.",
            "items": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          }
        },
        "type": "object"
      },
      "operation.events.list.output": {
        "additionalProperties": false,
        "properties": {
          "head": {
            "description": "The newest position of your log now (0 before the first event): send it as `after` to read or follow only what happens from now on.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "items": {
            "description": "The events after `after`, oldest first.",
            "items": {
              "$ref": "#/components/schemas/Event"
            },
            "type": "array"
          },
          "next": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it as `after` for the next page; `null` when nothing follows yet."
          }
        },
        "required": [
          "head",
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.events.sendTest.input": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "operation.events.sendTest.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The event's id: `events.get` reads it.",
            "type": "string"
          },
          "mode": {
            "description": "The mode the event was sent in: the key's, `test` or `live`.",
            "enum": [
              "live",
              "test"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "mode"
        ],
        "type": "object"
      },
      "operation.identities.archive.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.identities.archive.output": {
        "additionalProperties": false,
        "properties": {
          "archivedAt": {
            "description": "When it was archived, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "ended": {
            "description": "How many of its numbers and senders ended.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "id": {
            "description": "Telkit's id of the archived identity.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "reference": {
            "description": "The reference it had, free for another identity from now on; `null` when it had none.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "archivedAt",
          "ended",
          "id",
          "reference"
        ],
        "type": "object"
      },
      "operation.identities.create.input": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "additionalProperties": false,
            "description": "Outside Norway: the address in the register. In Norway the register's is used.",
            "properties": {
              "city": {
                "description": "The city.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "lines": {
                "description": "The street address, a line at a time.",
                "items": {
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 3,
                "minItems": 1,
                "type": "array"
              },
              "postalCode": {
                "description": "The postal code.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "lines"
            ],
            "type": "object"
          },
          "country": {
            "description": "The country of the business register, ISO 3166-1 alpha-2. Accepted today: NO.",
            "pattern": "^[A-Z]{2}$",
            "type": "string"
          },
          "displayName": {
            "description": "The name your customers see; the register's name when left out.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "legalName": {
            "description": "Outside Norway: the name in the register. In Norway the register's is used.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "reference": {
            "description": "Your own id for the business, unique among your identities. Any text but `self` and the shape of Telkit's ids (a UUID).",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "registrationNumber": {
            "description": "The number in the business register; in Norway the organization number.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "signatory": {
            "additionalProperties": false,
            "description": "Who signs for the business: the contact Telkit and the number carriers ask for. `phone` in E.164.",
            "properties": {
              "email": {
                "description": "The signatory's email address.",
                "format": "email",
                "maxLength": 254,
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "type": "string"
              },
              "name": {
                "description": "The signatory's full name.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "phone": {
                "description": "The signatory's phone number, E.164: `+4791234567`.",
                "pattern": "^\\+[1-9]\\d{6,14}$",
                "type": "string"
              },
              "role": {
                "description": "The signatory's role in the business, for example its general manager.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "required": [
          "country",
          "registrationNumber"
        ],
        "type": "object"
      },
      "operation.identities.create.output": {
        "$ref": "#/components/schemas/Identity"
      },
      "operation.identities.documents.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The document's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "identity"
        ],
        "type": "object"
      },
      "operation.identities.documents.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "const": true,
            "description": "Always `true`: the document is gone.",
            "type": "boolean"
          },
          "id": {
            "description": "The deleted document's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "deleted",
          "id"
        ],
        "type": "object"
      },
      "operation.identities.get.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.identities.get.output": {
        "$ref": "#/components/schemas/Identity"
      },
      "operation.identities.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "country": {
            "description": "The country of the business register, ISO 3166-1 alpha-2. Accepted today: NO.",
            "pattern": "^[A-Z]{2}$",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "reference": {
            "description": "Only the identity with this reference.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "search": {
            "description": "Digits: the registration number's start; other text: the names and the city.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "description": "Only the identities in this state.",
            "enum": [
              "draft",
              "submitted",
              "approved",
              "rejected",
              "suspended"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.identities.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Identity"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.identities.lookup.input": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The country of the business register, ISO 3166-1 alpha-2. Accepted today: NO.",
            "pattern": "^[A-Z]{2}$",
            "type": "string"
          },
          "registrationNumber": {
            "description": "The number in the business register; in Norway the organization number.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "country",
          "registrationNumber"
        ],
        "type": "object"
      },
      "operation.identities.lookup.output": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "additionalProperties": false,
            "description": "The address in the business register.",
            "properties": {
              "city": {
                "description": "The city; `null` when the register has none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "description": "The address's country, ISO 3166-1 alpha-2; `null` when the register has none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "lines": {
                "description": "The street address; empty when the register has none.",
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "postalCode": {
                "description": "The postal code; `null` when the register has none.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "city",
              "country",
              "lines",
              "postalCode"
            ],
            "type": "object"
          },
          "country": {
            "description": "The country of the business register, ISO 3166-1 alpha-2.",
            "type": "string"
          },
          "dissolved": {
            "description": "Deleted, bankrupt or being wound up: it cannot be created.",
            "type": "boolean"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of that identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own id for it; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The identity you have for it already, else `null`."
          },
          "legalName": {
            "description": "The name in the business register.",
            "type": "string"
          },
          "own": {
            "description": "It is your own company.",
            "type": "boolean"
          },
          "registrationNumber": {
            "description": "The number as the register writes it.",
            "type": "string"
          }
        },
        "required": [
          "address",
          "country",
          "dissolved",
          "identity",
          "legalName",
          "own",
          "registrationNumber"
        ],
        "type": "object"
      },
      "operation.identities.setLimit.body": {
        "additionalProperties": false,
        "properties": {
          "dayLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most in an Oslo day, excluding VAT; `null` or left out: none."
          },
          "monthLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends may cost in an Oslo month, excluding VAT; `null`: none."
          }
        },
        "required": [
          "monthLimit"
        ],
        "type": "object"
      },
      "operation.identities.setLimit.input": {
        "additionalProperties": false,
        "properties": {
          "dayLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most in an Oslo day, excluding VAT; `null` or left out: none."
          },
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "monthLimit": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "amount": {
                    "description": "In the currency's smallest unit: 69 is 0,69 kr.",
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "currency": {
                    "description": "The currency, ISO 4217.",
                    "enum": [
                      "NOK"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends may cost in an Oslo month, excluding VAT; `null`: none."
          }
        },
        "required": [
          "identity",
          "monthLimit"
        ],
        "type": "object"
      },
      "operation.identities.setLimit.output": {
        "additionalProperties": false,
        "properties": {
          "day": {
            "description": "The Oslo date `YYYY-MM-DD` that `daySpent` covers.",
            "type": "string"
          },
          "dayLimit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends may cost in an Oslo day, excluding VAT; `null`: no limit."
          },
          "daySpent": {
            "$ref": "#/components/schemas/Price",
            "description": "What its sends cost so far this day, excluding VAT."
          },
          "month": {
            "description": "The Oslo month `YYYY-MM` that `monthSpent` covers.",
            "type": "string"
          },
          "monthLimit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "The most its sends may cost in an Oslo month, excluding VAT; `null`: no limit."
          },
          "monthSpent": {
            "$ref": "#/components/schemas/Price",
            "description": "What its sends cost so far this month, excluding VAT."
          }
        },
        "required": [
          "day",
          "dayLimit",
          "daySpent",
          "month",
          "monthLimit",
          "monthSpent"
        ],
        "type": "object"
      },
      "operation.identities.submit.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.identities.submit.output": {
        "$ref": "#/components/schemas/Identity"
      },
      "operation.identities.update.body": {
        "additionalProperties": false,
        "properties": {
          "displayName": {
            "description": "The name your customers see. Left out: unchanged.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "reference": {
            "anyOf": [
              {
                "description": "Your own id for the business, unique among your identities. Any text but `self` and the shape of Telkit's ids (a UUID).",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` takes it away."
          },
          "signatory": {
            "additionalProperties": false,
            "description": "Changed only while it is a `draft` or `rejected`.",
            "properties": {
              "email": {
                "description": "The signatory's email address.",
                "format": "email",
                "maxLength": 254,
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "type": "string"
              },
              "name": {
                "description": "The signatory's full name.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "phone": {
                "description": "The signatory's phone number, E.164: `+4791234567`.",
                "pattern": "^\\+[1-9]\\d{6,14}$",
                "type": "string"
              },
              "role": {
                "description": "The signatory's role in the business, for example its general manager.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.identities.update.input": {
        "additionalProperties": false,
        "properties": {
          "displayName": {
            "description": "The name your customers see. Left out: unchanged.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "reference": {
            "anyOf": [
              {
                "description": "Your own id for the business, unique among your identities. Any text but `self` and the shape of Telkit's ids (a UUID).",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null` takes it away."
          },
          "signatory": {
            "additionalProperties": false,
            "description": "Changed only while it is a `draft` or `rejected`.",
            "properties": {
              "email": {
                "description": "The signatory's email address.",
                "format": "email",
                "maxLength": 254,
                "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
                "type": "string"
              },
              "name": {
                "description": "The signatory's full name.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "phone": {
                "description": "The signatory's phone number, E.164: `+4791234567`.",
                "pattern": "^\\+[1-9]\\d{6,14}$",
                "type": "string"
              },
              "role": {
                "description": "The signatory's role in the business, for example its general manager.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.identities.update.output": {
        "$ref": "#/components/schemas/Identity"
      },
      "operation.identities.withdraw.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.identities.withdraw.output": {
        "$ref": "#/components/schemas/Identity"
      },
      "operation.letters.accounts.check.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.letters.accounts.check.output": {
        "$ref": "#/components/schemas/LetterAccount"
      },
      "operation.letters.accounts.connect.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.letters.accounts.connect.output": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "description": "Until when Telkit checks the connection, ISO 8601 in UTC; after it, connect again.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "url": {
            "description": "Digipost's registration page for the business's organization number. Give it to the person who signs for the business.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "expiresAt",
          "url"
        ],
        "type": "object"
      },
      "operation.letters.accounts.get.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.letters.accounts.get.output": {
        "$ref": "#/components/schemas/LetterAccount"
      },
      "operation.letters.checkRecipient.input": {
        "additionalProperties": false,
        "properties": {
          "to": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "nationalId": {
                    "description": "A Norwegian national identity number, 11 digits.",
                    "type": "string"
                  }
                },
                "required": [
                  "nationalId"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "city": {
                    "description": "The city.",
                    "maxLength": 80,
                    "minLength": 1,
                    "type": "string"
                  },
                  "lines": {
                    "description": "The address lines above the postal code: the street.",
                    "items": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string"
                    },
                    "maxItems": 2,
                    "minItems": 1,
                    "type": "array"
                  },
                  "name": {
                    "description": "The recipient's name.",
                    "maxLength": 130,
                    "minLength": 1,
                    "type": "string"
                  },
                  "postalCode": {
                    "description": "The postal code.",
                    "maxLength": 10,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "city",
                  "lines",
                  "name",
                  "postalCode"
                ],
                "type": "object"
              }
            ],
            "description": "A national id, or a name with a Norwegian postal address."
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.letters.checkRecipient.output": {
        "additionalProperties": false,
        "properties": {
          "reach": {
            "description": "`has_mailbox`: a digital mailbox was found; `identified`: known without a mailbox, so only paper reaches them; `unidentified`: not known.",
            "enum": [
              "has_mailbox",
              "identified",
              "unidentified"
            ],
            "type": "string"
          }
        },
        "required": [
          "reach"
        ],
        "type": "object"
      },
      "operation.letters.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The letter's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.letters.get.output": {
        "$ref": "#/components/schemas/Letter"
      },
      "operation.letters.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "reference": {
            "description": "Only the letters with this reference.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "since": {
            "description": "Only the letters made at or after this instant, ISO 8601 with an offset.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "state": {
            "description": "Only the letters in this state.",
            "enum": [
              "queued",
              "in_flight",
              "uncertain",
              "printing",
              "delivered",
              "posted",
              "failed"
            ],
            "type": "string"
          },
          "until": {
            "description": "Only the letters made before this instant, ISO 8601 with an offset.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.letters.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Letter"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.letters.quote.input": {
        "additionalProperties": false,
        "properties": {
          "colour": {
            "description": "Print in colour (paper only).",
            "type": "boolean"
          },
          "delivery": {
            "description": "`digital_or_paper` (when left out: a Digipost mailbox, else paper), `digital_only` (no mailbox: not delivered, nothing charged) or `paper_only`.",
            "enum": [
              "digital_or_paper",
              "digital_only",
              "paper_only"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "latestSendAt": {
            "description": "After this instant the message is never sent: it fails with latest_send_passed and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "pdf": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "contentBase64": {
                    "description": "The PDF's bytes as base64.",
                    "maxLength": 10666668,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "contentBase64"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "uploadId": {
                    "description": "The upload id of a PDF uploaded first.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "uploadId"
                ],
                "type": "object"
              }
            ],
            "description": "Your own PDF: its bytes as `contentBase64`, or the `uploadId` of a PDF uploaded through the upload door (`letters.uploadPdf`)."
          },
          "pdfLayout": {
            "description": "How your own PDF is placed: `fitted` (when left out; every page beside a blank 15 mm strip) or `as_is` (the bytes unchanged; you keep Digipost's barcode area free).",
            "enum": [
              "fitted",
              "as_is"
            ],
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the message may be sent; outside them it waits for the next opening. Omitted: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "subject": {
            "description": "Shown in the mailbox, and the heading of a text letter; a template's title when left out.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A letters template in place of `pdf` or `text`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "text": {
            "description": "A text Telkit sets under your letterhead, with `subject` as its heading.",
            "maxLength": 20000,
            "minLength": 1,
            "type": "string"
          },
          "to": {
            "additionalProperties": false,
            "description": "Who gets the letter: `name` with a postal address (`lines`, `postalCode`, `city`, and `country` when it is not Norway), or with a `nationalId` or a `registrationNumber` (a Norwegian organisation number). A letter by id may leave the whole address out only with `delivery: digital_only`.",
            "properties": {
              "city": {
                "description": "The city.",
                "maxLength": 80,
                "minLength": 1,
                "type": "string"
              },
              "country": {
                "description": "ISO 3166-1 alpha-2 of the address; Norway when left out.",
                "pattern": "^[A-Z]{2}$",
                "type": "string"
              },
              "lines": {
                "description": "The address lines above the postal code: the street.",
                "items": {
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 2,
                "minItems": 1,
                "type": "array"
              },
              "name": {
                "description": "The recipient's name.",
                "maxLength": 130,
                "minLength": 1,
                "type": "string"
              },
              "nationalId": {
                "description": "The recipient's Norwegian national identity number (11 digits), to reach their digital mailbox.",
                "type": "string"
              },
              "postalCode": {
                "description": "The postal code.",
                "maxLength": 10,
                "minLength": 1,
                "type": "string"
              },
              "registrationNumber": {
                "description": "The recipient's Norwegian organisation number (9 digits), to reach its digital mailbox. Not with `nationalId`.",
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places (`{{name}}`), by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.letters.quote.output": {
        "additionalProperties": false,
        "properties": {
          "digital": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "The price when it goes to a digital mailbox, excluding VAT; `null` for a letter that cannot go to one."
          },
          "pages": {
            "description": "The pages of the letter's PDF.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "paper": {
            "$ref": "#/components/schemas/Price",
            "description": "The price when it goes on paper, excluding VAT."
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What the send would hold, excluding VAT."
          },
          "sheets": {
            "description": "Printed sheets, the cover sheet included.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "digital",
          "pages",
          "paper",
          "price",
          "sheets"
        ],
        "type": "object"
      },
      "operation.letters.send.input": {
        "additionalProperties": false,
        "properties": {
          "colour": {
            "description": "Print in colour (paper only).",
            "type": "boolean"
          },
          "delivery": {
            "description": "`digital_or_paper` (when left out: a Digipost mailbox, else paper), `digital_only` (no mailbox: not delivered, nothing charged) or `paper_only`.",
            "enum": [
              "digital_or_paper",
              "digital_only",
              "paper_only"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "latestSendAt": {
            "description": "After this instant the message is never sent: it fails with latest_send_passed and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "pdf": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "contentBase64": {
                    "description": "The PDF's bytes as base64.",
                    "maxLength": 10666668,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "contentBase64"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "uploadId": {
                    "description": "The upload id of a PDF uploaded first.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "uploadId"
                ],
                "type": "object"
              }
            ],
            "description": "Your own PDF: its bytes as `contentBase64`, or the `uploadId` of a PDF uploaded through the upload door (`letters.uploadPdf`)."
          },
          "pdfLayout": {
            "description": "How your own PDF is placed: `fitted` (when left out; every page beside a blank 15 mm strip) or `as_is` (the bytes unchanged; you keep Digipost's barcode area free).",
            "enum": [
              "fitted",
              "as_is"
            ],
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case). It comes back as `reference` in the answer, in every read and in every status event. Not unique: the same reference can be used again.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the message may be sent; outside them it waits for the next opening. Omitted: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "subject": {
            "description": "Shown in the mailbox, and the heading of a text letter; a template's title when left out.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A letters template in place of `pdf` or `text`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "text": {
            "description": "A text Telkit sets under your letterhead, with `subject` as its heading.",
            "maxLength": 20000,
            "minLength": 1,
            "type": "string"
          },
          "to": {
            "additionalProperties": false,
            "description": "Who gets the letter: `name` with a postal address (`lines`, `postalCode`, `city`, and `country` when it is not Norway), or with a `nationalId` or a `registrationNumber` (a Norwegian organisation number). A letter by id may leave the whole address out only with `delivery: digital_only`.",
            "properties": {
              "city": {
                "description": "The city.",
                "maxLength": 80,
                "minLength": 1,
                "type": "string"
              },
              "country": {
                "description": "ISO 3166-1 alpha-2 of the address; Norway when left out.",
                "pattern": "^[A-Z]{2}$",
                "type": "string"
              },
              "lines": {
                "description": "The address lines above the postal code: the street.",
                "items": {
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 2,
                "minItems": 1,
                "type": "array"
              },
              "name": {
                "description": "The recipient's name.",
                "maxLength": 130,
                "minLength": 1,
                "type": "string"
              },
              "nationalId": {
                "description": "The recipient's Norwegian national identity number (11 digits), to reach their digital mailbox.",
                "type": "string"
              },
              "postalCode": {
                "description": "The postal code.",
                "maxLength": 10,
                "minLength": 1,
                "type": "string"
              },
              "registrationNumber": {
                "description": "The recipient's Norwegian organisation number (9 digits), to reach its digital mailbox. Not with `nationalId`.",
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places (`{{name}}`), by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.letters.send.output": {
        "$ref": "#/components/schemas/Letter"
      },
      "operation.letters.senders.get.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.letters.senders.get.output": {
        "$ref": "#/components/schemas/LetterSender"
      },
      "operation.letters.senders.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.letters.senders.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/LetterSender"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.letters.senders.set.body": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "additionalProperties": false,
            "description": "The return address the letters carry; for a Norwegian business the register's business address when left out.",
            "properties": {
              "city": {
                "description": "The city.",
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              "lines": {
                "description": "The address lines above the postal code, at most 3.",
                "items": {
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 3,
                "type": "array"
              },
              "postalCode": {
                "description": "The postal code.",
                "maxLength": 16,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "city",
              "lines",
              "postalCode"
            ],
            "type": "object"
          },
          "logo": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "uploadId": {
                    "description": "The upload id of the uploaded logo.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "uploadId"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "A PNG or JPEG uploaded through the upload door (`letters.senders.uploadLogo`); `null` removes the logo, left out keeps it."
          },
          "name": {
            "description": "The name the letters carry; the register's name when left out.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.letters.senders.set.input": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "additionalProperties": false,
            "description": "The return address the letters carry; for a Norwegian business the register's business address when left out.",
            "properties": {
              "city": {
                "description": "The city.",
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              "lines": {
                "description": "The address lines above the postal code, at most 3.",
                "items": {
                  "maxLength": 100,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 3,
                "type": "array"
              },
              "postalCode": {
                "description": "The postal code.",
                "maxLength": 16,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "city",
              "lines",
              "postalCode"
            ],
            "type": "object"
          },
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "logo": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "uploadId": {
                    "description": "The upload id of the uploaded logo.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  }
                },
                "required": [
                  "uploadId"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "A PNG or JPEG uploaded through the upload door (`letters.senders.uploadLogo`); `null` removes the logo, left out keeps it."
          },
          "name": {
            "description": "The name the letters carry; the register's name when left out.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "identity"
        ],
        "type": "object"
      },
      "operation.letters.senders.set.output": {
        "$ref": "#/components/schemas/LetterSender"
      },
      "operation.numbers.get.input": {
        "additionalProperties": false,
        "properties": {
          "number": {
            "description": "The number in E.164 (`+4755000000`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "operation.numbers.get.output": {
        "$ref": "#/components/schemas/Number"
      },
      "operation.numbers.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "capability": {
            "description": "Only numbers that can do it: take calls (`calls`) or send SMS (`sms`).",
            "enum": [
              "calls",
              "sms"
            ],
            "type": "string"
          },
          "country": {
            "description": "Only numbers of this country, as a two-letter ISO 3166-1 code (`NO`).",
            "enum": [
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IE",
              "IT",
              "LV",
              "LT",
              "LU",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "NO",
              "IS",
              "LI",
              "CH",
              "GB",
              "US"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "state": {
            "description": "Only numbers in this state: `pending`, `active`, `rejected` or `ended`. Left out: every state.",
            "enum": [
              "pending",
              "active",
              "rejected",
              "ended"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.numbers.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Number"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.numbers.lookup.input": {
        "additionalProperties": false,
        "properties": {
          "number": {
            "description": "The number to read, as a person would type it; a number without a country code is read as Norwegian. One that is no phone number answers `recipient_invalid`.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "operation.numbers.lookup.output": {
        "additionalProperties": false,
        "properties": {
          "call": {
            "additionalProperties": false,
            "description": "Whether a call to the number would pass, and what a minute costs.",
            "properties": {
              "allowed": {
                "description": "`true`: it would pass the destination checks now.",
                "type": "boolean"
              },
              "price": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Price"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "One started minute to this number, as a call now would be priced; `null` when a call there has no price."
              },
              "refusal": {
                "description": "The error code it would answer (a destination code or a price code); `null` when it passes.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "allowed",
              "price",
              "refusal"
            ],
            "type": "object"
          },
          "country": {
            "description": "The number's country, as a two-letter ISO 3166-1 code (`NO`).",
            "type": "string"
          },
          "lineType": {
            "description": "The kind of line (`mobile`, `fixed-line`, `toll-free`, `premium-rate`, `voip` and more); `null` when the number does not tell.",
            "type": [
              "string",
              "null"
            ]
          },
          "number": {
            "description": "The number in E.164.",
            "type": "string"
          },
          "sms": {
            "additionalProperties": false,
            "description": "Whether an SMS to the number would pass.",
            "properties": {
              "allowed": {
                "description": "`true`: it would pass the destination checks now.",
                "type": "boolean"
              },
              "refusal": {
                "description": "The error code it would answer (a destination code or a price code); `null` when it passes.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "allowed",
              "refusal"
            ],
            "type": "object"
          }
        },
        "required": [
          "call",
          "country",
          "lineType",
          "number",
          "sms"
        ],
        "type": "object"
      },
      "operation.numbers.order.input": {
        "additionalProperties": false,
        "properties": {
          "area": {
            "description": "An area from `numbers.search`; a number for calls needs one.",
            "pattern": "^[0-9]{1,8}$",
            "type": "string"
          },
          "capability": {
            "description": "`calls` (the default): a number that takes and makes calls. `sms`: a Norwegian 8-digit SMS number.",
            "enum": [
              "calls",
              "sms"
            ],
            "type": "string"
          },
          "country": {
            "description": "The number's country, as a two-letter ISO 3166-1 code (`NO`). An SMS number is sold in Norway only.",
            "enum": [
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IE",
              "IT",
              "LV",
              "LT",
              "LU",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "NO",
              "IS",
              "LI",
              "CH",
              "GB",
              "US"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "person": {
            "additionalProperties": false,
            "description": "Who uses the number («Ola Nilsen», «Selger»).",
            "properties": {
              "name": {
                "description": "The person's name («Ola Nilsen»).",
                "maxLength": 100,
                "minLength": 1,
                "type": "string"
              },
              "role": {
                "description": "The person's role («Selger»).",
                "maxLength": 60,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object"
          }
        },
        "required": [
          "country"
        ],
        "type": "object"
      },
      "operation.numbers.order.output": {
        "$ref": "#/components/schemas/Number"
      },
      "operation.numbers.release.input": {
        "additionalProperties": false,
        "properties": {
          "number": {
            "description": "The number in E.164 (`+4755000000`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "operation.numbers.release.output": {
        "$ref": "#/components/schemas/Number"
      },
      "operation.numbers.requestAbroad.input": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The country you want a number in, as a two-letter ISO 3166-1 code (`SE`). A country where numbers are sold answers `number_country_sold`: order there with `numbers.order`.",
            "enum": [
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IE",
              "IT",
              "LV",
              "LT",
              "LU",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "NO",
              "IS",
              "LI",
              "CH",
              "GB",
              "US"
            ],
            "type": "string"
          },
          "note": {
            "description": "What you need the number for, in your own words.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "country"
        ],
        "type": "object"
      },
      "operation.numbers.requestAbroad.output": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The country asked for, as a two-letter ISO 3166-1 code.",
            "enum": [
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IE",
              "IT",
              "LV",
              "LT",
              "LU",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "NO",
              "IS",
              "LI",
              "CH",
              "GB",
              "US"
            ],
            "type": "string"
          },
          "created": {
            "description": "`false`: you had asked for this country already.",
            "type": "boolean"
          },
          "createdAt": {
            "description": "When the request was first made, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The request's id. It is not a number's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "country",
          "created",
          "createdAt",
          "id"
        ],
        "type": "object"
      },
      "operation.numbers.requestFreephone.input": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The freephone number's country, as a two-letter ISO 3166-1 code (`NO`).",
            "enum": [
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IE",
              "IT",
              "LV",
              "LT",
              "LU",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "NO",
              "IS",
              "LI",
              "CH",
              "GB",
              "US"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "note": {
            "description": "What you need the number for, in your own words.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "country"
        ],
        "type": "object"
      },
      "operation.numbers.requestFreephone.output": {
        "$ref": "#/components/schemas/Number"
      },
      "operation.numbers.search.input": {
        "additionalProperties": false,
        "properties": {
          "capability": {
            "description": "`calls` (the default): the areas a number for calls is sold in. `sms`: the SMS number.",
            "enum": [
              "calls",
              "sms"
            ],
            "type": "string"
          },
          "country": {
            "description": "The country to order in, as a two-letter ISO 3166-1 code (`NO`).",
            "enum": [
              "AT",
              "BE",
              "BG",
              "HR",
              "CY",
              "CZ",
              "DK",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IE",
              "IT",
              "LV",
              "LT",
              "LU",
              "MT",
              "NL",
              "PL",
              "PT",
              "RO",
              "SK",
              "SI",
              "ES",
              "SE",
              "NO",
              "IS",
              "LI",
              "CH",
              "GB",
              "US"
            ],
            "type": "string"
          }
        },
        "required": [
          "country"
        ],
        "type": "object"
      },
      "operation.numbers.search.output": {
        "additionalProperties": false,
        "properties": {
          "available": {
            "description": "`false`: the areas could not be read just now; try again. Where Telkit sells no numbers, `items` is empty.",
            "type": "boolean"
          },
          "items": {
            "description": "What can be ordered: one item per area for calls, or the one SMS number. All of them in one answer; the list has no pages.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "area": {
                  "description": "Order with it as `area`; `null` for an SMS number.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "callingCode": {
                  "description": "The country's calling code, digits without the plus (`47`).",
                  "type": "string"
                },
                "capabilities": {
                  "additionalProperties": false,
                  "description": "What the number can do. A Norwegian number for calls sends no SMS, and a Norwegian SMS number takes no calls.",
                  "properties": {
                    "calls": {
                      "additionalProperties": false,
                      "description": "The calls it carries.",
                      "properties": {
                        "inbound": {
                          "description": "`true`: it takes calls.",
                          "type": "boolean"
                        },
                        "outbound": {
                          "description": "`true`: a call can be made from it.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "inbound",
                        "outbound"
                      ],
                      "type": "object"
                    },
                    "sms": {
                      "additionalProperties": false,
                      "description": "The SMS it carries.",
                      "properties": {
                        "inbound": {
                          "description": "`true`: an SMS sent to it reaches Telkit.",
                          "type": "boolean"
                        },
                        "outbound": {
                          "description": "The countries an SMS from it reaches; empty: it sends no SMS.",
                          "items": {
                            "enum": [
                              "AT",
                              "BE",
                              "BG",
                              "HR",
                              "CY",
                              "CZ",
                              "DK",
                              "EE",
                              "FI",
                              "FR",
                              "DE",
                              "GR",
                              "HU",
                              "IE",
                              "IT",
                              "LV",
                              "LT",
                              "LU",
                              "MT",
                              "NL",
                              "PL",
                              "PT",
                              "RO",
                              "SK",
                              "SI",
                              "ES",
                              "SE",
                              "NO",
                              "IS",
                              "LI",
                              "CH",
                              "GB",
                              "US"
                            ],
                            "type": "string"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "inbound",
                        "outbound"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "calls",
                    "sms"
                  ],
                  "type": "object"
                },
                "name": {
                  "description": "The area's name (a city or a region); `null` for an SMS number.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "registrationRequired": {
                  "description": "Telkit registers your company's address before the number takes calls.",
                  "type": "boolean"
                }
              },
              "required": [
                "area",
                "callingCode",
                "capabilities",
                "name",
                "registrationRequired"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "available",
          "items"
        ],
        "type": "object"
      },
      "operation.numbers.update.body": {
        "additionalProperties": false,
        "properties": {
          "assignedTo": {
            "anyOf": [
              {
                "maxLength": 80,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The seller it belongs to in your own system; `null` clears it."
          },
          "defaultFor": {
            "description": "Make it its identity's default for these (`calls`, `sms`). To move a default, set it on another number.",
            "items": {
              "enum": [
                "calls",
                "sms"
              ],
              "type": "string"
            },
            "maxItems": 2,
            "type": "array"
          },
          "person": {
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "Who uses the number («Ola Nilsen», «Selger»).",
                "properties": {
                  "name": {
                    "description": "The person's name («Ola Nilsen»).",
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "role": {
                    "description": "The person's role («Selger»).",
                    "maxLength": 60,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who uses the number («Ola Nilsen», «Selger»); `null` clears it."
          },
          "route": {
            "additionalProperties": false,
            "description": "What an inbound call to the number does. The whole route is replaced: a field left out takes its default, not the value it had.",
            "properties": {
              "decideSeconds": {
                "description": "How many seconds a `webhook` route waits for your answer to `call.incoming` before `fallback`: 5 to 60. Left out: 20.",
                "maximum": 60,
                "minimum": 5,
                "type": "integer"
              },
              "fallback": {
                "description": "What a `webhook` route does when no answer came in time: `message` (the caller hears Telkit's message) or `forward` (the call goes to `forwardTo`). Left out: `message`.",
                "enum": [
                  "message",
                  "forward"
                ],
                "type": "string"
              },
              "flowId": {
                "description": "The call flow a `flow` route runs: a published flow of your application, else `inbound_flow_not_found`.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "forwardTo": {
                "description": "The number to dial, in E.164. Needed by a `forward` route and by a `webhook` route whose `fallback` is `forward`; it passes the same checks as the `to` of a call you start.",
                "maxLength": 40,
                "minLength": 1,
                "type": "string"
              },
              "target": {
                "description": "`none`: the caller hears Telkit's message; `webhook`: your answer to `call.incoming` decides; `forward`: the call goes to `forwardTo`; `flow`: the call flow `flowId` runs.",
                "enum": [
                  "none",
                  "webhook",
                  "forward",
                  "flow"
                ],
                "type": "string"
              }
            },
            "required": [
              "target"
            ],
            "type": "object"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.numbers.update.input": {
        "additionalProperties": false,
        "properties": {
          "assignedTo": {
            "anyOf": [
              {
                "maxLength": 80,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The seller it belongs to in your own system; `null` clears it."
          },
          "defaultFor": {
            "description": "Make it its identity's default for these (`calls`, `sms`). To move a default, set it on another number.",
            "items": {
              "enum": [
                "calls",
                "sms"
              ],
              "type": "string"
            },
            "maxItems": 2,
            "type": "array"
          },
          "number": {
            "description": "The number in E.164 (`+4755000000`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "person": {
            "anyOf": [
              {
                "additionalProperties": false,
                "description": "Who uses the number («Ola Nilsen», «Selger»).",
                "properties": {
                  "name": {
                    "description": "The person's name («Ola Nilsen»).",
                    "maxLength": 100,
                    "minLength": 1,
                    "type": "string"
                  },
                  "role": {
                    "description": "The person's role («Selger»).",
                    "maxLength": 60,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "name"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Who uses the number («Ola Nilsen», «Selger»); `null` clears it."
          },
          "route": {
            "additionalProperties": false,
            "description": "What an inbound call to the number does. The whole route is replaced: a field left out takes its default, not the value it had.",
            "properties": {
              "decideSeconds": {
                "description": "How many seconds a `webhook` route waits for your answer to `call.incoming` before `fallback`: 5 to 60. Left out: 20.",
                "maximum": 60,
                "minimum": 5,
                "type": "integer"
              },
              "fallback": {
                "description": "What a `webhook` route does when no answer came in time: `message` (the caller hears Telkit's message) or `forward` (the call goes to `forwardTo`). Left out: `message`.",
                "enum": [
                  "message",
                  "forward"
                ],
                "type": "string"
              },
              "flowId": {
                "description": "The call flow a `flow` route runs: a published flow of your application, else `inbound_flow_not_found`.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "forwardTo": {
                "description": "The number to dial, in E.164. Needed by a `forward` route and by a `webhook` route whose `fallback` is `forward`; it passes the same checks as the `to` of a call you start.",
                "maxLength": 40,
                "minLength": 1,
                "type": "string"
              },
              "target": {
                "description": "`none`: the caller hears Telkit's message; `webhook`: your answer to `call.incoming` decides; `forward`: the call goes to `forwardTo`; `flow`: the call flow `flowId` runs.",
                "enum": [
                  "none",
                  "webhook",
                  "forward",
                  "flow"
                ],
                "type": "string"
              }
            },
            "required": [
              "target"
            ],
            "type": "object"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "operation.numbers.update.output": {
        "$ref": "#/components/schemas/Number"
      },
      "operation.sms.cancel.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The SMS's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.sms.cancel.output": {
        "$ref": "#/components/schemas/Sms"
      },
      "operation.sms.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The SMS's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.sms.get.output": {
        "$ref": "#/components/schemas/Sms"
      },
      "operation.sms.getThread.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "number": {
            "description": "The other phone's number, for example `+4791234567`.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "operation.sms.getThread.output": {
        "$ref": "#/components/schemas/SmsThread"
      },
      "operation.sms.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "direction": {
            "description": "Only the sent (`outbound`) or only the received (`inbound`); both when left out.",
            "enum": [
              "outbound",
              "inbound"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "reference": {
            "description": "Only the sends with this reference.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "search": {
            "description": "Part of the number it went to, or came from.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "since": {
            "description": "Only the SMS made at or after this instant, ISO 8601 with an offset.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "state": {
            "description": "Only the SMS in this state.",
            "enum": [
              "scheduled",
              "queued",
              "in_flight",
              "uncertain",
              "sent",
              "delivered",
              "failed",
              "cancelled",
              "held_for_balance",
              "received"
            ],
            "type": "string"
          },
          "until": {
            "description": "Only the SMS made before this instant, ISO 8601 with an offset.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.sms.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Sms"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.sms.optOuts.create.input": {
        "additionalProperties": false,
        "properties": {
          "allIdentities": {
            "description": "true: every identity of the application, instead of one. Not with `identity`.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "number": {
            "description": "The phone number, for example `+4791234567`.",
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "operation.sms.optOuts.create.output": {
        "$ref": "#/components/schemas/SmsOptOut"
      },
      "operation.sms.optOuts.delete.input": {
        "additionalProperties": false,
        "properties": {
          "allIdentities": {
            "description": "true: every identity of the application, instead of one. Not with `identity`.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "number": {
            "description": "The phone number, for example `+4791234567`.",
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "number"
        ],
        "type": "object"
      },
      "operation.sms.optOuts.delete.output": {
        "$ref": "#/components/schemas/SmsOptOut"
      },
      "operation.sms.optOuts.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "allIdentities": {
            "description": "true: every identity of the application, instead of one. Not with `identity`.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.sms.optOuts.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/SmsOptOut"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.sms.quote.input": {
        "additionalProperties": false,
        "properties": {
          "from": {
            "description": "The sender: a sender name or a number of yours as the recipient sees it (`TRIPPER`, `+4791234567`), or its `id` (`sms.senders.list`). A sender's `id` also names the business it belongs to, so `identity` may be left out. Left out: the identity's default sender, else Telkit's shared reply number.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "sharedReplyNumber": {
            "description": "`true` sends from Telkit's shared reply number, whatever the default is.",
            "type": "boolean"
          },
          "text": {
            "description": "The message text.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "to": {
            "description": "The recipient's phone number, for example `+4791234567`.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "text",
          "to"
        ],
        "type": "object"
      },
      "operation.sms.quote.output": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "ISO 3166-1 alpha-2 of the recipient's number.",
            "type": "string"
          },
          "from": {
            "description": "The sender the send would go from; `null` for Telkit's shared reply number.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "The price of the whole SMS, excluding VAT: every part."
          },
          "segments": {
            "description": "The SMS parts the text takes.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "to": {
            "description": "The recipient's number, E.164.",
            "type": "string"
          },
          "unitPrice": {
            "$ref": "#/components/schemas/Price",
            "description": "The price of one part, excluding VAT."
          }
        },
        "required": [
          "country",
          "from",
          "price",
          "segments",
          "to",
          "unitPrice"
        ],
        "type": "object"
      },
      "operation.sms.send.input": {
        "additionalProperties": false,
        "properties": {
          "from": {
            "description": "The sender: a sender name or a number of yours as the recipient sees it (`TRIPPER`, `+4791234567`), or its `id` (`sms.senders.list`). A sender's `id` also names the business it belongs to, so `identity` may be left out. Left out: the identity's default sender, else Telkit's shared reply number.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "latestSendAt": {
            "description": "After this instant the message is never sent: it fails with latest_send_passed and its money is given back.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "reference": {
            "description": "Your own id for this send (an order, a case): it comes back in every read, list and event, and `sms.list` finds it. Not unique.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "scheduledAt": {
            "description": "Send at this instant (in the future) instead of now; cancel it until then.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "type": "string"
          },
          "sendWindow": {
            "additionalProperties": false,
            "description": "The hours the message may be sent; outside them it waits for the next opening. Omitted: any time.",
            "properties": {
              "days": {
                "description": "The weekdays it is open; every day when left out.",
                "items": {
                  "enum": [
                    "mon",
                    "tue",
                    "wed",
                    "thu",
                    "fri",
                    "sat",
                    "sun"
                  ],
                  "type": "string"
                },
                "maxItems": 7,
                "minItems": 1,
                "type": "array"
              },
              "from": {
                "description": "Local time the window opens, `HH:MM` (24-hour).",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              },
              "skipPublicHolidays": {
                "description": "Closed on Norway's public holidays (1 January, Easter, 1 and 17 May, Christmas and the others).",
                "type": "boolean"
              },
              "timeZone": {
                "description": "An IANA time zone; `Europe/Oslo` when left out.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              },
              "until": {
                "description": "Local time it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$|^24:00$",
                "type": "string"
              }
            },
            "required": [
              "from",
              "until"
            ],
            "type": "object"
          },
          "sharedReplyNumber": {
            "description": "`true` sends from Telkit's shared reply number, whatever the default is.",
            "type": "boolean"
          },
          "templateId": {
            "description": "A template to send instead of `text`: name exactly one of the two.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "text": {
            "description": "The message text.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "to": {
            "description": "The recipient's phone number, for example `+4791234567`.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places (`{{name}}`), by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "to"
        ],
        "type": "object"
      },
      "operation.sms.send.output": {
        "$ref": "#/components/schemas/Sms"
      },
      "operation.sms.senders.create.input": {
        "additionalProperties": false,
        "properties": {
          "default": {
            "description": "A name: it becomes the identity's default once Telkit approves it.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "marketingConsent": {
            "description": "A name: `true` confirms that the recipients have said yes to marketing.",
            "type": "boolean"
          },
          "monthlyVolume": {
            "description": "A name: how many SMS you expect to send from it a month.",
            "enum": [
              "under_1k",
              "1k_10k",
              "10k_100k",
              "over_100k"
            ],
            "type": "string"
          },
          "name": {
            "description": "A sender name (3 to 11 letters, digits and spaces): Telkit reviews it.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          },
          "note": {
            "description": "Why you may use the name, when it is not the identity's own name.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "number": {
            "description": "Your own Norwegian mobile number: a code is sent to it.",
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "sampleText": {
            "description": "A name: an example of an SMS you will send from it.",
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "useCase": {
            "description": "A name: what you will send from it.",
            "enum": [
              "notifications",
              "reminders",
              "receipts",
              "marketing"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.sms.senders.create.output": {
        "$ref": "#/components/schemas/SmsSender"
      },
      "operation.sms.senders.delete.input": {
        "additionalProperties": false,
        "properties": {
          "sender": {
            "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "sender"
        ],
        "type": "object"
      },
      "operation.sms.senders.delete.output": {
        "$ref": "#/components/schemas/SmsSender"
      },
      "operation.sms.senders.get.input": {
        "additionalProperties": false,
        "properties": {
          "sender": {
            "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "sender"
        ],
        "type": "object"
      },
      "operation.sms.senders.get.output": {
        "$ref": "#/components/schemas/SmsSender"
      },
      "operation.sms.senders.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "state": {
            "description": "Only the senders in this state.",
            "enum": [
              "pending",
              "active",
              "ended",
              "rejected",
              "withdrawn"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.sms.senders.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/SmsSender"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.sms.senders.registrations.create.body": {
        "additionalProperties": false,
        "properties": {
          "countries": {
            "description": "Where the name should reach, ISO 3166-1 alpha-2, for example `[\"SE\"]`.",
            "items": {
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "note": {
            "description": "Anything Telkit should know for the registration.",
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "countries"
        ],
        "type": "object"
      },
      "operation.sms.senders.registrations.create.input": {
        "additionalProperties": false,
        "properties": {
          "countries": {
            "description": "Where the name should reach, ISO 3166-1 alpha-2, for example `[\"SE\"]`.",
            "items": {
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "minItems": 1,
            "type": "array"
          },
          "note": {
            "description": "Anything Telkit should know for the registration.",
            "maxLength": 1000,
            "type": "string"
          },
          "sender": {
            "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "countries",
          "sender"
        ],
        "type": "object"
      },
      "operation.sms.senders.registrations.create.output": {
        "$ref": "#/components/schemas/SmsSenderRegistration"
      },
      "operation.sms.senders.registrations.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The registration's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "sender": {
            "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "sender"
        ],
        "type": "object"
      },
      "operation.sms.senders.registrations.delete.output": {
        "$ref": "#/components/schemas/SmsSenderRegistration"
      },
      "operation.sms.senders.registrations.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "sender": {
            "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "sender"
        ],
        "type": "object"
      },
      "operation.sms.senders.registrations.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/SmsSenderRegistration"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.sms.senders.update.body": {
        "additionalProperties": false,
        "properties": {
          "default": {
            "const": true,
            "description": "`true`: sends for its identity that name no `from` go from this sender. An active sender only.",
            "type": "boolean"
          }
        },
        "required": [
          "default"
        ],
        "type": "object"
      },
      "operation.sms.senders.update.input": {
        "additionalProperties": false,
        "properties": {
          "default": {
            "const": true,
            "description": "`true`: sends for its identity that name no `from` go from this sender. An active sender only.",
            "type": "boolean"
          },
          "sender": {
            "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "default",
          "sender"
        ],
        "type": "object"
      },
      "operation.sms.senders.update.output": {
        "$ref": "#/components/schemas/SmsSender"
      },
      "operation.sms.senders.verify.body": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "description": "The code the number got by SMS.",
            "maxLength": 16,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "type": "object"
      },
      "operation.sms.senders.verify.input": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "description": "The code the number got by SMS.",
            "maxLength": 16,
            "minLength": 1,
            "type": "string"
          },
          "sender": {
            "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "code",
          "sender"
        ],
        "type": "object"
      },
      "operation.sms.senders.verify.output": {
        "$ref": "#/components/schemas/SmsSender"
      },
      "operation.stt.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The transcript's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.stt.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "const": true,
            "description": "Always `true`: it is gone.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the transcript that was deleted.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "deleted",
          "id"
        ],
        "type": "object"
      },
      "operation.stt.export.input": {
        "additionalProperties": false,
        "properties": {
          "format": {
            "description": "`srt` (SubRip subtitles), `vtt` (WebVTT subtitles) or `txt` (plain text).",
            "enum": [
              "srt",
              "vtt",
              "txt"
            ],
            "type": "string"
          },
          "id": {
            "description": "The transcript's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "format",
          "id"
        ],
        "type": "object"
      },
      "operation.stt.export.output": {
        "additionalProperties": false,
        "properties": {
          "content": {
            "description": "The whole document, as text.",
            "type": "string"
          },
          "contentType": {
            "description": "The media type to save or serve the document as.",
            "type": "string"
          },
          "format": {
            "description": "The format asked for: `srt`, `vtt` or `txt`.",
            "enum": [
              "srt",
              "vtt",
              "txt"
            ],
            "type": "string"
          },
          "id": {
            "description": "The transcript's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "content",
          "contentType",
          "format",
          "id"
        ],
        "type": "object"
      },
      "operation.stt.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The transcript's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.stt.get.output": {
        "additionalProperties": false,
        "properties": {
          "completedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was finished, ISO 8601 in UTC; `null` until then."
          },
          "createdAt": {
            "description": "When it was asked for, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "detectedLanguage": {
            "description": "The language detected in the audio; `null` when none was.",
            "type": [
              "string",
              "null"
            ]
          },
          "diarize": {
            "description": "`true`: it was asked to tell the speakers apart.",
            "type": "boolean"
          },
          "failureReason": {
            "description": "Why it failed; `null` when it has not failed.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The transcript's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language asked for (`no`, `en`); `null` when it was left to detection.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once done; `null` before."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The audio's length in whole seconds: as measured at first, as billed once `done`; `null` until it is known."
          },
          "segments": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "channel": {
                      "anyOf": [
                        {
                          "maximum": 9007199254740991,
                          "minimum": -9007199254740991,
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "The audio channel the part was heard on, counted from 0, where each channel was transcribed apart; `null` otherwise."
                    },
                    "endSeconds": {
                      "description": "Where the part ends, in seconds from the start of the audio (with decimals); `null` when its time is not known.",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "speaker": {
                      "description": "The label of the speaker, where speakers were told apart; `null` otherwise.",
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "startSeconds": {
                      "description": "Where the part starts, in seconds from the start of the audio (with decimals); `null` when its time is not known.",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "text": {
                      "description": "What was said in this part.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "channel",
                    "endSeconds",
                    "speaker",
                    "startSeconds",
                    "text"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "The timed parts, once `done`; `null` before."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "additionalProperties": false,
            "description": "What was transcribed: a link (`url`, kept as the audio `audioId`), uploaded audio (`audioId`), or a call's recording (`recordingId` and `callId`).",
            "properties": {
              "audioId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The audio that was transcribed (`tts.get` reads it): uploaded audio, or the copy Telkit kept of a link; `null` for a recording."
              },
              "callId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The call of that recording; `null` for other sources."
              },
              "recordingId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The call recording that was transcribed; `null` for other sources."
              },
              "url": {
                "description": "The link that was transcribed; `null` for other sources.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "audioId",
              "callId",
              "recordingId",
              "url"
            ],
            "type": "object"
          },
          "state": {
            "description": "`pending` or `queued` until it is sent, `in_flight` while it is transcribed, `done`, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "queued",
              "in_flight",
              "uncertain",
              "done",
              "failed"
            ],
            "type": "string"
          },
          "text": {
            "description": "The whole text, once `done`; `null` before.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "completedAt",
          "createdAt",
          "detectedLanguage",
          "diarize",
          "failureReason",
          "id",
          "identity",
          "language",
          "price",
          "seconds",
          "segments",
          "simulated",
          "source",
          "state",
          "text"
        ],
        "type": "object"
      },
      "operation.stt.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "callId": {
            "description": "Only the transcripts of this call.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "since": {
            "description": "Only what was made at or after this time, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "until": {
            "description": "Only what was made before this time, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.stt.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Transcript"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.stt.streams.close.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The stream's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.stt.streams.close.output": {
        "$ref": "#/components/schemas/TranscriptStream"
      },
      "operation.stt.streams.create.input": {
        "additionalProperties": false,
        "properties": {
          "encoding": {
            "description": "The audio you will send: `pcm_s16le` (16-bit little-endian PCM at 16 kHz) or `mulaw` (µ-law at 8 kHz).",
            "enum": [
              "pcm_s16le",
              "mulaw"
            ],
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "language": {
            "description": "The language spoken; `no` when left out.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "maxMinutes": {
            "description": "The most minutes it may hear, 1 to 120; they are held until it ends, and what was not heard is given back.",
            "maximum": 120,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "encoding",
          "maxMinutes"
        ],
        "type": "object"
      },
      "operation.stt.streams.create.output": {
        "$ref": "#/components/schemas/TranscriptStream"
      },
      "operation.stt.streams.createTicket.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The stream's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.stt.streams.createTicket.output": {
        "additionalProperties": false,
        "properties": {
          "expiresAt": {
            "description": "When the ticket stops working, ISO 8601 in UTC: 60 seconds after it was minted.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "ticket": {
            "description": "The ticket that opens the stream's WebSocket. It works once.",
            "type": "string"
          },
          "url": {
            "description": "The address of the stream's WebSocket.",
            "type": "string"
          }
        },
        "required": [
          "expiresAt",
          "ticket",
          "url"
        ],
        "type": "object"
      },
      "operation.stt.streams.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The stream's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.stt.streams.get.output": {
        "$ref": "#/components/schemas/TranscriptStream"
      },
      "operation.stt.streams.listLines.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The stream's `id`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.stt.streams.listLines.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "endMs": {
                  "description": "Where the line ends, in milliseconds from the start of the audio.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "segment": {
                  "description": "The line's number in the stream; the lines are ordered by it.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "startMs": {
                  "description": "Where the line starts, in milliseconds from the start of the audio.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "text": {
                  "description": "What was said.",
                  "type": "string"
                }
              },
              "required": [
                "endMs",
                "segment",
                "startMs",
                "text"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.stt.transcribe.input": {
        "additionalProperties": false,
        "properties": {
          "audioId": {
            "description": "Uploaded audio (`stt.audio.upload`) or speech (`tts.speak`).",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "diarize": {
            "description": "Tell the speakers apart. Left out: `true` for a recording, `false` for other audio.",
            "type": "boolean"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "language": {
            "description": "The language spoken. Left out: detected from the audio.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "recordingId": {
            "description": "A call's stored recording.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "url": {
            "description": "An https link to MP3 or WAV audio; Telkit keeps a copy.",
            "format": "uri",
            "maxLength": 2048,
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.stt.transcribe.output": {
        "$ref": "#/components/schemas/Transcript"
      },
      "operation.tts.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The `id` of the speech or the uploaded audio.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.tts.get.output": {
        "additionalProperties": false,
        "properties": {
          "characters": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The characters the speech was charged for, once made."
          },
          "createdAt": {
            "description": "When it was asked for or uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The audio's id: what `calls.play`, `calls.start` and `stt.transcribe` take as `audioId`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language it is spoken in (`no`, `en`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Your own name for it; speech made without one is named by the start of its text.",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once made; `null` before."
          },
          "readyAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it became `ready`, ISO 8601 in UTC; `null` until then."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its length in whole seconds, once measured; `null` before."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "description": "`tts`: made from `text`; `upload`: uploaded audio, with no text or voice.",
            "enum": [
              "tts",
              "upload"
            ],
            "type": "string"
          },
          "state": {
            "description": "`pending` while it is made, `ready` to play, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "ready",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text it speaks; `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "description": "A link to the audio file that works for 15 minutes from this answer; `null` until it is `ready`.",
            "type": [
              "string",
              "null"
            ]
          },
          "voice": {
            "description": "The id of the voice that speaks it (`tts.voices.list`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "characters",
          "createdAt",
          "id",
          "identity",
          "language",
          "name",
          "price",
          "readyAt",
          "seconds",
          "simulated",
          "source",
          "state",
          "text",
          "url",
          "voice"
        ],
        "type": "object"
      },
      "operation.tts.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "since": {
            "description": "Only what was made at or after this time, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "until": {
            "description": "Only what was made before this time, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.tts.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Speech"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.tts.speak.input": {
        "additionalProperties": false,
        "properties": {
          "identity": {
            "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "language": {
            "description": "A language tag. Left out: the voice's own language, else `no`.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "name": {
            "description": "Your own name for it. Left out: the start of the text.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "text": {
            "description": "The text to speak: at most 5 000 characters.",
            "maxLength": 5000,
            "minLength": 1,
            "type": "string"
          },
          "voice": {
            "description": "A voice id from `tts.voices.list`. Left out: the language's standard female voice.",
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "operation.tts.speak.output": {
        "$ref": "#/components/schemas/Speech"
      },
      "operation.tts.voices.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "language": {
            "description": "Only the voices that speak this language best.",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.tts.voices.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "gender": {
                  "description": "How the voice sounds: `female` or `male`.",
                  "enum": [
                    "female",
                    "male"
                  ],
                  "type": "string"
                },
                "id": {
                  "description": "What `tts.speak`, `calls.say` and `calls.start` take as `voice`.",
                  "type": "string"
                },
                "kind": {
                  "description": "`standard`: usable at once. `catalogue`: a named voice, usable once `usePolicy` is accepted.",
                  "enum": [
                    "standard",
                    "catalogue"
                  ],
                  "type": "string"
                },
                "language": {
                  "description": "The language the voice speaks best, as a language tag (`no`, `en`).",
                  "type": "string"
                },
                "name": {
                  "description": "A catalogue voice's own name; `null` for a standard voice.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sample": {
                  "description": "A catalogue voice's sample: an MP3's path on telkit.no; `null` for a standard voice.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "gender",
                "id",
                "kind",
                "language",
                "name",
                "sample"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          },
          "pricePerThousandCharacters": {
            "$ref": "#/components/schemas/Price",
            "description": "What 1 000 characters of speech cost."
          },
          "usePolicy": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "acceptedAt": {
                    "anyOf": [
                      {
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "When your company accepted it, ISO 8601 in UTC; `null`: not accepted, and a catalogue voice answers `voice_policy_not_accepted`."
                  },
                  "url": {
                    "description": "Where the use policy is read.",
                    "type": "string"
                  }
                },
                "required": [
                  "acceptedAt",
                  "url"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The speech vendor's use policy an owner or admin accepts once in the dashboard before a catalogue voice is used, and when it was accepted; `null` where no catalogue voice is offered."
          }
        },
        "required": [
          "items",
          "next",
          "pricePerThousandCharacters",
          "usePolicy"
        ],
        "type": "object"
      },
      "operation.webhooks.create.input": {
        "additionalProperties": false,
        "properties": {
          "description": {
            "description": "Your own note on it.",
            "type": [
              "string",
              "null"
            ]
          },
          "ed25519": {
            "description": "Also sign each delivery with an Ed25519 key of the webhook's own.",
            "type": "boolean"
          },
          "events": {
            "description": "The events it receives (`sms.status`): `webhooks.listEventTypes` lists them.",
            "items": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "url": {
            "description": "Where each event is sent: an `https` address.",
            "type": "string"
          }
        },
        "required": [
          "events",
          "url"
        ],
        "type": "object"
      },
      "operation.webhooks.create.output": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When it was made.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "delivery": {
            "description": "`live`: events are sent as they happen; `paused`: they wait and are sent when it is `live` again; `muted`: they are not sent.",
            "enum": [
              "live",
              "paused",
              "muted"
            ],
            "type": "string"
          },
          "description": {
            "description": "Your own note on it.",
            "type": [
              "string",
              "null"
            ]
          },
          "ed25519": {
            "description": "Whether each delivery is also signed with the webhook's own Ed25519 key.",
            "type": "boolean"
          },
          "events": {
            "description": "The events it receives.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "health": {
            "description": "`active`; `degraded` while attempts fail; `held` when every attempt failed for days or the address answered 410: nothing is sent until it is released.",
            "enum": [
              "active",
              "degraded",
              "held"
            ],
            "type": "string"
          },
          "id": {
            "description": "The webhook's id.",
            "type": "string"
          },
          "publicKey": {
            "description": "The public half of that key, to verify with; null when off.",
            "type": [
              "string",
              "null"
            ]
          },
          "secret": {
            "description": "The signing secret: verify each delivery with it. Answered here and never again.",
            "type": "string"
          },
          "updatedAt": {
            "description": "When it last changed.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "url": {
            "description": "Where each event is sent, as a signed POST.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "delivery",
          "description",
          "ed25519",
          "events",
          "health",
          "id",
          "publicKey",
          "secret",
          "updatedAt",
          "url"
        ],
        "type": "object"
      },
      "operation.webhooks.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "const": true,
            "description": "Always `true`.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the webhook that was removed.",
            "type": "string"
          }
        },
        "required": [
          "deleted",
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.deliveries.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "messageId": {
            "description": "Only the deliveries that carry this `webhook-id` header.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "description": "Only the deliveries in this state: `dead` lists what failed, `waiting` what is held back.",
            "enum": [
              "pending",
              "waiting",
              "delivered",
              "dead",
              "skipped"
            ],
            "type": "string"
          },
          "webhookId": {
            "description": "The webhook whose deliveries to list.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "webhookId"
        ],
        "type": "object"
      },
      "operation.webhooks.deliveries.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/WebhookDelivery"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.webhooks.deliveries.redeliver.body": {
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "`original` (when left out): the bytes the receiver got the first time; `fresh`: a body made from the event now, at the version the webhook receives today.",
            "enum": [
              "original",
              "fresh"
            ],
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.webhooks.deliveries.redeliver.input": {
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "`original` (when left out): the bytes the receiver got the first time; `fresh`: a body made from the event now, at the version the webhook receives today.",
            "enum": [
              "original",
              "fresh"
            ],
            "type": "string"
          },
          "id": {
            "description": "The delivery's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.deliveries.redeliver.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The new delivery's id.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.deliveries.replay.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The delivery's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.deliveries.replay.output": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The delivery's id: the same delivery, `pending` again.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.eraseResponses.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.eraseResponses.output": {
        "additionalProperties": false,
        "properties": {
          "bodies": {
            "description": "How many deliveries lost the copy of their body.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "excerpts": {
            "description": "How many attempts lost the excerpt of what the address answered.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "bodies",
          "excerpts"
        ],
        "type": "object"
      },
      "operation.webhooks.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.get.output": {
        "$ref": "#/components/schemas/Webhook"
      },
      "operation.webhooks.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.webhooks.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Webhook"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.webhooks.listAttempts.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.listAttempts.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/WebhookAttempt"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.webhooks.listEventTypes.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many events to answer, at most 100; every event when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.webhooks.listEventTypes.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "event": {
                  "description": "The event's name, as `webhooks.create` takes it.",
                  "type": "string"
                },
                "versions": {
                  "description": "The versions of its body /v2 serves; a new webhook receives the newest.",
                  "items": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "type": "array"
                }
              },
              "required": [
                "event",
                "versions"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.webhooks.listSigningKeys.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "operation.webhooks.listSigningKeys.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "publicKey": {
                  "description": "The public key, to verify a delivery with.",
                  "type": "string"
                },
                "state": {
                  "description": "`active` signs now; `retiring` still signs while it is phased out.",
                  "enum": [
                    "active",
                    "retiring"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "publicKey",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "next": {
            "description": "Send it as `after` for the next page; `null` on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "items",
          "next"
        ],
        "type": "object"
      },
      "operation.webhooks.recover.body": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.webhooks.recover.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.recover.output": {
        "additionalProperties": false,
        "properties": {
          "next": {
            "description": "Send it as `after` to recover the following page; `null` when no dead delivery follows.",
            "type": [
              "string",
              "null"
            ]
          },
          "recovered": {
            "description": "The ids of the deliveries that are tried again now.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "next",
          "recovered"
        ],
        "type": "object"
      },
      "operation.webhooks.release.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.release.output": {
        "$ref": "#/components/schemas/Webhook"
      },
      "operation.webhooks.rotateSecret.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.rotateSecret.output": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When it was made.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "delivery": {
            "description": "`live`: events are sent as they happen; `paused`: they wait and are sent when it is `live` again; `muted`: they are not sent.",
            "enum": [
              "live",
              "paused",
              "muted"
            ],
            "type": "string"
          },
          "description": {
            "description": "Your own note on it.",
            "type": [
              "string",
              "null"
            ]
          },
          "ed25519": {
            "description": "Whether each delivery is also signed with the webhook's own Ed25519 key.",
            "type": "boolean"
          },
          "events": {
            "description": "The events it receives.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "health": {
            "description": "`active`; `degraded` while attempts fail; `held` when every attempt failed for days or the address answered 410: nothing is sent until it is released.",
            "enum": [
              "active",
              "degraded",
              "held"
            ],
            "type": "string"
          },
          "id": {
            "description": "The webhook's id.",
            "type": "string"
          },
          "publicKey": {
            "description": "The public half of that key, to verify with; null when off.",
            "type": [
              "string",
              "null"
            ]
          },
          "secret": {
            "description": "The signing secret: verify each delivery with it. Answered here and never again.",
            "type": "string"
          },
          "updatedAt": {
            "description": "When it last changed.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "url": {
            "description": "Where each event is sent, as a signed POST.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "delivery",
          "description",
          "ed25519",
          "events",
          "health",
          "id",
          "publicKey",
          "secret",
          "updatedAt",
          "url"
        ],
        "type": "object"
      },
      "operation.webhooks.test.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.test.output": {
        "additionalProperties": false,
        "properties": {
          "durationMs": {
            "description": "How long the address took to answer.",
            "type": [
              "number",
              "null"
            ]
          },
          "error": {
            "description": "Why no answer came, when none did.",
            "type": [
              "string",
              "null"
            ]
          },
          "outcome": {
            "description": "`delivered` (a 2xx), `rejected`, `gone` (410), `redirected`, `unreachable`, `refused` (the address may not be called) or `lost`.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The HTTP status the address answered."
          }
        },
        "required": [
          "durationMs",
          "error",
          "outcome",
          "status"
        ],
        "type": "object"
      },
      "operation.webhooks.update.body": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "description": "`live`: events are sent as they happen; `paused`: they wait and are sent when it is `live` again; `muted`: they are not sent.",
            "enum": [
              "live",
              "paused",
              "muted"
            ],
            "type": "string"
          },
          "description": {
            "description": "A new note; `null` removes it.",
            "type": [
              "string",
              "null"
            ]
          },
          "ed25519": {
            "description": "Turn signing with the webhook's own Ed25519 key on or off.",
            "type": "boolean"
          },
          "events": {
            "description": "The events it receives (`sms.status`): `webhooks.listEventTypes` lists them.",
            "items": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "url": {
            "description": "A new address: an `https` address.",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.webhooks.update.input": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "description": "`live`: events are sent as they happen; `paused`: they wait and are sent when it is `live` again; `muted`: they are not sent.",
            "enum": [
              "live",
              "paused",
              "muted"
            ],
            "type": "string"
          },
          "description": {
            "description": "A new note; `null` removes it.",
            "type": [
              "string",
              "null"
            ]
          },
          "ed25519": {
            "description": "Turn signing with the webhook's own Ed25519 key on or off.",
            "type": "boolean"
          },
          "events": {
            "description": "The events it receives (`sms.status`): `webhooks.listEventTypes` lists them.",
            "items": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 50,
            "minItems": 1,
            "type": "array"
          },
          "id": {
            "description": "The webhook's `id`.",
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "url": {
            "description": "A new address: an `https` address.",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.webhooks.update.output": {
        "$ref": "#/components/schemas/Webhook"
      },
      "refusal.acknowledgement_required": {
        "properties": {
          "code": {
            "const": "acknowledgement_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.api_key_not_found": {
        "properties": {
          "code": {
            "const": "api_key_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.application_limit_reached": {
        "properties": {
          "code": {
            "const": "application_limit_reached",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "currency": {
                "enum": [
                  "NOK"
                ],
                "type": "string"
              },
              "identityId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "limitMinor": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "period": {
                "enum": [
                  "day",
                  "month"
                ],
                "type": "string"
              }
            },
            "required": [
              "currency",
              "limitMinor",
              "period"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.application_not_found": {
        "properties": {
          "code": {
            "const": "application_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.archive_choice_required": {
        "properties": {
          "code": {
            "const": "archive_choice_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "identities": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "senders": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "identities",
              "senders"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_clip_not_found": {
        "properties": {
          "code": {
            "const": "audio_clip_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_clip_not_ready": {
        "properties": {
          "code": {
            "const": "audio_clip_not_ready",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_link_redirected": {
        "properties": {
          "code": {
            "const": "audio_link_redirected",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_link_refused": {
        "properties": {
          "code": {
            "const": "audio_link_refused",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_link_status": {
        "properties": {
          "code": {
            "const": "audio_link_status",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "status": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "status"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_link_too_large": {
        "properties": {
          "code": {
            "const": "audio_link_too_large",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "maxBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "maxBytes"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_link_type_not_accepted": {
        "properties": {
          "code": {
            "const": "audio_link_type_not_accepted",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "contentType": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "contentType"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audio_link_unreachable": {
        "properties": {
          "code": {
            "const": "audio_link_unreachable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.audit_unavailable": {
        "properties": {
          "code": {
            "const": "audit_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.business_identity_plan_required": {
        "properties": {
          "code": {
            "const": "business_identity_plan_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "plan": {
                "enum": [
                  "api",
                  "bedrift",
                  "hobby",
                  "pro",
                  "business",
                  "enterprise"
                ],
                "type": "string"
              }
            },
            "required": [
              "plan"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_addons_invalid": {
        "properties": {
          "code": {
            "const": "call_addons_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_already_routed": {
        "properties": {
          "code": {
            "const": "call_already_routed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_audio_private": {
        "properties": {
          "code": {
            "const": "call_audio_private",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_bot_unavailable": {
        "properties": {
          "code": {
            "const": "call_bot_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_composition_invalid": {
        "properties": {
          "code": {
            "const": "call_composition_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_control_unsupported": {
        "properties": {
          "code": {
            "const": "call_control_unsupported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_live_transcript_active": {
        "properties": {
          "code": {
            "const": "call_live_transcript_active",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_live_transcript_not_found": {
        "properties": {
          "code": {
            "const": "call_live_transcript_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_media_audio_not_found": {
        "properties": {
          "code": {
            "const": "call_media_audio_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_media_not_found": {
        "properties": {
          "code": {
            "const": "call_media_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_media_tasks_full": {
        "properties": {
          "code": {
            "const": "call_media_tasks_full",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_move_not_allowed": {
        "properties": {
          "code": {
            "const": "call_move_not_allowed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_move_not_found": {
        "properties": {
          "code": {
            "const": "call_move_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_not_found": {
        "properties": {
          "code": {
            "const": "call_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_not_live": {
        "properties": {
          "code": {
            "const": "call_not_live",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_offer_active": {
        "properties": {
          "code": {
            "const": "call_offer_active",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_offer_closed": {
        "properties": {
          "code": {
            "const": "call_offer_closed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_offer_not_found": {
        "properties": {
          "code": {
            "const": "call_offer_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_offer_targets_invalid": {
        "properties": {
          "code": {
            "const": "call_offer_targets_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "skipped": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "kind": {
                      "enum": [
                        "member",
                        "app_user",
                        "phone"
                      ],
                      "type": "string"
                    },
                    "reason": {
                      "enum": [
                        "not_member",
                        "unavailable",
                        "busy",
                        "after_call"
                      ],
                      "type": "string"
                    },
                    "targetId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "reason",
                    "targetId"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "skipped"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_participant_elsewhere": {
        "properties": {
          "code": {
            "const": "call_participant_elsewhere",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_participant_is_call": {
        "properties": {
          "code": {
            "const": "call_participant_is_call",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_participant_not_found": {
        "properties": {
          "code": {
            "const": "call_participant_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_participant_not_open": {
        "properties": {
          "code": {
            "const": "call_participant_not_open",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_participants_full": {
        "properties": {
          "code": {
            "const": "call_participants_full",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_recording_active": {
        "properties": {
          "code": {
            "const": "call_recording_active",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_recording_not_found": {
        "properties": {
          "code": {
            "const": "call_recording_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_recording_not_stored": {
        "properties": {
          "code": {
            "const": "call_recording_not_stored",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_stream_endpoint_refused": {
        "properties": {
          "code": {
            "const": "call_stream_endpoint_refused",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_stream_limit_reached": {
        "properties": {
          "code": {
            "const": "call_stream_limit_reached",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_stream_not_found": {
        "properties": {
          "code": {
            "const": "call_stream_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_stream_unavailable": {
        "properties": {
          "code": {
            "const": "call_stream_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_summary_unavailable": {
        "properties": {
          "code": {
            "const": "call_summary_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_transfer_active": {
        "properties": {
          "code": {
            "const": "call_transfer_active",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_transfer_not_active": {
        "properties": {
          "code": {
            "const": "call_transfer_not_active",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_transfer_not_found": {
        "properties": {
          "code": {
            "const": "call_transfer_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_whisper_target_invalid": {
        "properties": {
          "code": {
            "const": "call_whisper_target_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.catch_all_application_invalid": {
        "properties": {
          "code": {
            "const": "catch_all_application_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.channel_paused": {
        "properties": {
          "code": {
            "const": "channel_paused",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "channel": {
                "anyOf": [
                  {
                    "enum": [
                      "sms",
                      "email",
                      "letter",
                      "phone",
                      "speech"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pauseId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "pausedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "scope": {
                "enum": [
                  "organization",
                  "profile",
                  "key"
                ],
                "type": "string"
              }
            },
            "required": [
              "channel",
              "pauseId",
              "pausedAt",
              "reason",
              "scope"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.company_dissolved": {
        "properties": {
          "code": {
            "const": "company_dissolved",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.company_identity_fixed": {
        "properties": {
          "code": {
            "const": "company_identity_fixed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.company_not_found": {
        "properties": {
          "code": {
            "const": "company_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.content_blocked": {
        "properties": {
          "code": {
            "const": "content_blocked",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "hosts": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "rules": {
                "items": {
                  "enum": [
                    "phishing_word",
                    "link_unlisted",
                    "impersonation"
                  ],
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "hosts",
              "rules"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.country_not_supported": {
        "properties": {
          "code": {
            "const": "country_not_supported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "country": {
                "type": "string"
              }
            },
            "required": [
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.currency_unsupported": {
        "properties": {
          "code": {
            "const": "currency_unsupported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "currency": {
                "enum": [
                  "NOK",
                  "USD"
                ],
                "type": "string"
              }
            },
            "required": [
              "currency"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.cursor_invalid": {
        "properties": {
          "code": {
            "const": "cursor_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.destination_country_unsupported": {
        "properties": {
          "code": {
            "const": "destination_country_unsupported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "channel": {
                "enum": [
                  "sms",
                  "phone"
                ],
                "type": "string"
              },
              "country": {
                "type": "string"
              }
            },
            "required": [
              "channel",
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.destination_not_allowed": {
        "properties": {
          "code": {
            "const": "destination_not_allowed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "closedBy": {
                "enum": [
                  "telkit",
                  "profile"
                ],
                "type": "string"
              },
              "country": {
                "type": "string"
              }
            },
            "required": [
              "closedBy",
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.destination_not_allowlisted": {
        "properties": {
          "code": {
            "const": "destination_not_allowlisted",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.destination_unpriced": {
        "properties": {
          "code": {
            "const": "destination_unpriced",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "country": {
                "type": "string"
              }
            },
            "required": [
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_address_invalid": {
        "properties": {
          "code": {
            "const": "email_address_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "address": {
                "type": "string"
              },
              "field": {
                "enum": [
                  "from",
                  "to",
                  "replyTo",
                  "address"
                ],
                "type": "string"
              }
            },
            "required": [
              "address",
              "field"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_attachment_invalid": {
        "properties": {
          "code": {
            "const": "email_attachment_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "filename": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "problem": {
                "enum": [
                  "too_many_files",
                  "too_large",
                  "type_not_allowed",
                  "ending_mismatch",
                  "content_unreadable",
                  "content_mismatch",
                  "content_id_not_image",
                  "content_id_taken"
                ],
                "type": "string"
              }
            },
            "required": [
              "filename",
              "problem"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_block_invalid": {
        "properties": {
          "code": {
            "const": "email_block_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_block_limit": {
        "properties": {
          "code": {
            "const": "email_block_limit",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_display_name_invalid": {
        "properties": {
          "code": {
            "const": "email_display_name_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_domain_invalid": {
        "properties": {
          "code": {
            "const": "email_domain_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_domain_taken": {
        "properties": {
          "code": {
            "const": "email_domain_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_files_pending": {
        "properties": {
          "code": {
            "const": "email_files_pending",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_not_found": {
        "properties": {
          "code": {
            "const": "email_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_not_received": {
        "properties": {
          "code": {
            "const": "email_not_received",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_opt_out_exists": {
        "properties": {
          "code": {
            "const": "email_opt_out_exists",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_receiving_unsupported": {
        "properties": {
          "code": {
            "const": "email_receiving_unsupported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.email_reference_taken": {
        "properties": {
          "code": {
            "const": "email_reference_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.event_log_too_old": {
        "properties": {
          "code": {
            "const": "event_log_too_old",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "floor": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "head": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "floor",
              "head"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.event_not_found": {
        "properties": {
          "code": {
            "const": "event_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.forbidden": {
        "properties": {
          "code": {
            "const": "forbidden",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.fx_rate_unavailable": {
        "properties": {
          "code": {
            "const": "fx_rate_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "currency": {
                "enum": [
                  "NOK",
                  "USD"
                ],
                "type": "string"
              },
              "day": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "currency",
              "day"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.idempotency_conflict": {
        "properties": {
          "code": {
            "const": "idempotency_conflict",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.idempotency_unsupported": {
        "properties": {
          "code": {
            "const": "idempotency_unsupported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_document_not_found": {
        "properties": {
          "code": {
            "const": "identity_document_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_documents_missing": {
        "properties": {
          "code": {
            "const": "identity_documents_missing",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "missing": {
                "description": "The kinds still needed, each as `identities.documents.upload` takes it in `kind`.",
                "items": {
                  "enum": [
                    "registration_certificate",
                    "authorization",
                    "signatory_id",
                    "other"
                  ],
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "missing"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_is_company": {
        "properties": {
          "code": {
            "const": "identity_is_company",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "identityId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "identityId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_move_conflict": {
        "properties": {
          "code": {
            "const": "identity_move_conflict",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "address": {
                "description": "The registration number, the sender name, the domain or the number that collides; `null` when the reason names none.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "reason": {
                "description": "What the chosen application already holds: the same business (`registration_number`), a sender name or an open email domain with the same address, a letterhead, or an SMS number in the same mode.",
                "enum": [
                  "registration_number",
                  "sender_name",
                  "email_domain",
                  "letterhead",
                  "sms_number"
                ],
                "type": "string"
              }
            },
            "required": [
              "address",
              "reason"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_not_approved": {
        "properties": {
          "code": {
            "const": "identity_not_approved",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "identityId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "senderId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "identityId",
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_not_editable": {
        "properties": {
          "code": {
            "const": "identity_not_editable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "state": {
                "enum": [
                  "draft",
                  "submitted",
                  "approved",
                  "rejected",
                  "suspended"
                ],
                "type": "string"
              }
            },
            "required": [
              "state"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_not_found": {
        "properties": {
          "code": {
            "const": "identity_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.identity_orders_open": {
        "properties": {
          "code": {
            "const": "identity_orders_open",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.inbound_flow_not_found": {
        "properties": {
          "code": {
            "const": "inbound_flow_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.insufficient_funds": {
        "properties": {
          "code": {
            "const": "insufficient_funds",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.last_application": {
        "properties": {
          "code": {
            "const": "last_application",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.latest_send_passed": {
        "properties": {
          "code": {
            "const": "latest_send_passed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letter_abroad_unavailable": {
        "properties": {
          "code": {
            "const": "letter_abroad_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "country": {
                "type": "string"
              }
            },
            "required": [
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letter_not_found": {
        "properties": {
          "code": {
            "const": "letter_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letter_paper_only_unavailable": {
        "properties": {
          "code": {
            "const": "letter_paper_only_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letter_pdf_invalid": {
        "properties": {
          "code": {
            "const": "letter_pdf_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "problem": {
                "type": "string"
              }
            },
            "required": [
              "problem"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letter_sender_address_required": {
        "properties": {
          "code": {
            "const": "letter_sender_address_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letter_too_many_sheets": {
        "properties": {
          "code": {
            "const": "letter_too_many_sheets",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "maximum": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sheets": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "maximum",
              "sheets"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letters_account_not_connected": {
        "properties": {
          "code": {
            "const": "letters_account_not_connected",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letters_account_required": {
        "properties": {
          "code": {
            "const": "letters_account_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letters_account_return_invalid": {
        "properties": {
          "code": {
            "const": "letters_account_return_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letters_account_taken": {
        "properties": {
          "code": {
            "const": "letters_account_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letters_identity_account_required": {
        "properties": {
          "code": {
            "const": "letters_identity_account_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "identityId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "identityId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.letters_unavailable": {
        "properties": {
          "code": {
            "const": "letters_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.limit_reached": {
        "properties": {
          "code": {
            "const": "limit_reached",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "day": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "kind": {
                "enum": [
                  "outbound_leg",
                  "call_minutes",
                  "sms",
                  "email"
                ],
                "type": "string"
              },
              "limit": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "day",
              "kind",
              "limit"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.message_content_required": {
        "properties": {
          "code": {
            "const": "message_content_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.mobile_invalid": {
        "properties": {
          "code": {
            "const": "mobile_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.move_target_invalid": {
        "properties": {
          "code": {
            "const": "move_target_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_area_unavailable": {
        "properties": {
          "code": {
            "const": "number_area_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "areaPrefix": {
                "type": "string"
              },
              "country": {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "HR",
                  "CY",
                  "CZ",
                  "DK",
                  "EE",
                  "FI",
                  "FR",
                  "DE",
                  "GR",
                  "HU",
                  "IE",
                  "IT",
                  "LV",
                  "LT",
                  "LU",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SK",
                  "SI",
                  "ES",
                  "SE",
                  "NO",
                  "IS",
                  "LI",
                  "CH",
                  "GB",
                  "US"
                ],
                "type": "string"
              }
            },
            "required": [
              "areaPrefix",
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_country_not_sold": {
        "properties": {
          "code": {
            "const": "number_country_not_sold",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "country": {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "HR",
                  "CY",
                  "CZ",
                  "DK",
                  "EE",
                  "FI",
                  "FR",
                  "DE",
                  "GR",
                  "HU",
                  "IE",
                  "IT",
                  "LV",
                  "LT",
                  "LU",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SK",
                  "SI",
                  "ES",
                  "SE",
                  "NO",
                  "IS",
                  "LI",
                  "CH",
                  "GB",
                  "US"
                ],
                "type": "string"
              }
            },
            "required": [
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_country_sold": {
        "properties": {
          "code": {
            "const": "number_country_sold",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "country": {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "HR",
                  "CY",
                  "CZ",
                  "DK",
                  "EE",
                  "FI",
                  "FR",
                  "DE",
                  "GR",
                  "HU",
                  "IE",
                  "IT",
                  "LV",
                  "LT",
                  "LU",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SK",
                  "SI",
                  "ES",
                  "SE",
                  "NO",
                  "IS",
                  "LI",
                  "CH",
                  "GB",
                  "US"
                ],
                "type": "string"
              }
            },
            "required": [
              "country"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_not_found": {
        "properties": {
          "code": {
            "const": "number_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_not_releasable": {
        "properties": {
          "code": {
            "const": "number_not_releasable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "number": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "number"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_order_day_limit": {
        "properties": {
          "code": {
            "const": "number_order_day_limit",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "limit": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "limit"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_order_open": {
        "properties": {
          "code": {
            "const": "number_order_open",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "limit": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "orderId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "limit",
              "orderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.number_paperwork_missing": {
        "properties": {
          "code": {
            "const": "number_paperwork_missing",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "missing": {
                "items": {
                  "enum": [
                    "representative",
                    "address",
                    "id_copy",
                    "proof_of_address",
                    "registration"
                  ],
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "missing"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.organization_blocked": {
        "properties": {
          "code": {
            "const": "organization_blocked",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.organization_closing": {
        "properties": {
          "code": {
            "const": "organization_closing",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.outbound_paused": {
        "properties": {
          "code": {
            "const": "outbound_paused",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "pausedAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "pausedAt",
              "reason"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.own_number_code_expired": {
        "properties": {
          "code": {
            "const": "own_number_code_expired",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.own_number_code_limit": {
        "properties": {
          "code": {
            "const": "own_number_code_limit",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "limit": {
                "enum": [
                  "code_gap",
                  "codes_per_number_and_organization",
                  "codes_per_number",
                  "codes_per_organization"
                ],
                "type": "string"
              },
              "retryAt": {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              }
            },
            "required": [
              "limit",
              "retryAt"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.own_number_code_not_sent": {
        "properties": {
          "code": {
            "const": "own_number_code_not_sent",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.own_number_code_wrong": {
        "properties": {
          "code": {
            "const": "own_number_code_wrong",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.own_number_held": {
        "properties": {
          "code": {
            "const": "own_number_held",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.own_number_not_active": {
        "properties": {
          "code": {
            "const": "own_number_not_active",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "state": {
                "enum": [
                  "pending",
                  "active",
                  "ended",
                  "rejected",
                  "withdrawn"
                ],
                "type": "string"
              }
            },
            "required": [
              "senderId",
              "state"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.phone_number_in_use": {
        "properties": {
          "code": {
            "const": "phone_number_in_use",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.plan_limit_reached": {
        "properties": {
          "code": {
            "const": "plan_limit_reached",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "kind": {
                "enum": [
                  "sms",
                  "email"
                ],
                "type": "string"
              },
              "limit": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "month": {
                "type": "string"
              },
              "plan": {
                "enum": [
                  "api",
                  "bedrift",
                  "hobby",
                  "pro",
                  "business",
                  "enterprise"
                ],
                "type": "string"
              }
            },
            "required": [
              "kind",
              "limit",
              "month",
              "plan"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.plan_required": {
        "properties": {
          "code": {
            "const": "plan_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "feature": {
                "enum": [
                  "inbox",
                  "contacts",
                  "campaigns",
                  "call_flows",
                  "ai_agents",
                  "team_inbox",
                  "wallboard",
                  "call_list",
                  "meeting_rooms",
                  "browser_phone"
                ],
                "type": "string"
              },
              "plan": {
                "enum": [
                  "api",
                  "bedrift",
                  "hobby",
                  "pro",
                  "business",
                  "enterprise"
                ],
                "type": "string"
              }
            },
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.rate_limited": {
        "properties": {
          "code": {
            "const": "rate_limited",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.recipient_blocked": {
        "properties": {
          "code": {
            "const": "recipient_blocked",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.recipient_invalid": {
        "properties": {
          "code": {
            "const": "recipient_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "channel": {
                "enum": [
                  "sms",
                  "phone"
                ],
                "type": "string"
              }
            },
            "required": [
              "channel"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.recipient_opted_out": {
        "properties": {
          "code": {
            "const": "recipient_opted_out",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.recipient_unsubscribed": {
        "properties": {
          "code": {
            "const": "recipient_unsubscribed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "addresses": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "addresses"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.reference_invalid": {
        "properties": {
          "code": {
            "const": "reference_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.reference_taken": {
        "properties": {
          "code": {
            "const": "reference_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.registration_not_found": {
        "properties": {
          "code": {
            "const": "registration_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.registration_not_open": {
        "properties": {
          "code": {
            "const": "registration_not_open",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "state": {
                "enum": [
                  "pending",
                  "active",
                  "ended",
                  "rejected",
                  "withdrawn"
                ],
                "type": "string"
              }
            },
            "required": [
              "state"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.registration_number_invalid": {
        "properties": {
          "code": {
            "const": "registration_number_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.registry_unavailable": {
        "properties": {
          "code": {
            "const": "registry_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.revision_conflict": {
        "properties": {
          "code": {
            "const": "revision_conflict",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.scope_missing": {
        "properties": {
          "code": {
            "const": "scope_missing",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "scope": {
                "enum": [
                  "sms:send",
                  "sms:read",
                  "email:send",
                  "email:read",
                  "letters:send",
                  "letters:read",
                  "calls:write",
                  "calls:read",
                  "calls:client",
                  "numbers:manage",
                  "numbers:read",
                  "agents:manage",
                  "solutions:manage",
                  "transcription:write",
                  "transcription:read",
                  "webhooks:manage",
                  "events:read",
                  "profiles:manage",
                  "contacts:manage",
                  "usage:read",
                  "privacy:erase"
                ],
                "type": "string"
              }
            },
            "required": [
              "scope"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.send_window_invalid": {
        "properties": {
          "code": {
            "const": "send_window_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_approval_expired": {
        "properties": {
          "code": {
            "const": "sender_approval_expired",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_country_unsupported": {
        "properties": {
          "code": {
            "const": "sender_country_unsupported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "country": {
                "enum": [
                  "AT",
                  "BE",
                  "BG",
                  "HR",
                  "CY",
                  "CZ",
                  "DK",
                  "EE",
                  "FI",
                  "FR",
                  "DE",
                  "GR",
                  "HU",
                  "IE",
                  "IT",
                  "LV",
                  "LT",
                  "LU",
                  "MT",
                  "NL",
                  "PL",
                  "PT",
                  "RO",
                  "SK",
                  "SI",
                  "ES",
                  "SE",
                  "NO",
                  "IS",
                  "LI",
                  "CH",
                  "GB",
                  "US"
                ],
                "type": "string"
              },
              "senderId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "country",
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_ended": {
        "properties": {
          "code": {
            "const": "sender_ended",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_identity_mismatch": {
        "properties": {
          "code": {
            "const": "sender_identity_mismatch",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "identityId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "senderId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "identityId",
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_name_invalid": {
        "properties": {
          "code": {
            "const": "sender_name_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "rule": {
                "enum": [
                  "length",
                  "letters",
                  "national_letters",
                  "digits_only",
                  "right_note"
                ],
                "type": "string"
              }
            },
            "required": [
              "rule"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_name_not_registrable": {
        "properties": {
          "code": {
            "const": "sender_name_not_registrable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_name_taken": {
        "properties": {
          "code": {
            "const": "sender_name_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "anyOf": [
                  {
                    "enum": [
                      "pending",
                      "active",
                      "ended",
                      "rejected",
                      "withdrawn"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "senderId",
              "state"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_not_approved": {
        "properties": {
          "code": {
            "const": "sender_not_approved",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "waitingOn": {
                "enum": [
                  "telkit_review",
                  "fee_payment",
                  "number_routing",
                  "address_check",
                  "vendor_review",
                  "own_mobile_code",
                  "own_mobile_takeover",
                  "dns_check"
                ],
                "type": "string"
              }
            },
            "required": [
              "senderId",
              "waitingOn"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_not_chosen": {
        "properties": {
          "code": {
            "const": "sender_not_chosen",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "service": {
                "enum": [
                  "sms",
                  "email",
                  "letters",
                  "phone"
                ],
                "type": "string"
              }
            },
            "required": [
              "service"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_not_found": {
        "properties": {
          "code": {
            "const": "sender_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_rejected": {
        "properties": {
          "code": {
            "const": "sender_rejected",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              }
            },
            "required": [
              "senderId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sender_service_unsupported": {
        "properties": {
          "code": {
            "const": "sender_service_unsupported",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "senderId": {
                "anyOf": [
                  {
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "service": {
                "enum": [
                  "sms",
                  "email",
                  "letters",
                  "phone"
                ],
                "type": "string"
              }
            },
            "required": [
              "senderId",
              "service"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.service_not_open": {
        "properties": {
          "code": {
            "const": "service_not_open",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "service": {
                "enum": [
                  "sms",
                  "email",
                  "letters",
                  "phone"
                ],
                "type": "string"
              }
            },
            "required": [
              "service"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.slug_taken": {
        "properties": {
          "code": {
            "const": "slug_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "slug"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sms_not_cancellable": {
        "properties": {
          "code": {
            "const": "sms_not_cancellable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "state": {
                "enum": [
                  "scheduled",
                  "queued",
                  "in_flight",
                  "uncertain",
                  "sent",
                  "delivered",
                  "failed",
                  "cancelled",
                  "held_for_balance",
                  "received"
                ],
                "type": "string"
              }
            },
            "required": [
              "state"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sms_not_found": {
        "properties": {
          "code": {
            "const": "sms_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sms_reference_taken": {
        "properties": {
          "code": {
            "const": "sms_reference_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sms_schedule_in_past": {
        "properties": {
          "code": {
            "const": "sms_schedule_in_past",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sms_sender_changed": {
        "properties": {
          "code": {
            "const": "sms_sender_changed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.sms_too_long": {
        "properties": {
          "code": {
            "const": "sms_too_long",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "characters": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "maximum": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "characters",
              "maximum"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.speech_voice_unavailable": {
        "properties": {
          "code": {
            "const": "speech_voice_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "voice": {
                "type": "string"
              }
            },
            "required": [
              "voice"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.template_not_found": {
        "properties": {
          "code": {
            "const": "template_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.template_syntax_invalid": {
        "properties": {
          "code": {
            "const": "template_syntax_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "at": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "part": {
                "enum": [
                  "subject",
                  "text",
                  "html"
                ],
                "type": "string"
              }
            },
            "required": [
              "at"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.template_variable_missing": {
        "properties": {
          "code": {
            "const": "template_variable_missing",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "missing": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            },
            "required": [
              "missing"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.template_wrong_service": {
        "properties": {
          "code": {
            "const": "template_wrong_service",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "service": {
                "type": "string"
              }
            },
            "required": [
              "service"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.test_mode_only": {
        "properties": {
          "code": {
            "const": "test_mode_only",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.test_number_unavailable": {
        "properties": {
          "code": {
            "const": "test_number_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.transcript_not_found": {
        "properties": {
          "code": {
            "const": "transcript_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.transcription_audio_too_long": {
        "properties": {
          "code": {
            "const": "transcription_audio_too_long",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "maxSeconds": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "seconds": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "maxSeconds",
              "seconds"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.transcription_audio_unreadable": {
        "properties": {
          "code": {
            "const": "transcription_audio_unreadable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.transcription_job_in_progress": {
        "properties": {
          "code": {
            "const": "transcription_job_in_progress",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.transcription_not_completed": {
        "properties": {
          "code": {
            "const": "transcription_not_completed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.transcription_session_not_found": {
        "properties": {
          "code": {
            "const": "transcription_session_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.unauthenticated": {
        "properties": {
          "code": {
            "const": "unauthenticated",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_already_attached": {
        "properties": {
          "code": {
            "const": "upload_already_attached",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_direct_unavailable": {
        "properties": {
          "code": {
            "const": "upload_direct_unavailable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "over_direct_limit",
                  "busy",
                  "not_offered"
                ],
                "type": "string"
              }
            },
            "required": [
              "reason"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_expired": {
        "properties": {
          "code": {
            "const": "upload_expired",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_failed": {
        "properties": {
          "code": {
            "const": "upload_failed",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "enum": [
                  "size_over_cap",
                  "size_mismatch",
                  "type_not_accepted",
                  "type_mismatch",
                  "type_undetectable",
                  "content_rejected",
                  "replaced",
                  "infected",
                  "deadline",
                  "released",
                  "erased",
                  "discarded"
                ],
                "type": "string"
              }
            },
            "required": [
              "reason"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_infected": {
        "properties": {
          "code": {
            "const": "upload_infected",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_not_found": {
        "properties": {
          "code": {
            "const": "upload_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_not_ready": {
        "properties": {
          "code": {
            "const": "upload_not_ready",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_not_received": {
        "properties": {
          "code": {
            "const": "upload_not_received",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": true,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_replaced": {
        "properties": {
          "code": {
            "const": "upload_replaced",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_size_required": {
        "properties": {
          "code": {
            "const": "upload_size_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_too_large": {
        "properties": {
          "code": {
            "const": "upload_too_large",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.upload_type_not_accepted": {
        "properties": {
          "code": {
            "const": "upload_type_not_accepted",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.verification_required": {
        "properties": {
          "code": {
            "const": "verification_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.voice_policy_not_accepted": {
        "properties": {
          "code": {
            "const": "voice_policy_not_accepted",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_body_too_large": {
        "properties": {
          "code": {
            "const": "webhook_body_too_large",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_cursor_invalid": {
        "properties": {
          "code": {
            "const": "webhook_cursor_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_delivery_body_erased": {
        "properties": {
          "code": {
            "const": "webhook_delivery_body_erased",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_delivery_not_found": {
        "properties": {
          "code": {
            "const": "webhook_delivery_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_delivery_not_replayable": {
        "properties": {
          "code": {
            "const": "webhook_delivery_not_replayable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_endpoint_conflict": {
        "properties": {
          "code": {
            "const": "webhook_endpoint_conflict",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_endpoint_invalid": {
        "properties": {
          "code": {
            "const": "webhook_endpoint_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_endpoint_keys_unusable": {
        "properties": {
          "code": {
            "const": "webhook_endpoint_keys_unusable",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_endpoint_not_found": {
        "properties": {
          "code": {
            "const": "webhook_endpoint_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_endpoint_url_refused": {
        "properties": {
          "code": {
            "const": "webhook_endpoint_url_refused",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_endpoint_version_other": {
        "properties": {
          "code": {
            "const": "webhook_endpoint_version_other",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_event_erased": {
        "properties": {
          "code": {
            "const": "webhook_event_erased",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_event_expired": {
        "properties": {
          "code": {
            "const": "webhook_event_expired",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_event_refused": {
        "properties": {
          "code": {
            "const": "webhook_event_refused",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_event_undeclared": {
        "properties": {
          "code": {
            "const": "webhook_event_undeclared",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_identity_conflict": {
        "properties": {
          "code": {
            "const": "webhook_identity_conflict",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_payload_invalid": {
        "properties": {
          "code": {
            "const": "webhook_payload_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.webhook_payload_not_json": {
        "properties": {
          "code": {
            "const": "webhook_payload_not_json",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "required": [
              "message"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.write_conflict": {
        "properties": {
          "code": {
            "const": "write_conflict",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "upload.bytes.failure": {
        "properties": {
          "failure": {
            "properties": {
              "commit": {
                "const": "unknown",
                "type": "string"
              },
              "detail": {
                "type": "string"
              },
              "issues": {
                "items": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "path": {
                      "items": {
                        "type": [
                          "string",
                          "integer"
                        ]
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "path",
                    "message",
                    "code"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "kind": {
                "enum": [
                  "invalid",
                  "bug",
                  "outage",
                  "not_found",
                  "not_served"
                ],
                "type": "string"
              },
              "requestId": {
                "type": "string"
              },
              "retryAfterMs": {
                "minimum": 0,
                "type": "integer"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          },
          "ok": {
            "const": false
          }
        },
        "required": [
          "failure",
          "ok"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.acknowledgement_required": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "acknowledgement_required",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.audit_unavailable": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "audit_unavailable",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.company_identity_fixed": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "company_identity_fixed",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.forbidden": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "forbidden",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.idempotency_conflict": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "idempotency_conflict",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.idempotency_unsupported": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "idempotency_unsupported",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.identity_document_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "identity_document_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.identity_not_editable": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "identity_not_editable",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.identity_not_editable.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.identity_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "identity_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.profile_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "profile_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.rate_limited": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "rate_limited",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.revision_conflict": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "revision_conflict",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.scope_missing": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "scope_missing",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.scope_missing.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.service_not_open": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "service_not_open",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.service_not_open.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.unauthenticated": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "unauthenticated",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_already_attached": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_already_attached",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_direct_unavailable": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_direct_unavailable",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable.meta"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_expired": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_expired",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_failed": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_failed",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.upload_failed.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_infected": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_infected",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_not_ready": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_not_ready",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_not_received": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_not_received",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_replaced": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_replaced",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_size_required": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_size_required",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_too_large": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_too_large",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.upload_type_not_accepted": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_type_not_accepted",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.bytes.refusal.write_conflict": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "write_conflict",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.calls.audio.upload.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "action",
              "contentType",
              "name"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "skipParts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "attach": {
                "type": "boolean"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "items": {
                  "properties": {
                    "etag": {
                      "maxLength": 256,
                      "type": "string"
                    },
                    "partNumber": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "etag",
                    "partNumber"
                  ],
                  "type": "object"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "attach",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.calls.audio.upload.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.calls.audio.upload.rich.Price": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "In the currency's smallest unit: 69 is 0,69 kr.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "currency": {
            "description": "The currency, ISO 4217.",
            "enum": [
              "NOK"
            ],
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "upload.calls.audio.upload.rich.Speech": {
        "additionalProperties": false,
        "properties": {
          "characters": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The characters the speech was charged for, once made."
          },
          "createdAt": {
            "description": "When it was asked for or uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The audio's id: what `calls.play`, `calls.start` and `stt.transcribe` take as `audioId`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language it is spoken in (`no`, `en`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Your own name for it; speech made without one is named by the start of its text.",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/upload.calls.audio.upload.rich.Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once made; `null` before."
          },
          "readyAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it became `ready`, ISO 8601 in UTC; `null` until then."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its length in whole seconds, once measured; `null` before."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "description": "`tts`: made from `text`; `upload`: uploaded audio, with no text or voice.",
            "enum": [
              "tts",
              "upload"
            ],
            "type": "string"
          },
          "state": {
            "description": "`pending` while it is made, `ready` to play, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "ready",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text it speaks; `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "voice": {
            "description": "The id of the voice that speaks it (`tts.voices.list`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "characters",
          "createdAt",
          "id",
          "identity",
          "language",
          "name",
          "price",
          "readyAt",
          "seconds",
          "simulated",
          "source",
          "state",
          "text",
          "voice"
        ],
        "type": "object"
      },
      "upload.calls.audio.upload.rich.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "action",
              "contentType",
              "name"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "skipParts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "properties": {
                        "etag": {
                          "maxLength": 256,
                          "type": "string"
                        },
                        "partNumber": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "etag",
                        "partNumber"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "attach",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.calls.audio.upload.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/upload.calls.audio.upload.rich.Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.calls.audio.upload.send.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "name": {
            "description": "Your own name for the audio.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "name",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.calls.audio.upload.send.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.calls.audio.upload.send.rich.Price": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "In the currency's smallest unit: 69 is 0,69 kr.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "currency": {
            "description": "The currency, ISO 4217.",
            "enum": [
              "NOK"
            ],
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "upload.calls.audio.upload.send.rich.Speech": {
        "additionalProperties": false,
        "properties": {
          "characters": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The characters the speech was charged for, once made."
          },
          "createdAt": {
            "description": "When it was asked for or uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The audio's id: what `calls.play`, `calls.start` and `stt.transcribe` take as `audioId`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language it is spoken in (`no`, `en`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Your own name for it; speech made without one is named by the start of its text.",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/upload.calls.audio.upload.send.rich.Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once made; `null` before."
          },
          "readyAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it became `ready`, ISO 8601 in UTC; `null` until then."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its length in whole seconds, once measured; `null` before."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "description": "`tts`: made from `text`; `upload`: uploaded audio, with no text or voice.",
            "enum": [
              "tts",
              "upload"
            ],
            "type": "string"
          },
          "state": {
            "description": "`pending` while it is made, `ready` to play, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "ready",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text it speaks; `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "voice": {
            "description": "The id of the voice that speaks it (`tts.voices.list`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "characters",
          "createdAt",
          "id",
          "identity",
          "language",
          "name",
          "price",
          "readyAt",
          "seconds",
          "simulated",
          "source",
          "state",
          "text",
          "voice"
        ],
        "type": "object"
      },
      "upload.calls.audio.upload.send.rich.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "name": {
            "description": "Your own name for the audio.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "name",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.calls.audio.upload.send.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/upload.calls.audio.upload.send.rich.Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.email.attachments.upload.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "action",
              "contentType"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "skipParts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "parts": {
                "items": {
                  "properties": {
                    "etag": {
                      "maxLength": 256,
                      "type": "string"
                    },
                    "partNumber": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "etag",
                    "partNumber"
                  ],
                  "type": "object"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.email.attachments.upload.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.email.attachments.upload.rich.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "action",
              "contentType"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "skipParts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "properties": {
                        "etag": {
                          "maxLength": 256,
                          "type": "string"
                        },
                        "partNumber": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "etag",
                        "partNumber"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.email.attachments.upload.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.email.attachments.upload.send.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.email.attachments.upload.send.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.email.attachments.upload.send.rich.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.email.attachments.upload.send.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.failure": {
        "properties": {
          "failure": {
            "properties": {
              "commit": {
                "const": "unknown",
                "type": "string"
              },
              "detail": {
                "type": "string"
              },
              "issues": {
                "items": {
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "path": {
                      "items": {
                        "type": [
                          "string",
                          "integer"
                        ]
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "path",
                    "message",
                    "code"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "kind": {
                "enum": [
                  "invalid",
                  "bug",
                  "outage",
                  "not_found",
                  "not_served"
                ],
                "type": "string"
              },
              "requestId": {
                "type": "string"
              },
              "retryAfterMs": {
                "minimum": 0,
                "type": "integer"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "requestId"
            ],
            "type": "object"
          },
          "ok": {
            "const": false
          }
        },
        "required": [
          "failure",
          "ok"
        ],
        "type": "object"
      },
      "upload.identities.documents.upload.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "fileName": {
                "description": "The file's name; its kind when left out.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "replaces": {
                "description": "A current document of the identity this file replaces.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "action",
              "contentType",
              "identity",
              "kind"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "fileName": {
                "description": "The file's name; its kind when left out.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "replaces": {
                "description": "A current document of the identity this file replaces.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "skipParts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "attach": {
                "type": "boolean"
              },
              "fileName": {
                "description": "The file's name; its kind when left out.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "parts": {
                "items": {
                  "properties": {
                    "etag": {
                      "maxLength": 256,
                      "type": "string"
                    },
                    "partNumber": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "etag",
                    "partNumber"
                  ],
                  "type": "object"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "replaces": {
                "description": "A current document of the identity this file replaces.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "fileName": {
                "description": "The file's name; its kind when left out.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "replaces": {
                "description": "A current document of the identity this file replaces.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "fileName": {
                "description": "The file's name; its kind when left out.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "replaces": {
                "description": "A current document of the identity this file replaces.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "attach",
                "type": "string"
              },
              "fileName": {
                "description": "The file's name; its kind when left out.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "replaces": {
                "description": "A current document of the identity this file replaces.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.identities.documents.upload.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/IdentityDocument"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.identities.documents.upload.rich.IdentityDocument": {
        "additionalProperties": false,
        "properties": {
          "contentType": {
            "description": "The file's media type: `application/pdf`.",
            "type": "string"
          },
          "fileName": {
            "description": "The file's name.",
            "type": "string"
          },
          "id": {
            "description": "The document's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "kind": {
            "description": "What it proves: `registration_certificate`, `authorization`, `signatory_id` or `other`.",
            "enum": [
              "registration_certificate",
              "authorization",
              "signatory_id",
              "other"
            ],
            "type": "string"
          },
          "sizeBytes": {
            "description": "The file's size in bytes.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "uploadedAt": {
            "description": "When it was uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "contentType",
          "fileName",
          "id",
          "kind",
          "sizeBytes",
          "uploadedAt"
        ],
        "type": "object"
      },
      "upload.identities.documents.upload.rich.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "fileName": {
                "anyOf": [
                  {
                    "description": "The file's name; its kind when left out.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "replaces": {
                "anyOf": [
                  {
                    "description": "A current document of the identity this file replaces.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "action",
              "contentType",
              "identity",
              "kind"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fileName": {
                "anyOf": [
                  {
                    "description": "The file's name; its kind when left out.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "replaces": {
                "anyOf": [
                  {
                    "description": "A current document of the identity this file replaces.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "skipParts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "fileName": {
                "anyOf": [
                  {
                    "description": "The file's name; its kind when left out.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "properties": {
                        "etag": {
                          "maxLength": 256,
                          "type": "string"
                        },
                        "partNumber": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "etag",
                        "partNumber"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "replaces": {
                "anyOf": [
                  {
                    "description": "A current document of the identity this file replaces.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "fileName": {
                "anyOf": [
                  {
                    "description": "The file's name; its kind when left out.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "replaces": {
                "anyOf": [
                  {
                    "description": "A current document of the identity this file replaces.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "fileName": {
                "anyOf": [
                  {
                    "description": "The file's name; its kind when left out.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "replaces": {
                "anyOf": [
                  {
                    "description": "A current document of the identity this file replaces.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "attach",
                "type": "string"
              },
              "fileName": {
                "anyOf": [
                  {
                    "description": "The file's name; its kind when left out.",
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identity": {
                "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
                "enum": [
                  "registration_certificate",
                  "authorization",
                  "signatory_id",
                  "other"
                ],
                "type": "string"
              },
              "replaces": {
                "anyOf": [
                  {
                    "description": "A current document of the identity this file replaces.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "identity",
              "kind",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.identities.documents.upload.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/upload.identities.documents.upload.rich.IdentityDocument"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.identities.documents.upload.send.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "fileName": {
            "description": "The file's name; its kind when left out.",
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "kind": {
            "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
            "enum": [
              "registration_certificate",
              "authorization",
              "signatory_id",
              "other"
            ],
            "type": "string"
          },
          "replaces": {
            "description": "A current document of the identity this file replaces.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "identity",
          "kind",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.identities.documents.upload.send.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/IdentityDocument"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.identities.documents.upload.send.rich.IdentityDocument": {
        "additionalProperties": false,
        "properties": {
          "contentType": {
            "description": "The file's media type: `application/pdf`.",
            "type": "string"
          },
          "fileName": {
            "description": "The file's name.",
            "type": "string"
          },
          "id": {
            "description": "The document's id.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "kind": {
            "description": "What it proves: `registration_certificate`, `authorization`, `signatory_id` or `other`.",
            "enum": [
              "registration_certificate",
              "authorization",
              "signatory_id",
              "other"
            ],
            "type": "string"
          },
          "sizeBytes": {
            "description": "The file's size in bytes.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "uploadedAt": {
            "description": "When it was uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          }
        },
        "required": [
          "contentType",
          "fileName",
          "id",
          "kind",
          "sizeBytes",
          "uploadedAt"
        ],
        "type": "object"
      },
      "upload.identities.documents.upload.send.rich.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "fileName": {
            "anyOf": [
              {
                "description": "The file's name; its kind when left out.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "identity": {
            "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "kind": {
            "description": "`registration_certificate`: the register's certificate of the business; `authorization`: the signatory's authorization to act for it; `signatory_id`: the signatory's ID; `other`.",
            "enum": [
              "registration_certificate",
              "authorization",
              "signatory_id",
              "other"
            ],
            "type": "string"
          },
          "replaces": {
            "anyOf": [
              {
                "description": "A current document of the identity this file replaces.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "identity",
          "kind",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.identities.documents.upload.send.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/upload.identities.documents.upload.send.rich.IdentityDocument"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.senders.uploadLogo.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "action",
              "contentType"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "skipParts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "parts": {
                "items": {
                  "properties": {
                    "etag": {
                      "maxLength": 256,
                      "type": "string"
                    },
                    "partNumber": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "etag",
                    "partNumber"
                  ],
                  "type": "object"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.senders.uploadLogo.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.senders.uploadLogo.rich.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "action",
              "contentType"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "skipParts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "properties": {
                        "etag": {
                          "maxLength": 256,
                          "type": "string"
                        },
                        "partNumber": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "etag",
                        "partNumber"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.senders.uploadLogo.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.senders.uploadLogo.send.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.letters.senders.uploadLogo.send.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.senders.uploadLogo.send.rich.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.letters.senders.uploadLogo.send.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.uploadPdf.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "action",
              "contentType"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "skipParts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "parts": {
                "items": {
                  "properties": {
                    "etag": {
                      "maxLength": 256,
                      "type": "string"
                    },
                    "partNumber": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "etag",
                    "partNumber"
                  ],
                  "type": "object"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.uploadPdf.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.uploadPdf.rich.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "action",
              "contentType"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "skipParts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "properties": {
                        "etag": {
                          "maxLength": 256,
                          "type": "string"
                        },
                        "partNumber": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "etag",
                        "partNumber"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.uploadPdf.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.uploadPdf.send.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.letters.uploadPdf.send.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.letters.uploadPdf.send.rich.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.letters.uploadPdf.send.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "not": {}
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.refusal.acknowledgement_required": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "acknowledgement_required",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.audit_unavailable": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "audit_unavailable",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.company_identity_fixed": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "company_identity_fixed",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.forbidden": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "forbidden",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.idempotency_conflict": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "idempotency_conflict",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.idempotency_unsupported": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "idempotency_unsupported",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.identity_document_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "identity_document_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.identity_not_editable": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "identity_not_editable",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.identity_not_editable.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.identity_not_editable.meta": {
        "additionalProperties": false,
        "properties": {
          "state": {
            "enum": [
              "draft",
              "submitted",
              "approved",
              "rejected",
              "suspended"
            ],
            "type": "string"
          }
        },
        "required": [
          "state"
        ],
        "type": "object"
      },
      "upload.refusal.identity_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "identity_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.profile_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "profile_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.rate_limited": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "rate_limited",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.revision_conflict": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "revision_conflict",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.scope_missing": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "scope_missing",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.scope_missing.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.scope_missing.meta": {
        "additionalProperties": false,
        "properties": {
          "scope": {
            "enum": [
              "sms:send",
              "sms:read",
              "email:send",
              "email:read",
              "letters:send",
              "letters:read",
              "calls:write",
              "calls:read",
              "calls:client",
              "numbers:manage",
              "numbers:read",
              "agents:manage",
              "solutions:manage",
              "transcription:write",
              "transcription:read",
              "webhooks:manage",
              "events:read",
              "profiles:manage",
              "contacts:manage",
              "usage:read",
              "privacy:erase"
            ],
            "type": "string"
          }
        },
        "required": [
          "scope"
        ],
        "type": "object"
      },
      "upload.refusal.service_not_open": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "service_not_open",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.service_not_open.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.service_not_open.meta": {
        "additionalProperties": false,
        "properties": {
          "service": {
            "enum": [
              "sms",
              "email",
              "letters",
              "phone"
            ],
            "type": "string"
          }
        },
        "required": [
          "service"
        ],
        "type": "object"
      },
      "upload.refusal.unauthenticated": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "unauthenticated",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_already_attached": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_already_attached",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_direct_unavailable": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_direct_unavailable",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable.meta"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_direct_unavailable.meta": {
        "additionalProperties": false,
        "properties": {
          "reason": {
            "enum": [
              "over_direct_limit",
              "busy",
              "not_offered"
            ],
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "type": "object"
      },
      "upload.refusal.upload_expired": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_expired",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_failed": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_failed",
                "type": "string"
              },
              "meta": {
                "$ref": "#/components/schemas/upload.refusal.upload_failed.meta"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_failed.meta": {
        "additionalProperties": false,
        "properties": {
          "reason": {
            "enum": [
              "size_over_cap",
              "size_mismatch",
              "type_not_accepted",
              "type_mismatch",
              "type_undetectable",
              "content_rejected",
              "replaced",
              "infected",
              "deadline",
              "released",
              "erased",
              "discarded"
            ],
            "type": "string"
          }
        },
        "required": [
          "reason"
        ],
        "type": "object"
      },
      "upload.refusal.upload_infected": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_infected",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_not_found": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_not_found",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_not_ready": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_not_ready",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_not_received": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_not_received",
                "type": "string"
              },
              "retryable": {
                "const": true,
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "retryable"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_replaced": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_replaced",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_size_required": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_size_required",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_too_large": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_too_large",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.upload_type_not_accepted": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "upload_type_not_accepted",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.refusal.write_conflict": {
        "properties": {
          "ok": {
            "const": false
          },
          "refusal": {
            "properties": {
              "code": {
                "const": "write_conflict",
                "type": "string"
              }
            },
            "required": [
              "code"
            ],
            "type": "object"
          }
        },
        "required": [
          "ok",
          "refusal"
        ],
        "type": "object"
      },
      "upload.stt.audio.upload.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "action",
              "contentType",
              "name"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "pattern": "^[A-Za-z0-9+/]{43}=$",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 10000,
                  "type": "integer"
                },
                "maxItems": 100,
                "type": "array"
              },
              "skipParts": {
                "items": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "attach": {
                "type": "boolean"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "items": {
                  "properties": {
                    "etag": {
                      "maxLength": 256,
                      "type": "string"
                    },
                    "partNumber": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "etag",
                    "partNumber"
                  ],
                  "type": "object"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "attach",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.stt.audio.upload.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.stt.audio.upload.rich.Price": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "In the currency's smallest unit: 69 is 0,69 kr.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "currency": {
            "description": "The currency, ISO 4217.",
            "enum": [
              "NOK"
            ],
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "upload.stt.audio.upload.rich.Speech": {
        "additionalProperties": false,
        "properties": {
          "characters": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The characters the speech was charged for, once made."
          },
          "createdAt": {
            "description": "When it was asked for or uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The audio's id: what `calls.play`, `calls.start` and `stt.transcribe` take as `audioId`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language it is spoken in (`no`, `en`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Your own name for it; speech made without one is named by the start of its text.",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/upload.stt.audio.upload.rich.Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once made; `null` before."
          },
          "readyAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it became `ready`, ISO 8601 in UTC; `null` until then."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its length in whole seconds, once measured; `null` before."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "description": "`tts`: made from `text`; `upload`: uploaded audio, with no text or voice.",
            "enum": [
              "tts",
              "upload"
            ],
            "type": "string"
          },
          "state": {
            "description": "`pending` while it is made, `ready` to play, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "ready",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text it speaks; `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "voice": {
            "description": "The id of the voice that speaks it (`tts.voices.list`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "characters",
          "createdAt",
          "id",
          "identity",
          "language",
          "name",
          "price",
          "readyAt",
          "seconds",
          "simulated",
          "source",
          "state",
          "text",
          "voice"
        ],
        "type": "object"
      },
      "upload.stt.audio.upload.rich.input": {
        "oneOf": [
          {
            "properties": {
              "action": {
                "const": "open",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contentType": {
                "maxLength": 255,
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "action",
              "contentType",
              "name"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "renew",
                "type": "string"
              },
              "checksumSha256": {
                "anyOf": [
                  {
                    "pattern": "^[A-Za-z0-9+/]{43}=$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 10000,
                      "type": "integer"
                    },
                    "maxItems": 100,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "skipParts": {
                "anyOf": [
                  {
                    "items": {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "finalize",
                "type": "string"
              },
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "parts": {
                "anyOf": [
                  {
                    "items": {
                      "properties": {
                        "etag": {
                          "maxLength": 256,
                          "type": "string"
                        },
                        "partNumber": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "etag",
                        "partNumber"
                      ],
                      "type": "object"
                    },
                    "maxItems": 10000,
                    "type": "array"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "status",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "release",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "properties": {
              "action": {
                "const": "attach",
                "type": "string"
              },
              "name": {
                "description": "Your own name for the audio.",
                "maxLength": 120,
                "minLength": 1,
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "action",
              "name",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.stt.audio.upload.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "step": {
                "const": "opened",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "attach",
              "expiresAt",
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "renewed",
                "type": "string"
              },
              "target": {
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "headers": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "kind": {
                        "const": "url",
                        "type": "string"
                      },
                      "method": {
                        "const": "PUT",
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "headers",
                      "kind",
                      "method",
                      "url"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "kind": {
                        "const": "parts",
                        "type": "string"
                      },
                      "partBytes": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "parts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "partNumber": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            },
                            "url": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "partNumber",
                            "url"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "kind",
                      "partBytes",
                      "parts"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "kind": {
                        "const": "server",
                        "type": "string"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "type": "object"
                  }
                ]
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "target",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "step": {
                "const": "released",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              }
            },
            "required": [
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/upload.stt.audio.upload.rich.Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.stt.audio.upload.send.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "name": {
            "description": "Your own name for the audio.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "name",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.stt.audio.upload.send.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": "boolean"
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "format": "date-time",
                "type": "string"
              },
              "retryAfterMs": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "href": {
                    "type": "string"
                  }
                },
                "required": [
                  "expiresAt",
                  "href"
                ],
                "type": "object"
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      },
      "upload.stt.audio.upload.send.rich.Price": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "In the currency's smallest unit: 69 is 0,69 kr.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "currency": {
            "description": "The currency, ISO 4217.",
            "enum": [
              "NOK"
            ],
            "type": "string"
          }
        },
        "required": [
          "amount",
          "currency"
        ],
        "type": "object"
      },
      "upload.stt.audio.upload.send.rich.Speech": {
        "additionalProperties": false,
        "properties": {
          "characters": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The characters the speech was charged for, once made."
          },
          "createdAt": {
            "description": "When it was asked for or uploaded, ISO 8601 in UTC.",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "type": "string"
          },
          "id": {
            "description": "The audio's id: what `calls.play`, `calls.start` and `stt.transcribe` take as `audioId`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "identity": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "description": "Telkit's id of the identity.",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                    "type": "string"
                  },
                  "reference": {
                    "description": "Your own name for the identity; `null` when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "reference"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The business it concerns; `null` for your own company."
          },
          "language": {
            "description": "The language it is spoken in (`no`, `en`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "Your own name for it; speech made without one is named by the start of its text.",
            "type": "string"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/upload.stt.audio.upload.send.rich.Price"
              },
              {
                "type": "null"
              }
            ],
            "description": "What it cost, once made; `null` before."
          },
          "readyAt": {
            "anyOf": [
              {
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it became `ready`, ISO 8601 in UTC; `null` until then."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Its length in whole seconds, once measured; `null` before."
          },
          "simulated": {
            "description": "`true`: it was made with a test key.",
            "type": "boolean"
          },
          "source": {
            "description": "`tts`: made from `text`; `upload`: uploaded audio, with no text or voice.",
            "enum": [
              "tts",
              "upload"
            ],
            "type": "string"
          },
          "state": {
            "description": "`pending` while it is made, `ready` to play, `failed` (nothing charged), or `uncertain` when the speech vendor's answer was lost: Telkit's staff settle it.",
            "enum": [
              "pending",
              "ready",
              "failed",
              "uncertain"
            ],
            "type": "string"
          },
          "text": {
            "description": "The text it speaks; `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          },
          "voice": {
            "description": "The id of the voice that speaks it (`tts.voices.list`); `null` for uploaded audio.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "characters",
          "createdAt",
          "id",
          "identity",
          "language",
          "name",
          "price",
          "readyAt",
          "seconds",
          "simulated",
          "source",
          "state",
          "text",
          "voice"
        ],
        "type": "object"
      },
      "upload.stt.audio.upload.send.rich.input": {
        "properties": {
          "action": {
            "const": "send",
            "type": "string"
          },
          "contentType": {
            "maxLength": 255,
            "type": "string"
          },
          "name": {
            "description": "Your own name for the audio.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "sizeBytes": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "action",
          "contentType",
          "name",
          "sizeBytes"
        ],
        "type": "object"
      },
      "upload.stt.audio.upload.send.rich.output": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "attach": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "contentType": {
                "type": "string"
              },
              "expiresAt": {
                "anyOf": [
                  {
                    "format": "date-time",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retryAfterMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "state": {
                "enum": [
                  "ready",
                  "scanning"
                ],
                "type": "string"
              },
              "step": {
                "const": "finalized",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "contentType",
              "sizeBytes",
              "state",
              "step",
              "uploadId"
            ],
            "type": "object"
          },
          {
            "additionalProperties": false,
            "properties": {
              "answer": {
                "$ref": "#/components/schemas/upload.stt.audio.upload.send.rich.Speech"
              },
              "contentType": {
                "type": "string"
              },
              "sizeBytes": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "step": {
                "const": "attached",
                "type": "string"
              },
              "uploadId": {
                "maxLength": 64,
                "type": "string"
              },
              "url": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "expiresAt": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "href": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "expiresAt",
                      "href"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "answer",
              "contentType",
              "sizeBytes",
              "step",
              "uploadId"
            ],
            "type": "object"
          }
        ]
      }
    },
    "securitySchemes": {
      "apiKey": {
        "description": "An API key sent as a bearer token.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "SMS, email, letters, calls, numbers and speech by API. Authenticate with an API key as a bearer token; a key acts in its own application and mode.",
    "title": "Telkit API",
    "version": "2026-11"
  },
  "openapi": "3.1.0",
  "paths": {
    "/upload/api/calls.audio.upload": {
      "post": {
        "description": "Uploads audio to play in a call: an MP3 or a WAV of at most 25 MiB, free. The answer's `id` is what `calls.play` and `calls.start` take as `audioId`; its length is measured after the upload. Scope: `calls:write`.\n\nUpload door steps: open, renew, finalize, status and release. Attach consumes the finalized upload and returns the procedure's output; finalize with attach: true finalizes and attaches in one call (keyed as the attach step), and answers upload_not_ready while the scan runs. Open returns the upload target; target.kind: server uses the PUT path below. A file of at most 10485760 bytes can go in one call instead: PUT on this path (operation calls.audio.upload.send). Accepts audio/mpeg, audio/wav, at most 26214400 bytes. With the typed transformer, non-JSON inputs use a rich-v2 envelope and matching meta annotations. Refusals: the framework's, the upload door's and the codes its base lists in allow({ codes }).",
        "operationId": "calls.audio.upload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/upload.calls.audio.upload.input"
                  },
                  {
                    "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                    "properties": {
                      "__pk": {
                        "const": "pekka.rich"
                      },
                      "json": {
                        "$ref": "#/components/schemas/upload.calls.audio.upload.rich.input"
                      },
                      "meta": {
                        "items": {
                          "properties": {
                            "path": {
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "Date",
                                "bigint",
                                "undefined",
                                "Uint8Array",
                                "Map",
                                "Set"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "path",
                            "type"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "v": {
                        "const": 2
                      }
                    },
                    "required": [
                      "__pk",
                      "json",
                      "v"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.calls.audio.upload.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The step's answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.profile_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file is larger than this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file's media type is not one this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "audio/mpeg",
            "audio/wav"
          ],
          "attach": true,
          "idempotency": "none",
          "idempotencyStep": "attach",
          "input": {
            "$ref": "#/components/schemas/upload.calls.audio.upload.input"
          },
          "kind": "upload",
          "maxBytes": 26214400,
          "output": {
            "$ref": "#/components/schemas/upload.calls.audio.upload.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "profile_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "steps",
          "successStatus": 200
        }
      },
      "put": {
        "description": "One call for a file of at most 10485760 bytes: the step (contentType, sizeBytes and the procedure's input keys) in the input query parameter, the file as the body with its Content-Length. It is checked before a byte is read (over the limit or the server's memory budget: upload_direct_unavailable, then use the steps), scanned, stored and attached in this request. Once the upload exists every answer names it in x-pekka-upload-id. A retry with the same Idempotency-Key replays the first answer, never a second file.",
        "operationId": "calls.audio.upload.send",
        "parameters": [
          {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/upload.calls.audio.upload.send.input"
                    },
                    {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.calls.audio.upload.send.rich.input"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "in": "query",
            "name": "input",
            "required": true
          },
          {
            "description": "The one-call upload's key (optional).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "audio/mpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "audio/wav": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.calls.audio.upload.send.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload, stored and checked.",
            "headers": {
              "x-pekka-upload-id": {
                "description": "The upload's id.",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.profile_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "411": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "No Content-Length (length_required): the size is checked before a byte is read."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "audio/mpeg",
            "audio/wav"
          ],
          "attach": true,
          "idempotency": "optional",
          "idempotencyStep": "send",
          "input": {
            "$ref": "#/components/schemas/upload.calls.audio.upload.send.input"
          },
          "kind": "upload",
          "maxBytes": 10485760,
          "output": {
            "$ref": "#/components/schemas/upload.calls.audio.upload.send.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "profile_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "send",
          "successStatus": 200
        }
      }
    },
    "/upload/api/calls.audio.upload/{uploadId}": {
      "put": {
        "description": "Send bytes here only when open returned target.kind: server. A body over 26214400 bytes is cut and refused.",
        "operationId": "calls.audio.upload.bytes",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "uploadId",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "audio/mpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "audio/wav": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "uploadId": {
                          "maxLength": 64,
                          "type": "string"
                        }
                      },
                      "required": [
                        "uploadId"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The bytes are stored."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.profile_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "kind": "upload",
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "profile_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "bytes",
          "successStatus": 200
        }
      }
    },
    "/upload/api/email.attachments.upload": {
      "post": {
        "description": "Uploads a file to attach to an email: name its upload id as `attachments[].uploadId` in `email.send`, `email.reply` or `email.forward` with the same key. A small file can go as base64 in the send instead. An upload no send uses expires. Scope: `email:send`.\n\nUpload door steps: open, renew, finalize, status and release. A later operation consumes this upload; it has no attach step. Open returns the upload target; target.kind: server uses the PUT path below. A file of at most 10485760 bytes can go in one call instead: PUT on this path (operation email.attachments.upload.send). Accepts application/pdf, image/png, image/jpeg, image/gif, image/webp, text/plain, text/csv, text/calendar, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.oasis.opendocument.text, application/vnd.oasis.opendocument.spreadsheet, at most 10485760 bytes. With the typed transformer, non-JSON inputs use a rich-v2 envelope and matching meta annotations. Refusals: the framework's, the upload door's and the codes its base lists in allow({ codes }).",
        "operationId": "email.attachments.upload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/upload.email.attachments.upload.input"
                  },
                  {
                    "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                    "properties": {
                      "__pk": {
                        "const": "pekka.rich"
                      },
                      "json": {
                        "$ref": "#/components/schemas/upload.email.attachments.upload.rich.input"
                      },
                      "meta": {
                        "items": {
                          "properties": {
                            "path": {
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "Date",
                                "bigint",
                                "undefined",
                                "Uint8Array",
                                "Map",
                                "Set"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "path",
                            "type"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "v": {
                        "const": 2
                      }
                    },
                    "required": [
                      "__pk",
                      "json",
                      "v"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.email.attachments.upload.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The step's answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file is larger than this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file's media type is not one this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "application/pdf",
            "image/png",
            "image/jpeg",
            "image/gif",
            "image/webp",
            "text/plain",
            "text/csv",
            "text/calendar",
            "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
            "application/vnd.openxmlformats-officedocument.presentationml.presentation",
            "application/vnd.oasis.opendocument.text",
            "application/vnd.oasis.opendocument.spreadsheet"
          ],
          "attach": false,
          "idempotency": "none",
          "idempotencyStep": "attach",
          "input": {
            "$ref": "#/components/schemas/upload.email.attachments.upload.input"
          },
          "kind": "upload",
          "maxBytes": 10485760,
          "output": {
            "$ref": "#/components/schemas/upload.email.attachments.upload.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "steps",
          "successStatus": 200
        }
      },
      "put": {
        "description": "One call for a file of at most 10485760 bytes: the step (contentType, sizeBytes and the procedure's input keys) in the input query parameter, the file as the body with its Content-Length. It is checked before a byte is read (over the limit or the server's memory budget: upload_direct_unavailable, then use the steps), scanned, stored and finalized in this request. Once the upload exists every answer names it in x-pekka-upload-id. A retry with the same Idempotency-Key replays the first answer, never a second file.",
        "operationId": "email.attachments.upload.send",
        "parameters": [
          {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/upload.email.attachments.upload.send.input"
                    },
                    {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.email.attachments.upload.send.rich.input"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "in": "query",
            "name": "input",
            "required": true
          },
          {
            "description": "The one-call upload's key (optional).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/pdf": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.oasis.opendocument.spreadsheet": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.oasis.opendocument.text": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.openxmlformats-officedocument.presentationml.presentation": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/gif": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/jpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/png": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/webp": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "text/calendar": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "text/csv": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "text/plain": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.email.attachments.upload.send.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload, stored and checked.",
            "headers": {
              "x-pekka-upload-id": {
                "description": "The upload's id.",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "411": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "No Content-Length (length_required): the size is checked before a byte is read."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "application/pdf",
            "image/png",
            "image/jpeg",
            "image/gif",
            "image/webp",
            "text/plain",
            "text/csv",
            "text/calendar",
            "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
            "application/vnd.openxmlformats-officedocument.presentationml.presentation",
            "application/vnd.oasis.opendocument.text",
            "application/vnd.oasis.opendocument.spreadsheet"
          ],
          "attach": false,
          "idempotency": "optional",
          "idempotencyStep": "send",
          "input": {
            "$ref": "#/components/schemas/upload.email.attachments.upload.send.input"
          },
          "kind": "upload",
          "maxBytes": 10485760,
          "output": {
            "$ref": "#/components/schemas/upload.email.attachments.upload.send.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "send",
          "successStatus": 200
        }
      }
    },
    "/upload/api/email.attachments.upload/{uploadId}": {
      "put": {
        "description": "Send bytes here only when open returned target.kind: server. A body over 10485760 bytes is cut and refused.",
        "operationId": "email.attachments.upload.bytes",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "uploadId",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/pdf": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.oasis.opendocument.spreadsheet": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.oasis.opendocument.text": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.openxmlformats-officedocument.presentationml.presentation": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "application/vnd.openxmlformats-officedocument.wordprocessingml.document": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/gif": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/jpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/png": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/webp": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "text/calendar": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "text/csv": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "text/plain": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "uploadId": {
                          "maxLength": 64,
                          "type": "string"
                        }
                      },
                      "required": [
                        "uploadId"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The bytes are stored."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "kind": "upload",
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "bytes",
          "successStatus": 200
        }
      }
    },
    "/upload/api/identities.documents.upload": {
      "post": {
        "description": "Uploads a document of a business identity that is a `draft` or `rejected`, and puts it on the identity: `requirements` on the identity names the kinds still missing. An identity that does not exist, or your own company, is refused before the bytes are sent. Scope: `numbers:manage`.\n\nUpload door steps: open, renew, finalize, status and release. Attach consumes the finalized upload and returns the procedure's output; finalize with attach: true finalizes and attaches in one call (keyed as the attach step), and answers upload_not_ready while the scan runs. Open returns the upload target; target.kind: server uses the PUT path below. A file of at most 10485760 bytes can go in one call instead: PUT on this path (operation identities.documents.upload.send). Accepts application/pdf, image/png, image/jpeg, at most 10485760 bytes. With the typed transformer, non-JSON inputs use a rich-v2 envelope and matching meta annotations. Refusals: the framework's, the upload door's and the codes its base lists in allow({ codes }).",
        "operationId": "identities.documents.upload",
        "parameters": [
          {
            "description": "Applies only to attach and to finalize with attach: true (optional). The other steps do not require or claim a key.",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/upload.identities.documents.upload.input"
                  },
                  {
                    "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                    "properties": {
                      "__pk": {
                        "const": "pekka.rich"
                      },
                      "json": {
                        "$ref": "#/components/schemas/upload.identities.documents.upload.rich.input"
                      },
                      "meta": {
                        "items": {
                          "properties": {
                            "path": {
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "Date",
                                "bigint",
                                "undefined",
                                "Uint8Array",
                                "Map",
                                "Set"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "path",
                            "type"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "v": {
                        "const": 2
                      }
                    },
                    "required": [
                      "__pk",
                      "json",
                      "v"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.identities.documents.upload.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The step's answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.identity_document_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.identity_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such document on this identity. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.company_identity_fixed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.identity_not_editable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. Only a draft or a rejected identity changes its facts or documents; `meta.state` is where it stands. Withdraw a submitted identity first. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file is larger than this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file's media type is not one this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "application/pdf",
            "image/png",
            "image/jpeg"
          ],
          "attach": true,
          "idempotency": "optional",
          "idempotencyStep": "attach",
          "input": {
            "$ref": "#/components/schemas/upload.identities.documents.upload.input"
          },
          "kind": "upload",
          "maxBytes": 10485760,
          "output": {
            "$ref": "#/components/schemas/upload.identities.documents.upload.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_document_not_found",
            "identity_not_editable",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "steps",
          "successStatus": 200
        }
      },
      "put": {
        "description": "One call for a file of at most 10485760 bytes: the step (contentType, sizeBytes and the procedure's input keys) in the input query parameter, the file as the body with its Content-Length. It is checked before a byte is read (over the limit or the server's memory budget: upload_direct_unavailable, then use the steps), scanned, stored and attached in this request. Once the upload exists every answer names it in x-pekka-upload-id. A retry with the same Idempotency-Key replays the first answer, never a second file.",
        "operationId": "identities.documents.upload.send",
        "parameters": [
          {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/upload.identities.documents.upload.send.input"
                    },
                    {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.identities.documents.upload.send.rich.input"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "in": "query",
            "name": "input",
            "required": true
          },
          {
            "description": "The one-call upload's key (optional).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/pdf": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/jpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/png": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.identities.documents.upload.send.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload, stored and checked.",
            "headers": {
              "x-pekka-upload-id": {
                "description": "The upload's id.",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.identity_document_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.identity_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such document on this identity. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.company_identity_fixed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.identity_not_editable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. Only a draft or a rejected identity changes its facts or documents; `meta.state` is where it stands. Withdraw a submitted identity first. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "411": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "No Content-Length (length_required): the size is checked before a byte is read."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "application/pdf",
            "image/png",
            "image/jpeg"
          ],
          "attach": true,
          "idempotency": "optional",
          "idempotencyStep": "send",
          "input": {
            "$ref": "#/components/schemas/upload.identities.documents.upload.send.input"
          },
          "kind": "upload",
          "maxBytes": 10485760,
          "output": {
            "$ref": "#/components/schemas/upload.identities.documents.upload.send.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_document_not_found",
            "identity_not_editable",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "send",
          "successStatus": 200
        }
      }
    },
    "/upload/api/identities.documents.upload/{uploadId}": {
      "put": {
        "description": "Send bytes here only when open returned target.kind: server. A body over 10485760 bytes is cut and refused.",
        "operationId": "identities.documents.upload.bytes",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "uploadId",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/pdf": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/jpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/png": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "uploadId": {
                          "maxLength": 64,
                          "type": "string"
                        }
                      },
                      "required": [
                        "uploadId"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The bytes are stored."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.identity_document_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.identity_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such document on this identity. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.company_identity_fixed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.identity_not_editable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. Only a draft or a rejected identity changes its facts or documents; `meta.state` is where it stands. Withdraw a submitted identity first. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "kind": "upload",
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_document_not_found",
            "identity_not_editable",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "bytes",
          "successStatus": 200
        }
      }
    },
    "/upload/api/letters.senders.uploadLogo": {
      "post": {
        "description": "Uploads the logo of a letter sender, a PNG or JPEG: name its upload id as `logo.uploadId` in `letters.senders.set` with the same key. Scope: `numbers:manage`.\n\nUpload door steps: open, renew, finalize, status and release. A later operation consumes this upload; it has no attach step. Open returns the upload target; target.kind: server uses the PUT path below. A file of at most 1000000 bytes can go in one call instead: PUT on this path (operation letters.senders.uploadLogo.send). Accepts image/png, image/jpeg, at most 1000000 bytes. With the typed transformer, non-JSON inputs use a rich-v2 envelope and matching meta annotations. Refusals: the framework's, the upload door's and the codes its base lists in allow({ codes }).",
        "operationId": "letters.senders.uploadLogo",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.input"
                  },
                  {
                    "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                    "properties": {
                      "__pk": {
                        "const": "pekka.rich"
                      },
                      "json": {
                        "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.rich.input"
                      },
                      "meta": {
                        "items": {
                          "properties": {
                            "path": {
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "Date",
                                "bigint",
                                "undefined",
                                "Uint8Array",
                                "Map",
                                "Set"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "path",
                            "type"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "v": {
                        "const": 2
                      }
                    },
                    "required": [
                      "__pk",
                      "json",
                      "v"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The step's answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file is larger than this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file's media type is not one this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "image/png",
            "image/jpeg"
          ],
          "attach": false,
          "idempotency": "none",
          "idempotencyStep": "attach",
          "input": {
            "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.input"
          },
          "kind": "upload",
          "maxBytes": 1000000,
          "output": {
            "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "steps",
          "successStatus": 200
        }
      },
      "put": {
        "description": "One call for a file of at most 1000000 bytes: the step (contentType, sizeBytes and the procedure's input keys) in the input query parameter, the file as the body with its Content-Length. It is checked before a byte is read (over the limit or the server's memory budget: upload_direct_unavailable, then use the steps), scanned, stored and finalized in this request. Once the upload exists every answer names it in x-pekka-upload-id. A retry with the same Idempotency-Key replays the first answer, never a second file.",
        "operationId": "letters.senders.uploadLogo.send",
        "parameters": [
          {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.send.input"
                    },
                    {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.send.rich.input"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "in": "query",
            "name": "input",
            "required": true
          },
          {
            "description": "The one-call upload's key (optional).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "image/jpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/png": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.send.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload, stored and checked.",
            "headers": {
              "x-pekka-upload-id": {
                "description": "The upload's id.",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "411": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "No Content-Length (length_required): the size is checked before a byte is read."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "image/png",
            "image/jpeg"
          ],
          "attach": false,
          "idempotency": "optional",
          "idempotencyStep": "send",
          "input": {
            "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.send.input"
          },
          "kind": "upload",
          "maxBytes": 1000000,
          "output": {
            "$ref": "#/components/schemas/upload.letters.senders.uploadLogo.send.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "send",
          "successStatus": 200
        }
      }
    },
    "/upload/api/letters.senders.uploadLogo/{uploadId}": {
      "put": {
        "description": "Send bytes here only when open returned target.kind: server. A body over 1000000 bytes is cut and refused.",
        "operationId": "letters.senders.uploadLogo.bytes",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "uploadId",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "image/jpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "image/png": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "uploadId": {
                          "maxLength": 64,
                          "type": "string"
                        }
                      },
                      "required": [
                        "uploadId"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The bytes are stored."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "kind": "upload",
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "bytes",
          "successStatus": 200
        }
      }
    },
    "/upload/api/letters.uploadPdf": {
      "post": {
        "description": "Uploads a PDF to send as a letter: name its upload id as `pdf.uploadId` in `letters.send` or `letters.quote` with the same key. A small PDF can go as `pdf.contentBase64` in the send instead. Scope: `letters:send`.\n\nUpload door steps: open, renew, finalize, status and release. A later operation consumes this upload; it has no attach step. Open returns the upload target; target.kind: server uses the PUT path below. A file of at most 8000000 bytes can go in one call instead: PUT on this path (operation letters.uploadPdf.send). Accepts application/pdf, at most 8000000 bytes. With the typed transformer, non-JSON inputs use a rich-v2 envelope and matching meta annotations. Refusals: the framework's, the upload door's and the codes its base lists in allow({ codes }).",
        "operationId": "letters.uploadPdf",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/upload.letters.uploadPdf.input"
                  },
                  {
                    "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                    "properties": {
                      "__pk": {
                        "const": "pekka.rich"
                      },
                      "json": {
                        "$ref": "#/components/schemas/upload.letters.uploadPdf.rich.input"
                      },
                      "meta": {
                        "items": {
                          "properties": {
                            "path": {
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "Date",
                                "bigint",
                                "undefined",
                                "Uint8Array",
                                "Map",
                                "Set"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "path",
                            "type"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "v": {
                        "const": 2
                      }
                    },
                    "required": [
                      "__pk",
                      "json",
                      "v"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.letters.uploadPdf.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The step's answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file is larger than this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file's media type is not one this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "application/pdf"
          ],
          "attach": false,
          "idempotency": "none",
          "idempotencyStep": "attach",
          "input": {
            "$ref": "#/components/schemas/upload.letters.uploadPdf.input"
          },
          "kind": "upload",
          "maxBytes": 8000000,
          "output": {
            "$ref": "#/components/schemas/upload.letters.uploadPdf.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "steps",
          "successStatus": 200
        }
      },
      "put": {
        "description": "One call for a file of at most 8000000 bytes: the step (contentType, sizeBytes and the procedure's input keys) in the input query parameter, the file as the body with its Content-Length. It is checked before a byte is read (over the limit or the server's memory budget: upload_direct_unavailable, then use the steps), scanned, stored and finalized in this request. Once the upload exists every answer names it in x-pekka-upload-id. A retry with the same Idempotency-Key replays the first answer, never a second file.",
        "operationId": "letters.uploadPdf.send",
        "parameters": [
          {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/upload.letters.uploadPdf.send.input"
                    },
                    {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.letters.uploadPdf.send.rich.input"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "in": "query",
            "name": "input",
            "required": true
          },
          {
            "description": "The one-call upload's key (optional).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/pdf": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.letters.uploadPdf.send.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload, stored and checked.",
            "headers": {
              "x-pekka-upload-id": {
                "description": "The upload's id.",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "411": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "No Content-Length (length_required): the size is checked before a byte is read."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "application/pdf"
          ],
          "attach": false,
          "idempotency": "optional",
          "idempotencyStep": "send",
          "input": {
            "$ref": "#/components/schemas/upload.letters.uploadPdf.send.input"
          },
          "kind": "upload",
          "maxBytes": 8000000,
          "output": {
            "$ref": "#/components/schemas/upload.letters.uploadPdf.send.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "send",
          "successStatus": 200
        }
      }
    },
    "/upload/api/letters.uploadPdf/{uploadId}": {
      "put": {
        "description": "Send bytes here only when open returned target.kind: server. A body over 8000000 bytes is cut and refused.",
        "operationId": "letters.uploadPdf.bytes",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "uploadId",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/pdf": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "uploadId": {
                          "maxLength": 64,
                          "type": "string"
                        }
                      },
                      "required": [
                        "uploadId"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The bytes are stored."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "kind": "upload",
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "bytes",
          "successStatus": 200
        }
      }
    },
    "/upload/api/stt.audio.upload": {
      "post": {
        "description": "Uploads audio to transcribe: an MP3 or a WAV of at most 25 MiB, free. The answer's `id` is what `stt.transcribe` takes as `audioId`. Scope: `transcription:write`.\n\nUpload door steps: open, renew, finalize, status and release. Attach consumes the finalized upload and returns the procedure's output; finalize with attach: true finalizes and attaches in one call (keyed as the attach step), and answers upload_not_ready while the scan runs. Open returns the upload target; target.kind: server uses the PUT path below. A file of at most 10485760 bytes can go in one call instead: PUT on this path (operation stt.audio.upload.send). Accepts audio/mpeg, audio/wav, at most 26214400 bytes. With the typed transformer, non-JSON inputs use a rich-v2 envelope and matching meta annotations. Refusals: the framework's, the upload door's and the codes its base lists in allow({ codes }).",
        "operationId": "stt.audio.upload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/upload.stt.audio.upload.input"
                  },
                  {
                    "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                    "properties": {
                      "__pk": {
                        "const": "pekka.rich"
                      },
                      "json": {
                        "$ref": "#/components/schemas/upload.stt.audio.upload.rich.input"
                      },
                      "meta": {
                        "items": {
                          "properties": {
                            "path": {
                              "items": {
                                "type": [
                                  "string",
                                  "integer"
                                ]
                              },
                              "type": "array"
                            },
                            "type": {
                              "enum": [
                                "Date",
                                "bigint",
                                "undefined",
                                "Uint8Array",
                                "Map",
                                "Set"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "path",
                            "type"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "v": {
                        "const": 2
                      }
                    },
                    "required": [
                      "__pk",
                      "json",
                      "v"
                    ],
                    "type": "object"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.stt.audio.upload.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The step's answer."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.profile_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file is larger than this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "The file's media type is not one this upload accepts. The step body exceeds the door's cap or has an unsupported media type."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "audio/mpeg",
            "audio/wav"
          ],
          "attach": true,
          "idempotency": "none",
          "idempotencyStep": "attach",
          "input": {
            "$ref": "#/components/schemas/upload.stt.audio.upload.input"
          },
          "kind": "upload",
          "maxBytes": 26214400,
          "output": {
            "$ref": "#/components/schemas/upload.stt.audio.upload.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "profile_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "steps",
          "successStatus": 200
        }
      },
      "put": {
        "description": "One call for a file of at most 10485760 bytes: the step (contentType, sizeBytes and the procedure's input keys) in the input query parameter, the file as the body with its Content-Length. It is checked before a byte is read (over the limit or the server's memory budget: upload_direct_unavailable, then use the steps), scanned, stored and attached in this request. Once the upload exists every answer names it in x-pekka-upload-id. A retry with the same Idempotency-Key replays the first answer, never a second file.",
        "operationId": "stt.audio.upload.send",
        "parameters": [
          {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/upload.stt.audio.upload.send.input"
                    },
                    {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.stt.audio.upload.send.rich.input"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "in": "query",
            "name": "input",
            "required": true
          },
          {
            "description": "The one-call upload's key (optional).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "audio/mpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "audio/wav": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "description": "Date, bigint, undefined, bytes, Map and Set values need matching rich-v2 meta annotations; the decoded value is checked by the procedure.",
                      "properties": {
                        "__pk": {
                          "const": "pekka.rich"
                        },
                        "json": {
                          "$ref": "#/components/schemas/upload.stt.audio.upload.send.rich.output"
                        },
                        "meta": {
                          "items": {
                            "properties": {
                              "path": {
                                "items": {
                                  "type": [
                                    "string",
                                    "integer"
                                  ]
                                },
                                "type": "array"
                              },
                              "type": {
                                "enum": [
                                  "Date",
                                  "bigint",
                                  "undefined",
                                  "Uint8Array",
                                  "Map",
                                  "Set"
                                ],
                                "type": "string"
                              }
                            },
                            "required": [
                              "path",
                              "type"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "v": {
                          "const": 2
                        }
                      },
                      "required": [
                        "__pk",
                        "json",
                        "v"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "wire": {
                      "const": "typed",
                      "type": "string"
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload, stored and checked.",
            "headers": {
              "x-pekka-upload-id": {
                "description": "The upload's id.",
                "schema": {
                  "maxLength": 64,
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.profile_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "411": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "No Content-Length (length_required): the size is checked before a byte is read."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "accept": [
            "audio/mpeg",
            "audio/wav"
          ],
          "attach": true,
          "idempotency": "optional",
          "idempotencyStep": "send",
          "input": {
            "$ref": "#/components/schemas/upload.stt.audio.upload.send.input"
          },
          "kind": "upload",
          "maxBytes": 10485760,
          "output": {
            "$ref": "#/components/schemas/upload.stt.audio.upload.send.output"
          },
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "profile_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "send",
          "successStatus": 200
        }
      }
    },
    "/upload/api/stt.audio.upload/{uploadId}": {
      "put": {
        "description": "Send bytes here only when open returned target.kind: server. A body over 26214400 bytes is cut and refused.",
        "operationId": "stt.audio.upload.bytes",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "uploadId",
            "required": true,
            "schema": {
              "maxLength": 64,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "audio/mpeg": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            },
            "audio/wav": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "properties": {
                        "uploadId": {
                          "maxLength": 64,
                          "type": "string"
                        }
                      },
                      "required": [
                        "uploadId"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    }
                  },
                  "required": [
                    "data",
                    "ok"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The bytes are stored."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_unsupported"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.unauthenticated"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.forbidden"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.scope_missing"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.service_not_open"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.profile_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_found"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.failure"
                    }
                  ]
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own. No upload with this id is open to this caller: the id is unknown, or another caller or tenant opened it. No operation at this path."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.acknowledgement_required"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.audit_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.idempotency_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.revision_conflict"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_already_attached"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_direct_unavailable"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_ready"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_not_received"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_replaced"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.write_conflict"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The upload is attached already; each upload is consumed once. The server will not take this file in one call now (meta.reason: over_direct_limit, busy or not_offered) and stored nothing: send it by the steps (open, the bytes, finalize). The upload is not finalized yet, or its scan is still running: ask again after a moment. Finalize came before the bytes landed: send them, then finalize again. The stored file changed after finalize recorded it: upload it again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_expired"
                }
              }
            },
            "description": "The upload was not attached in time, or was released, erased or discarded: upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_too_large"
                }
              }
            },
            "description": "The file is larger than this upload accepts."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.upload_type_not_accepted"
                }
              }
            },
            "description": "The file's media type is not one this upload accepts."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_failed"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_infected"
                    },
                    {
                      "$ref": "#/components/schemas/upload.bytes.refusal.upload_size_required"
                    }
                  ]
                }
              }
            },
            "description": "The bytes broke one of the upload's rules; meta.reason names which (its size, its type, its content, or a replaced file). The scan found malware in the file; it cannot be attached. An upload sent in parts names the file's size when it opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.refusal.rate_limited"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/upload.bytes.failure"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-pekka-operation": {
          "kind": "upload",
          "refusalScope": "allowlist",
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "profile_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "write_conflict"
          ],
          "step": "bytes",
          "successStatus": 200
        }
      }
    },
    "/v2/account": {
      "get": {
        "description": "The key's organization, its application and its mode (`test` or `live`). `verified` is `true` once Telkit has verified the organization, which live SMS and email, letters, calls and own numbers need.",
        "operationId": "account.get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.forbidden"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The principal may not do this."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "The key's account",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/applications": {
      "get": {
        "description": "The organization's applications, oldest first. A key with `profiles:manage` lists every one; any other key lists only its own. Archived applications are left out.",
        "operationId": "account.applications.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.forbidden"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The principal may not do this."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List applications",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Makes an application in the key's organization, with its own senders, numbers, log and keys. A `slug` the organization has used, on an archived application too, answers `slug_taken`; so does a repeat after a lost answer, and `account.applications.list` then shows the application the first call made. It takes no `Idempotency-Key`. A live key needs a plan. Scope: `profiles:manage`.",
        "operationId": "account.applications.create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.account.applications.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.slug_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Another profile of the organization, archived ones included, already has this slug (`meta.slug`). Choose another. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create an application",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "slug_taken",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/account/applications/usage": {
      "get": {
        "description": "Every application's usage in a month, a page of applications at a time: each application that used money, archived ones too, with its lines per service or per day, excluding VAT. A test key's answer is always empty. Scope: `profiles:manage`.",
        "operationId": "account.applications.getUsage",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "groupBy",
            "required": false,
            "schema": {
              "description": "One line per `service` (the default) or per `day`.",
              "enum": [
                "day",
                "service"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "month",
            "required": false,
            "schema": {
              "description": "The Oslo month `YYYY-MM`; the current month when left out.",
              "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.getUsage.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Every application's usage in a month",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.getUsage.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.getUsage.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/applications/{id}": {
      "patch": {
        "description": "Renames an application. Its `slug` stays. The same name again changes nothing. Scope: `profiles:manage`.",
        "operationId": "account.applications.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The application's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.account.applications.update.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.update.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.application_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rename an application",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_not_found",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/applications/{id}/archive": {
      "post": {
        "description": "Archives an application and revokes every API key of it in the same step; the key that asks stops working when it archives its own. It cannot be undone, and the organization keeps at least one application (`last_application`). Its log and usage stay. A repeat answers the first archive. A test key answers `forbidden`: an application is the same in test and live, so only a live key archives one. Scope: `profiles:manage`.",
        "operationId": "account.applications.archive",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The application's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.account.applications.archive.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.archive.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.application_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.archive_choice_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_move_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_orders_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.last_application"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.phone_number_in_use"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The profile holds identities (`meta.identities`) or numbers (`meta.senders`). Archiving it needs the choice to move them or to end them. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The application chosen holds something the move would collide with. `meta.reason` says what, and `meta.address` is the registration number, the name, the domain or the number that collides. A number of the identity, or of the profile, is still being ordered. Wait until the order is done. The organization's last active application cannot be archived. Create another application first. A call on the number is live. The move or the release waits until it ends: try again then. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.move_target_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The identities and numbers cannot move to the profile that is being archived. Choose another profile."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Archive an application and revoke its keys",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.archive.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.archive.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_not_found",
            "archive_choice_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_move_conflict",
            "identity_orders_open",
            "last_application",
            "move_target_invalid",
            "organization_blocked",
            "organization_closing",
            "phone_number_in_use",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/applications/{id}/keys": {
      "get": {
        "description": "An application's API keys, revoked ones too, oldest first; never a secret. An archived application's keys are listed too. Scope: `profiles:manage`.",
        "operationId": "account.applications.keys.list",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The application's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.keys.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.application_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List an application's API keys",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.keys.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.keys.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_not_found",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Makes an API key for an application, in the mode of the key that asks, and answers its secret once. A live key needs a plan. It takes no `Idempotency-Key`: a repeat makes a second key, which `account.applications.keys.list` shows and `account.applications.keys.revoke` ends. Scope: `profiles:manage`.",
        "operationId": "account.applications.keys.create",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The application's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.account.applications.keys.create.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.keys.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.application_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create an API key for an application",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.keys.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.keys.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_not_found",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/account/applications/{id}/keys/{keyId}/revoke": {
      "post": {
        "description": "Ends one API key of an application at once. Only a key this operation could have made: one that manages applications or holds every scope answers `forbidden` and is ended in the dashboard. A test key ends test keys only: a live key answers it `forbidden`. A repeat answers the key with its first `revokedAt`. Scope: `profiles:manage`.",
        "operationId": "account.applications.keys.revoke",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The application's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "keyId",
            "required": true,
            "schema": {
              "description": "The key's `id`.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.keys.revoke.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.api_key_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No key with this id belongs to this owner."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Revoke an application's API key",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.keys.revoke.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.keys.revoke.output"
          },
          "refusals": [
            "acknowledgement_required",
            "api_key_not_found",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/applications/{id}/limit": {
      "put": {
        "description": "Sets the most another application's sends and calls may cost per month and per day, excluding VAT. Takes a live key, and never the key's own application, so a key cannot lift the limit it spends under: both answer `forbidden`. The same limits again change nothing. Scope: `profiles:manage`.",
        "operationId": "account.applications.setLimit",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The application's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.account.applications.setLimit.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.applications.setLimit.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.application_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such application for the caller: it is missing, archived, or another application than the API key's own."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Set an application's spending limit",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.applications.setLimit.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.applications.setLimit.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_not_found",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/balance": {
      "get": {
        "description": "The organization's `balance`: what is `available`, plus what is `reserved` for sends and calls in flight. `included` is the plan's amount for the paid period that holds now, `null` without one. Every amount excludes VAT. Scope: `usage:read`.",
        "operationId": "account.getBalance",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.getBalance.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "The balance",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.getBalance.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.getBalance.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/privacy/erase-recipient": {
      "post": {
        "description": "Erases what Telkit holds about one recipient in this application, in the key's mode: SMS texts, email bodies and attachments, letter PDFs, call recordings, transcripts and summaries, and the recipient's number or address on those rows. Name the recipient by exactly one of `phone`, `email`, `letterAddress` and `letterRecipient`; each selects its own kind. What carries money stays, with the recipient blanked. The recipient's consent records are deleted; opt-outs and the do-not-call list stay, so an opt-out still holds. Contacts and a call flow's SMS cooldowns have no mode: a live key erases them, a test key leaves them and names them in `keptShared`. A repeat erases nothing more and answers the same. It cannot be undone. Copies of events that named the recipient stay in the event log, the stream and webhook deliveries until their 30 days have passed. Scope: `privacy:erase`.",
        "operationId": "account.privacy.eraseRecipient",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.account.privacy.eraseRecipient.input"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.privacy.eraseRecipient.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Erase one recipient's messages and call records",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.privacy.eraseRecipient.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.privacy.eraseRecipient.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/privacy/retention": {
      "get": {
        "description": "How long this application keeps message content and call records. Scope: `privacy:erase`.",
        "operationId": "account.privacy.getRetention",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.privacy.getRetention.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read how long messages and call records are kept",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.privacy.getRetention.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.privacy.getRetention.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "put": {
        "description": "Sets how many days this application keeps message content and call records, from 1 to 3650; `null` keeps them until they are deleted. Older content is erased every hour, in test and live alike, as `account.privacy.eraseRecipient` erases one recipient's. So only a live key sets it: a test key reads the setting and answers `forbidden` here. The same value again changes nothing. Scope: `privacy:erase`.",
        "operationId": "account.privacy.setRetention",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.account.privacy.setRetention.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.privacy.setRetention.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Set how long messages and call records are kept",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.privacy.setRetention.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.account.privacy.setRetention.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/requests": {
      "get": {
        "description": "The calls this application's keys and client tokens made in the key's mode, newest first: the operation's method and path, the answer's HTTP status and error code, the key, the calling client, the duration and the id the answer named. No request or response body is kept. A line is kept for 30 days and is written a few seconds after its call. Scope: `usage:read`.",
        "operationId": "account.requests.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "code",
            "required": false,
            "schema": {
              "description": "Only the calls that answered this error code.",
              "maxLength": 128,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "keyId",
            "required": false,
            "schema": {
              "description": "Only the calls this API key or client token made.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "requestId",
            "required": false,
            "schema": {
              "description": "The call with this request id: an error body carries it as `requestId`.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "resourceId",
            "required": false,
            "schema": {
              "description": "The calls whose answer named this `id`, such as the message a send made.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "description": "Only the calls whose HTTP status is in this class.",
              "enum": [
                "2xx",
                "4xx",
                "5xx"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "window",
            "required": false,
            "schema": {
              "description": "How far back to read; `30d`, everything that is kept, when left out.",
              "enum": [
                "1h",
                "24h",
                "7d",
                "30d"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.requests.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List API requests",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.requests.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.requests.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/requests/summary": {
      "get": {
        "description": "How many calls this application's keys and client tokens made in the key's mode in the last 24 hours, by status class, and the error codes they met, most frequent first. Scope: `usage:read`.",
        "operationId": "account.requests.getSummary",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.requests.getSummary.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Summarize the last day's API requests",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.requests.getSummary.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.requests.getSummary.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/settings": {
      "get": {
        "description": "What bounds this application's sends and calls: the countries it reaches, the pauses on it, its spending limits and the plan's month limits. Scope: `usage:read`.",
        "operationId": "account.getSettings",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.getSettings.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "The application's limits and restrictions",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.getSettings.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.getSettings.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/account/usage": {
      "get": {
        "description": "The application's usage in a month, per day or per service: each item's `price`, the part the plan's `included` amount paid and the part the `balance` paid, excluding VAT, and how many charges it holds. With `identity`, only that business's usage (`self`: your own company's). A test key's usage is always empty. Scope: `usage:read`.",
        "operationId": "account.getUsage",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "groupBy",
            "required": false,
            "schema": {
              "description": "One item per `day` (the default) or per `service`.",
              "enum": [
                "day",
                "service"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "month",
            "required": false,
            "schema": {
              "description": "The Oslo month `YYYY-MM`; the current month when left out.",
              "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.account.getUsage.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Usage in a month",
        "tags": [
          "Account"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.account.getUsage.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.account.getUsage.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls": {
      "get": {
        "description": "The calls of the key's application and mode, newest first, a page at a time. A cursor holds for the filters it was made under: change a filter and start again without `after`. Scope: `calls:read`.",
        "operationId": "calls.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "description": "Only `outbound` or only `inbound` calls. Left out: both.",
              "enum": [
                "outbound",
                "inbound"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "reference",
            "required": false,
            "schema": {
              "description": "Only calls with your reference.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "description": "Only calls started at or after this instant, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "description": "Only calls started before this instant, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List calls",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Starts one outbound call: dials `to`, and puts the app users of `participants` in it. With `say` or `play` the phone hears it when it answers, and the call then ends. The answer is the call; its progress arrives as events (`call.answered`, `call.ended`). A test key dials nothing and costs nothing. Scope: `calls:write`.",
        "operationId": "calls.start",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.start.input"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.start.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_addons_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_composition_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The add-ons do not fit together: a transcript needs the recording, a summary the transcript, and a voicemail drop its message. A call needs a number to dial or at least one app user, no more participants than one call takes, and a dialled phone for an add-on such as a recording. An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_stream_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_summary_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. Media streams are not sold here yet. No stream was started. Call summaries are not available here yet. Start the call without a summary. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_stream_endpoint_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The stream's address is not a secure WebSocket (`wss:`) on a public host. The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Start a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_addons_invalid",
            "call_composition_invalid",
            "call_media_audio_not_found",
            "call_stream_endpoint_refused",
            "call_stream_unavailable",
            "call_summary_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "verification_required",
            "voice_policy_not_accepted",
            "webhook_endpoint_not_found",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/client-tokens": {
      "post": {
        "description": "A short-lived token for one of your app users, bound to this key's application and mode: with it `@telkit/client` hears the calls offered to the user and takes them. Mint it on your server and hand it to the app; it takes no idempotency key, so a repeat makes a second token. Scope: `calls:client`.",
        "operationId": "calls.clientTokens.create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.clientTokens.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.clientTokens.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is being closed, so this cannot be done. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a client token",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.clientTokens.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.clientTokens.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_closing",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/client-tokens/revoke": {
      "post": {
        "description": "Ends every live client token of one app user in this key's application and mode, at once. A call the user already joined goes on: remove that participant to end it. Scope: `calls:client`.",
        "operationId": "calls.clientTokens.revoke",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.clientTokens.revoke.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.clientTokens.revoke.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Revoke an app user's client tokens",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.clientTokens.revoke.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.clientTokens.revoke.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/offers": {
      "post": {
        "description": "Rings members, app users and phones on a live call until one takes it or `ringSeconds` pass; the events `call.offer.accepted` and `call.offer.expired` tell which. One ringing offer per call. Scope: `calls:write`.",
        "operationId": "calls.offers.create",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.offers.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.offers.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_offer_active"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The call is already ringing someone. Wait until someone takes it, or cancel that offer first. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_offer_targets_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Nobody the offer names can be rung now; `meta.skipped` names each target and why. The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create an offer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.offers.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.offers.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_not_found",
            "call_not_live",
            "call_offer_active",
            "call_offer_targets_invalid",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/offers/{id}": {
      "get": {
        "description": "One offer: whom it rings, each target's state and who took it. Scope: `calls:read`.",
        "operationId": "calls.offers.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The offer's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.offers.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_offer_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No offer with this id here, or it did not ring this user."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an offer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.offers.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.offers.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_offer_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/offers/{id}/accept": {
      "post": {
        "description": "Your app user takes a ringing offer: the first accept wins, every other target stops ringing, and the answer holds the user's join token. Scope: `calls:client`.",
        "operationId": "calls.offers.accept",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The offer's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.offers.accept.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.offers.accept.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_offer_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No offer with this id here, or it did not ring this user."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_offer_closed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. Someone else took the call, or the offer has ended. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Accept an offer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.offers.accept.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.offers.accept.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_offer_closed",
            "call_offer_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/offers/{id}/cancel": {
      "post": {
        "description": "Stops a ringing offer: every target stops ringing. An offer taken or ended answers `call_offer_closed`. Scope: `calls:write`.",
        "operationId": "calls.offers.cancel",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The offer's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.offers.cancel.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_offer_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No offer with this id here, or it did not ring this user."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_offer_closed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. Someone else took the call, or the offer has ended. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Cancel an offer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.offers.cancel.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.offers.cancel.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_offer_closed",
            "call_offer_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/recording-setting": {
      "get": {
        "description": "Whether every call of the application is recorded (and transcribed and summarized), and the notice the other party hears first. Read-only here: an admin sets it in the dashboard. `calls.start` can still record one call with `record`. Scope: `calls:read`.",
        "operationId": "calls.getRecordingSetting",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.getRecordingSetting.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get the recording setting",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.getRecordingSetting.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.getRecordingSetting.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/recordings": {
      "get": {
        "description": "The recordings of the key's application and mode, newest first, a page at a time. The list carries no link: `calls.recordings.get` makes one. Scope: `calls:read`.",
        "operationId": "calls.recordings.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "callId",
            "required": false,
            "schema": {
              "description": "Only this call's recordings.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "description": "Only recordings started at or after this instant, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "description": "Only recordings started before this instant, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.recordings.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List recordings",
        "tags": [
          "Recordings"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.recordings.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.recordings.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Records a live call from now until it ends or the recording is stopped; its file is ready with the event `call.recording.ready`, not with this answer. A call that already records answers `call_recording_active`. Scope: `calls:write`.",
        "operationId": "calls.recordings.start",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.recordings.start.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.recordings.start.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_audio_private"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_recording_active"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. A whisper and a recording exclude each other. Stop the one before you start the other. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The call already has a recording that runs (one at a time). Stop it before a new one. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Record a call",
        "tags": [
          "Recordings"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.recordings.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.recordings.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_audio_private",
            "call_not_found",
            "call_not_live",
            "call_recording_active",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/recordings/{id}": {
      "delete": {
        "description": "Deletes a recording: it is hidden at once and its file is removed. One that still records is stopped first. It cannot be undone, and a repeat answers `call_recording_not_found`. Scope: `calls:write`.",
        "operationId": "calls.recordings.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The recording's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.recordings.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_recording_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No recording with this id in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a recording",
        "tags": [
          "Recordings"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.recordings.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.recordings.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_recording_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "get": {
        "description": "One recording, with a link to its file once it is `stored`. The link is made for this answer and works for 15 minutes: read again for a new one, and never store it. Scope: `calls:read`.",
        "operationId": "calls.recordings.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The recording's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.recordings.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_recording_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No recording with this id in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a recording",
        "tags": [
          "Recordings"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.recordings.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.recordings.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_recording_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/recordings/{id}/stop": {
      "post": {
        "description": "Stops a recording; the call goes on. Its length and price arrive when the recording has ended, and a repeat answers the recording as it stands. Scope: `calls:write`.",
        "operationId": "calls.recordings.stop",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The recording's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.recordings.stop.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_recording_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No recording with this id in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Stop a recording",
        "tags": [
          "Recordings"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.recordings.stop.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.recordings.stop.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_recording_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/actions/stop": {
      "post": {
        "description": "Stops every action on the call without hanging up. `remaining` lists what could not be stopped yet. Scope: `calls:write`.",
        "operationId": "calls.actions.stop",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.actions.stop.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Stop every action on a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.actions.stop.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.actions.stop.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/actions/{id}": {
      "get": {
        "description": "One action on a call (`calls.say`, `play`, `gather`, `sendDigits` answer its `id`): its state and what a `gather` heard. Scope: `calls:read`.",
        "operationId": "calls.actions.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The action's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.actions.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_media_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No media task with this id on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an action",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.actions.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.actions.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_media_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/actions/{id}/cancel": {
      "post": {
        "description": "Stops one action (`say`, `play`, `gather`) that is queued or under way, without hanging up. A repeat stops nothing more. Scope: `calls:write`.",
        "operationId": "calls.actions.cancel",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The action's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.actions.cancel.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_media_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No media task with this id on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Cancel an action",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.actions.cancel.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.actions.cancel.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_media_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/app-participants": {
      "post": {
        "description": "Adds an app user or a bot to a live call, funded for its own minutes, and answers its join token. It takes no idempotency key: a repeat after a lost answer adds a second paid participant, so read `calls.participants.list` first. Scope: `calls:write`.",
        "operationId": "calls.appParticipants.add",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The live call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.appParticipants.add.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.appParticipants.add.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_bot_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participants_full"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. Bot participants are not sold yet. Add an app user instead. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The call, or the call a phone moves into, already has as many participants as one call takes. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Add an app user or bot",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.appParticipants.add.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.appParticipants.add.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_bot_unavailable",
            "call_not_found",
            "call_not_live",
            "call_participants_full",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/app-participants/{id}/remove": {
      "post": {
        "description": "Removes an app user or bot from the call; its join tokens stop working. A repeat is harmless. Scope: `calls:write`.",
        "operationId": "calls.appParticipants.remove",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The app user's or bot's participant id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.appParticipants.remove.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_participant_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_is_call"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. This is the call's own phone. Hang the call up instead of removing it. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Remove an app user or bot",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.appParticipants.remove.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.appParticipants.remove.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_participant_is_call",
            "call_participant_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/app-participants/{id}/tokens": {
      "post": {
        "description": "A fresh join token for an app user or bot that is still on the call, to reconnect. Scope: `calls:write`.",
        "operationId": "calls.appParticipants.createToken",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The app user's or bot's participant id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.appParticipants.createToken.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_participant_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a join token",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.appParticipants.createToken.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.appParticipants.createToken.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_participant_not_found",
            "call_participant_not_open",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/app-user-tokens": {
      "post": {
        "description": "A fresh join token for your app user on a live call whose offer the user took, to join again. Scope: `calls:client`.",
        "operationId": "calls.createAppUserToken",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The live call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.createAppUserToken.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.createAppUserToken.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create an app user's join token",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.createAppUserToken.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.createAppUserToken.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/live-transcript": {
      "delete": {
        "description": "Deletes the call's live transcript and its lines; what was heard is still charged. Scope: `calls:write`.",
        "operationId": "calls.liveTranscript.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call it transcribes.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.liveTranscript.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_live_transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcript on this call in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a live transcript",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_live_transcript_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "get": {
        "description": "The call's live transcript: its state, each transcribed phone and its price. Scope: `calls:read`.",
        "operationId": "calls.liveTranscript.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call it transcribes.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.liveTranscript.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_live_transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcript on this call in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a live transcript",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_live_transcript_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Transcribes a live call as it is spoken. Each transcribed phone's funded minutes are held first; the heard minutes are charged when it ends, with the event `call.liveTranscript.ready`. One per call. Scope: `calls:write`.",
        "operationId": "calls.liveTranscript.start",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call it transcribes.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.liveTranscript.start.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.liveTranscript.start.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_live_transcript_active"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call already has a live transcript (one per call). Read that one. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Transcribe a call live",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_live_transcript_active",
            "call_not_found",
            "call_not_live",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/live-transcript/follow": {
      "get": {
        "description": "Follows a live transcript as server-sent events: one event per line change, a revised line coming again under its `id` with a new `seq`, and a last event when the transcript is `done`. A connection is closed after one hour: open it again with `after` set to the last `seq` you read. A transcript that was deleted answers `call_live_transcript_not_found`. Scope: `calls:read`.",
        "operationId": "calls.liveTranscript.follow",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call it transcribes.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "A position (`seq`) read before; left out: from the start.",
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "description": "The id of the last event received: the stream resumes after it.",
            "explode": false,
            "in": "header",
            "name": "Last-Event-ID",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-pekka-part": {
                  "$ref": "#/components/schemas/operation.calls.liveTranscript.follow.part"
                }
              }
            },
            "description": "Server-sent events: one event per part (its id is the part's position; a reconnect sends Last-Event-ID and resumes after it), then one last event: result, refused or failed."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_live_transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcript on this call in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Follow a live transcript",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.follow.input"
          },
          "kind": "stream",
          "output": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.follow.output"
          },
          "part": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.follow.part"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_live_transcript_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/live-transcript/lines": {
      "get": {
        "description": "The lines changed after `after`, oldest change first. Read on from the last line's `seq`. Scope: `calls:read`.",
        "operationId": "calls.liveTranscript.listLines",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call it transcribes.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "A position (`seq`) read before; left out: from the start.",
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "The most lines to answer: 1 to 200. Left out: 200.",
              "maximum": 200,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.liveTranscript.listLines.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_live_transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcript on this call in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List live transcript lines",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.listLines.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.listLines.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_live_transcript_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/live-transcript/stop": {
      "post": {
        "description": "Stops transcribing; the heard minutes are charged once the last lines arrived. A repeat answers it as it stands. Scope: `calls:write`.",
        "operationId": "calls.liveTranscript.stop",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call it transcribes.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.liveTranscript.stop.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_live_transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcript on this call in this profile (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Stop a live transcript",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.stop.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.liveTranscript.stop.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_live_transcript_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/moves/{id}": {
      "get": {
        "description": "One move of a participant and where it stands: `pending`, `done`, `failed` or `uncertain`. Scope: `calls:read`.",
        "operationId": "calls.moves.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The `id` of the call the participant belongs to.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The move's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.moves.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_move_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such move on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a move",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.moves.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.moves.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_move_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/participants": {
      "get": {
        "description": "Everyone on a call: its phones, app users and bots, each with its state and what can be done with it now. Participants that have left are listed too, with `endedAt`. Scope: `calls:read`.",
        "operationId": "calls.participants.list",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.participants.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List a call's participants",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.participants.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.participants.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Dials a phone into a live call; its minutes are held from your balance and billed by the call. It answers when the dial is queued, not when the phone has answered. Scope: `calls:write`.",
        "operationId": "calls.participants.addPhone",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The live call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.participants.addPhone.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.participants.addPhone.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Add a phone to a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.participants.addPhone.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.participants.addPhone.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_not_found",
            "call_not_live",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/participants/{id}/audio": {
      "put": {
        "description": "Sets how a connected participant is heard: `talk`, `listen` (nobody hears it) or `whisper` (only `whisperTo` hears it). A repeat answers the same. Scope: `calls:write`.",
        "operationId": "calls.participants.setAudio",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The participant's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.participants.setAudio.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.participants.setAudio.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_participant_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_audio_private"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_elsewhere"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. A whisper and a recording exclude each other. Stop the one before you start the other. The phone is not in its call's own room now: it is on hold, moved, in a meeting, or a move is under way. Try again when it is back. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_control_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_whisper_target_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "This call cannot do that here: listen or whisper on a phone, or move a phone to another call or room. Talk works on every call. The whisper's target is not another answered phone in the call."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Set a participant's audio",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.participants.setAudio.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.participants.setAudio.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_audio_private",
            "call_control_unsupported",
            "call_participant_elsewhere",
            "call_participant_not_found",
            "call_participant_not_open",
            "call_whisper_target_invalid",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/participants/{id}/hold": {
      "post": {
        "description": "Puts a connected phone on hold (it hears the hold tone and nobody hears it) or takes it off. A repeat answers the same. Scope: `calls:write`.",
        "operationId": "calls.participants.hold",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The participant's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.participants.hold.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.participants.hold.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_participant_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Hold a participant",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.participants.hold.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.participants.hold.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_participant_not_found",
            "call_participant_not_open",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/participants/{id}/move": {
      "post": {
        "description": "Moves a connected phone into another live call; it stays billed by its own call. It answers the `pending` move, not the outcome: the event `call.participant.moved` says when it is done, and `calls.moves.get` reads where it stands. Scope: `calls:write`.",
        "operationId": "calls.participants.move",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The `id` of the call the participant is in.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The participant's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.participants.move.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.participants.move.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No call with this id in this profile. No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_audio_private"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_move_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_elsewhere"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participants_full"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. A whisper and a recording exclude each other. Stop the one before you start the other. A phone cannot move into the call it is already in. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The phone is not in its call's own room now: it is on hold, moved, in a meeting, or a move is under way. Try again when it is back. The participant has already left the call, or never connected. Nothing changed. The call, or the call a phone moves into, already has as many participants as one call takes. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_control_unsupported"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "This call cannot do that here: listen or whisper on a phone, or move a phone to another call or room. Talk works on every call."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Move a participant into another call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.participants.move.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.participants.move.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_audio_private",
            "call_control_unsupported",
            "call_move_not_allowed",
            "call_not_found",
            "call_not_live",
            "call_participant_elsewhere",
            "call_participant_not_found",
            "call_participant_not_open",
            "call_participants_full",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/participants/{id}/mute": {
      "post": {
        "description": "Mutes or unmutes a connected participant: nobody hears a muted one. A repeat is harmless. Scope: `calls:write`.",
        "operationId": "calls.participants.mute",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The participant's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.participants.mute.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.participants.mute.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_participant_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Mute a participant",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.participants.mute.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.participants.mute.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_participant_not_found",
            "call_participant_not_open",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/participants/{id}/remove": {
      "post": {
        "description": "Removes one participant (a phone, an app user or a bot) from the call; the call goes on. The call's own first phone answers `call_participant_is_call`: hang the call up instead. A repeat is harmless. Scope: `calls:write`.",
        "operationId": "calls.participants.remove",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The participant's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.participants.remove.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_participant_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_is_call"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. This is the call's own phone. Hang the call up instead of removing it. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Remove a participant",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.participants.remove.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.participants.remove.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_participant_is_call",
            "call_participant_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/streams": {
      "get": {
        "description": "The media streams of a call, oldest first. Scope: `calls:read`.",
        "operationId": "calls.streams.list",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.streams.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List streams",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.streams.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.streams.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Streams a live call's audio over a secure WebSocket to a webhook endpoint you registered, in Twilio's Media Streams format. Its minutes are held from the balance first. It answers before your server is dialled: `calls.streams.get` shows whether it reached `streaming`. Scope: `calls:write`.",
        "operationId": "calls.streams.start",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The live call whose audio is streamed.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.streams.start.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.streams.start.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No call with this id in this profile. No participant with this id in this call. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_stream_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_stream_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The call already has as many open media streams as it may. Stop one first. Media streams are not sold here yet. No stream was started. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_stream_endpoint_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The stream's address is not a secure WebSocket (`wss:`) on a public host. The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Start a media stream",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.streams.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.streams.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_not_found",
            "call_not_live",
            "call_participant_not_found",
            "call_stream_endpoint_refused",
            "call_stream_limit_reached",
            "call_stream_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_endpoint_not_found",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/streams/{id}": {
      "get": {
        "description": "One media stream: its state, dials, frames and price. Scope: `calls:read`.",
        "operationId": "calls.streams.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The stream's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.streams.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_stream_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No media stream with this id on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a stream",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.streams.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.streams.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_stream_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/streams/{id}/stop": {
      "post": {
        "description": "Stops a media stream: it ends, its started minutes are charged and the rest of its hold goes back. A stream already over answers as it stands. Scope: `calls:write`.",
        "operationId": "calls.streams.stop",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The stream's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.streams.stop.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_stream_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No media stream with this id on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Stop a stream",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.streams.stop.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.streams.stop.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_stream_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/transfers": {
      "post": {
        "description": "Transfers a connected participant's place in the call to a number; the target's minutes are held from your balance. It answers while the target is dialled (`dialing`): the event `call.transfer.updated` follows it, and a call has one active transfer at a time (`call_transfer_active`). Scope: `calls:write`.",
        "operationId": "calls.transfers.start",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.transfers.start.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.transfers.start.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No call with this id in this profile. No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_live"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_transfer_active"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has ended, or its own phone is not connected yet. Nothing was added. Wait for `call.answered`, then try again. The participant has already left the call, or never connected. Nothing changed. The call already has a transfer in progress. Wait until it finishes, or cancel it first. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Start a transfer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.transfers.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.transfers.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_not_found",
            "call_not_live",
            "call_participant_not_found",
            "call_participant_not_open",
            "call_transfer_active",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/transfers/{id}": {
      "get": {
        "description": "One transfer of a call and where it stands: `dialing`, `consulting`, `completed`, `cancelled` or `failed`. Scope: `calls:read`.",
        "operationId": "calls.transfers.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The transfer's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.transfers.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_transfer_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No transfer with this id on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a transfer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.transfers.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.transfers.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_transfer_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/transfers/{id}/cancel": {
      "post": {
        "description": "Stops an active transfer: the target leaves and the participants on hold come back. A transfer that is not active answers `call_transfer_not_active`. Scope: `calls:write`.",
        "operationId": "calls.transfers.cancel",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The transfer's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.transfers.cancel.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_transfer_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No transfer with this id on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_transfer_not_active"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The transfer has already finished, failed or been cancelled. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Cancel a transfer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.transfers.cancel.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.transfers.cancel.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_transfer_not_active",
            "call_transfer_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{callId}/transfers/{id}/complete": {
      "post": {
        "description": "Completes an attended transfer after the consult: the others come back with the target, the transferor leaves. A transfer that is not active answers `call_transfer_not_active`. Scope: `calls:write`.",
        "operationId": "calls.transfers.complete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "callId",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The transfer's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.transfers.complete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_transfer_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No transfer with this id on this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_transfer_not_active"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The transfer has already finished, failed or been cancelled. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Complete a transfer",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.transfers.complete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.transfers.complete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_transfer_not_active",
            "call_transfer_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}": {
      "get": {
        "description": "One call with its state and times. `minutes` is `null` until the call has ended, and `price` until it has settled, which can be after `state` turns final. Scope: `calls:read`.",
        "operationId": "calls.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "patch": {
        "description": "Sets your reference and labels on a call, during or after it; a field left out keeps its value. Scope: `calls:write`.",
        "operationId": "calls.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.update.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.update.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Update a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/agent-conversation": {
      "get": {
        "description": "What the caller said to the call's AI agent and what the agent answered, in order. A call without an agent has no lines. Scope: `calls:read`.",
        "operationId": "calls.getAgentConversation",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's id.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.getAgentConversation.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get the AI agent's conversation",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.getAgentConversation.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.getAgentConversation.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/answer": {
      "post": {
        "description": "Takes a ringing inbound call (the event `call.incoming`): the number's fallback will not run. It must arrive inside the number's decide window (`decideBy` in the event); later it answers `call_already_routed`. Then say, play or gather on it, or forward it. A repeat answers the same. Scope: `calls:write`.",
        "operationId": "calls.answer",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbound call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.answer.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_addons_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_composition_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The add-ons do not fit together: a transcript needs the recording, a summary the transcript, and a voicemail drop its message. A call needs a number to dial or at least one app user, no more participants than one call takes, and a dialled phone for an add-on such as a recording. An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No call with this id in this profile. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_already_routed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_summary_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The inbound call was already answered, rejected, forwarded or given the number's fallback. Nothing changed. Call summaries are not available here yet. Start the call without a summary. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Answer a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.answer.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.answer.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_addons_invalid",
            "call_already_routed",
            "call_composition_invalid",
            "call_media_audio_not_found",
            "call_not_found",
            "call_summary_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "verification_required",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/forward": {
      "post": {
        "description": "Forwards the inbound call to one phone number (`to`), while it is being decided or after you answered it. Scope: `calls:write`.",
        "operationId": "calls.forward",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbound call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.forward.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.forward.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_addons_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_composition_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The add-ons do not fit together: a transcript needs the recording, a summary the transcript, and a voicemail drop its message. A call needs a number to dial or at least one app user, no more participants than one call takes, and a dialled phone for an add-on such as a recording. An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No call with this id in this profile. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_already_routed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_summary_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The inbound call was already answered, rejected, forwarded or given the number's fallback. Nothing changed. Call summaries are not available here yet. Start the call without a summary. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Forward a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.forward.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.forward.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_addons_invalid",
            "call_already_routed",
            "call_composition_invalid",
            "call_media_audio_not_found",
            "call_not_found",
            "call_summary_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "verification_required",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/gather": {
      "post": {
        "description": "Listens for keypad digits, a spoken answer, or whichever comes first (`input`, `dtmf` when left out). The event `call.gather.completed` carries what was heard. It answers when the action is queued, not when it has ended; the event says when it ended. Scope: `calls:write`.",
        "operationId": "calls.gather",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.gather.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.gather.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No call with this id in this profile. No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_tasks_full"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has as many media tasks queued as it takes. Wait for one to finish (`call.playback.ended`, `call.gather.completed`), then try again. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Gather input",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.gather.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.gather.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_media_audio_not_found",
            "call_media_tasks_full",
            "call_not_found",
            "call_participant_not_found",
            "call_participant_not_open",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/hang-up": {
      "post": {
        "description": "Ends the whole call: every phone and app user in it is dropped. A repeat is harmless. The final `minutes` and `price` come with `call.ended` and `calls.get`, not in this answer. Scope: `calls:write`.",
        "operationId": "calls.hangUp",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.hangUp.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Hang up a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.hangUp.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.hangUp.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/play": {
      "post": {
        "description": "Plays a ready clip of your audio library on the call. It answers when the action is queued, not when it has ended; the event says when it ended. Scope: `calls:write`.",
        "operationId": "calls.play",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.play.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.play.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No call with this id in this profile. No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_tasks_full"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has as many media tasks queued as it takes. Wait for one to finish (`call.playback.ended`, `call.gather.completed`), then try again. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Play a clip",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.play.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.play.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_media_audio_not_found",
            "call_media_tasks_full",
            "call_not_found",
            "call_participant_not_found",
            "call_participant_not_open",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/reject": {
      "post": {
        "description": "Ends the ringing inbound call unanswered, at no cost. Only a call that is still being decided can be rejected: one you answered, or whose fallback ran, answers `call_already_routed`. Scope: `calls:write`.",
        "operationId": "calls.reject",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbound call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.reject.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_addons_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_composition_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The add-ons do not fit together: a transcript needs the recording, a summary the transcript, and a voicemail drop its message. A call needs a number to dial or at least one app user, no more participants than one call takes, and a dialled phone for an add-on such as a recording. An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No call with this id in this profile. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_already_routed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_summary_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The inbound call was already answered, rejected, forwarded or given the number's fallback. Nothing changed. Call summaries are not available here yet. Start the call without a summary. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Reject a call",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.reject.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.reject.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_addons_invalid",
            "call_already_routed",
            "call_composition_invalid",
            "call_media_audio_not_found",
            "call_not_found",
            "call_summary_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "verification_required",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/say": {
      "post": {
        "description": "Reads a text aloud on the call, in the voice and the language you name; without them, in the standard female voice of the language, Norwegian when none is named. The speech is paid, and charged in full also when the caller interrupts it. It answers when the action is queued, not when it has ended; the event says when it ended. Scope: `calls:write`.",
        "operationId": "calls.say",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.say.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.say.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No call with this id in this profile. No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_tasks_full"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has as many media tasks queued as it takes. Wait for one to finish (`call.playback.ended`, `call.gather.completed`), then try again. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Say a text",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.say.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.say.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_media_audio_not_found",
            "call_media_tasks_full",
            "call_not_found",
            "call_participant_not_found",
            "call_participant_not_open",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/send-digits": {
      "post": {
        "description": "Sends keypad tones (`0-9`, `*`, `#`) into the call. It answers when the action is queued, not when it has ended; the event says when it ended. Scope: `calls:write`.",
        "operationId": "calls.sendDigits",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.calls.sendDigits.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.sendDigits.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_audio_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio clip is not this profile's, or does not exist. No call with this id in this profile. No participant with this id in this call."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_media_tasks_full"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_participant_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The call has as many media tasks queued as it takes. Wait for one to finish (`call.playback.ended`, `call.gather.completed`), then try again. The participant has already left the call, or never connected. Nothing changed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send keypad tones",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.calls.sendDigits.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.calls.sendDigits.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_media_audio_not_found",
            "call_media_tasks_full",
            "call_not_found",
            "call_participant_not_found",
            "call_participant_not_open",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/calls/{id}/summary": {
      "get": {
        "description": "The call's summary, made from its transcript after the call when it was started with `summary` or the application summarizes every call. It is `waiting` until the transcript exists; the event `call.summary.ready` says when it is done. A call without one answers `call_not_found`. Scope: `calls:read`.",
        "operationId": "calls.getSummary",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.calls.getSummary.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.call_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a call summary",
        "tags": [
          "Calls"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.calls.getSummary.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.calls.getSummary.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email": {
      "get": {
        "description": "The email sent and received, newest first. Filter by `direction`, `state`, your `reference`, the `identity` it was for, a thread, the stopped email and a time window (`since` included, `until` not). Scope: `email:read`.",
        "operationId": "email.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "description": "Only the sent (`outbound`) or only the received (`inbound`); both when left out.",
              "enum": [
                "outbound",
                "inbound"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "reference",
            "required": false,
            "schema": {
              "description": "Only the sends with this reference.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "description": "Only the email made at or after this instant, ISO 8601 with an offset.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only the email in this state.",
              "enum": [
                "scheduled",
                "queued",
                "in_flight",
                "uncertain",
                "sent",
                "delivered",
                "bounced",
                "complained",
                "failed",
                "cancelled",
                "held_for_balance",
                "received",
                "blocked"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "stopped",
            "required": false,
            "schema": {
              "description": "`true`: only the received email a receiving domain's rules stopped (`state: blocked`), uncharged and deleted after 30 days unless you let it through (`POST /email/{id}/release`). Left out: every email but those, unless `state` names `blocked`.",
              "type": "boolean"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "threadId",
            "required": false,
            "schema": {
              "description": "Only the emails of one thread: the `threadId` of any email in it.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "description": "Only the email made before this instant, ISO 8601 with an offset.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Sends one email. What happens to it arrives as `email.status` events. A test key's send is simulated and free. Scope: `email:send`.",
        "operationId": "email.send",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.send.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.send.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The plan's month limit for `meta.kind` is used up (`meta.limit` SMS units or email recipients in the Oslo month `meta.month`), and nothing was sent. It starts again on the first day of the next month; a larger plan than `meta.plan` has no month limit. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No email with this id in this profile. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No template with this id in this profile. No upload with this id for this API key. Upload the file again, and send the id the upload answered."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_reference_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_unsubscribed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_already_attached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_direct_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_ready"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_replaced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. An email with this once-only reference exists already (one email per campaign recipient). Nothing was sent. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. Recipients on this profile's unsubscribe list (`meta.addresses`). Nothing was sent or charged. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. The upload is used by another call already. Upload the file again to use it a second time. The file cannot be sent in one call now (`meta.reason`: over the one-call limit, the server is busy, or the operation takes none). Send it by the upload's steps instead. The upload is not finished, or its file is still being scanned. Try again shortly. The file's bytes have not arrived yet. Send them, then finish the upload again. The stored file changed after the upload finished. Upload the file again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_expired"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload is gone: it was not used in time, or it was released or erased. Upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file is larger than this operation takes."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_type_not_accepted"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file's type is not one this operation takes."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_attachment_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_display_name_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.message_content_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.send_window_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_variable_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_failed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_infected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_size_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. A file of the email cannot go; `meta.problem` says why and `meta.filename` names the file (null: all the files together). Nothing was sent or charged. The display name holds a line break, an invisible mark or one of `< > @ \"`. Nothing was sent. The message could not go in time: its latest send time has passed, or its send window does not open again before it. Nothing was sent or charged. A send needs either a text or a template: not both and not neither. Nothing was sent. The send window names a time zone Telkit does not know. Nothing was sent or charged. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. A `{{` without its `}}`, or a place name with other marks than letters, digits, `_` and `.`. `meta.at` is the character, `meta.part` the subject, text or HTML it is in. The template names places the call gave no value for (`meta.missing`). Nothing was sent. Pass them in `variables`. The template is for another service (`meta.service`: sms, email or letters). Nothing was sent. The file broke a rule of the upload; `meta.reason` names which (its size, its type or its content). The malware scan found something in the file, so it is not used. A file sent in parts needs its size when the upload opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send an email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.email.send.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.send.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "email_address_invalid",
            "email_attachment_invalid",
            "email_display_name_invalid",
            "email_not_found",
            "email_reference_taken",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "insufficient_funds",
            "latest_send_passed",
            "limit_reached",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_limit_reached",
            "plan_required",
            "rate_limited",
            "recipient_unsubscribed",
            "revision_conflict",
            "scope_missing",
            "send_window_invalid",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/email/domains": {
      "get": {
        "description": "The application's email domains, newest first. Scope: `numbers:read`.",
        "operationId": "email.domains.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only domains in this state. Left out: pending and active.",
              "enum": [
                "pending",
                "active",
                "ended",
                "rejected",
                "withdrawn"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List email domains",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Adds a domain to send (and receive) email from. `records` names the DNS records to publish; `email.domain.changed` says when it is verified. The first domain of an identity that is verified becomes its default. A domain you already have on the same identity answers that domain as it is. Scope: `numbers:manage`.",
        "operationId": "email.domains.create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.domains.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is being closed, so this cannot be done. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_domain_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_identity_mismatch"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The domain is already added: in this profile, or by another organization. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The identity named has another organization number than the one the sender already stands on. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_display_name_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_domain_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_receiving_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. The display name holds a line break, an invisible mark or one of `< > @ \"`. Nothing was sent. Not a domain name Telkit can add: letters, digits, hyphens and dots, with a top-level domain. Telkit cannot receive mail for a domain here. Add the domain without receiving."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Add an email domain",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_address_invalid",
            "email_display_name_invalid",
            "email_domain_invalid",
            "email_domain_taken",
            "email_receiving_unsupported",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "organization_closing",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_identity_mismatch",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/domains/{domain}": {
      "delete": {
        "description": "Removes the domain from the application: sends from it stop, and so does receiving when no other application has it. Scope: `numbers:manage`.",
        "operationId": "email.domains.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "description": "The domain (`post.firma.no`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete an email domain",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "get": {
        "description": "One email domain: where it stands, the DNS records to publish and its `defaultFrom`. Scope: `numbers:read`.",
        "operationId": "email.domains.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "description": "The domain (`post.firma.no`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an email domain",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "patch": {
        "description": "Changes an email domain: receiving, `defaultFrom`, whether it is its identity's default for email, and its rules for received mail. A field left out stays as it is. Scope: `numbers:manage`.",
        "operationId": "email.domains.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "description": "The domain (`post.firma.no`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.domains.update.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.update.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.catch_all_application_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_display_name_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_receiving_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The catch-all must be an application the domain serves. An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. The display name holds a line break, an invisible mark or one of `< > @ \"`. Nothing was sent. Telkit cannot receive mail for a domain here. Add the domain without receiving."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Change an email domain",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "catch_all_application_invalid",
            "email_address_invalid",
            "email_display_name_invalid",
            "email_receiving_unsupported",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_approved",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/domains/{domain}/blocks": {
      "get": {
        "description": "The senders whose mail to this receiving domain is stored stopped (`blocked`), uncharged, with no event, newest first. Scope: `numbers:read`.",
        "operationId": "email.domains.blocks.list",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "description": "The domain (`post.firma.no`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.blocks.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List an email domain's blocked senders",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.blocks.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.blocks.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Mail from the sender to this receiving domain is stored stopped (`blocked`) from now on: uncharged, with no `email.received` event, listed with `GET /email?stopped=true` and let through with `POST /email/{id}/release`. Scope: `numbers:manage`.",
        "operationId": "email.domains.blocks.create",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "description": "The domain (`post.firma.no`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.domains.blocks.create.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.blocks.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_block_limit"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The domain's block list is full. Remove an entry with `DELETE /senders/email-domains/{senderId}/blocks/{blockId}` and add again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_block_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Not an email address (`ola@example.com`) or a domain name (`example.com`). Nothing was added."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Block a sender on an email domain",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.blocks.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.blocks.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_block_invalid",
            "email_block_limit",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/email/domains/{domain}/blocks/{id}": {
      "delete": {
        "description": "Takes an entry off the block list: mail from the sender is received again. Email already stopped stays stopped until it is let through. Scope: `numbers:manage`.",
        "operationId": "email.domains.blocks.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "description": "The domain (`post.firma.no`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The entry's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.blocks.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Unblock a sender on an email domain",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.blocks.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.blocks.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/domains/{domain}/verify": {
      "post": {
        "description": "Reads the domain's DNS records again. The reading arrives as `email.domain.changed` when it changes the domain. Scope: `numbers:manage`.",
        "operationId": "email.domains.verify",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "domain",
            "required": true,
            "schema": {
              "description": "The domain (`post.firma.no`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.domains.verify.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Verify an email domain",
        "tags": [
          "Email domains"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.domains.verify.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.domains.verify.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/opt-outs": {
      "get": {
        "description": "The addresses that unsubscribed from your email, newest first: added by you or by the recipient through an unsubscribe link. Each entry stops the email of its `identity` (null: your own company), or of every identity (`allIdentities`). Without `identity` or `allIdentities` the list covers every entry. Scope: `email:read`.",
        "operationId": "email.optOuts.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "allIdentities",
            "required": false,
            "schema": {
              "description": "true: every identity of the application, instead of one. Not with `identity`.",
              "type": "boolean"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.optOuts.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List unsubscribed email addresses",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.optOuts.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.optOuts.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Puts an address on the unsubscribe list of an identity: your own company's when you name none, or every identity's with `allIdentities: true`. No email of that identity goes to it, sends not yet out included, and `email.optedOut` is sent. An address already on that list answers its entry. Scope: `email:send`.",
        "operationId": "email.optOuts.create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.optOuts.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.optOuts.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_opt_out_exists"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The same address was added by another call at the same moment. It is on the list. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_address_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Unsubscribe an email address",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.optOuts.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.optOuts.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_address_invalid",
            "email_opt_out_exists",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/email/opt-outs/{address}": {
      "delete": {
        "description": "Takes an address off the unsubscribe list of an identity (your own company's when you name none): its email goes to it again, unless an entry for every identity stays. `allIdentities: true` takes the address off the list everywhere. `email.optedIn` is sent. Scope: `email:send`.",
        "operationId": "email.optOuts.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "address",
            "required": true,
            "schema": {
              "description": "The email address.",
              "maxLength": 254,
              "minLength": 3,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "allIdentities",
            "required": false,
            "schema": {
              "description": "true: every identity of the application, instead of one. Not with `identity`.",
              "type": "boolean"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.optOuts.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_address_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Remove an email address from the unsubscribe list",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.optOuts.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.optOuts.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_address_invalid",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/quote": {
      "post": {
        "description": "The price a send of the same input would hold now. The send decides again. Scope: `email:send`.",
        "operationId": "email.quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.quote.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.quote.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No template with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_display_name_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.message_content_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.send_window_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_variable_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. The display name holds a line break, an invisible mark or one of `< > @ \"`. Nothing was sent. The message could not go in time: its latest send time has passed, or its send window does not open again before it. Nothing was sent or charged. A send needs either a text or a template: not both and not neither. Nothing was sent. The send window names a time zone Telkit does not know. Nothing was sent or charged. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. A `{{` without its `}}`, or a place name with other marks than letters, digits, `_` and `.`. `meta.at` is the character, `meta.part` the subject, text or HTML it is in. The template names places the call gave no value for (`meta.missing`). Nothing was sent. Pass them in `variables`. The template is for another service (`meta.service`: sms, email or letters). Nothing was sent."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Price an email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.quote.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.quote.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "destination_not_allowlisted",
            "email_address_invalid",
            "email_display_name_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_approved",
            "identity_not_found",
            "latest_send_passed",
            "message_content_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "send_window_invalid",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/receive-test": {
      "post": {
        "description": "Makes up a received email in test mode, to try receiving without DNS and without cost: it is stored like a received email, costs nothing and sends `email.received` to your test webhooks. Read it, download its files, reply to it, forward it, block its sender and release it as you would a real one. A live key is refused. Scope: `email:send`.",
        "operationId": "email.receiveTest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.receiveTest.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.receiveTest.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.test_mode_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. This operation makes up test data and takes a test key only (`tk_test_…`). Nothing was stored."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No email with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_address_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Make up a received email (test mode)",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.receiveTest.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.receiveTest.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_address_invalid",
            "email_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "test_mode_only",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/email/{id}": {
      "get": {
        "description": "One email with its state, times and files. Scope: `email:read`.",
        "operationId": "email.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The email's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No email with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/{id}/attachments/{attachmentId}": {
      "get": {
        "description": "A download link to a file of a received email, once its `state` is `stored`; before that, and for a skipped file, this answers `email_not_found`. Scope: `email:read`.",
        "operationId": "email.attachments.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "attachmentId",
            "required": true,
            "schema": {
              "description": "The file's `id` in the email's `attachments`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The received email's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.attachments.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No email with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Download a file of a received email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.attachments.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.attachments.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/{id}/forward": {
      "post": {
        "description": "Forwards a received email to the addresses you name, from the address it came to, with your note above it and its stored files attached again. It is sent, priced and reported like any email. Scope: `email:send`.",
        "operationId": "email.forward",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The received email to forward.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.forward.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.forward.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The plan's month limit for `meta.kind` is used up (`meta.limit` SMS units or email recipients in the Oslo month `meta.month`), and nothing was sent. It starts again on the first day of the next month; a larger plan than `meta.plan` has no month limit. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No email with this id in this profile. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No template with this id in this profile. No upload with this id for this API key. Upload the file again, and send the id the upload answered."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_files_pending"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_reference_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_unsubscribed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_already_attached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_direct_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_ready"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_replaced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The files of this email are still being fetched. Nothing was sent. Try again in a few seconds, or forward it without its files (`includeAttachments: false`). This email was sent by the profile, or it is a received email that was stopped (`state: blocked`) and not let through. Only a received email can be answered with a reply or forwarded. To follow up on a sent email, send a new one with `inReplyTo`; let a stopped one through with `POST /email/{messageId}/release` first. An email with this once-only reference exists already (one email per campaign recipient). Nothing was sent. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. Recipients on this profile's unsubscribe list (`meta.addresses`). Nothing was sent or charged. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. The upload is used by another call already. Upload the file again to use it a second time. The file cannot be sent in one call now (`meta.reason`: over the one-call limit, the server is busy, or the operation takes none). Send it by the upload's steps instead. The upload is not finished, or its file is still being scanned. Try again shortly. The file's bytes have not arrived yet. Send them, then finish the upload again. The stored file changed after the upload finished. Upload the file again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_expired"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload is gone: it was not used in time, or it was released or erased. Upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file is larger than this operation takes."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_type_not_accepted"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file's type is not one this operation takes."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_attachment_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_display_name_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.message_content_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.send_window_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_variable_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_failed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_infected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_size_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. A file of the email cannot go; `meta.problem` says why and `meta.filename` names the file (null: all the files together). Nothing was sent or charged. The display name holds a line break, an invisible mark or one of `< > @ \"`. Nothing was sent. The message could not go in time: its latest send time has passed, or its send window does not open again before it. Nothing was sent or charged. A send needs either a text or a template: not both and not neither. Nothing was sent. The send window names a time zone Telkit does not know. Nothing was sent or charged. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. A `{{` without its `}}`, or a place name with other marks than letters, digits, `_` and `.`. `meta.at` is the character, `meta.part` the subject, text or HTML it is in. The template names places the call gave no value for (`meta.missing`). Nothing was sent. Pass them in `variables`. The template is for another service (`meta.service`: sms, email or letters). Nothing was sent. The file broke a rule of the upload; `meta.reason` names which (its size, its type or its content). The malware scan found something in the file, so it is not used. A file sent in parts needs its size when the upload opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Forward an email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.email.forward.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.forward.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "email_address_invalid",
            "email_attachment_invalid",
            "email_display_name_invalid",
            "email_files_pending",
            "email_not_found",
            "email_not_received",
            "email_reference_taken",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "insufficient_funds",
            "latest_send_passed",
            "limit_reached",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_limit_reached",
            "plan_required",
            "rate_limited",
            "recipient_unsubscribed",
            "revision_conflict",
            "scope_missing",
            "send_window_invalid",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/email/{id}/original": {
      "get": {
        "description": "A download link to the original message file of a received email (an `.eml`): every part, header and file as the sender's mail server gave it. The email's `original.state` says when it is `stored`; before that, and for an original that was skipped, this answers `email_not_found`. Scope: `email:read`.",
        "operationId": "email.getOriginal",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The received email's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.getOriginal.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No email with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Download the original message file of a received email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.getOriginal.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.email.getOriginal.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/{id}/release": {
      "post": {
        "description": "Lets through a received email a receiving domain's rules stopped (`state: blocked`): it is charged as a received email, `email.received` is sent and its files are fetched. An email that is not stopped answers its state and changes nothing. Scope: `email:send`.",
        "operationId": "email.release",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The stopped email to let through.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.release.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.email_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No email with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. This email was sent by the profile, or it is a received email that was stopped (`state: blocked`) and not let through. Only a received email can be answered with a reply or forwarded. To follow up on a sent email, send a new one with `inReplyTo`; let a stopped one through with `POST /email/{messageId}/release` first. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Let a stopped email through",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.email.release.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.release.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "email_not_found",
            "email_not_received",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/email/{id}/reply": {
      "post": {
        "description": "Answers a received email in its thread: to its reply-to address or its sender, from the address it came to, with `Re:` before its subject. It is sent, priced and reported like any email. When it goes to the address the email came from, it goes out also when that address is on the unsubscribe list, because the person wrote first. Scope: `email:send`.",
        "operationId": "email.reply",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The received email to answer.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.email.reply.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.email.reply.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The plan's month limit for `meta.kind` is used up (`meta.limit` SMS units or email recipients in the Oslo month `meta.month`), and nothing was sent. It starts again on the first day of the next month; a larger plan than `meta.plan` has no month limit. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No email with this id in this profile. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No template with this id in this profile. No upload with this id for this API key. Upload the file again, and send the id the upload answered."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_files_pending"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_reference_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_unsubscribed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_already_attached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_direct_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_ready"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_replaced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The files of this email are still being fetched. Nothing was sent. Try again in a few seconds, or forward it without its files (`includeAttachments: false`). This email was sent by the profile, or it is a received email that was stopped (`state: blocked`) and not let through. Only a received email can be answered with a reply or forwarded. To follow up on a sent email, send a new one with `inReplyTo`; let a stopped one through with `POST /email/{messageId}/release` first. An email with this once-only reference exists already (one email per campaign recipient). Nothing was sent. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. Recipients on this profile's unsubscribe list (`meta.addresses`). Nothing was sent or charged. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. The upload is used by another call already. Upload the file again to use it a second time. The file cannot be sent in one call now (`meta.reason`: over the one-call limit, the server is busy, or the operation takes none). Send it by the upload's steps instead. The upload is not finished, or its file is still being scanned. Try again shortly. The file's bytes have not arrived yet. Send them, then finish the upload again. The stored file changed after the upload finished. Upload the file again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_expired"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload is gone: it was not used in time, or it was released or erased. Upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file is larger than this operation takes."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_type_not_accepted"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file's type is not one this operation takes."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_attachment_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_display_name_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.message_content_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.send_window_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_variable_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_failed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_infected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_size_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. A file of the email cannot go; `meta.problem` says why and `meta.filename` names the file (null: all the files together). Nothing was sent or charged. The display name holds a line break, an invisible mark or one of `< > @ \"`. Nothing was sent. The message could not go in time: its latest send time has passed, or its send window does not open again before it. Nothing was sent or charged. A send needs either a text or a template: not both and not neither. Nothing was sent. The send window names a time zone Telkit does not know. Nothing was sent or charged. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. A `{{` without its `}}`, or a place name with other marks than letters, digits, `_` and `.`. `meta.at` is the character, `meta.part` the subject, text or HTML it is in. The template names places the call gave no value for (`meta.missing`). Nothing was sent. Pass them in `variables`. The template is for another service (`meta.service`: sms, email or letters). Nothing was sent. The file broke a rule of the upload; `meta.reason` names which (its size, its type or its content). The malware scan found something in the file, so it is not used. A file sent in parts needs its size when the upload opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Reply to an email",
        "tags": [
          "Email"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.email.reply.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.email.reply.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "email_address_invalid",
            "email_attachment_invalid",
            "email_display_name_invalid",
            "email_files_pending",
            "email_not_found",
            "email_not_received",
            "email_reference_taken",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "insufficient_funds",
            "latest_send_passed",
            "limit_reached",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_limit_reached",
            "plan_required",
            "rate_limited",
            "recipient_unsubscribed",
            "revision_conflict",
            "scope_missing",
            "send_window_invalid",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/events": {
      "get": {
        "description": "Your events after `after`, oldest first, so a reader that keeps the last `position` it handled reads on from there. `head` is where «from now» starts. Scope: `events:read`.",
        "operationId": "events.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "Answer the events after this `position`; left out: from the oldest kept. `events.list`'s `head` is the position «from now».",
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "description": "Only these events (`sms.status`); left out: every event.",
              "items": {
                "maxLength": 128,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 50,
              "minItems": 1,
              "type": "array"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.events.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.event_log_too_old"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The cursor is older than the log keeps: entries after it were removed. Read from floor (or without after) and re-sync from your own records. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List events",
        "tags": [
          "Events"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.events.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.events.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "event_log_too_old",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/events/follow": {
      "get": {
        "description": "Streams your events as server-sent events: first the ones after `after`, oldest first, then each new one as it happens, filtered by `types` and `identity` as `events.list` is. Each message's id is the event's `position`; a reader that reconnects with it as `Last-Event-ID` reads on from there. One answer lasts about two minutes at most: it then ends with the message `refused` naming `stream_incomplete`, and the reader connects again from its last position (the SDKs do this for you); a revoked key ends it at once. A key holds a few streams at a time (`rate_limited` beyond that). Scope: `events:read`.",
        "operationId": "events.follow",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "Answer the events after this `position`; left out: from the oldest kept. `events.list`'s `head` is the position «from now».",
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "types",
            "required": false,
            "schema": {
              "description": "Only these events (`sms.status`); left out: every event.",
              "items": {
                "maxLength": 128,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 50,
              "minItems": 1,
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "The id of the last event received: the stream resumes after it.",
            "explode": false,
            "in": "header",
            "name": "Last-Event-ID",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-pekka-part": {
                  "$ref": "#/components/schemas/operation.events.follow.part"
                }
              }
            },
            "description": "Server-sent events: one event per part (its id is the part's position; a reconnect sends Last-Event-ID and resumes after it), then one last event: result, refused or failed."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.event_log_too_old"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The cursor is older than the log keeps: entries after it were removed. Read from floor (or without after) and re-sync from your own records. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Follow your events as server-sent events",
        "tags": [
          "Events"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.events.follow.input"
          },
          "kind": "stream",
          "output": {
            "$ref": "#/components/schemas/operation.events.follow.output"
          },
          "part": {
            "$ref": "#/components/schemas/operation.events.follow.part"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "event_log_too_old",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/events/test": {
      "post": {
        "description": "Sends a `test` event to your own log, stream and webhooks, in the key's mode. Scope: `webhooks:manage`.",
        "operationId": "events.sendTest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.events.sendTest.input"
              }
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.events.sendTest.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send a test event",
        "tags": [
          "Events"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.events.sendTest.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.events.sendTest.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/events/{id}": {
      "get": {
        "description": "Answers one event of your log by its `id`, the id a webhook's body carries, so a receiver can read again what it was sent. An event of another application or mode, or one /v2 does not serve, answers `event_not_found`. Scope: `events:read`.",
        "operationId": "events.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The event's `id`, as a webhook's body and the log carry it.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.events.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.event_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No public event with this id in your log."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an event",
        "tags": [
          "Events"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.events.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.events.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "event_not_found",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/identities": {
      "get": {
        "description": "Your identities, newest first, your own company among them. Scope: `numbers:read`.",
        "operationId": "identities.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "description": "The country of the business register, ISO 3166-1 alpha-2. Accepted today: NO.",
              "pattern": "^[A-Z]{2}$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "reference",
            "required": false,
            "schema": {
              "description": "Only the identity with this reference.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "description": "Digits: the registration number's start; other text: the names and the city.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only the identities in this state.",
              "enum": [
                "draft",
                "submitted",
                "approved",
                "rejected",
                "suspended"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List identities",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.identities.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Registers a business you act for, as a `draft` with the facts its register holds. A business you already have answers that identity (and takes the `reference` when it has none). Upload what `requirements` names, then submit it. Only Norway (`NO`) is accepted today. Scope: `numbers:manage`.",
        "operationId": "identities.create",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.identities.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.business_identity_plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Sending for another company needs a plan with business identities; `meta.plan` names it. The principal may not do this. The organization is being closed, so this cannot be done. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_is_company"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.reference_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. This organization number is the organization's own: the company itself is already an identity of every profile (`meta.identityId`). Another identity of the application already has this reference. A reference names one kept identity. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_dissolved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.country_not_supported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.reference_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.registration_number_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Enhetsregisteret shows the unit as deleted, bankrupt or being wound up. Enhetsregisteret has no unit with this organization number. Telkit does not take identities registered in `meta.country` yet. Only Norway (`NO`) is accepted today. A reference cannot be `self`, which names your own company, or have the shape of Telkit's ids (a UUID), which is read as an id: either would name another identity. Nothing was changed. A Norwegian registration number has nine digits."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.registry_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Enhetsregisteret did not answer. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create an identity",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.identities.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.identities.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "business_identity_plan_required",
            "company_dissolved",
            "company_not_found",
            "country_not_supported",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_is_company",
            "organization_closing",
            "rate_limited",
            "reference_invalid",
            "reference_taken",
            "registration_number_invalid",
            "registry_unavailable",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 201,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/identities/lookup": {
      "get": {
        "description": "What the business register holds for a number, and the identity you have for it already. Scope: `numbers:manage`.",
        "operationId": "identities.lookup",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "country",
            "required": true,
            "schema": {
              "description": "The country of the business register, ISO 3166-1 alpha-2. Accepted today: NO.",
              "pattern": "^[A-Z]{2}$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "registrationNumber",
            "required": true,
            "schema": {
              "description": "The number in the business register; in Norway the organization number.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.lookup.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.country_not_supported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.registration_number_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Enhetsregisteret has no unit with this organization number. Telkit does not take identities registered in `meta.country` yet. Only Norway (`NO`) is accepted today. A Norwegian registration number has nine digits."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.registry_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Enhetsregisteret did not answer. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Look up a business in its register",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.lookup.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.identities.lookup.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_not_found",
            "country_not_supported",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "registration_number_invalid",
            "registry_unavailable",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/identities/{identity}": {
      "get": {
        "description": "One identity: where it stands, what it still needs, its documents. Scope: `numbers:read`.",
        "operationId": "identities.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an identity",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.identities.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "patch": {
        "description": "Changes your `reference` for a business and the name your customers see, in any state, and its signatory while it is a `draft` or `rejected`. Scope: `numbers:manage`.",
        "operationId": "identities.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.identities.update.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.update.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_identity_fixed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_editable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.reference_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. Only a draft or a rejected identity changes its facts or documents; `meta.state` is where it stands. Withdraw a submitted identity first. Another identity of the application already has this reference. A reference names one kept identity. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.reference_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A reference cannot be `self`, which names your own company, or have the shape of Telkit's ids (a UUID), which is read as an id: either would name another identity. Nothing was changed."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Update an identity",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.identities.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_editable",
            "identity_not_found",
            "rate_limited",
            "reference_invalid",
            "reference_taken",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/identities/{identity}/archive": {
      "post": {
        "description": "Ends a business's numbers and senders (nothing is refunded) and archives it: it is no longer listed or named, and its reference is free again. Refused while a number is being ordered or in a call. Scope: `numbers:manage`.",
        "operationId": "identities.archive",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.archive.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_identity_fixed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_orders_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.phone_number_in_use"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. A number of the identity, or of the profile, is still being ordered. Wait until the order is done. A call on the number is live. The move or the release waits until it ends: try again then. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Archive an identity",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.archive.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.identities.archive.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "identity_orders_open",
            "phone_number_in_use",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/identities/{identity}/documents/{id}": {
      "delete": {
        "description": "Deletes a document of a `draft` or `rejected` identity. Scope: `numbers:manage`.",
        "operationId": "identities.documents.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The document's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.documents.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_document_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No such document on this identity. No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_identity_fixed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_editable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. Only a draft or a rejected identity changes its facts or documents; `meta.state` is where it stands. Withdraw a submitted identity first. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a document of an identity",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.documents.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.identities.documents.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_document_not_found",
            "identity_not_editable",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/identities/{identity}/limit": {
      "put": {
        "description": "Sets the most a business's sends may cost per month and per day, excluding VAT; your own company's limit covers every send without a business. Takes a live key. Scope: `profiles:manage`.",
        "operationId": "identities.setLimit",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.identities.setLimit.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.setLimit.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Set an identity's spending limit",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.setLimit.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.identities.setLimit.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/identities/{identity}/submit": {
      "post": {
        "description": "Submits a `draft` or `rejected` identity for Telkit's review once `requirements` is empty; `identity.changed` tells the decision. A submitted one answers as it is. Scope: `numbers:manage`.",
        "operationId": "identities.submit",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.submit.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_identity_fixed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_editable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. Only a draft or a rejected identity changes its facts or documents; `meta.state` is where it stands. Withdraw a submitted identity first. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_documents_missing"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Submitting needs a current document of each kind in `meta.missing`. Upload them, then submit again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Submit an identity for review",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.submit.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.identities.submit.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_documents_missing",
            "identity_not_editable",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/identities/{identity}/withdraw": {
      "post": {
        "description": "Takes a `submitted` identity back to a `draft`, to correct it and submit it again. A draft answers as it is. Scope: `numbers:manage`.",
        "operationId": "identities.withdraw",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.identities.withdraw.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_identity_fixed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_editable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. Only a draft or a rejected identity changes its facts or documents; `meta.state` is where it stands. Withdraw a submitted identity first. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Withdraw an identity from review",
        "tags": [
          "Identities"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.identities.withdraw.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.identities.withdraw.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_editable",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/letters": {
      "get": {
        "description": "The letters, newest first. Filter by `state`, your `reference`, the `identity` it was for, and a time window (`since` included, `until` not). Scope: `letters:read`.",
        "operationId": "letters.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "reference",
            "required": false,
            "schema": {
              "description": "Only the letters with this reference.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "description": "Only the letters made at or after this instant, ISO 8601 with an offset.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only the letters in this state.",
              "enum": [
                "queued",
                "in_flight",
                "uncertain",
                "printing",
                "delivered",
                "posted",
                "failed"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "description": "Only the letters made before this instant, ISO 8601 with an offset.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List letters",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.letters.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Sends one letter through Digipost, to a digital mailbox or on paper: your own PDF, a text under your letterhead, or a template. It goes from the letter sender of the business named by `identity` (left out: your own company's). What happens to it arrives as `letter.status` events. A test key sends nothing for real and costs nothing. Scope: `letters:send`.",
        "operationId": "letters.send",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.letters.send.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.send.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No template with this id in this profile. No upload with this id for this API key. Upload the file again, and send the id the upload answered."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_account_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_identity_account_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_already_attached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_direct_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_ready"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_replaced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. A live letter needs the organization's own Digipost account connected. Nothing was sent or charged. A test key needs no account. A live letter in a business identity's name needs that identity's own Digipost account connected (`meta.identityId`). Nothing was sent or charged. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. The upload is used by another call already. Upload the file again to use it a second time. The file cannot be sent in one call now (`meta.reason`: over the one-call limit, the server is busy, or the operation takes none). Send it by the upload's steps instead. The upload is not finished, or its file is still being scanned. Try again shortly. The file's bytes have not arrived yet. Send them, then finish the upload again. The stored file changed after the upload finished. Upload the file again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_expired"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload is gone: it was not used in time, or it was released or erased. Upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file is larger than this operation takes."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_type_not_accepted"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file's type is not one this operation takes."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_abroad_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_paper_only_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_pdf_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_too_many_sheets"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.message_content_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.send_window_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_variable_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_failed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_infected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_size_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. The message could not go in time: its latest send time has passed, or its send window does not open again before it. Nothing was sent or charged. Letters to this country (`meta.country`) are not open yet. Nothing was sent. A paper-only letter needs direct print on the Digipost account it goes with, and that account does not have it. Nothing was sent or charged. The PDF cannot be a letter; `meta.problem` says why. Nothing was sent or charged. The letter has `meta.sheets` sheets, cover sheet included, and one paper letter takes at most `meta.maximum`. Nothing was sent or charged. A send needs either a text or a template: not both and not neither. Nothing was sent. The send window names a time zone Telkit does not know. Nothing was sent or charged. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. A `{{` without its `}}`, or a place name with other marks than letters, digits, `_` and `.`. `meta.at` is the character, `meta.part` the subject, text or HTML it is in. The template names places the call gave no value for (`meta.missing`). Nothing was sent. Pass them in `variables`. The template is for another service (`meta.service`: sms, email or letters). Nothing was sent. The file broke a rule of the upload; `meta.reason` names which (its size, its type or its content). The malware scan found something in the file, so it is not used. A file sent in parts needs its size when the upload opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Letters cannot be sent right now. Nothing was sent; try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send a letter",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.letters.send.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.letters.send.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "insufficient_funds",
            "latest_send_passed",
            "letter_abroad_unavailable",
            "letter_paper_only_unavailable",
            "letter_pdf_invalid",
            "letter_too_many_sheets",
            "letters_account_required",
            "letters_identity_account_required",
            "letters_unavailable",
            "limit_reached",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "send_window_invalid",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/letters/accounts/{identity}": {
      "get": {
        "description": "Where the Digipost account of a business stands (`self`: your own company's). A live letter in a business's name needs that business's own account `connected`. Scope: `numbers:read`.",
        "operationId": "letters.accounts.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.accounts.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a letters account",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.accounts.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.letters.accounts.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/letters/accounts/{identity}/check": {
      "post": {
        "description": "Asks Digipost now whether Telkit may send for the business, and connects its account when it may. A connected account answers as it is. Refused while no connection is open (`letters_account_return_invalid`: connect first) and while Digipost has not confirmed it (`letters_account_not_connected`: the connection stays open). Scope: `numbers:manage`.",
        "operationId": "letters.accounts.check",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.accounts.check.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_identity_fixed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_account_not_connected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_account_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. Digipost does not let Telkit send for this business yet: its registration is not finished, or waits on Digipost's approval. The connection stays open; check again later. The Digipost account this business registered already sends for another organization. Nothing was stored. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.letters_account_return_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "There is no open connection to check for this business: none was started, or it expired. Connect first."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Letters cannot be sent right now. Nothing was sent; try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Check a letters account",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.accounts.check.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.letters.accounts.check.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "letters_account_not_connected",
            "letters_account_return_invalid",
            "letters_account_taken",
            "letters_unavailable",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/letters/accounts/{identity}/connect": {
      "post": {
        "description": "Starts connecting the Digipost account of an approved business you send for, and answers the link where the person who signs for the business registers it at Digipost with Telkit as its sender. The account is `pending` until Digipost confirms it: Telkit asks Digipost when the person returns from the registration and daily after that, `letters.accounts.check` asks now, and `letter.account.changed` tells when it is connected. A new call opens a new link, and the earlier one no longer counts. Your own company's account is connected in the dashboard. Scope: `numbers:manage`.",
        "operationId": "letters.accounts.connect",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.accounts.connect.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.company_identity_fixed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The company's own identity belongs to the organization. It is not edited, submitted, moved or removed here. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Letters cannot be sent right now. Nothing was sent; try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Connect a letters account",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.accounts.connect.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.letters.accounts.connect.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "company_identity_fixed",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "letters_unavailable",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/letters/check-recipient": {
      "post": {
        "description": "Whether a recipient has a digital mailbox before you choose the delivery: `has_mailbox`, `identified` (known without a mailbox: only paper reaches them) or `unidentified`. Nothing is sent or charged. Scope: `letters:send`.",
        "operationId": "letters.checkRecipient",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.letters.checkRecipient.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.checkRecipient.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_account_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. A live letter needs the organization's own Digipost account connected. Nothing was sent or charged. A test key needs no account. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Letters cannot be sent right now. Nothing was sent; try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Check a recipient's mailbox",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.checkRecipient.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.letters.checkRecipient.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "letters_account_required",
            "letters_unavailable",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/letters/quote": {
      "post": {
        "description": "Prices a letter as `letters.send` would, without sending it: `price` is what the send holds (the higher of `paper` and `digital` for `digital_or_paper`), `digital` is `null` for a letter that cannot go to a mailbox. Scope: `letters:send`.",
        "operationId": "letters.quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.letters.quote.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.quote.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No template with this id in this profile. No upload with this id for this API key. Upload the file again, and send the id the upload answered."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_account_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_identity_account_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_already_attached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_direct_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_ready"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_replaced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. A live letter needs the organization's own Digipost account connected. Nothing was sent or charged. A test key needs no account. A live letter in a business identity's name needs that identity's own Digipost account connected (`meta.identityId`). Nothing was sent or charged. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. The upload is used by another call already. Upload the file again to use it a second time. The file cannot be sent in one call now (`meta.reason`: over the one-call limit, the server is busy, or the operation takes none). Send it by the upload's steps instead. The upload is not finished, or its file is still being scanned. Try again shortly. The file's bytes have not arrived yet. Send them, then finish the upload again. The stored file changed after the upload finished. Upload the file again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_expired"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload is gone: it was not used in time, or it was released or erased. Upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file is larger than this operation takes."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_type_not_accepted"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file's type is not one this operation takes."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_abroad_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_paper_only_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_pdf_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_too_many_sheets"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.message_content_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.send_window_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_variable_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_failed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_infected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_size_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The message could not go in time: its latest send time has passed, or its send window does not open again before it. Nothing was sent or charged. Letters to this country (`meta.country`) are not open yet. Nothing was sent. A paper-only letter needs direct print on the Digipost account it goes with, and that account does not have it. Nothing was sent or charged. The PDF cannot be a letter; `meta.problem` says why. Nothing was sent or charged. The letter has `meta.sheets` sheets, cover sheet included, and one paper letter takes at most `meta.maximum`. Nothing was sent or charged. A send needs either a text or a template: not both and not neither. Nothing was sent. The send window names a time zone Telkit does not know. Nothing was sent or charged. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. A `{{` without its `}}`, or a place name with other marks than letters, digits, `_` and `.`. `meta.at` is the character, `meta.part` the subject, text or HTML it is in. The template names places the call gave no value for (`meta.missing`). Nothing was sent. Pass them in `variables`. The template is for another service (`meta.service`: sms, email or letters). Nothing was sent. The file broke a rule of the upload; `meta.reason` names which (its size, its type or its content). The malware scan found something in the file, so it is not used. A file sent in parts needs its size when the upload opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letters_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Letters cannot be sent right now. Nothing was sent; try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Price a letter",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.quote.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.letters.quote.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "latest_send_passed",
            "letter_abroad_unavailable",
            "letter_paper_only_unavailable",
            "letter_pdf_invalid",
            "letter_too_many_sheets",
            "letters_account_required",
            "letters_identity_account_required",
            "letters_unavailable",
            "message_content_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "send_window_invalid",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/letters/senders": {
      "get": {
        "description": "The letter senders, one per business, newest first; `identity` keeps one business's. Scope: `numbers:read`.",
        "operationId": "letters.senders.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.senders.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List the letter senders",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.senders.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.letters.senders.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/letters/senders/{identity}": {
      "get": {
        "description": "The letter sender of a business (`self`: your own company): the name and return address its letters carry, its logo and Telkit's review. Scope: `numbers:read`.",
        "operationId": "letters.senders.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.senders.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a letter sender",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.senders.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.letters.senders.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "put": {
        "description": "Makes or changes the letter sender of a business (`self`: your own company). What you leave out of `name` and `address` comes from the business register. A change waits on Telkit's review before letters go again; the same values again change nothing. Scope: `numbers:manage`.",
        "operationId": "letters.senders.set",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "identity",
            "required": true,
            "schema": {
              "description": "The business: your own `reference` for it, Telkit's `id`, or `self` for your own company.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.letters.senders.set.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.senders.set.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is being closed, so this cannot be done. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No upload with this id for this API key. Upload the file again, and send the id the upload answered."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_already_attached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_direct_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_ready"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_not_received"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_replaced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The sender was released or revoked. Choose another one. The upload is used by another call already. Upload the file again to use it a second time. The file cannot be sent in one call now (`meta.reason`: over the one-call limit, the server is busy, or the operation takes none). Send it by the upload's steps instead. The upload is not finished, or its file is still being scanned. Try again shortly. The file's bytes have not arrived yet. Send them, then finish the upload again. The stored file changed after the upload finished. Upload the file again. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_expired"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The upload is gone: it was not used in time, or it was released or erased. Upload the file again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file is larger than this operation takes."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.upload_type_not_accepted"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The file's type is not one this operation takes."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.letter_sender_address_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_failed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_infected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.upload_size_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The business register has no address for this business, so its letter sender needs `address`. Nothing was changed. The file broke a rule of the upload; `meta.reason` names which (its size, its type or its content). The malware scan found something in the file, so it is not used. A file sent in parts needs its size when the upload opens."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Set a letter sender",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.senders.set.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.letters.senders.set.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "letter_sender_address_required",
            "organization_closing",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_ended",
            "service_not_open",
            "unauthenticated",
            "upload_already_attached",
            "upload_direct_unavailable",
            "upload_expired",
            "upload_failed",
            "upload_infected",
            "upload_not_found",
            "upload_not_ready",
            "upload_not_received",
            "upload_replaced",
            "upload_size_required",
            "upload_too_large",
            "upload_type_not_accepted",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/letters/{id}": {
      "get": {
        "description": "One letter with its state and how it was delivered. Scope: `letters:read`.",
        "operationId": "letters.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The letter's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.letters.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.letter_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No letter with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a letter",
        "tags": [
          "Letters"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.letters.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.letters.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "letter_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/numbers": {
      "get": {
        "description": "Your numbers, newest first, a page at a time, ordered ones that are not delivered yet among them (`number` is `null` on those). Scope: `numbers:read`.",
        "operationId": "numbers.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "capability",
            "required": false,
            "schema": {
              "description": "Only numbers that can do it: take calls (`calls`) or send SMS (`sms`).",
              "enum": [
                "calls",
                "sms"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "country",
            "required": false,
            "schema": {
              "description": "Only numbers of this country, as a two-letter ISO 3166-1 code (`NO`).",
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only numbers in this state: `pending`, `active`, `rejected` or `ended`. Left out: every state.",
              "enum": [
                "pending",
                "active",
                "rejected",
                "ended"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List numbers",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Orders a number. It waits as `pending` until Telkit has delivered it (`number.changed`); the answer's `id` stays the number's id. A test key's number for calls is delivered at once and costs nothing. Scope: `numbers:manage`.",
        "operationId": "numbers.order",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.numbers.order.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.order.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.number_area_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.number_order_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.number_paperwork_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.test_number_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. No number can be ordered in this area (`meta.areaPrefix` in `meta.country`) right now. Nothing was ordered; `GET /v1/numbers/search` lists the areas that can. The organization has as many number orders under way as it may in this mode (`meta.limit`). Wait for one to finish; `meta.orderId` is the oldest. Numbers in this area are sold only on the company's documents (an ID copy of its representative and a proof of an address in the area), and `meta.missing` names the parts missing or declined. File them in the dashboard and order the number there. Nothing was ordered. The record changed since the operator read it; read it again and decide again. A test key's number order cannot be filled: there are no made-up test numbers for this country or area, or all are taken. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.number_country_not_sold"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Telkit does not sell numbers in this country (`meta.country`) yet. Ask for one with `POST /v1/numbers/phone/abroad-requests` instead."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.number_order_day_limit"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.rate_limited"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The day's number orders in this mode are used up (`meta.limit` per day, Oslo time). Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Order a number",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.order.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.order.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "number_area_unavailable",
            "number_country_not_sold",
            "number_order_day_limit",
            "number_order_open",
            "number_paperwork_missing",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "test_number_unavailable",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/numbers/abroad-requests": {
      "post": {
        "description": "Asks Telkit for a number in a country where none is sold yet; Telkit gets in touch. Asking again answers the open request. Scope: `numbers:manage`.",
        "operationId": "numbers.requestAbroad",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.numbers.requestAbroad.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.requestAbroad.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.number_country_sold"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Telkit sells numbers in this country (`meta.country`): order one by its area instead of asking."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Ask for a number in another country",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.requestAbroad.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.requestAbroad.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "number_country_sold",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/numbers/freephone-requests": {
      "post": {
        "description": "Asks Telkit for a freephone number. It waits as `pending` while Telkit's staff get it; a test key gets none. Scope: `numbers:manage`.",
        "operationId": "numbers.requestFreephone",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.numbers.requestFreephone.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.requestFreephone.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.test_number_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. A test key's number order cannot be filled: there are no made-up test numbers for this country or area, or all are taken. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.number_order_day_limit"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.rate_limited"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The day's number orders in this mode are used up (`meta.limit` per day, Oslo time). Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Request a freephone number",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.requestFreephone.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.requestFreephone.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "number_order_day_limit",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "test_number_unavailable",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/numbers/lookup": {
      "get": {
        "description": "A number read as a call or an SMS reads it: its country and line type, whether a call and an SMS to it would pass, and one call minute's price. Nothing is held or sent. A pause and your spending limits are not part of the answer: they are checked when you call or send. Scope: `calls:read`.",
        "operationId": "numbers.lookup",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "number",
            "required": true,
            "schema": {
              "description": "The number to read, as a person would type it; a number without a country code is read as Norwegian. One that is no phone number answers `recipient_invalid`.",
              "maxLength": 40,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.lookup.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.recipient_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Look up a number",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.lookup.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.lookup.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/numbers/search": {
      "get": {
        "description": "Where a number can be ordered: one item per area for calls, or the SMS number. Nothing is ordered. Scope: `numbers:read`.",
        "operationId": "numbers.search",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "capability",
            "required": false,
            "schema": {
              "description": "`calls` (the default): the areas a number for calls is sold in. `sms`: the SMS number.",
              "enum": [
                "calls",
                "sms"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "country",
            "required": true,
            "schema": {
              "description": "The country to order in, as a two-letter ISO 3166-1 code (`NO`).",
              "enum": [
                "AT",
                "BE",
                "BG",
                "HR",
                "CY",
                "CZ",
                "DK",
                "EE",
                "FI",
                "FR",
                "DE",
                "GR",
                "HU",
                "IE",
                "IT",
                "LV",
                "LT",
                "LU",
                "MT",
                "NL",
                "PL",
                "PT",
                "RO",
                "SK",
                "SI",
                "ES",
                "SE",
                "NO",
                "IS",
                "LI",
                "CH",
                "GB",
                "US"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.search.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Find numbers to order",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.search.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.search.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/numbers/{number}": {
      "get": {
        "description": "One number, from its order to its release: its state, what it can do, what it is the default for, what an inbound call does and what it costs. Scope: `numbers:read`.",
        "operationId": "numbers.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "number",
            "required": true,
            "schema": {
              "description": "The number in E.164 (`+4755000000`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.number_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No number of this application has this number or id in this mode."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a number",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "number_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "patch": {
        "description": "Changes what an inbound call does, what the number is the default for, its seller and who uses it; a field left out keeps its value, but a `route` is replaced whole. A number that is not delivered yet takes only `person`, and an SMS number takes no `route` and no `assignedTo`. Scope: `numbers:manage`.",
        "operationId": "numbers.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "number",
            "required": true,
            "schema": {
              "description": "The number in E.164 (`+4755000000`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.numbers.update.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.update.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.inbound_flow_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.number_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The route names a call flow this profile does not have. No number of this application has this number or id in this mode."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline. The sender does not reach the destination's country (`meta.country`). The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Update a number",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "inbound_flow_not_found",
            "number_not_found",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/numbers/{number}/release": {
      "post": {
        "description": "Releases a number: it takes no more calls, and its monthly price ends today. An SMS number is released by Telkit at the end of its paid year. Scope: `numbers:manage`.",
        "operationId": "numbers.release",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "number",
            "required": true,
            "schema": {
              "description": "The number in E.164 (`+4755000000`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.numbers.release.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.number_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No number of this application has this number or id in this mode."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.number_not_releasable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.phone_number_in_use"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The number cannot be released here: its order is still under way, or it is an SMS number Telkit releases at the end of its paid year. Ask Telkit to release it. A call on the number is live. The move or the release waits until it ends: try again then. The record changed since the operator read it; read it again and decide again. The sender was released or revoked. Choose another one. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Release a number",
        "tags": [
          "Numbers"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.numbers.release.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.numbers.release.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "number_not_found",
            "number_not_releasable",
            "phone_number_in_use",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_ended",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms": {
      "get": {
        "description": "The SMS sent and received, newest first. Filter by `direction`, `state`, your `reference`, the `identity` it was for, part of the number (`search`) and a time window. Scope: `sms:read`.",
        "operationId": "sms.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "direction",
            "required": false,
            "schema": {
              "description": "Only the sent (`outbound`) or only the received (`inbound`); both when left out.",
              "enum": [
                "outbound",
                "inbound"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "reference",
            "required": false,
            "schema": {
              "description": "Only the sends with this reference.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "description": "Part of the number it went to, or came from.",
              "maxLength": 100,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "description": "Only the SMS made at or after this instant, ISO 8601 with an offset.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only the SMS in this state.",
              "enum": [
                "scheduled",
                "queued",
                "in_flight",
                "uncertain",
                "sent",
                "delivered",
                "failed",
                "cancelled",
                "held_for_balance",
                "received"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "description": "Only the SMS made before this instant, ISO 8601 with an offset.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List SMS",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Sends one SMS now, or at `scheduledAt`, and answers it with its price. What happens to it arrives as `sms.status` events. With `identity`, the SMS goes from that business's default sender (or Telkit's shared reply number), and a `from` must be one of its senders (`sender_not_found` otherwise). A `from` that is a sender's `id` sends for that sender's business without `identity`. A test key's send is simulated and free. Scope: `sms:send`.",
        "operationId": "sms.send",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.sms.send.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.send.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The plan's month limit for `meta.kind` is used up (`meta.limit` SMS units or email recipients in the Oslo month `meta.month`), and nothing was sent. It starts again on the first day of the next month; a larger plan than `meta.plan` has no month limit. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused. The organization must be verified first. Letters, calls, own numbers, email domains and every live SMS and email need it."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`. No template with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_opted_out"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_reference_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_sender_changed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The number has opted out of SMS from this profile (it replied STOPP). Nothing was sent or charged. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A message of Telkit's own with this once-only reference exists already. A caller's `reference` is never unique, so a customer's send does not meet this. The sender changed between the price and the send. Send again for the new price. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.send_window_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_schedule_in_past"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_too_long"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_variable_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. The message could not go in time: its latest send time has passed, or its send window does not open again before it. Nothing was sent or charged. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline. The send window names a time zone Telkit does not know. Nothing was sent or charged. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. `scheduledAt` must be in the future. The text has `meta.characters` characters and an SMS takes at most `meta.maximum`. Nothing was sent. A `{{` without its `}}`, or a place name with other marks than letters, digits, `_` and `.`. `meta.at` is the character, `meta.part` the subject, text or HTML it is in. The template names places the call gave no value for (`meta.missing`). Nothing was sent. Pass them in `variables`. The template is for another service (`meta.service`: sms, email or letters). Nothing was sent."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send an SMS",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.sms.send.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.send.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "insufficient_funds",
            "latest_send_passed",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_limit_reached",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "recipient_opted_out",
            "revision_conflict",
            "scope_missing",
            "send_window_invalid",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "sms_reference_taken",
            "sms_schedule_in_past",
            "sms_sender_changed",
            "sms_too_long",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/opt-outs": {
      "get": {
        "description": "The numbers that opted out of your SMS, newest first: by an opt-out word, an unsubscribe link, the dashboard or `sms.optOuts.create`. Each entry stops the SMS of its `identity` (null: your own company), or of every identity (`allIdentities`). A send to a number its identity's entry or an entry for every identity holds answers `recipient_opted_out`. Without `identity` or `allIdentities` the list covers every entry. Scope: `sms:read`.",
        "operationId": "sms.optOuts.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "allIdentities",
            "required": false,
            "schema": {
              "description": "true: every identity of the application, instead of one. Not with `identity`.",
              "type": "boolean"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.optOuts.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List SMS opt-outs",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.optOuts.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.optOuts.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Puts a number on the opt-out list of an identity: your own company's when you name none, or every identity's with `allIdentities: true`. A send to it for that identity then answers `recipient_opted_out`. A number already on it answers as it is. Publishes `sms.optedOut`. Scope: `sms:send`.",
        "operationId": "sms.optOuts.create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.sms.optOuts.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.optOuts.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Add an SMS opt-out",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.optOuts.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.optOuts.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/sms/opt-outs/{number}": {
      "delete": {
        "description": "Takes a number off the opt-out list of an identity (your own company's when you name none), so its SMS reach the number again, also past an older entry for every identity. `allIdentities: true` takes the number off the list everywhere. Only do this when the person asked for it. A number not on the list answers as it is. Publishes `sms.optedIn`. Scope: `sms:send`.",
        "operationId": "sms.optOuts.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "number",
            "required": true,
            "schema": {
              "description": "The phone number, for example `+4791234567`.",
              "maxLength": 32,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "allIdentities",
            "required": false,
            "schema": {
              "description": "true: every identity of the application, instead of one. Not with `identity`.",
              "type": "boolean"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.optOuts.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Remove an SMS opt-out",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.optOuts.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.optOuts.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/quote": {
      "post": {
        "description": "The price a send would cost now, with its parts and its sender, without sending. Scope: `sms:send`.",
        "operationId": "sms.quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.sms.quote.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.quote.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's. No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_unpriced"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_too_long"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. Telkit has no price for this number: its prefix in `meta.country` is unknown. Nothing was sent. A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline. The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number. The text has `meta.characters` characters and an SMS takes at most `meta.maximum`. Nothing was sent."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.fx_rate_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The price is in a foreign currency (`meta.currency`) and Telkit has no exchange rate that is new enough. Try again later. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Price an SMS",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.quote.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.quote.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "destination_country_unsupported",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "identity_not_approved",
            "identity_not_found",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "sms_too_long",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/senders": {
      "get": {
        "description": "Your sender names and own mobile numbers, newest first: each with its state, whether it is the default and the countries it reaches. Scope: `numbers:read`.",
        "operationId": "sms.senders.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only the senders in this state.",
              "enum": [
                "pending",
                "active",
                "ended",
                "rejected",
                "withdrawn"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List SMS senders",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Applies for a sender name, or starts an own mobile number by sending a code to it. Either waits as `pending`: a name until Telkit has reviewed it (`sms.sender.changed`), a number until `sms.senders.verify` gets the code. A test key may send from a pending name at once. Scope: `numbers:manage`.",
        "operationId": "sms.senders.create",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.sms.senders.create.input"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is being closed, so this cannot be done. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.own_number_held"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_identity_mismatch"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_name_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. Another organization is taking this mobile number into use, or the key named a number of another profile. The record changed since the operator read it; read it again and decide again. The identity named has another organization number than the one the sender already stands on. The profile already has this sender name, pending or active (`meta.senderId`, `meta.state`). A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.mobile_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_name_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Not a Norwegian mobile number. The sender name breaks a rule; `meta.rule` names which."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.own_number_code_limit"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.rate_limited"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "Too many verification codes were asked for. `meta.limit` names which count, and `meta.retryAt` when the next code may be sent. Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create an SMS sender",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "mobile_invalid",
            "organization_closing",
            "own_number_code_limit",
            "own_number_held",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_identity_mismatch",
            "sender_name_invalid",
            "sender_name_taken",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/senders/{sender}": {
      "delete": {
        "description": "Ends a sender name, or releases an own mobile number; one still waiting on its code ends unproved, and the code no longer confirms it. A send that names it answers `sender_ended`. An ended name is no default any more, so a send that names no `from` goes from the identity's shared reply number; a released number stays the default until another is chosen, and such a send answers `sender_ended`. Scope: `numbers:manage`.",
        "operationId": "sms.senders.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "sender",
            "required": true,
            "schema": {
              "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.own_number_not_active"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. Only an active own mobile number is released; `meta.state` is where it stands. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete an SMS sender",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "own_number_not_active",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "get": {
        "description": "One sender name or own mobile number. Scope: `numbers:read`.",
        "operationId": "sms.senders.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "sender",
            "required": true,
            "schema": {
              "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an SMS sender",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "patch": {
        "description": "Makes an active sender the default of the identity it stands on. Scope: `numbers:manage`.",
        "operationId": "sms.senders.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "sender",
            "required": true,
            "schema": {
              "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.sms.senders.update.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.update.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_approval_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_ended"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_approved"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_rejected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The business identity the sender is registered on (`meta.identityId`) is not approved, or was suspended. Nothing is sent from it and no number is ordered for it until Telkit approves it; receiving goes on. The record changed since the operator read it; read it again and decide again. The sender's approval has run out (an own mobile number after 90 days). Renew it. The sender was released or revoked. Choose another one. The sender is not ready: it waits on an approval, a check or a payment (`meta.waitingOn`). The event that says it is ready is `sender.changed` for a sender name or a mobile number, `emailDomain.changed` for an email domain and `phoneNumber.active` for a phone number. Telkit or the vendor refused the sender (`meta.senderId`). Apply again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_not_chosen"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_service_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The sender does not reach the destination's country (`meta.country`). The service (`meta.service`) has no chosen sender and no built-in one. Name a sender in the call, or choose one for the service. The sender cannot serve this service (`meta.service`): a text sender name cannot call, for example. `meta.senderId` is null for the shared reply number."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Update an SMS sender",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_approval_expired",
            "sender_country_unsupported",
            "sender_ended",
            "sender_not_approved",
            "sender_not_chosen",
            "sender_not_found",
            "sender_rejected",
            "sender_service_unsupported",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/senders/{sender}/registrations": {
      "get": {
        "description": "The registrations of a sender name abroad, newest first, with their state. Scope: `numbers:read`.",
        "operationId": "sms.senders.registrations.list",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "sender",
            "required": true,
            "schema": {
              "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.registrations.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List a sender name's registrations abroad",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.registrations.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.registrations.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Asks Telkit to register a sender name in other countries. It waits on the vendor's review, then on its monthly fee; once active the name reaches those countries. Scope: `numbers:manage`.",
        "operationId": "sms.senders.registrations.create",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "sender",
            "required": true,
            "schema": {
              "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.sms.senders.registrations.create.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.registrations.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The organization is being closed, so this cannot be done. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sender_name_not_registrable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The sender does not reach the destination's country (`meta.country`). The sender name has a space or a sign (`.`, `-`, `&`). Abroad only the letters A-Z and digits can be registered."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Register a sender name abroad",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.registrations.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.registrations.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_closing",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_country_unsupported",
            "sender_name_not_registrable",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/senders/{sender}/registrations/{id}": {
      "delete": {
        "description": "Ends a registration abroad: a request still under way is withdrawn, an active one stops with its monthly fee, and the name no longer reaches those countries. Scope: `numbers:manage`.",
        "operationId": "sms.senders.registrations.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The registration's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "sender",
            "required": true,
            "schema": {
              "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.registrations.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.registration_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No sender registration with this id in this organization."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.registration_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. Only a registration that is under way or active is ended; `meta.state` is where it stands. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "End a sender name's registration abroad",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.registrations.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.registrations.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "registration_not_found",
            "registration_not_open",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/senders/{sender}/verify": {
      "post": {
        "description": "Confirms an own mobile number with the code it got: it is approved for 90 days, and becomes its identity's default when it has none. Scope: `numbers:manage`.",
        "operationId": "sms.senders.verify",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "sender",
            "required": true,
            "schema": {
              "description": "The sender's name or number (`TRIPPER`, `+4791234567`), or its `id`.",
              "maxLength": 253,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.sms.senders.verify.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.senders.verify.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sender_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No such sender for the caller: it is missing, belongs to another profile or organization, to the other mode, or to another business than the call's `identity`."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.own_number_code_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.own_number_code_not_sent"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.own_number_held"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The verification code has run out or was used. Ask for a new one. The SMS with the verification code could not be sent. Ask for a new code. Another organization is taking this mobile number into use, or the key named a number of another profile. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.own_number_code_wrong"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The verification code is wrong."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Verify an own mobile number",
        "tags": [
          "SMS senders"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.senders.verify.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.senders.verify.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "own_number_code_expired",
            "own_number_code_not_sent",
            "own_number_code_wrong",
            "own_number_held",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "sender_not_found",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/thread/{number}": {
      "get": {
        "description": "The conversation with one number: every SMS you sent it and it sent you, newest first, in pages, and where your answer should go from. Scope: `sms:read`.",
        "operationId": "sms.getThread",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "number",
            "required": true,
            "schema": {
              "description": "The other phone's number, for example `+4791234567`.",
              "maxLength": 40,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.getThread.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "A special-rate or fictional number. Telkit neither sends to it nor calls it. Not a number Telkit can reach on this channel (`meta.channel`): blank, a short code, or an SMS to a landline."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an SMS conversation",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.getThread.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.getThread.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/{id}": {
      "get": {
        "description": "One SMS, sent or received, with its state, price and times. Scope: `sms:read`.",
        "operationId": "sms.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The SMS's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sms_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No SMS with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get an SMS",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.sms.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "sms_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/sms/{id}/cancel": {
      "post": {
        "description": "Cancels a scheduled SMS before it is sent and gives its money back. A repeat answers the cancelled SMS. Scope: `sms:send`.",
        "operationId": "sms.cancel",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The SMS's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.sms.cancel.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.sms_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No SMS with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_not_cancellable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a scheduled SMS can be cancelled; `meta.state` is where it stands. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Cancel an SMS",
        "tags": [
          "SMS"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.sms.cancel.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.sms.cancel.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "sms_not_cancellable",
            "sms_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/stt": {
      "get": {
        "description": "Your transcripts, newest first: of audio and of calls' recordings. With `callId`, one call's; with `identity`, only those made for that business (`self`: your own company's). Scope: `transcription:read`.",
        "operationId": "stt.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "callId",
            "required": false,
            "schema": {
              "description": "Only the transcripts of this call.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "description": "Only what was made at or after this time, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "description": "Only what was made before this time, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List transcripts",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.stt.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Transcribes audio: exactly one of `url`, `audioId` or `recordingId`. Its length is measured first and the minutes held at the batch price; it is charged once, at what was heard. It answers at once, before any text exists: read it with `stt.get` until it is `done`, or listen for `stt.completed` and `stt.failed`. A recording that already has a transcript answers that one. Scope: `transcription:write`.",
        "operationId": "stt.transcribe",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.stt.transcribe.input"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.transcribe.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_clip_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_recording_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.identity_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No audio clip with this id in this profile. No recording with this id in this profile (or it was deleted). No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_clip_not_ready"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_recording_not_stored"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The clip is being made, failed or uncertain: it cannot be read or transcribed yet. The command could not be audited, so it did not run; try again. The recording has no stored file yet: it is running, stopping or failed. Wait for `call.recording.ready`, or `call.recording.failed` when it failed. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_link_redirected"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_link_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_link_status"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_link_too_large"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_link_type_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.transcription_audio_too_long"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.transcription_audio_unreadable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The audio link answered with a redirect. Give the final link. Telkit does not copy audio from this link: it is not `https:` on port 443, has a user name or password in it, or its host is not a public address or does not resolve. The link answered an error status of its own (`meta.status`). Nothing was copied. The audio behind the link is larger than one copy takes (`meta.maxBytes` bytes). The link answered a type that is not MP3 or WAV (`meta.contentType`: its `Content-Type`, null when it named none). The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. The audio is `meta.seconds` seconds and one job transcribes at most `meta.maxSeconds`. The stored audio cannot be read as sound, so its length is unknown. Nothing was charged."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audio_link_unreachable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The link did not answer in time, the connection failed, or it answered 429 or 5xx. Try again. A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Transcribe audio",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.stt.transcribe.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.stt.transcribe.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audio_clip_not_found",
            "audio_clip_not_ready",
            "audio_link_redirected",
            "audio_link_refused",
            "audio_link_status",
            "audio_link_too_large",
            "audio_link_type_not_accepted",
            "audio_link_unreachable",
            "audit_unavailable",
            "call_recording_not_found",
            "call_recording_not_stored",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcription_audio_too_long",
            "transcription_audio_unreadable",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/stt/streams": {
      "post": {
        "description": "Funds a live transcription stream: `maxMinutes` are held at the live price, and it settles once, at the minutes heard. No audio is heard yet: mint its WebSocket ticket (`stt.streams.createTicket`) and send the audio there within 10 minutes (`expiresAt`), or it ends as `expired` and the hold is given back. Scope: `transcription:write`.",
        "operationId": "stt.streams.create",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.stt.streams.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.streams.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Start a live stream",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.stt.streams.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.stt.streams.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/stt/streams/{id}": {
      "get": {
        "description": "One live transcription stream: its state, why it ended, the audio heard and what it cost. Its lines are read with `stt.streams.listLines`. Scope: `transcription:read`.",
        "operationId": "stt.streams.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The stream's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.streams.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.transcription_session_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcription session with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read a stream",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.streams.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.stt.streams.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcription_session_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/stt/streams/{id}/close": {
      "post": {
        "description": "Ends a live stream and settles it once, at the minutes heard; closing it again answers the ended stream. Scope: `transcription:write`.",
        "operationId": "stt.streams.close",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The stream's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.streams.close.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.transcription_session_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcription session with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Close a stream",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.streams.close.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.stt.streams.close.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcription_session_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/stt/streams/{id}/lines": {
      "get": {
        "description": "A stream's final lines, in the order they were heard. Scope: `transcription:read`.",
        "operationId": "stt.streams.listLines",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The stream's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.streams.listLines.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.transcription_session_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcription session with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List a stream's lines",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.streams.listLines.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.stt.streams.listLines.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcription_session_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/stt/streams/{id}/ticket": {
      "post": {
        "description": "A one-shot ticket for the stream's WebSocket, valid for 60 seconds and only while the stream is funded and unopened; one that is streaming or ended answers `transcription_session_not_found`. Send the audio on the WebSocket; the lines come back on it. Scope: `transcription:write`.",
        "operationId": "stt.streams.createTicket",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The stream's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.streams.createTicket.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.transcription_session_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No live transcription session with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Mint a stream's WebSocket ticket",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.streams.createTicket.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.stt.streams.createTicket.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcription_session_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/stt/{id}": {
      "delete": {
        "description": "Deletes a transcript and its stored text. A transcription that is still under way cannot be deleted until it is `done` or `failed`. Scope: `transcription:write`.",
        "operationId": "stt.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The transcript's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No transcript with this id in this application and mode (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.transcription_job_in_progress"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The job is still being made, or its price is still held, so it cannot be deleted yet. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a transcript",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.stt.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcript_not_found",
            "transcription_job_in_progress",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "get": {
        "description": "One transcript, with its text and timed segments once it is `done`. Scope: `transcription:read`.",
        "operationId": "stt.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The transcript's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No transcript with this id in this application and mode (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read a transcript",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.stt.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcript_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/stt/{id}/export": {
      "get": {
        "description": "A `done` transcript as one document: SubRip (`srt`), WebVTT (`vtt`) or text (`txt`), with the media type to save it as. Scope: `transcription:read`.",
        "operationId": "stt.export",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The transcript's `id`.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "format",
            "required": true,
            "schema": {
              "description": "`srt` (SubRip subtitles), `vtt` (WebVTT subtitles) or `txt` (plain text).",
              "enum": [
                "srt",
                "vtt",
                "txt"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.stt.export.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.transcript_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No transcript with this id in this application and mode (or it was deleted)."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.transcription_not_completed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. The job has no transcript yet: it is queued, failed or uncertain. Read the job's state, and fetch the transcript when it is completed. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Export a transcript",
        "tags": [
          "Speech to text"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.stt.export.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.stt.export.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "transcript_not_found",
            "transcription_not_completed",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200,
          "timeoutMs": 65000
        }
      }
    },
    "/v2/tts": {
      "get": {
        "description": "Your speech and uploaded audio, newest first. With `identity`, only what was made for that business (`self`: your own company's). Scope: `calls:read`.",
        "operationId": "tts.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "identity",
            "required": false,
            "schema": {
              "description": "The business the call is for: your own `reference` for it, or Telkit's `id`. Left out: your own company, and a list or usage covers every business. `self`: your own company only.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "description": "Only what was made at or after this time, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "description": "Only what was made before this time, ISO 8601 in UTC.",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tts.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List speech",
        "tags": [
          "Text to speech"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tts.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tts.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Makes speech from a text, priced per 1 000 characters and charged once, at the characters spoken. It answers at once with `state: pending`; read it with `tts.get` until it is `ready`. Its `id` is what `calls.play` takes as `audioId`. Scope: `calls:write`.",
        "operationId": "tts.speak",
        "parameters": [
          {
            "description": "Makes a retry safe: the same key with the same input gets the stored answer, with the header Idempotency-Replayed: true; with another input it is refused (idempotency_conflict).",
            "explode": false,
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tts.speak.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tts.speak.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.insufficient_funds"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The included use and the balance together do not cover the act. Nothing was sent or started. Top up the balance, then repeat the request."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.application_limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.channel_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_not_allowlisted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.limit_reached"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.organization_closing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.outbound_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.plan_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The spending limit for the day or the month (`meta.period`) would be passed: the application's, or with `meta.identityId` the limit of the identity the act sends as. `meta.limitMinor` excludes VAT. An admin can raise the limit. Telkit has paused sending on `meta.channel` (null: every channel), and nothing was sent. `meta.reason` says why. The country (`meta.country`) is closed for this profile. `meta.closedBy` names who opens it: a request to Telkit, or the profile's own setting. Outside production a live act reaches only the numbers on the environment's allowlist. Use a test key, or a number on the list. The principal may not do this. A limit of the organization is used up (`meta.kind`, `meta.limit`), and nothing was sent or started. `meta.day` is the Oslo day of a day limit; day limits start again at midnight. The organization is blocked until it pays. Outbound acts are refused meanwhile. The organization is being closed, so this cannot be done. Telkit has stopped the organization's outbound calls; `meta.reason` says why. The organization's plan does not cover this: a live act without a plan, or a feature of a larger plan. `meta.plan` names a plan that covers it, when one does. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.identity_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No identity with this id or reference is visible to the caller: it is missing, removed, or another application's."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.voice_policy_not_accepted"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A catalogue voice can be used once an owner or admin of the organization has accepted the voice catalogue's use policy. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.content_blocked"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.currency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.destination_country_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The text reads as phishing (`meta.rules`) and links to a host that is not on the organization's list or one of its verified email domains (`meta.hosts`). Nothing was sent or charged. Link to your own domain, or change the wording `meta.rules` names. The balance is in NOK only, and this price is in another currency (`meta.currency`). Telkit does not reach this country (`meta.country`) on this channel (`meta.channel`) yet. The voice (`meta.voice`) cannot be used. Choose one from `GET /v1/voices`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Make speech from text",
        "tags": [
          "Text to speech"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tts.speak.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tts.speak.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "channel_paused",
            "content_blocked",
            "currency_unsupported",
            "destination_country_unsupported",
            "destination_not_allowed",
            "destination_not_allowlisted",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_found",
            "insufficient_funds",
            "limit_reached",
            "organization_blocked",
            "organization_closing",
            "outbound_paused",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tts/voices": {
      "get": {
        "description": "The voices you can use, the price per 1 000 characters, and the use policy the catalogue voices need. Every page carries the price and the policy. Scope: `calls:read`.",
        "operationId": "tts.voices.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "language",
            "required": false,
            "schema": {
              "description": "Only the voices that speak this language best.",
              "enum": [
                "no",
                "en"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tts.voices.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List voices",
        "tags": [
          "Text to speech"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tts.voices.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tts.voices.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tts/{id}": {
      "get": {
        "description": "One speech or uploaded audio, with a link to its file once it is `ready`. The link is made for this answer and stops working after 15 minutes: read again for a new one, and never store it. Scope: `calls:read`.",
        "operationId": "tts.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The `id` of the speech or the uploaded audio.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tts.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.audio_clip_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No audio clip with this id in this profile."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Read speech",
        "tags": [
          "Text to speech"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tts.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tts.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audio_clip_not_found",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks": {
      "get": {
        "description": "Lists the webhooks of the key's application and mode that were made through /v2, in the order they were made, a page at a time. A page may hold fewer than `limit` and still have a `next`. Scope: `webhooks:manage`.",
        "operationId": "webhooks.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List webhooks",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Sends the events you name to an address, each signed as Standard Webhooks. The signing secret is in this answer and never shown again: store it. Because the answer holds the secret, this call takes no `Idempotency-Key`, and a repeat makes a second webhook on the same address. After a lost answer, do not create again: list the webhooks (`webhooks.list`), find the one just made and rotate its secret (`webhooks.rotateSecret`). Scope: `webhooks:manage`.",
        "operationId": "webhooks.create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.webhooks.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.create.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Create a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 201
        }
      }
    },
    "/v2/webhooks/deliveries": {
      "get": {
        "description": "Lists what was, is being or will be sent to one webhook, in the order the deliveries were made: one delivery per event, and one more for each redelivery. Filter by state (`dead` for what failed) or by `webhook-id`. Scope: `webhooks:manage`.",
        "operationId": "webhooks.deliveries.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "messageId",
            "required": false,
            "schema": {
              "description": "Only the deliveries that carry this `webhook-id` header.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "description": "Only the deliveries in this state: `dead` lists what failed, `waiting` what is held back.",
              "enum": [
                "pending",
                "waiting",
                "delivered",
                "dead",
                "skipped"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "webhookId",
            "required": true,
            "schema": {
              "description": "The webhook whose deliveries to list.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.deliveries.list.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List a webhook's deliveries",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.deliveries.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.deliveries.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_cursor_invalid",
            "webhook_endpoint_not_found",
            "webhook_endpoint_version_other",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/deliveries/{id}/redeliver": {
      "post": {
        "description": "Sends a `delivered` delivery again as a new delivery with the same `webhook-id`, so a receiver that lost it gets it once more and one that kept it can drop the duplicate. The new delivery has its own attempts and is signed with the webhook's secret of today. It takes a delivery of any of the application's webhooks in the key's mode. A delivery in any other state answers `webhook_delivery_not_replayable` (a dead one is sent again with `webhooks.deliveries.replay`). Scope: `webhooks:manage`.",
        "operationId": "webhooks.deliveries.redeliver",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The delivery's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.webhooks.deliveries.redeliver.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.deliveries.redeliver.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send a delivered delivery again",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.deliveries.redeliver.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.deliveries.redeliver.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_event_erased",
            "webhook_event_expired",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/deliveries/{id}/replay": {
      "post": {
        "description": "Sends one `dead` delivery again: the same delivery, with the same `webhook-id` and the same body, gets a new set of attempts. It takes a delivery of any of the application's webhooks in the key's mode. A delivery in any other state answers `webhook_delivery_not_replayable` (a delivered one is sent again with `webhooks.deliveries.redeliver`); one whose body was erased cannot be sent again. Scope: `webhooks:manage`.",
        "operationId": "webhooks.deliveries.replay",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The delivery's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.deliveries.replay.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send a dead delivery again",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.deliveries.replay.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.deliveries.replay.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_event_erased",
            "webhook_event_expired",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/event-types": {
      "get": {
        "description": "Lists every event a webhook can receive under /v2, by the name `webhooks.create` and `webhooks.update` take, each with the versions of its body. Every event is in the answer unless you send `limit`. Scope: `webhooks:manage`.",
        "operationId": "webhooks.listEventTypes",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many events to answer, at most 100; every event when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.listEventTypes.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List the events a webhook can receive",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.listEventTypes.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.listEventTypes.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/signing-keys": {
      "get": {
        "description": "Lists Telkit's own Ed25519 public keys: the one that signs now and any that is being phased out. A receiver that verifies by public key accepts a delivery signed by any of them. The same for every application. Scope: `webhooks:manage`.",
        "operationId": "webhooks.listSigningKeys",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.listSigningKeys.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List Telkit's signing keys",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.listSigningKeys.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.listSigningKeys.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/{id}": {
      "delete": {
        "description": "Removes the webhook with its deliveries and its attempt log: nothing more is sent to its address, and what waited for it is not sent later. Answers the id with `deleted: true`. Scope: `webhooks:manage`.",
        "operationId": "webhooks.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.delete.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Delete a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "get": {
        "description": "Answers one webhook: its address, its events, whether it delivers (`delivery`) and how its address answers (`health`). The signing secret is never in this answer. Scope: `webhooks:manage`.",
        "operationId": "webhooks.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.get.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Get a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "patch": {
        "description": "Changes the parts you send and leaves the rest: the address, the events, the description, `delivery` (`live`, `paused`, `muted`) and the Ed25519 signing. A new event is received at its newest version. Answers the webhook as it is after the change; a change made at the same moment by another call answers `webhook_endpoint_conflict`, and the call can be sent again. Scope: `webhooks:manage`.",
        "operationId": "webhooks.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.webhooks.update.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.update.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Change a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/{id}/attempts": {
      "get": {
        "description": "Lists every try at reaching the webhook's address, newest first: the deliveries' attempts and the test messages, each with what was sent where and what the address answered. Scope: `webhooks:manage`.",
        "operationId": "webhooks.listAttempts",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          },
          {
            "explode": true,
            "in": "query",
            "name": "after",
            "required": false,
            "schema": {
              "description": "The `next` of the page before; left out for the first page.",
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many items to answer, at most 100; 50 when left out.",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.listAttempts.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "List a webhook's attempts",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.listAttempts.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.listAttempts.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_cursor_invalid",
            "webhook_endpoint_not_found",
            "webhook_endpoint_version_other",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/{id}/erase-responses": {
      "post": {
        "description": "Erases what Telkit keeps of the webhook's traffic so far: the excerpt of each answer its address gave, and the copy of each delivery's body. The attempt log keeps its facts (time, status, outcome). A delivery without its body cannot be sent again as it was: a dead one stays dead, and `webhooks.deliveries.redeliver` takes `body: fresh` only. Answers how many of each were erased. Scope: `webhooks:manage`.",
        "operationId": "webhooks.eraseResponses",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.eraseResponses.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Erase a webhook's kept answers and bodies",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.eraseResponses.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.eraseResponses.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_endpoint_not_found",
            "webhook_endpoint_version_other",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/{id}/recover": {
      "post": {
        "description": "Sends a page of the webhook's `dead` deliveries again, oldest first: each keeps its id, its `webhook-id` and its body, and gets a new set of attempts. A delivery whose body was erased stays dead and is left out of `recovered`. Call it again with `next` until it answers `null`. Scope: `webhooks:manage`.",
        "operationId": "webhooks.recover",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.webhooks.recover.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.recover.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor was changed, belongs to another list or caller, or expired; read the list again from its first page. An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send a webhook's dead deliveries again",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.recover.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.recover.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_cursor_invalid",
            "webhook_endpoint_not_found",
            "webhook_endpoint_version_other",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/{id}/release": {
      "post": {
        "description": "Releases a webhook whose `health` is `held`, once its receiver works again: its health is `active`, and the deliveries that waited for it are sent. A delivery that ended `dead` meanwhile is sent again with `webhooks.recover`. A webhook that is not held is answered as it is. Answers the webhook. Scope: `webhooks:manage`.",
        "operationId": "webhooks.release",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.release.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. A compare-and-set or revision check failed; read again and decide again."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Release a held webhook",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.release.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.release.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_endpoint_not_found",
            "webhook_endpoint_version_other",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/{id}/rotate-secret": {
      "post": {
        "description": "Makes a new signing secret for the webhook and answers the webhook with it; the secret is in this answer and never shown again. The old secret keeps signing beside the new one for a day, so a receiver can change over without a rejected delivery. Because the answer holds the secret, this call takes no `Idempotency-Key`: after a lost answer, rotate again and store the secret of that answer. It is also how you get a secret for a webhook whose `webhooks.create` answer was lost. Scope: `webhooks:manage`.",
        "operationId": "webhooks.rotateSecret",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.rotateSecret.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Rotate a webhook's signing secret",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.rotateSecret.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.rotateSecret.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/webhooks/{id}/test": {
      "post": {
        "description": "Sends one signed test message (`webhook.test`) to the webhook's address now, whatever its `delivery` and `health`, and answers what the address answered: the outcome, the HTTP status and the time it took. Nothing is added to the event log. Scope: `webhooks:manage`.",
        "operationId": "webhooks.test",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The webhook's `id`.",
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.webhooks.test.output"
                }
              }
            },
            "description": "Success."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/failure"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "An idempotency key was sent where it cannot apply: the procedure is not idempotent, or the caller is anonymous. The input failed its schema."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.unauthenticated"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The call needs a principal of another kind, or the credential is bad, expired or revoked."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.forbidden"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.scope_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.service_not_open"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The principal may not do this. The API key lacks the scope this operation needs; `meta.scope` names it. Use a key that has the scope. Telkit does not sell this service (`meta.service`) to customers yet, so its live acts are refused."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No delivery with this id exists for the caller's tenant. No endpoint with this id exists for the caller's tenant."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.acknowledgement_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.audit_unavailable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.idempotency_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_not_replayable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_keys_unusable"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_version_other"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_identity_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.write_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The command would repeat an effect that is not deduplicated (an external call sent again): repeat it with acknowledge: true. The command could not be audited, so it did not run; try again. The idempotency key was already used with another input. The record changed since the operator read it; read it again and decide again. Only a delivered or dead delivery can be replayed. The endpoint changed since it was read (its revision moved); read it again. The endpoint's stored keys do not open. This webhook was made through /v1 and keeps /v1's event shapes, so /v2 neither shows nor changes it. Change it through /v1, or make a new one through /v2. The event id was already used with another payload. A compare-and-set or revision check failed; read again and decide again."
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_delivery_body_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_erased"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_expired"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The delivery's retained bytes were erased; its original body cannot be sent again. The event was erased; it cannot be sent again. The event left its retention; it cannot be sent again."
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.webhook_body_too_large"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The webhook body is larger than the product's bound."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_cursor_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_endpoint_url_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_refused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_event_undeclared"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.webhook_payload_not_json"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The page cursor is not one a list answered: the cursor format changed, a cursor is the `next` of the previous page and never an id; start again from the first page. The endpoint's URL, events, pins or description break a bound. The delivery transport's URL rules refuse this URL. An event the endpoint may not subscribe to, or a version pin no converter reaches. The event is not a declared public event. The payload fails the event's schema; nothing was queued. The payload is not plain JSON; nothing was queued."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.rate_limited"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "Too many requests for this key; try again after `Retry-After`."
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "An error on the server; only the request id is shown."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/failure"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "A dependency is down or the same key is in flight; nothing was saved.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before a retry.",
                "schema": {
                  "minimum": 0,
                  "type": "integer"
                }
              }
            }
          }
        },
        "security": [
          {
            "apiKey": []
          }
        ],
        "summary": "Send a test message to a webhook",
        "tags": [
          "Webhooks"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.webhooks.test.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.webhooks.test.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "webhook_body_too_large",
            "webhook_cursor_invalid",
            "webhook_delivery_body_erased",
            "webhook_delivery_not_found",
            "webhook_delivery_not_replayable",
            "webhook_endpoint_conflict",
            "webhook_endpoint_invalid",
            "webhook_endpoint_keys_unusable",
            "webhook_endpoint_not_found",
            "webhook_endpoint_url_refused",
            "webhook_endpoint_version_other",
            "webhook_event_erased",
            "webhook_event_expired",
            "webhook_event_refused",
            "webhook_event_undeclared",
            "webhook_identity_conflict",
            "webhook_payload_invalid",
            "webhook_payload_not_json",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.telkit.no"
    }
  ],
  "webhooks": {
    "balance.low.v2": {
      "post": {
        "operationId": "webhook.balance.low.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.balance.low.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "balance.low (version 2)",
        "x-pekka-event": {
          "name": "balance.low",
          "version": 2
        }
      }
    },
    "call.answered.v2": {
      "post": {
        "operationId": "webhook.call.answered.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.answered.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.answered (version 2)",
        "x-pekka-event": {
          "name": "call.answered",
          "version": 2
        }
      }
    },
    "call.ended.v2": {
      "post": {
        "operationId": "webhook.call.ended.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.ended.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.ended (version 2)",
        "x-pekka-event": {
          "name": "call.ended",
          "version": 2
        }
      }
    },
    "call.gather.completed.v2": {
      "post": {
        "operationId": "webhook.call.gather.completed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.gather.completed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.gather.completed (version 2)",
        "x-pekka-event": {
          "name": "call.gather.completed",
          "version": 2
        }
      }
    },
    "call.incoming.v2": {
      "post": {
        "operationId": "webhook.call.incoming.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.incoming.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.incoming (version 2)",
        "x-pekka-event": {
          "name": "call.incoming",
          "version": 2
        }
      }
    },
    "call.liveTranscript.ready.v2": {
      "post": {
        "operationId": "webhook.call.liveTranscript.ready.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.liveTranscript.ready.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.liveTranscript.ready (version 2)",
        "x-pekka-event": {
          "name": "call.liveTranscript.ready",
          "version": 2
        }
      }
    },
    "call.machineDetected.v2": {
      "post": {
        "operationId": "webhook.call.machineDetected.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.machineDetected.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.machineDetected (version 2)",
        "x-pekka-event": {
          "name": "call.machineDetected",
          "version": 2
        }
      }
    },
    "call.missed.v2": {
      "post": {
        "operationId": "webhook.call.missed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.missed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.missed (version 2)",
        "x-pekka-event": {
          "name": "call.missed",
          "version": 2
        }
      }
    },
    "call.offer.accepted.v2": {
      "post": {
        "operationId": "webhook.call.offer.accepted.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.offer.accepted.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.offer.accepted (version 2)",
        "x-pekka-event": {
          "name": "call.offer.accepted",
          "version": 2
        }
      }
    },
    "call.offer.expired.v2": {
      "post": {
        "operationId": "webhook.call.offer.expired.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.offer.expired.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.offer.expired (version 2)",
        "x-pekka-event": {
          "name": "call.offer.expired",
          "version": 2
        }
      }
    },
    "call.participant.moved.v2": {
      "post": {
        "operationId": "webhook.call.participant.moved.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.participant.moved.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.participant.moved (version 2)",
        "x-pekka-event": {
          "name": "call.participant.moved",
          "version": 2
        }
      }
    },
    "call.participant.updated.v2": {
      "post": {
        "operationId": "webhook.call.participant.updated.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.participant.updated.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.participant.updated (version 2)",
        "x-pekka-event": {
          "name": "call.participant.updated",
          "version": 2
        }
      }
    },
    "call.playback.ended.v2": {
      "post": {
        "operationId": "webhook.call.playback.ended.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.playback.ended.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.playback.ended (version 2)",
        "x-pekka-event": {
          "name": "call.playback.ended",
          "version": 2
        }
      }
    },
    "call.recording.failed.v2": {
      "post": {
        "operationId": "webhook.call.recording.failed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.recording.failed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.recording.failed (version 2)",
        "x-pekka-event": {
          "name": "call.recording.failed",
          "version": 2
        }
      }
    },
    "call.recording.ready.v2": {
      "post": {
        "operationId": "webhook.call.recording.ready.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.recording.ready.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.recording.ready (version 2)",
        "x-pekka-event": {
          "name": "call.recording.ready",
          "version": 2
        }
      }
    },
    "call.stopped.v2": {
      "post": {
        "operationId": "webhook.call.stopped.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.stopped.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.stopped (version 2)",
        "x-pekka-event": {
          "name": "call.stopped",
          "version": 2
        }
      }
    },
    "call.summary.ready.v2": {
      "post": {
        "operationId": "webhook.call.summary.ready.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.summary.ready.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.summary.ready (version 2)",
        "x-pekka-event": {
          "name": "call.summary.ready",
          "version": 2
        }
      }
    },
    "call.transfer.updated.v2": {
      "post": {
        "operationId": "webhook.call.transfer.updated.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.transfer.updated.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.transfer.updated (version 2)",
        "x-pekka-event": {
          "name": "call.transfer.updated",
          "version": 2
        }
      }
    },
    "email.domain.changed.v2": {
      "post": {
        "operationId": "webhook.email.domain.changed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.email.domain.changed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "email.domain.changed (version 2)",
        "x-pekka-event": {
          "name": "email.domain.changed",
          "version": 2
        }
      }
    },
    "email.optedIn.v2": {
      "post": {
        "operationId": "webhook.email.optedIn.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.email.optedIn.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "email.optedIn (version 2)",
        "x-pekka-event": {
          "name": "email.optedIn",
          "version": 2
        }
      }
    },
    "email.optedOut.v2": {
      "post": {
        "operationId": "webhook.email.optedOut.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.email.optedOut.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "email.optedOut (version 2)",
        "x-pekka-event": {
          "name": "email.optedOut",
          "version": 2
        }
      }
    },
    "email.received.v3": {
      "post": {
        "operationId": "webhook.email.received.v3",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.email.received.v3"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "email.received (version 3)",
        "x-pekka-event": {
          "name": "email.received",
          "version": 3
        }
      }
    },
    "email.status.v2": {
      "post": {
        "operationId": "webhook.email.status.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.email.status.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "email.status (version 2)",
        "x-pekka-event": {
          "name": "email.status",
          "version": 2
        }
      }
    },
    "identity.changed.v2": {
      "post": {
        "operationId": "webhook.identity.changed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.identity.changed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "identity.changed (version 2)",
        "x-pekka-event": {
          "name": "identity.changed",
          "version": 2
        }
      }
    },
    "letter.account.changed.v2": {
      "post": {
        "operationId": "webhook.letter.account.changed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.letter.account.changed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "letter.account.changed (version 2)",
        "x-pekka-event": {
          "name": "letter.account.changed",
          "version": 2
        }
      }
    },
    "letter.sender.changed.v2": {
      "post": {
        "operationId": "webhook.letter.sender.changed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.letter.sender.changed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "letter.sender.changed (version 2)",
        "x-pekka-event": {
          "name": "letter.sender.changed",
          "version": 2
        }
      }
    },
    "letter.status.v2": {
      "post": {
        "operationId": "webhook.letter.status.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.letter.status.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "letter.status (version 2)",
        "x-pekka-event": {
          "name": "letter.status",
          "version": 2
        }
      }
    },
    "number.changed.v2": {
      "post": {
        "operationId": "webhook.number.changed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.number.changed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "number.changed (version 2)",
        "x-pekka-event": {
          "name": "number.changed",
          "version": 2
        }
      }
    },
    "sms.optedIn.v2": {
      "post": {
        "operationId": "webhook.sms.optedIn.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.sms.optedIn.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "sms.optedIn (version 2)",
        "x-pekka-event": {
          "name": "sms.optedIn",
          "version": 2
        }
      }
    },
    "sms.optedOut.v2": {
      "post": {
        "operationId": "webhook.sms.optedOut.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.sms.optedOut.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "sms.optedOut (version 2)",
        "x-pekka-event": {
          "name": "sms.optedOut",
          "version": 2
        }
      }
    },
    "sms.received.v2": {
      "post": {
        "operationId": "webhook.sms.received.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.sms.received.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "sms.received (version 2)",
        "x-pekka-event": {
          "name": "sms.received",
          "version": 2
        }
      }
    },
    "sms.sender.changed.v2": {
      "post": {
        "operationId": "webhook.sms.sender.changed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.sms.sender.changed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "sms.sender.changed (version 2)",
        "x-pekka-event": {
          "name": "sms.sender.changed",
          "version": 2
        }
      }
    },
    "sms.sender.registration.changed.v2": {
      "post": {
        "operationId": "webhook.sms.sender.registration.changed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.sms.sender.registration.changed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "sms.sender.registration.changed (version 2)",
        "x-pekka-event": {
          "name": "sms.sender.registration.changed",
          "version": 2
        }
      }
    },
    "sms.status.v2": {
      "post": {
        "operationId": "webhook.sms.status.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.sms.status.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "sms.status (version 2)",
        "x-pekka-event": {
          "name": "sms.status",
          "version": 2
        }
      }
    },
    "stt.completed.v2": {
      "post": {
        "operationId": "webhook.stt.completed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.stt.completed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "stt.completed (version 2)",
        "x-pekka-event": {
          "name": "stt.completed",
          "version": 2
        }
      }
    },
    "stt.failed.v2": {
      "post": {
        "operationId": "webhook.stt.failed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.stt.failed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "stt.failed (version 2)",
        "x-pekka-event": {
          "name": "stt.failed",
          "version": 2
        }
      }
    },
    "test.v2": {
      "post": {
        "operationId": "webhook.test.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.test.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "test (version 2)",
        "x-pekka-event": {
          "name": "test",
          "version": 2
        }
      }
    }
  },
  "x-pekka-envelope": {
    "errors": {
      "issues": "dotted",
      "kinds": {
        "bug": "internal_error",
        "invalid": "invalid_request",
        "not_served": "not_found",
        "outage": "unavailable"
      },
      "message": true
    },
    "failure": {
      "key": "error",
      "kindKey": "code"
    },
    "ok": {},
    "refusal": {
      "key": "error"
    }
  }
}
