{
  "components": {
    "schemas": {
      "Agent": {
        "additionalProperties": false,
        "properties": {
          "archivedAt": {
            "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 archived, ISO 8601 in UTC; `null` while it is in use."
          },
          "brain": {
            "description": "`hosted`: Telkit's model answers; `webhook`: your `brainUrl` decides each turn.",
            "enum": [
              "hosted",
              "webhook"
            ],
            "type": "string"
          },
          "brainUrl": {
            "anyOf": [
              {
                "format": "uri",
                "maxLength": 2048,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Your `https` address that decides each turn (a webhook brain). `null` or left out: Telkit's hosted model answers."
          },
          "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"
          },
          "fallbackLine": {
            "description": "What the agent says when it has no answer for a turn.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "greeting": {
            "description": "What the agent says first, when it joins the call.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The agent'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"
          },
          "instructions": {
            "default": "",
            "description": "What a hosted agent goes by: who it is, what it knows and how it answers. A hosted agent needs them; with a `brainUrl` they may be left out (empty).",
            "maxLength": 8000,
            "type": "string"
          },
          "language": {
            "description": "The language it speaks: `no` (Norwegian) or `en` (English).",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "maxMinutes": {
            "description": "The most minutes it may stay in one call.",
            "maximum": 120,
            "minimum": 1,
            "type": "integer"
          },
          "name": {
            "description": "Your name for the agent.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "tools": {
            "default": [],
            "description": "The tools a hosted agent may call during a call; none when left out.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "description": "What the tool does, in words the agent reads to decide when to call it.",
                  "maxLength": 1000,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "description": "The name the agent calls the tool by: lower-case letters, digits and `_`, unique in the agent. `end_call` is the agent's own and cannot be used.",
                  "maxLength": 64,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "parameters": {
                  "default": [],
                  "description": "The values the agent gives with a call; none when left out.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "description": {
                        "description": "What the value is, in words the agent reads.",
                        "maxLength": 1000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "name": {
                        "description": "The value's name, unique in the tool.",
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "required": {
                        "default": true,
                        "description": "Whether the agent must give the value; `true` when left out.",
                        "type": "boolean"
                      },
                      "type": {
                        "description": "`text`, `decimal_number`, `whole_number` or `yes_no`.",
                        "enum": [
                          "text",
                          "decimal_number",
                          "whole_number",
                          "yes_no"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "description",
                      "name",
                      "required",
                      "type"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "url": {
                  "description": "Your `https` address: each call of the tool is sent there as a signed POST.",
                  "format": "uri",
                  "maxLength": 2048,
                  "type": "string"
                }
              },
              "required": [
                "description",
                "name",
                "parameters",
                "url"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "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"
          },
          "voice": {
            "description": "The voice it speaks with. A voice that is not offered to you answers `speech_voice_unavailable`, one whose use policy is not accepted `voice_policy_not_accepted`.",
            "enum": [
              "no_female",
              "no_male",
              "en_female",
              "nadia",
              "mia",
              "vilde",
              "kristine",
              "johannes",
              "erik",
              "helge",
              "oyvind"
            ],
            "type": "string"
          }
        },
        "required": [
          "archivedAt",
          "brain",
          "brainUrl",
          "createdAt",
          "fallbackLine",
          "greeting",
          "id",
          "instructions",
          "language",
          "maxMinutes",
          "name",
          "tools",
          "updatedAt",
          "voice"
        ],
        "type": "object"
      },
      "CallFlow": {
        "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 call flow'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 name for the flow.",
            "type": "string"
          },
          "numbers": {
            "description": "The numbers whose calls this flow answers; while any does, it cannot be archived.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "number": {
                  "description": "The phone number, E.164.",
                  "type": "string"
                },
                "senderId": {
                  "description": "The number's id, as `numbers.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"
                }
              },
              "required": [
                "number",
                "senderId"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "publishedVersionId": {
            "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 version the flow's numbers run; `null` until published."
          },
          "state": {
            "description": "`active`, or `archived`: its versions stay as history and no number can follow it.",
            "enum": [
              "active",
              "archived"
            ],
            "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": [
          "createdAt",
          "id",
          "name",
          "numbers",
          "publishedVersionId",
          "state",
          "updatedAt"
        ],
        "type": "object"
      },
      "CallFlowCallback": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it was left on, as `calls.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"
          },
          "createdAt": {
            "description": "When it was left, 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"
          },
          "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 was closed, ISO 8601 in UTC; `null` while it is `open`."
          },
          "flowId": {
            "description": "The call flow it was left 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"
          },
          "fromNumber": {
            "description": "The caller's number: the one to call back.",
            "type": "string"
          },
          "id": {
            "description": "The callback request'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"
          },
          "nodeId": {
            "description": "The `id` of the flow step that left it.",
            "type": "string"
          },
          "source": {
            "description": "Why the request exists: `requested` (the caller asked: a callback step or the queue's callback key), `queue_overflow` (the queue's longest wait passed) or `queue_abandoned` (the caller hung up while waiting).",
            "enum": [
              "requested",
              "queue_overflow",
              "queue_abandoned"
            ],
            "type": "string"
          },
          "state": {
            "description": "`open` until it is closed, then `done`.",
            "enum": [
              "open",
              "done"
            ],
            "type": "string"
          }
        },
        "required": [
          "callId",
          "createdAt",
          "doneAt",
          "flowId",
          "fromNumber",
          "id",
          "nodeId",
          "source",
          "state"
        ],
        "type": "object"
      },
      "CallFlowDecision": {
        "additionalProperties": false,
        "properties": {
          "branch": {
            "description": "The branch that was picked.",
            "type": "string"
          },
          "id": {
            "description": "The run'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"
          },
          "node": {
            "description": "The step the run goes on at.",
            "type": "string"
          }
        },
        "required": [
          "branch",
          "id",
          "node"
        ],
        "type": "object"
      },
      "CallFlowDetail": {
        "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"
          },
          "draft": {
            "additionalProperties": false,
            "description": "The flow's one draft: what the next publish makes a version of.",
            "properties": {
              "document": {
                "description": "The draft's steps: `{ start, nodes }`, as `saveDraft` takes it."
              },
              "layout": {
                "description": "Where each step sits in the editor: `{ x, y }` per step id."
              },
              "revision": {
                "description": "The draft's revision, counted up by each save: `saveDraft` takes it back.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "document",
              "layout",
              "revision"
            ],
            "type": "object"
          },
          "id": {
            "description": "The call flow'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 name for the flow.",
            "type": "string"
          },
          "numbers": {
            "description": "The numbers whose calls this flow answers; while any does, it cannot be archived.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "number": {
                  "description": "The phone number, E.164.",
                  "type": "string"
                },
                "senderId": {
                  "description": "The number's id, as `numbers.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"
                }
              },
              "required": [
                "number",
                "senderId"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "published": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "document": {
                    "description": "The version's steps: `{ start, nodes }`."
                  },
                  "number": {
                    "description": "The version's number.",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "versionId": {
                    "description": "The version'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": [
                  "document",
                  "number",
                  "versionId"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "The newest published version; `null` before the first publish."
          },
          "publishedVersionId": {
            "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 version the flow's numbers run; `null` until published."
          },
          "state": {
            "description": "`active`, or `archived`: its versions stay as history and no number can follow it.",
            "enum": [
              "active",
              "archived"
            ],
            "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": [
          "createdAt",
          "draft",
          "id",
          "name",
          "numbers",
          "published",
          "publishedVersionId",
          "state",
          "updatedAt"
        ],
        "type": "object"
      },
      "CallFlowDraftSaved": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call flow'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"
          },
          "revision": {
            "description": "The draft's revision after this save: send it with the next save.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "revision"
        ],
        "type": "object"
      },
      "CallFlowProblems": {
        "additionalProperties": false,
        "properties": {
          "problems": {
            "description": "What stops a publish; empty when the draft is sound.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "description": "What is wrong: `node_missing` or `start_missing` (a branch or the start names no step), `unreachable`, `loop_without_wait`, `no_way_out` (no branch ends the flow), `duplicate` (a key, choice or route used twice), `node_incomplete`, `too_many_nodes`, `target_missing` (something a step names is gone or not yours), `clip_invalid`, `destination_refused` (a number you may not call), `not_available_yet` or `unchecked` (the check could not run).",
                  "enum": [
                    "node_missing",
                    "start_missing",
                    "unreachable",
                    "loop_without_wait",
                    "no_way_out",
                    "duplicate",
                    "node_incomplete",
                    "too_many_nodes",
                    "target_missing",
                    "clip_invalid",
                    "unchecked",
                    "destination_refused",
                    "not_available_yet"
                  ],
                  "type": "string"
                },
                "nodeId": {
                  "description": "The step it is in; `null` when it concerns the whole document.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "code",
                "nodeId"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "problems"
        ],
        "type": "object"
      },
      "CallFlowPublish": {
        "additionalProperties": false,
        "properties": {
          "problems": {
            "description": "What stops a publish; empty when the draft is sound.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "description": "What is wrong: `node_missing` or `start_missing` (a branch or the start names no step), `unreachable`, `loop_without_wait`, `no_way_out` (no branch ends the flow), `duplicate` (a key, choice or route used twice), `node_incomplete`, `too_many_nodes`, `target_missing` (something a step names is gone or not yours), `clip_invalid`, `destination_refused` (a number you may not call), `not_available_yet` or `unchecked` (the check could not run).",
                  "enum": [
                    "node_missing",
                    "start_missing",
                    "unreachable",
                    "loop_without_wait",
                    "no_way_out",
                    "duplicate",
                    "node_incomplete",
                    "too_many_nodes",
                    "target_missing",
                    "clip_invalid",
                    "unchecked",
                    "destination_refused",
                    "not_available_yet"
                  ],
                  "type": "string"
                },
                "nodeId": {
                  "description": "The step it is in; `null` when it concerns the whole document.",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "code",
                "nodeId"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "published": {
            "description": "`true` when the draft became a version; `false` when it has problems.",
            "type": "boolean"
          },
          "version": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The number of the version made; `null` when nothing was published."
          }
        },
        "required": [
          "problems",
          "published",
          "version"
        ],
        "type": "object"
      },
      "CallFlowSchedule": {
        "additionalProperties": false,
        "properties": {
          "closedDays": {
            "description": "The dates it is closed all day: a list of `YYYY-MM-DD`."
          },
          "id": {
            "description": "The schedule's id: an `hours` step names 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"
          },
          "name": {
            "description": "Your name for the schedule.",
            "type": "string"
          },
          "norwegianHolidays": {
            "description": "Whether it is closed on Norway's public holidays.",
            "type": "boolean"
          },
          "timeZone": {
            "description": "The IANA time zone the days and times are read in.",
            "type": "string"
          },
          "week": {
            "description": "The opening windows of each weekday: seven lists, Monday first, each of `{ from, to }` in local time (`HH:MM`)."
          }
        },
        "required": [
          "closedDays",
          "id",
          "name",
          "norwegianHolidays",
          "timeZone",
          "week"
        ],
        "type": "object"
      },
      "CallFlowVersion": {
        "additionalProperties": false,
        "properties": {
          "createdAt": {
            "description": "When it was published, 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"
          },
          "current": {
            "description": "The version the flow's numbers run now.",
            "type": "boolean"
          },
          "id": {
            "description": "The version'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"
          },
          "number": {
            "description": "The version's number, counted up by each publish.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "createdAt",
          "current",
          "id",
          "number"
        ],
        "type": "object"
      },
      "CallList": {
        "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"
          },
          "fromSenderId": {
            "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 number the list calls from; `null`: the default number for calls."
          },
          "id": {
            "description": "The call list'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 the list's calls are for: the one its number stands on. `null` for your own company."
          },
          "name": {
            "description": "Your name for the list.",
            "type": "string"
          },
          "pausedAt": {
            "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 paused, ISO 8601 in UTC; `null` when it is not paused."
          },
          "purpose": {
            "description": "`consumer_marketing`: telephone marketing to consumers, which needs a screening statement and is called in the lawful hours only; `other_calls`: every other call.",
            "enum": [
              "consumer_marketing",
              "other_calls"
            ],
            "type": "string"
          },
          "seller": {
            "description": "The seller who works the list; `null`: not a seller's list.",
            "type": [
              "string",
              "null"
            ]
          },
          "size": {
            "description": "How many numbers the list holds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "state": {
            "description": "`active`, or `archived`.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "fromSenderId",
          "id",
          "identity",
          "name",
          "pausedAt",
          "purpose",
          "seller",
          "size",
          "state"
        ],
        "type": "object"
      },
      "CallListScreening": {
        "additionalProperties": false,
        "properties": {
          "callableFrom": {
            "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 marketing list: the first instant from now inside the lawful calling hours (now, when they are open), ISO 8601 in UTC. `null` for other lists."
          },
          "listId": {
            "description": "The call list'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"
          },
          "purpose": {
            "description": "`consumer_marketing`: telephone marketing to consumers, which needs a screening statement and is called in the lawful hours only; `other_calls`: every other call.",
            "enum": [
              "consumer_marketing",
              "other_calls"
            ],
            "type": "string"
          },
          "statement": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "basis": {
                    "description": "Why the list may be called: `screened`, `express_request` or `existing_relationship`.",
                    "enum": [
                      "screened",
                      "express_request",
                      "existing_relationship"
                    ],
                    "type": "string"
                  },
                  "covers": {
                    "description": "How many of the list's numbers it covers; numbers added later need a new statement.",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "screenedOn": {
                    "anyOf": [
                      {
                        "format": "date",
                        "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])))$",
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The day the list was checked against Reservasjonsregisteret, `YYYY-MM-DD`; `null` unless `screened`."
                  },
                  "statedAt": {
                    "description": "When it was recorded, 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"
                  },
                  "statedBy": {
                    "description": "Who recorded it: a member's person id, or an API key's id.",
                    "type": "string"
                  }
                },
                "required": [
                  "basis",
                  "covers",
                  "screenedOn",
                  "statedAt",
                  "statedBy"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Your newest statement; `null` when none is recorded."
          },
          "status": {
            "description": "Whether `next` may call: `not_required` (the list is not marketing), `statement_valid`, `no_statement` (none, or numbers were added after it) or `statement_outdated` (the screening is from an earlier month).",
            "enum": [
              "not_required",
              "statement_valid",
              "no_statement",
              "statement_outdated"
            ],
            "type": "string"
          }
        },
        "required": [
          "callableFrom",
          "listId",
          "purpose",
          "statement",
          "status"
        ],
        "type": "object"
      },
      "Campaign": {
        "additionalProperties": false,
        "description": "A campaign: one message per recipient, from one sender. `price` is what its create quoted for the sendable recipients.",
        "properties": {
          "channel": {
            "description": "`sms` or `email`.",
            "enum": [
              "sms",
              "email"
            ],
            "type": "string"
          },
          "consentRequired": {
            "description": "Whether it sends only to recipients with a current consent record.",
            "type": "boolean"
          },
          "createdAt": {
            "description": "When it was created, 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 completed or was cancelled, ISO 8601 in UTC; `null` before that."
          },
          "id": {
            "description": "The campaign'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 the campaign sends for: its messages are booked on it, and its opt-outs apply. `null` for your own company."
          },
          "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 none of its messages is sent, ISO 8601 in UTC; `null` when the create named none."
          },
          "name": {
            "description": "Your name for the campaign.",
            "type": "string"
          },
          "pausedReason": {
            "description": "Why it is `paused`: the error code that stopped it (`insufficient_funds`). `null` when it is not paused.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What its create quoted for the recipients that can get a message."
          },
          "recipients": {
            "description": "The recipients the campaign holds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own id for the campaign.",
            "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": "The `startAt` it was given, ISO 8601 in UTC; `null` when it starts at once."
          },
          "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 its messages may be sent, with every default filled in; `null` when the create named none."
          },
          "sent": {
            "description": "Messages handed over so far.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "simulated": {
            "description": "`true` in test mode (a test key): no message leaves Telkit and nothing is charged.",
            "type": "boolean"
          },
          "skipped": {
            "description": "Recipients that got no message; `listRecipients` gives each one's reason.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "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 its first messages were made, ISO 8601 in UTC; `null` before that."
          },
          "state": {
            "description": "`draft` (stored, not started), `scheduled` (it starts now, or at `scheduledAt`), `sending`, `paused` (stopped, see `pausedReason`; `resume` continues it), `completed` or `cancelled`.",
            "enum": [
              "draft",
              "scheduled",
              "sending",
              "paused",
              "completed",
              "cancelled"
            ],
            "type": "string"
          },
          "uncertain": {
            "description": "Messages whose hand-over is not known: they are never sent again.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "channel",
          "consentRequired",
          "createdAt",
          "endedAt",
          "id",
          "identity",
          "latestSendAt",
          "name",
          "pausedReason",
          "price",
          "recipients",
          "reference",
          "scheduledAt",
          "sendWindow",
          "sent",
          "simulated",
          "skipped",
          "startedAt",
          "state",
          "uncertain"
        ],
        "type": "object"
      },
      "CampaignDetail": {
        "additionalProperties": false,
        "description": "A campaign: one message per recipient, from one sender. `price` is what its create quoted for the sendable recipients.",
        "properties": {
          "channel": {
            "description": "`sms` or `email`.",
            "enum": [
              "sms",
              "email"
            ],
            "type": "string"
          },
          "consentRequired": {
            "description": "Whether it sends only to recipients with a current consent record.",
            "type": "boolean"
          },
          "createdAt": {
            "description": "When it was created, 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"
          },
          "delivery": {
            "additionalProperties": false,
            "description": "What became of the messages handed over, and `price`: what they were charged so far (nothing in test mode).",
            "properties": {
              "cancelled": {
                "description": "Messages stopped before they went.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "delivered": {
                "description": "Messages reported delivered.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "failed": {
                "description": "Messages refused or reported failed.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "price": {
                "$ref": "#/components/schemas/Price",
                "description": "What the messages were charged so far."
              },
              "waiting": {
                "description": "Messages without a final delivery report yet.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "cancelled",
              "delivered",
              "failed",
              "price",
              "waiting"
            ],
            "type": "object"
          },
          "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 completed or was cancelled, ISO 8601 in UTC; `null` before that."
          },
          "id": {
            "description": "The campaign'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 the campaign sends for: its messages are booked on it, and its opt-outs apply. `null` for your own company."
          },
          "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 none of its messages is sent, ISO 8601 in UTC; `null` when the create named none."
          },
          "name": {
            "description": "Your name for the campaign.",
            "type": "string"
          },
          "outcomes": {
            "description": "The recipients counted by their state and skip reason.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "description": "How many recipients.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "skipReason": {
                  "description": "Why these recipients were skipped (`recipient_opted_out`); `null` for the other states.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "state": {
                  "description": "A recipient state, as `listRecipients` names it.",
                  "enum": [
                    "pending",
                    "sending",
                    "sent",
                    "skipped",
                    "cancelled",
                    "uncertain"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "count",
                "skipReason",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "pausedReason": {
            "description": "Why it is `paused`: the error code that stopped it (`insufficient_funds`). `null` when it is not paused.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What its create quoted for the recipients that can get a message."
          },
          "recipients": {
            "description": "The recipients the campaign holds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own id for the campaign.",
            "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": "The `startAt` it was given, ISO 8601 in UTC; `null` when it starts at once."
          },
          "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 its messages may be sent, with every default filled in; `null` when the create named none."
          },
          "sent": {
            "description": "Messages handed over so far.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "simulated": {
            "description": "`true` in test mode (a test key): no message leaves Telkit and nothing is charged.",
            "type": "boolean"
          },
          "skipped": {
            "description": "Recipients that got no message; `listRecipients` gives each one's reason.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "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 its first messages were made, ISO 8601 in UTC; `null` before that."
          },
          "state": {
            "description": "`draft` (stored, not started), `scheduled` (it starts now, or at `scheduledAt`), `sending`, `paused` (stopped, see `pausedReason`; `resume` continues it), `completed` or `cancelled`.",
            "enum": [
              "draft",
              "scheduled",
              "sending",
              "paused",
              "completed",
              "cancelled"
            ],
            "type": "string"
          },
          "uncertain": {
            "description": "Messages whose hand-over is not known: they are never sent again.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "channel",
          "consentRequired",
          "createdAt",
          "delivery",
          "endedAt",
          "id",
          "identity",
          "latestSendAt",
          "name",
          "outcomes",
          "pausedReason",
          "price",
          "recipients",
          "reference",
          "scheduledAt",
          "sendWindow",
          "sent",
          "simulated",
          "skipped",
          "startedAt",
          "state",
          "uncertain"
        ],
        "type": "object"
      },
      "CampaignQuote": {
        "additionalProperties": false,
        "properties": {
          "duplicates": {
            "description": "Recipients left out because the same number or address was named earlier in the list.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What the sendable recipients would cost."
          },
          "recipients": {
            "description": "The recipients the campaign would hold, duplicates left out.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "sendable": {
            "description": "Recipients that would get a message.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "simulated": {
            "description": "`true` in test mode (a test key): no message leaves Telkit and nothing is charged.",
            "type": "boolean"
          },
          "skipped": {
            "description": "Recipients that would get none; `skips` says why.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "skips": {
            "description": "The skipped recipients counted by reason.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "description": "How many recipients.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "reason": {
                  "description": "Why, as a code (`recipient_opted_out`, `consent_missing`).",
                  "type": "string"
                }
              },
              "required": [
                "count",
                "reason"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "duplicates",
          "price",
          "recipients",
          "sendable",
          "simulated",
          "skipped",
          "skips"
        ],
        "type": "object"
      },
      "CampaignRecipient": {
        "additionalProperties": false,
        "properties": {
          "delivery": {
            "anyOf": [
              {
                "enum": [
                  "delivered",
                  "failed",
                  "waiting",
                  "cancelled"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What became of the message: `delivered`, `failed`, `waiting` (no final report yet) or `cancelled`; `null` without a message."
          },
          "failureReason": {
            "description": "Why the message failed; `null` when it has not.",
            "type": [
              "string",
              "null"
            ]
          },
          "messageId": {
            "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 message made for the recipient: `sms.get` or `email.get` reads it."
          },
          "messageState": {
            "description": "The message's own state, as `sms.get` or `email.get` names it; `null` without a message.",
            "type": [
              "string",
              "null"
            ]
          },
          "position": {
            "description": "The recipient's place in the campaign, from 0.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What this recipient's message was charged; 0 when nothing was (skipped, test mode, not settled yet)."
          },
          "skipReason": {
            "description": "Why it got no message, as a code (`recipient_invalid`, `recipient_opted_out`, `consent_missing`, `latest_send_passed`); `null` unless `skipped`.",
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "description": "`pending` (not reached yet), `sending`, `sent` (its message was made: `messageState` tells the rest), `skipped` (see `skipReason`; nothing charged), `cancelled` (the campaign was cancelled first) or `uncertain` (whether it was handed over is not known; it is never sent again).",
            "enum": [
              "pending",
              "sending",
              "sent",
              "skipped",
              "cancelled",
              "uncertain"
            ],
            "type": "string"
          },
          "to": {
            "description": "The number (SMS) or the address (email).",
            "type": "string"
          }
        },
        "required": [
          "delivery",
          "failureReason",
          "messageId",
          "messageState",
          "position",
          "price",
          "skipReason",
          "state",
          "to"
        ],
        "type": "object"
      },
      "Consent": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "Who gave it: a number in E.164, or an email address in lower case.",
            "type": "string"
          },
          "channel": {
            "description": "The channel it covers: `sms` or `email`.",
            "enum": [
              "sms",
              "email"
            ],
            "type": "string"
          },
          "contactId": {
            "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 contact it was given for; `null` when it stands on the address alone."
          },
          "evidence": {
            "description": "Your own record of the consent; `null` when the record named none.",
            "type": [
              "string",
              "null"
            ]
          },
          "givenAt": {
            "description": "When the recipient gave it, 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 consent record'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"
          },
          "recordedAt": {
            "description": "When the record was stored, 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"
          },
          "source": {
            "description": "How the recipient gave it: `web_form`, `checkout`, `paper_form`, `in_person`, `phone_call`, `message_reply` or `other`.",
            "enum": [
              "web_form",
              "checkout",
              "paper_form",
              "in_person",
              "phone_call",
              "message_reply",
              "other"
            ],
            "type": "string"
          },
          "withdrawnAt": {
            "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 withdrawn, ISO 8601 in UTC; `null` while it is current."
          },
          "withdrawnSource": {
            "anyOf": [
              {
                "enum": [
                  "reply_word",
                  "unsubscribe_link",
                  "api",
                  "dashboard"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "How it was withdrawn: `reply_word` (STOPP by SMS), `unsubscribe_link`, `api` or `dashboard`; `null` while it is current."
          }
        },
        "required": [
          "address",
          "channel",
          "contactId",
          "evidence",
          "givenAt",
          "id",
          "recordedAt",
          "source",
          "withdrawnAt",
          "withdrawnSource"
        ],
        "type": "object"
      },
      "Contact": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The country as two capital letters (`NO`); `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "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"
          },
          "email": {
            "description": "The email address, in lower case; `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "externalId": {
            "description": "Your own id of the contact (a member or customer number), unique among them.",
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "description": "The contact'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 contact's name.",
            "type": "string"
          },
          "note": {
            "description": "Your own note on the contact; `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "description": "The phone number, E.164; `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "postalCode": {
            "description": "The postal code; `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "postalName": {
            "description": "The postal town; `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "street": {
            "description": "The street address; `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "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": [
          "country",
          "createdAt",
          "email",
          "externalId",
          "id",
          "name",
          "note",
          "phone",
          "postalCode",
          "postalName",
          "street",
          "updatedAt"
        ],
        "type": "object"
      },
      "ContactGroup": {
        "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 group'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"
          },
          "members": {
            "description": "How many contacts are in the group.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "name": {
            "description": "The group's name, used once.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "id",
          "members",
          "name"
        ],
        "type": "object"
      },
      "ContactImport": {
        "additionalProperties": false,
        "properties": {
          "created": {
            "description": "Rows that became new contacts.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "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"
          },
          "existing": {
            "description": "What a row that finds a contact you have does: `keep` or `fill`.",
            "type": "string"
          },
          "failure": {
            "description": "Why the whole file was refused: `unreadable`, `no_rows`, `too_many_rows`, `name_column_missing` or `columns_mismatch`; `null` when it was read.",
            "type": [
              "string",
              "null"
            ]
          },
          "finishedAt": {
            "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 finished, ISO 8601 in UTC; `null` while it is `queued`."
          },
          "groupId": {
            "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 group the imported contacts join; `null` for none."
          },
          "id": {
            "description": "The import'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"
          },
          "kept": {
            "description": "Rows that found a contact and left it as it is.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "problems": {
            "description": "The first refused rows, by row number from 0.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "problem": {
                  "description": "Why it was refused, as a code (`name_missing`, `phone_invalid`, `phone_taken`).",
                  "type": "string"
                },
                "row": {
                  "description": "The row's number among the data rows, from 0.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "problem",
                "row"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "refused": {
            "description": "Rows that were not stored.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "rows": {
            "description": "The file's data rows.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "state": {
            "description": "`queued` (waiting to run), `done` (the rows are stored and the refused ones listed) or `failed` (the whole file was refused, see `failure`).",
            "type": "string"
          },
          "updated": {
            "description": "Rows that changed a contact you have (`fill`).",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "created",
          "createdAt",
          "existing",
          "failure",
          "finishedAt",
          "groupId",
          "id",
          "kept",
          "problems",
          "refused",
          "rows",
          "state",
          "updated"
        ],
        "type": "object"
      },
      "CreatedCampaign": {
        "additionalProperties": false,
        "description": "A campaign: one message per recipient, from one sender. `price` is what its create quoted for the sendable recipients.",
        "properties": {
          "channel": {
            "description": "`sms` or `email`.",
            "enum": [
              "sms",
              "email"
            ],
            "type": "string"
          },
          "consentRequired": {
            "description": "Whether it sends only to recipients with a current consent record.",
            "type": "boolean"
          },
          "createdAt": {
            "description": "When it was created, 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"
          },
          "duplicates": {
            "description": "Recipients left out because the same number or address was named earlier in the list.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "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 completed or was cancelled, ISO 8601 in UTC; `null` before that."
          },
          "id": {
            "description": "The campaign'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 the campaign sends for: its messages are booked on it, and its opt-outs apply. `null` for your own company."
          },
          "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 none of its messages is sent, ISO 8601 in UTC; `null` when the create named none."
          },
          "name": {
            "description": "Your name for the campaign.",
            "type": "string"
          },
          "pausedReason": {
            "description": "Why it is `paused`: the error code that stopped it (`insufficient_funds`). `null` when it is not paused.",
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "$ref": "#/components/schemas/Price",
            "description": "What its create quoted for the recipients that can get a message."
          },
          "recipients": {
            "description": "The recipients the campaign holds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "reference": {
            "description": "Your own id for the campaign.",
            "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": "The `startAt` it was given, ISO 8601 in UTC; `null` when it starts at once."
          },
          "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 its messages may be sent, with every default filled in; `null` when the create named none."
          },
          "sent": {
            "description": "Messages handed over so far.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "simulated": {
            "description": "`true` in test mode (a test key): no message leaves Telkit and nothing is charged.",
            "type": "boolean"
          },
          "skipped": {
            "description": "Recipients that got no message; `listRecipients` gives each one's reason.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "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 its first messages were made, ISO 8601 in UTC; `null` before that."
          },
          "state": {
            "description": "`draft` (stored, not started), `scheduled` (it starts now, or at `scheduledAt`), `sending`, `paused` (stopped, see `pausedReason`; `resume` continues it), `completed` or `cancelled`.",
            "enum": [
              "draft",
              "scheduled",
              "sending",
              "paused",
              "completed",
              "cancelled"
            ],
            "type": "string"
          },
          "uncertain": {
            "description": "Messages whose hand-over is not known: they are never sent again.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "channel",
          "consentRequired",
          "createdAt",
          "duplicates",
          "endedAt",
          "id",
          "identity",
          "latestSendAt",
          "name",
          "pausedReason",
          "price",
          "recipients",
          "reference",
          "scheduledAt",
          "sendWindow",
          "sent",
          "simulated",
          "skipped",
          "startedAt",
          "state",
          "uncertain"
        ],
        "type": "object"
      },
      "InboxItem": {
        "additionalProperties": false,
        "properties": {
          "activityAt": {
            "description": "When something last arrived on it, ISO 8601 in UTC: the list's order.",
            "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"
          },
          "assigneeId": {
            "description": "The person id of the member it is assigned to; `null` for nobody.",
            "type": [
              "string",
              "null"
            ]
          },
          "counterpart": {
            "description": "The other party's phone number: the caller, or the SMS thread's other end.",
            "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"
          },
          "id": {
            "description": "The inbox item'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 stands for: `voicemail`, `missed_call`, `sms_thread` (the SMS with one number) or `callback` (a callback request left in a call flow).",
            "enum": [
              "voicemail",
              "missed_call",
              "sms_thread",
              "callback"
            ],
            "type": "string"
          },
          "preview": {
            "description": "The start of the newest SMS of a thread; `null` for the other kinds.",
            "type": [
              "string",
              "null"
            ]
          },
          "read": {
            "description": "Whether it has been marked read.",
            "type": "boolean"
          },
          "sourceId": {
            "description": "The thing it stands for: a voicemail's id, a missed call's call id, an SMS thread's other number, or `<call id>:<step id>` for a callback request.",
            "type": "string"
          },
          "state": {
            "description": "`open` until it is marked `done`; a new SMS in its thread opens it again.",
            "enum": [
              "open",
              "done"
            ],
            "type": "string"
          },
          "tags": {
            "description": "Your own labels on the item.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "activityAt",
          "assigneeId",
          "counterpart",
          "createdAt",
          "id",
          "kind",
          "preview",
          "read",
          "sourceId",
          "state",
          "tags"
        ],
        "type": "object"
      },
      "InboxItemDetail": {
        "additionalProperties": false,
        "properties": {
          "activityAt": {
            "description": "When something last arrived on it, ISO 8601 in UTC: the list's order.",
            "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"
          },
          "assigneeId": {
            "description": "The person id of the member it is assigned to; `null` for nobody.",
            "type": [
              "string",
              "null"
            ]
          },
          "counterpart": {
            "description": "The other party's phone number: the caller, or the SMS thread's other end.",
            "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"
          },
          "id": {
            "description": "The inbox item'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 stands for: `voicemail`, `missed_call`, `sms_thread` (the SMS with one number) or `callback` (a callback request left in a call flow).",
            "enum": [
              "voicemail",
              "missed_call",
              "sms_thread",
              "callback"
            ],
            "type": "string"
          },
          "notes": {
            "description": "Oldest first.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "authorId": {
                  "description": "Who wrote it: a member's person id, or `key:<id>` for an API key.",
                  "type": "string"
                },
                "createdAt": {
                  "description": "When it was written, 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 note'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"
                },
                "text": {
                  "description": "The note.",
                  "type": "string"
                }
              },
              "required": [
                "authorId",
                "createdAt",
                "id",
                "text"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "preview": {
            "description": "The start of the newest SMS of a thread; `null` for the other kinds.",
            "type": [
              "string",
              "null"
            ]
          },
          "read": {
            "description": "Whether it has been marked read.",
            "type": "boolean"
          },
          "sourceId": {
            "description": "The thing it stands for: a voicemail's id, a missed call's call id, an SMS thread's other number, or `<call id>:<step id>` for a callback request.",
            "type": "string"
          },
          "state": {
            "description": "`open` until it is marked `done`; a new SMS in its thread opens it again.",
            "enum": [
              "open",
              "done"
            ],
            "type": "string"
          },
          "tags": {
            "description": "Your own labels on the item.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "activityAt",
          "assigneeId",
          "counterpart",
          "createdAt",
          "id",
          "kind",
          "notes",
          "preview",
          "read",
          "sourceId",
          "state",
          "tags"
        ],
        "type": "object"
      },
      "InboxNote": {
        "additionalProperties": false,
        "properties": {
          "authorId": {
            "description": "Who wrote it: `key:<id>` for your API key.",
            "type": "string"
          },
          "createdAt": {
            "description": "When it was written, 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 note'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"
          },
          "itemId": {
            "description": "The inbox item it is 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"
          }
        },
        "required": [
          "authorId",
          "createdAt",
          "id",
          "itemId"
        ],
        "type": "object"
      },
      "MeetingRoom": {
        "additionalProperties": false,
        "properties": {
          "archived": {
            "description": "`true` once it is archived: callers no longer get in.",
            "type": "boolean"
          },
          "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"
          },
          "hasPin": {
            "description": "Callers type a PIN to get in.",
            "type": "boolean"
          },
          "id": {
            "description": "The meeting room'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 name for the room.",
            "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": [
          "archived",
          "createdAt",
          "hasPin",
          "id",
          "name",
          "updatedAt"
        ],
        "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"
      },
      "QueueEntry": {
        "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 the call was answered, ISO 8601 in UTC; `null` when it was not."
          },
          "answeredBy": {
            "description": "Who answered: one of the step's members (a person id) or phones; `null` when nobody did.",
            "type": [
              "string",
              "null"
            ]
          },
          "answeredKind": {
            "description": "What answered: `member` or `phone`; `null` when nothing did.",
            "type": [
              "string",
              "null"
            ]
          },
          "callId": {
            "description": "The caller's call, as `calls.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"
          },
          "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 the entry left the queue."
          },
          "enteredAt": {
            "description": "When the caller entered the queue, 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"
          },
          "flowId": {
            "description": "The call flow the queue 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"
          },
          "from": {
            "description": "The caller's number; `anonymous` when it was hidden.",
            "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"
          },
          "nodeId": {
            "description": "The `id` of the queue's step in the flow's document.",
            "type": "string"
          },
          "queueId": {
            "description": "The queue: one `queue` step of one call flow.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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": "`waiting`, `offering` and `ringing` are still in the queue; `answered`, `abandoned` (the caller hung up), `overflowed` (the longest wait passed), `callback` (the caller pressed the callback key) and `failed` have left it.",
            "enum": [
              "waiting",
              "offering",
              "ringing",
              "answered",
              "overflowed",
              "abandoned",
              "failed",
              "callback"
            ],
            "type": "string"
          },
          "waitSeconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whole seconds from entering to leaving."
          }
        },
        "required": [
          "answeredAt",
          "answeredBy",
          "answeredKind",
          "callId",
          "endedAt",
          "enteredAt",
          "flowId",
          "from",
          "id",
          "nodeId",
          "queueId",
          "state",
          "waitSeconds"
        ],
        "type": "object"
      },
      "QueueStats": {
        "additionalProperties": false,
        "properties": {
          "abandoned": {
            "description": "Callers who hung up while waiting.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "answered": {
            "description": "Callers who were answered.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "averageWaitSeconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The average wait of the answered callers, in whole seconds; `null` when none was answered."
          },
          "callback": {
            "description": "Callers who pressed the callback key.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "failed": {
            "description": "Entries that failed.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "flowId": {
            "description": "The call flow the queue 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"
          },
          "nodeId": {
            "description": "The `id` of the queue's step in the flow's document.",
            "type": "string"
          },
          "overflowed": {
            "description": "Callers whose longest wait passed.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "queueId": {
            "description": "The queue: one `queue` step of one call flow.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "serviceLevel": {
            "additionalProperties": false,
            "description": "Service level of the window: `answeredWithinTarget` ÷ `counted`. `counted` = entries that ended in the window answered, abandoned (the caller hung up while waiting) or overflowed (the longest wait passed), minus abandoned entries that waited fewer than `shortAbandonSeconds`; callback-key requests and failed entries are outside the figure. `answeredWithinTarget` = answered entries that waited at most `targetSeconds`. `share` is from 0 to 1, `null` when nothing is counted.",
            "properties": {
              "answeredWithinTarget": {
                "description": "Answered callers who waited at most `targetSeconds`.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "counted": {
                "description": "The entries the service level is measured over.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "share": {
                "anyOf": [
                  {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "`answeredWithinTarget` ÷ `counted`, from 0 to 1; `null` when nothing is counted."
              },
              "shortAbandonSeconds": {
                "description": "The `shortAbandonSeconds` the figure used.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "shortAbandoned": {
                "description": "Callers who hung up after fewer than `shortAbandonSeconds`: left out of `counted`.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "targetSeconds": {
                "description": "The `targetSeconds` the figure used.",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "answeredWithinTarget",
              "counted",
              "share",
              "shortAbandonSeconds",
              "shortAbandoned",
              "targetSeconds"
            ],
            "type": "object"
          }
        },
        "required": [
          "abandoned",
          "answered",
          "averageWaitSeconds",
          "callback",
          "failed",
          "flowId",
          "nodeId",
          "overflowed",
          "queueId",
          "serviceLevel"
        ],
        "type": "object"
      },
      "Template": {
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "The text, with places such as `{{name}}`.",
            "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"
          },
          "id": {
            "description": "The template'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 name for it, used once per channel.",
            "type": "string"
          },
          "service": {
            "description": "The channel it is for: `sms`, `email` or `letters`.",
            "enum": [
              "sms",
              "email",
              "letters"
            ],
            "type": "string"
          },
          "title": {
            "description": "An email's subject or a letter's title; `null` for none.",
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "description": "When it was last saved, 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"
          },
          "variables": {
            "description": "The names of the template's places (`{{name}}`).",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "body",
          "createdAt",
          "id",
          "name",
          "service",
          "title",
          "updatedAt",
          "variables"
        ],
        "type": "object"
      },
      "Voicemail": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call it was left on, as `calls.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"
          },
          "createdAt": {
            "description": "When it was left, 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"
          },
          "from": {
            "description": "The caller's number.",
            "type": "string"
          },
          "id": {
            "description": "The voicemail'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"
          },
          "read": {
            "description": "Whether it has been marked read.",
            "type": "boolean"
          },
          "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 message's recording, as `calls.recordings.get` reads it; `null` without one."
          },
          "seconds": {
            "anyOf": [
              {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "The message's length in seconds; `null` when no message is stored."
          },
          "state": {
            "description": "`greeting` (the greeting plays), `recording`, `stored` (the message is ready), `empty` (the caller left before the message, or said nothing) or `failed` (no recording was made).",
            "enum": [
              "greeting",
              "recording",
              "stored",
              "empty",
              "failed"
            ],
            "type": "string"
          },
          "transcriptId": {
            "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 message's transcript, when the voicemail step asked for one (`transcribe`); `null` without one."
          }
        },
        "required": [
          "callId",
          "createdAt",
          "from",
          "id",
          "read",
          "recordingId",
          "seconds",
          "state",
          "transcriptId"
        ],
        "type": "object"
      },
      "event.agent.archived.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The agent'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 agent's name after the change.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "event.agent.created.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The agent'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 agent's name after the change.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "event.agent.updated.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The agent'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 agent's name after the change.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "event.call.agent.ended.v2": {
        "additionalProperties": false,
        "properties": {
          "agentId": {
            "description": "The agent, as `agents.get` names 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"
          },
          "callId": {
            "description": "The call the agent is 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 agent's session on 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"
          },
          "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 started minutes the agent was on the call.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "price": {
            "additionalProperties": false,
            "description": "What the session 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"
          },
          "reason": {
            "description": "Why the session ended.",
            "enum": [
              "brain_ended",
              "funded_end",
              "call_ended",
              "removed",
              "cost_ceiling",
              "session_lost",
              "start_failed"
            ],
            "type": "string"
          }
        },
        "required": [
          "agentId",
          "callId",
          "id",
          "identity",
          "minutes",
          "price",
          "reason"
        ],
        "type": "object"
      },
      "event.call.agent.started.v2": {
        "additionalProperties": false,
        "properties": {
          "agentId": {
            "description": "The agent, as `agents.get` names 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"
          },
          "callId": {
            "description": "The call the agent is 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 agent's session on 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"
          },
          "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": [
          "agentId",
          "callId",
          "id",
          "identity"
        ],
        "type": "object"
      },
      "event.call.flow.handoff.v2": {
        "additionalProperties": false,
        "properties": {
          "branches": {
            "description": "The branch names your app may pick.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "callId": {
            "description": "The call the flow 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"
          },
          "decideBy": {
            "description": "Pick a branch before then; after it, the node's timeout branch 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"
          },
          "id": {
            "description": "The flow's run on the call: pick a branch with `POST /call-flows/runs/{id}/decide`.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "nodeId": {
            "description": "The webhook node the run waits at.",
            "type": "string"
          }
        },
        "required": [
          "branches",
          "callId",
          "decideBy",
          "id",
          "nodeId"
        ],
        "type": "object"
      },
      "event.call.queue.abandoned.v2": {
        "additionalProperties": false,
        "properties": {
          "abandonedAt": {
            "description": "When the caller hung up.",
            "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"
          },
          "callId": {
            "description": "The call that waited.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "callbackCreated": {
            "description": "Whether this hang-up created a callback request. False when the queue makes none, the caller's number was hidden, or the call already had one from this queue.",
            "type": "boolean"
          },
          "flowId": {
            "description": "The call flow the queue is a step of.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 queue entry, as `GET /queues/entries` names 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"
          },
          "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."
          },
          "nodeId": {
            "description": "The queue's node in the flow.",
            "type": "string"
          },
          "queueId": {
            "description": "The queue, as `GET /queues/stats` names 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"
          },
          "waitSeconds": {
            "description": "Whole seconds the caller waited before hanging up.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "abandonedAt",
          "callId",
          "callbackCreated",
          "flowId",
          "id",
          "identity",
          "nodeId",
          "queueId",
          "waitSeconds"
        ],
        "type": "object"
      },
      "event.campaign.completed.v2": {
        "additionalProperties": false,
        "properties": {
          "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"
          },
          "channel": {
            "enum": [
              "sms",
              "email"
            ],
            "type": "string"
          },
          "ending": {
            "enum": [
              "completed",
              "cancelled"
            ],
            "type": "string"
          },
          "id": {
            "description": "The campaign'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."
          },
          "recipients": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "sent": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "skipped": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "uncertain": {
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "at",
          "channel",
          "ending",
          "id",
          "identity",
          "recipients",
          "sent",
          "skipped",
          "uncertain"
        ],
        "type": "object"
      },
      "event.meeting.ended.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The meeting: one sitting of the room.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "roomId": {
            "description": "The meeting room, as `meetingRooms.list` names 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"
          },
          "seconds": {
            "description": "Whole seconds from the first join to the last leave.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "id",
          "roomId",
          "seconds"
        ],
        "type": "object"
      },
      "event.meeting.started.v2": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The meeting: one sitting of the room.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "roomId": {
            "description": "The meeting room, as `meetingRooms.list` names 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"
          }
        },
        "required": [
          "id",
          "roomId"
        ],
        "type": "object"
      },
      "event.voicemail.received.v2": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the caller left it 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"
          },
          "from": {
            "description": "The caller's number.",
            "type": "string"
          },
          "id": {
            "description": "The voicemail: read it with `GET /inbox/voicemails/{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."
          },
          "recordingId": {
            "description": "The message's 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"
          },
          "seconds": {
            "description": "The message's length in whole seconds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "callId",
          "from",
          "id",
          "identity",
          "recordingId",
          "seconds"
        ],
        "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.tools.agents.archive.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The agent'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.tools.agents.archive.output": {
        "$ref": "#/components/schemas/Agent"
      },
      "operation.tools.agents.create.input": {
        "additionalProperties": false,
        "properties": {
          "brainUrl": {
            "anyOf": [
              {
                "format": "uri",
                "maxLength": 2048,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Your `https` address that decides each turn (a webhook brain). `null` or left out: Telkit's hosted model answers."
          },
          "fallbackLine": {
            "description": "What the agent says when it has no answer for a turn.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "greeting": {
            "description": "What the agent says first, when it joins the call.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "instructions": {
            "default": "",
            "description": "What a hosted agent goes by: who it is, what it knows and how it answers. A hosted agent needs them; with a `brainUrl` they may be left out (empty).",
            "maxLength": 8000,
            "type": "string"
          },
          "language": {
            "description": "The language it speaks: `no` (Norwegian) or `en` (English).",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "maxMinutes": {
            "description": "The most minutes it may stay in one call.",
            "maximum": 120,
            "minimum": 1,
            "type": "integer"
          },
          "name": {
            "description": "Your name for the agent.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "tools": {
            "default": [],
            "description": "The tools a hosted agent may call during a call; none when left out.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "description": "What the tool does, in words the agent reads to decide when to call it.",
                  "maxLength": 1000,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "description": "The name the agent calls the tool by: lower-case letters, digits and `_`, unique in the agent. `end_call` is the agent's own and cannot be used.",
                  "maxLength": 64,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "parameters": {
                  "default": [],
                  "description": "The values the agent gives with a call; none when left out.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "description": {
                        "description": "What the value is, in words the agent reads.",
                        "maxLength": 1000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "name": {
                        "description": "The value's name, unique in the tool.",
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "required": {
                        "default": true,
                        "description": "Whether the agent must give the value; `true` when left out.",
                        "type": "boolean"
                      },
                      "type": {
                        "description": "`text`, `decimal_number`, `whole_number` or `yes_no`.",
                        "enum": [
                          "text",
                          "decimal_number",
                          "whole_number",
                          "yes_no"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "description",
                      "name",
                      "type"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "url": {
                  "description": "Your `https` address: each call of the tool is sent there as a signed POST.",
                  "format": "uri",
                  "maxLength": 2048,
                  "type": "string"
                }
              },
              "required": [
                "description",
                "name",
                "url"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "voice": {
            "description": "The voice it speaks with. A voice that is not offered to you answers `speech_voice_unavailable`, one whose use policy is not accepted `voice_policy_not_accepted`.",
            "enum": [
              "no_female",
              "no_male",
              "en_female",
              "nadia",
              "mia",
              "vilde",
              "kristine",
              "johannes",
              "erik",
              "helge",
              "oyvind"
            ],
            "type": "string"
          }
        },
        "required": [
          "fallbackLine",
          "greeting",
          "language",
          "maxMinutes",
          "name",
          "voice"
        ],
        "type": "object"
      },
      "operation.tools.agents.create.output": {
        "$ref": "#/components/schemas/Agent"
      },
      "operation.tools.agents.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The agent'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.tools.agents.get.output": {
        "$ref": "#/components/schemas/Agent"
      },
      "operation.tools.agents.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.tools.agents.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Agent"
            },
            "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.tools.agents.update.body": {
        "additionalProperties": false,
        "properties": {
          "brainUrl": {
            "anyOf": [
              {
                "format": "uri",
                "maxLength": 2048,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Your `https` address that decides each turn (a webhook brain). `null` or left out: Telkit's hosted model answers."
          },
          "fallbackLine": {
            "description": "What the agent says when it has no answer for a turn.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "greeting": {
            "description": "What the agent says first, when it joins the call.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "instructions": {
            "default": "",
            "description": "What a hosted agent goes by: who it is, what it knows and how it answers. A hosted agent needs them; with a `brainUrl` they may be left out (empty).",
            "maxLength": 8000,
            "type": "string"
          },
          "language": {
            "description": "The language it speaks: `no` (Norwegian) or `en` (English).",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "maxMinutes": {
            "description": "The most minutes it may stay in one call.",
            "maximum": 120,
            "minimum": 1,
            "type": "integer"
          },
          "name": {
            "description": "Your name for the agent.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "tools": {
            "default": [],
            "description": "The tools a hosted agent may call during a call; none when left out.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "description": "What the tool does, in words the agent reads to decide when to call it.",
                  "maxLength": 1000,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "description": "The name the agent calls the tool by: lower-case letters, digits and `_`, unique in the agent. `end_call` is the agent's own and cannot be used.",
                  "maxLength": 64,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "parameters": {
                  "default": [],
                  "description": "The values the agent gives with a call; none when left out.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "description": {
                        "description": "What the value is, in words the agent reads.",
                        "maxLength": 1000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "name": {
                        "description": "The value's name, unique in the tool.",
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "required": {
                        "default": true,
                        "description": "Whether the agent must give the value; `true` when left out.",
                        "type": "boolean"
                      },
                      "type": {
                        "description": "`text`, `decimal_number`, `whole_number` or `yes_no`.",
                        "enum": [
                          "text",
                          "decimal_number",
                          "whole_number",
                          "yes_no"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "description",
                      "name",
                      "type"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "url": {
                  "description": "Your `https` address: each call of the tool is sent there as a signed POST.",
                  "format": "uri",
                  "maxLength": 2048,
                  "type": "string"
                }
              },
              "required": [
                "description",
                "name",
                "url"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "voice": {
            "description": "The voice it speaks with. A voice that is not offered to you answers `speech_voice_unavailable`, one whose use policy is not accepted `voice_policy_not_accepted`.",
            "enum": [
              "no_female",
              "no_male",
              "en_female",
              "nadia",
              "mia",
              "vilde",
              "kristine",
              "johannes",
              "erik",
              "helge",
              "oyvind"
            ],
            "type": "string"
          }
        },
        "required": [
          "fallbackLine",
          "greeting",
          "language",
          "maxMinutes",
          "name",
          "voice"
        ],
        "type": "object"
      },
      "operation.tools.agents.update.input": {
        "additionalProperties": false,
        "properties": {
          "brainUrl": {
            "anyOf": [
              {
                "format": "uri",
                "maxLength": 2048,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "Your `https` address that decides each turn (a webhook brain). `null` or left out: Telkit's hosted model answers."
          },
          "fallbackLine": {
            "description": "What the agent says when it has no answer for a turn.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "greeting": {
            "description": "What the agent says first, when it joins the call.",
            "maxLength": 500,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The agent'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"
          },
          "instructions": {
            "default": "",
            "description": "What a hosted agent goes by: who it is, what it knows and how it answers. A hosted agent needs them; with a `brainUrl` they may be left out (empty).",
            "maxLength": 8000,
            "type": "string"
          },
          "language": {
            "description": "The language it speaks: `no` (Norwegian) or `en` (English).",
            "enum": [
              "no",
              "en"
            ],
            "type": "string"
          },
          "maxMinutes": {
            "description": "The most minutes it may stay in one call.",
            "maximum": 120,
            "minimum": 1,
            "type": "integer"
          },
          "name": {
            "description": "Your name for the agent.",
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "tools": {
            "default": [],
            "description": "The tools a hosted agent may call during a call; none when left out.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "description": {
                  "description": "What the tool does, in words the agent reads to decide when to call it.",
                  "maxLength": 1000,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "description": "The name the agent calls the tool by: lower-case letters, digits and `_`, unique in the agent. `end_call` is the agent's own and cannot be used.",
                  "maxLength": 64,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "parameters": {
                  "default": [],
                  "description": "The values the agent gives with a call; none when left out.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "description": {
                        "description": "What the value is, in words the agent reads.",
                        "maxLength": 1000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "name": {
                        "description": "The value's name, unique in the tool.",
                        "maxLength": 64,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "required": {
                        "default": true,
                        "description": "Whether the agent must give the value; `true` when left out.",
                        "type": "boolean"
                      },
                      "type": {
                        "description": "`text`, `decimal_number`, `whole_number` or `yes_no`.",
                        "enum": [
                          "text",
                          "decimal_number",
                          "whole_number",
                          "yes_no"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "description",
                      "name",
                      "type"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10,
                  "type": "array"
                },
                "url": {
                  "description": "Your `https` address: each call of the tool is sent there as a signed POST.",
                  "format": "uri",
                  "maxLength": 2048,
                  "type": "string"
                }
              },
              "required": [
                "description",
                "name",
                "url"
              ],
              "type": "object"
            },
            "maxItems": 8,
            "type": "array"
          },
          "voice": {
            "description": "The voice it speaks with. A voice that is not offered to you answers `speech_voice_unavailable`, one whose use policy is not accepted `voice_policy_not_accepted`.",
            "enum": [
              "no_female",
              "no_male",
              "en_female",
              "nadia",
              "mia",
              "vilde",
              "kristine",
              "johannes",
              "erik",
              "helge",
              "oyvind"
            ],
            "type": "string"
          }
        },
        "required": [
          "fallbackLine",
          "greeting",
          "id",
          "language",
          "maxMinutes",
          "name",
          "voice"
        ],
        "type": "object"
      },
      "operation.tools.agents.update.output": {
        "$ref": "#/components/schemas/Agent"
      },
      "operation.tools.callFlows.archive.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call flow'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.tools.callFlows.archive.output": {
        "$ref": "#/components/schemas/CallFlow"
      },
      "operation.tools.callFlows.callbacks.close.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The callback request'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.tools.callFlows.callbacks.close.output": {
        "$ref": "#/components/schemas/CallFlowCallback"
      },
      "operation.tools.callFlows.callbacks.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.tools.callFlows.callbacks.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallFlowCallback"
            },
            "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.tools.callFlows.check.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call flow'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.tools.callFlows.check.output": {
        "$ref": "#/components/schemas/CallFlowProblems"
      },
      "operation.tools.callFlows.create.input": {
        "additionalProperties": false,
        "properties": {
          "document": {
            "additionalProperties": false,
            "description": "The draft; left out: one hang-up.",
            "properties": {
              "nodes": {
                "description": "The steps, each of one `kind` with that kind's own fields. Every branch must be able to reach a step that ends the flow: `forward`, `queue`, `voicemail`, `hangup` or `conference`.",
                "items": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "say",
                          "description": "`say`: says a text to the caller.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the text. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "text": {
                          "description": "The words said to the caller.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "text"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "attempts": {
                          "description": "How many times the prompt is played before the `timeout` or `invalid` branch is taken.",
                          "maximum": 5,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "invalid": {
                          "description": "The step after the last attempt when the answer matched no choice. Left out: the `timeout` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "keypad",
                          "description": "`keypad`: a menu the caller answers with the phone's keys.",
                          "type": "string"
                        },
                        "maxDigits": {
                          "description": "The most keys one answer takes.",
                          "maximum": 8,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "prompt": {
                          "description": "What the caller hears before choosing.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "routes": {
                          "description": "The menu's choices.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "digits": {
                                "description": "The keys that pick this choice: 1 to 8 of `0`–`9`, `*` and `#`.",
                                "pattern": "^[0-9*#]{1,8}$",
                                "type": "string"
                              },
                              "next": {
                                "description": "The step this choice leads to.",
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "words": {
                                "description": "A `spoken` menu: the words that pick this choice when the caller says one.",
                                "items": {
                                  "maxLength": 40,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 10,
                                "type": "array"
                              }
                            },
                            "required": [
                              "digits",
                              "next"
                            ],
                            "type": "object"
                          },
                          "maxItems": 12,
                          "type": "array"
                        },
                        "timeout": {
                          "description": "The step after the last attempt when the caller answered nothing. Left out: the `invalid` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "timeoutSeconds": {
                          "description": "How many seconds the menu waits for an answer.",
                          "maximum": 30,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "attempts",
                        "id",
                        "kind",
                        "maxDigits",
                        "prompt",
                        "routes",
                        "timeoutSeconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "attempts": {
                          "description": "How many times the prompt is played before the `timeout` or `invalid` branch is taken.",
                          "maximum": 5,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "invalid": {
                          "description": "The step after the last attempt when the answer matched no choice. Left out: the `timeout` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "spoken",
                          "description": "`spoken`: a menu the caller answers with the keys or by saying a choice's word.",
                          "type": "string"
                        },
                        "maxDigits": {
                          "description": "The most keys one answer takes.",
                          "maximum": 8,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "prompt": {
                          "description": "What the caller hears before choosing.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "routes": {
                          "description": "The menu's choices.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "digits": {
                                "description": "The keys that pick this choice: 1 to 8 of `0`–`9`, `*` and `#`.",
                                "pattern": "^[0-9*#]{1,8}$",
                                "type": "string"
                              },
                              "next": {
                                "description": "The step this choice leads to.",
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "words": {
                                "description": "A `spoken` menu: the words that pick this choice when the caller says one.",
                                "items": {
                                  "maxLength": 40,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 10,
                                "type": "array"
                              }
                            },
                            "required": [
                              "digits",
                              "next"
                            ],
                            "type": "object"
                          },
                          "maxItems": 12,
                          "type": "array"
                        },
                        "timeout": {
                          "description": "The step after the last attempt when the caller answered nothing. Left out: the `invalid` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "timeoutSeconds": {
                          "description": "How many seconds the menu waits for an answer.",
                          "maximum": 30,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "attempts",
                        "id",
                        "kind",
                        "maxDigits",
                        "prompt",
                        "routes",
                        "timeoutSeconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "failed": {
                          "description": "The step the call goes on at when the forward is refused. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "forward",
                          "description": "`forward`: sends the call on to a phone number.",
                          "type": "string"
                        },
                        "to": {
                          "description": "The number the call is forwarded to. A number you may not call is a `destination_refused` problem at publish.",
                          "maxLength": 20,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "to"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "hangup",
                          "description": "`hangup`: ends the call.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "closed": {
                          "description": "The step when it is closed, or the schedule is gone.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "hours",
                          "description": "`hours`: branches on whether a schedule is open now.",
                          "type": "string"
                        },
                        "open": {
                          "description": "The step when the schedule is open.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "scheduleId": {
                          "description": "The schedule to read, as `tools.callFlows.schedules.save` answers its `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": [
                        "closed",
                        "id",
                        "kind",
                        "open",
                        "scheduleId"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "ring",
                          "description": "`ring`: rings people and phones until one answers the call.",
                          "type": "string"
                        },
                        "members": {
                          "description": "The people who are rung in Telkit's browser phone, by their person id. A ring step needs a member or a phone.",
                          "items": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "noAnswer": {
                          "description": "The step the call goes on at when nobody answers. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "onHangup": {
                          "description": "An `sms` step that still texts the caller when the caller hangs up while it rings. Left out: nothing more happens.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "phones": {
                          "description": "The phone numbers that are rung.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "ringSeconds": {
                          "description": "How many seconds each ring lasts before it counts as not answered.",
                          "maximum": 120,
                          "minimum": 5,
                          "type": "integer"
                        },
                        "strategy": {
                          "description": "`all`: everyone at once; `in_turn`: one at a time in the listed order; `longest_idle`: one at a time, first the one who answered a call from this step longest ago.",
                          "enum": [
                            "all",
                            "in_turn",
                            "longest_idle"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "members",
                        "phones",
                        "ringSeconds",
                        "strategy"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "sms",
                          "description": "`sms`: texts the caller's own number, charged as an SMS of yours. A hidden number gets none, and one number is texted at most once within the flow's cooldown.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the SMS. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "text": {
                          "description": "The text of the SMS.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "text"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "branches": {
                          "additionalProperties": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "description": "The branches your app picks among: a name (lower-case letters, digits and `_`) and the step it leads to.",
                          "propertyNames": {
                            "pattern": "^[a-z0-9_]{1,32}$",
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "webhook",
                          "description": "`webhook`: your app picks the branch. The step sends `call.flow.handoff` and waits for `tools.callFlows.decide`.",
                          "type": "string"
                        },
                        "timeout": {
                          "description": "The step taken when your app has picked no branch in time.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "branches",
                        "id",
                        "kind",
                        "timeout"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "callback",
                          "description": "`callback`: leaves a callback request for the caller, which `tools.callFlows.callbacks.list` lists.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the request is left. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "announceEverySeconds": {
                          "description": "Tell the caller their place in the queue at this interval, in seconds; each telling is charged as speech of yours. Left out: never.",
                          "maximum": 600,
                          "minimum": 30,
                          "type": "integer"
                        },
                        "announcement": {
                          "description": "Said once to the caller before the hold tone.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "callback": {
                          "default": false,
                          "description": "`true`: a caller who waited `maxWaitSeconds` also leaves a callback request. `false` when left out.",
                          "type": "boolean"
                        },
                        "callbackKey": {
                          "description": "A key each place announcement offers: pressing it leaves a callback request that keeps the caller's place.",
                          "enum": [
                            "0",
                            "1",
                            "2",
                            "3",
                            "4",
                            "5",
                            "6",
                            "7",
                            "8",
                            "9",
                            "*",
                            "#"
                          ],
                          "type": "string"
                        },
                        "callbackOnAbandon": {
                          "description": "`true`: a caller who hangs up while waiting, and whose number is not hidden, becomes a callback request. Off when left out.",
                          "type": "boolean"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "queue",
                          "description": "`queue`: the caller waits on hold until a member or a phone answers. `tools.queues.listEntries` and `getStats` read what happened.",
                          "type": "string"
                        },
                        "maxWaitSeconds": {
                          "default": 300,
                          "description": "The longest a caller waits, in seconds; then the `overflow` step takes the call.",
                          "maximum": 3600,
                          "minimum": 30,
                          "type": "integer"
                        },
                        "members": {
                          "default": [],
                          "description": "The people who answer in Telkit's browser phone, by their person id: each is rung while set as available and not in a call. None when left out.",
                          "items": {
                            "maxLength": 200,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "overflow": {
                          "description": "The step that takes the call at `maxWaitSeconds` (a voicemail, a message, a callback). Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "phones": {
                          "default": [],
                          "description": "The phone numbers that are rung; none when left out.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "report": {
                          "additionalProperties": false,
                          "description": "An email with the queue's figures for the period before, sent once per period that had callers. Left out: none.",
                          "properties": {
                            "members": {
                              "description": "The people who get it, by their person id.",
                              "items": {
                                "maxLength": 200,
                                "minLength": 1,
                                "type": "string"
                              },
                              "maxItems": 10,
                              "minItems": 1,
                              "type": "array"
                            },
                            "period": {
                              "description": "How often it is sent: for the day or the week before.",
                              "enum": [
                                "daily",
                                "weekly"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "members",
                            "period"
                          ],
                          "type": "object"
                        },
                        "ringSeconds": {
                          "default": 30,
                          "description": "How many seconds one round of ringing lasts.",
                          "maximum": 120,
                          "minimum": 5,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "greeting": {
                          "description": "What the caller hears before the message. Left out: a standard greeting.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "greetingClip": {
                          "description": "A stored audio clip of yours, by its key, played instead of `greeting`.",
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "voicemail",
                          "description": "`voicemail`: the caller leaves a message, which `tools.inbox.voicemails.list` lists; the flow ends here.",
                          "type": "string"
                        },
                        "maxSeconds": {
                          "description": "The longest message, in seconds. Left out: the standard length.",
                          "maximum": 600,
                          "minimum": 10,
                          "type": "integer"
                        },
                        "notifyEmails": {
                          "description": "Email addresses told of each new message; the notice is free.",
                          "items": {
                            "format": "email",
                            "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"
                          },
                          "maxItems": 5,
                          "type": "array"
                        },
                        "notifySms": {
                          "description": "Phone numbers told of each new message by SMS, each charged as an SMS of yours.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 5,
                          "type": "array"
                        },
                        "transcribe": {
                          "description": "`true`: the message is transcribed after the call, charged as a transcript of yours.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "agentId": {
                          "description": "The agent, as `tools.agents.get` reads it; an archived one is refused.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "agent",
                          "description": "`agent`: an AI agent talks with the caller.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at when the agent's time in the call ends. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "agentId",
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "conference",
                          "description": "`conference`: the caller joins a meeting room and stays until leaving; the step has no branch.",
                          "type": "string"
                        },
                        "prompt": {
                          "description": "What the caller hears when the room asks for its PIN. Left out: a standard prompt. A wrong PIN asks again; the last wrong try ends the call.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "roomId": {
                          "description": "The meeting room, as `tools.meetingRooms.list` answers its `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",
                        "kind",
                        "roomId"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "maxItems": 500,
                "minItems": 1,
                "type": "array"
              },
              "start": {
                "description": "The `id` of the step a call starts at.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "nodes",
              "start"
            ],
            "type": "object"
          },
          "name": {
            "description": "Your name for the flow.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "template": {
            "additionalProperties": false,
            "description": "A ready-made draft, used when `document` is left out.",
            "properties": {
              "agentId": {
                "description": "`ai_agent`: the agent that answers; that template needs 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"
              },
              "kind": {
                "description": "Which ready-made flow to build. Every one ends in a voicemail step.",
                "enum": [
                  "ring_then_voicemail",
                  "switchboard",
                  "support_queue",
                  "ai_agent",
                  "missed_call_sms"
                ],
                "type": "string"
              },
              "members": {
                "default": [],
                "description": "The people the flow rings in Telkit's browser phone, by their person id; none when left out.",
                "items": {
                  "maxLength": 64,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 20,
                "type": "array"
              },
              "phones": {
                "default": [],
                "description": "The phone numbers the flow rings; none when left out.",
                "items": {
                  "maxLength": 20,
                  "minLength": 1,
                  "type": "string"
                },
                "maxItems": 20,
                "type": "array"
              },
              "scheduleId": {
                "description": "`switchboard`: the schedule of its opening hours. Left out: the menu answers at all hours.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "smsText": {
                "description": "`missed_call_sms`: the text the caller gets. Left out: a standard text.",
                "maxLength": 1000,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "kind"
            ],
            "type": "object"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.create.output": {
        "$ref": "#/components/schemas/CallFlow"
      },
      "operation.tools.callFlows.decide.body": {
        "additionalProperties": false,
        "properties": {
          "branch": {
            "description": "The name of one of the step's `branches`; any other answers `call_flow_branch_unknown`.",
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "branch"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.decide.input": {
        "additionalProperties": false,
        "properties": {
          "branch": {
            "description": "The name of one of the step's `branches`; any other answers `call_flow_branch_unknown`.",
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The run's `id`, as the webhook step sent 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"
          }
        },
        "required": [
          "branch",
          "id"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.decide.output": {
        "$ref": "#/components/schemas/CallFlowDecision"
      },
      "operation.tools.callFlows.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call flow'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.tools.callFlows.get.output": {
        "$ref": "#/components/schemas/CallFlowDetail"
      },
      "operation.tools.callFlows.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.tools.callFlows.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallFlow"
            },
            "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.tools.callFlows.listVersions.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The call flow'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.tools.callFlows.listVersions.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallFlowVersion"
            },
            "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.tools.callFlows.publish.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call flow'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.tools.callFlows.publish.output": {
        "$ref": "#/components/schemas/CallFlowPublish"
      },
      "operation.tools.callFlows.rename.body": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "Your name for the flow.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.rename.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call flow'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 name for the flow.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.rename.output": {
        "$ref": "#/components/schemas/CallFlow"
      },
      "operation.tools.callFlows.saveDraft.body": {
        "additionalProperties": false,
        "properties": {
          "document": {
            "additionalProperties": false,
            "description": "The draft's steps, whole: it replaces the draft's document.",
            "properties": {
              "nodes": {
                "description": "The steps, each of one `kind` with that kind's own fields. Every branch must be able to reach a step that ends the flow: `forward`, `queue`, `voicemail`, `hangup` or `conference`.",
                "items": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "say",
                          "description": "`say`: says a text to the caller.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the text. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "text": {
                          "description": "The words said to the caller.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "text"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "attempts": {
                          "description": "How many times the prompt is played before the `timeout` or `invalid` branch is taken.",
                          "maximum": 5,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "invalid": {
                          "description": "The step after the last attempt when the answer matched no choice. Left out: the `timeout` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "keypad",
                          "description": "`keypad`: a menu the caller answers with the phone's keys.",
                          "type": "string"
                        },
                        "maxDigits": {
                          "description": "The most keys one answer takes.",
                          "maximum": 8,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "prompt": {
                          "description": "What the caller hears before choosing.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "routes": {
                          "description": "The menu's choices.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "digits": {
                                "description": "The keys that pick this choice: 1 to 8 of `0`–`9`, `*` and `#`.",
                                "pattern": "^[0-9*#]{1,8}$",
                                "type": "string"
                              },
                              "next": {
                                "description": "The step this choice leads to.",
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "words": {
                                "description": "A `spoken` menu: the words that pick this choice when the caller says one.",
                                "items": {
                                  "maxLength": 40,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 10,
                                "type": "array"
                              }
                            },
                            "required": [
                              "digits",
                              "next"
                            ],
                            "type": "object"
                          },
                          "maxItems": 12,
                          "type": "array"
                        },
                        "timeout": {
                          "description": "The step after the last attempt when the caller answered nothing. Left out: the `invalid` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "timeoutSeconds": {
                          "description": "How many seconds the menu waits for an answer.",
                          "maximum": 30,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "attempts",
                        "id",
                        "kind",
                        "maxDigits",
                        "prompt",
                        "routes",
                        "timeoutSeconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "attempts": {
                          "description": "How many times the prompt is played before the `timeout` or `invalid` branch is taken.",
                          "maximum": 5,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "invalid": {
                          "description": "The step after the last attempt when the answer matched no choice. Left out: the `timeout` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "spoken",
                          "description": "`spoken`: a menu the caller answers with the keys or by saying a choice's word.",
                          "type": "string"
                        },
                        "maxDigits": {
                          "description": "The most keys one answer takes.",
                          "maximum": 8,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "prompt": {
                          "description": "What the caller hears before choosing.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "routes": {
                          "description": "The menu's choices.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "digits": {
                                "description": "The keys that pick this choice: 1 to 8 of `0`–`9`, `*` and `#`.",
                                "pattern": "^[0-9*#]{1,8}$",
                                "type": "string"
                              },
                              "next": {
                                "description": "The step this choice leads to.",
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "words": {
                                "description": "A `spoken` menu: the words that pick this choice when the caller says one.",
                                "items": {
                                  "maxLength": 40,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 10,
                                "type": "array"
                              }
                            },
                            "required": [
                              "digits",
                              "next"
                            ],
                            "type": "object"
                          },
                          "maxItems": 12,
                          "type": "array"
                        },
                        "timeout": {
                          "description": "The step after the last attempt when the caller answered nothing. Left out: the `invalid` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "timeoutSeconds": {
                          "description": "How many seconds the menu waits for an answer.",
                          "maximum": 30,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "attempts",
                        "id",
                        "kind",
                        "maxDigits",
                        "prompt",
                        "routes",
                        "timeoutSeconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "failed": {
                          "description": "The step the call goes on at when the forward is refused. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "forward",
                          "description": "`forward`: sends the call on to a phone number.",
                          "type": "string"
                        },
                        "to": {
                          "description": "The number the call is forwarded to. A number you may not call is a `destination_refused` problem at publish.",
                          "maxLength": 20,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "to"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "hangup",
                          "description": "`hangup`: ends the call.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "closed": {
                          "description": "The step when it is closed, or the schedule is gone.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "hours",
                          "description": "`hours`: branches on whether a schedule is open now.",
                          "type": "string"
                        },
                        "open": {
                          "description": "The step when the schedule is open.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "scheduleId": {
                          "description": "The schedule to read, as `tools.callFlows.schedules.save` answers its `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": [
                        "closed",
                        "id",
                        "kind",
                        "open",
                        "scheduleId"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "ring",
                          "description": "`ring`: rings people and phones until one answers the call.",
                          "type": "string"
                        },
                        "members": {
                          "description": "The people who are rung in Telkit's browser phone, by their person id. A ring step needs a member or a phone.",
                          "items": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "noAnswer": {
                          "description": "The step the call goes on at when nobody answers. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "onHangup": {
                          "description": "An `sms` step that still texts the caller when the caller hangs up while it rings. Left out: nothing more happens.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "phones": {
                          "description": "The phone numbers that are rung.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "ringSeconds": {
                          "description": "How many seconds each ring lasts before it counts as not answered.",
                          "maximum": 120,
                          "minimum": 5,
                          "type": "integer"
                        },
                        "strategy": {
                          "description": "`all`: everyone at once; `in_turn`: one at a time in the listed order; `longest_idle`: one at a time, first the one who answered a call from this step longest ago.",
                          "enum": [
                            "all",
                            "in_turn",
                            "longest_idle"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "members",
                        "phones",
                        "ringSeconds",
                        "strategy"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "sms",
                          "description": "`sms`: texts the caller's own number, charged as an SMS of yours. A hidden number gets none, and one number is texted at most once within the flow's cooldown.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the SMS. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "text": {
                          "description": "The text of the SMS.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "text"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "branches": {
                          "additionalProperties": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "description": "The branches your app picks among: a name (lower-case letters, digits and `_`) and the step it leads to.",
                          "propertyNames": {
                            "pattern": "^[a-z0-9_]{1,32}$",
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "webhook",
                          "description": "`webhook`: your app picks the branch. The step sends `call.flow.handoff` and waits for `tools.callFlows.decide`.",
                          "type": "string"
                        },
                        "timeout": {
                          "description": "The step taken when your app has picked no branch in time.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "branches",
                        "id",
                        "kind",
                        "timeout"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "callback",
                          "description": "`callback`: leaves a callback request for the caller, which `tools.callFlows.callbacks.list` lists.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the request is left. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "announceEverySeconds": {
                          "description": "Tell the caller their place in the queue at this interval, in seconds; each telling is charged as speech of yours. Left out: never.",
                          "maximum": 600,
                          "minimum": 30,
                          "type": "integer"
                        },
                        "announcement": {
                          "description": "Said once to the caller before the hold tone.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "callback": {
                          "default": false,
                          "description": "`true`: a caller who waited `maxWaitSeconds` also leaves a callback request. `false` when left out.",
                          "type": "boolean"
                        },
                        "callbackKey": {
                          "description": "A key each place announcement offers: pressing it leaves a callback request that keeps the caller's place.",
                          "enum": [
                            "0",
                            "1",
                            "2",
                            "3",
                            "4",
                            "5",
                            "6",
                            "7",
                            "8",
                            "9",
                            "*",
                            "#"
                          ],
                          "type": "string"
                        },
                        "callbackOnAbandon": {
                          "description": "`true`: a caller who hangs up while waiting, and whose number is not hidden, becomes a callback request. Off when left out.",
                          "type": "boolean"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "queue",
                          "description": "`queue`: the caller waits on hold until a member or a phone answers. `tools.queues.listEntries` and `getStats` read what happened.",
                          "type": "string"
                        },
                        "maxWaitSeconds": {
                          "default": 300,
                          "description": "The longest a caller waits, in seconds; then the `overflow` step takes the call.",
                          "maximum": 3600,
                          "minimum": 30,
                          "type": "integer"
                        },
                        "members": {
                          "default": [],
                          "description": "The people who answer in Telkit's browser phone, by their person id: each is rung while set as available and not in a call. None when left out.",
                          "items": {
                            "maxLength": 200,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "overflow": {
                          "description": "The step that takes the call at `maxWaitSeconds` (a voicemail, a message, a callback). Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "phones": {
                          "default": [],
                          "description": "The phone numbers that are rung; none when left out.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "report": {
                          "additionalProperties": false,
                          "description": "An email with the queue's figures for the period before, sent once per period that had callers. Left out: none.",
                          "properties": {
                            "members": {
                              "description": "The people who get it, by their person id.",
                              "items": {
                                "maxLength": 200,
                                "minLength": 1,
                                "type": "string"
                              },
                              "maxItems": 10,
                              "minItems": 1,
                              "type": "array"
                            },
                            "period": {
                              "description": "How often it is sent: for the day or the week before.",
                              "enum": [
                                "daily",
                                "weekly"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "members",
                            "period"
                          ],
                          "type": "object"
                        },
                        "ringSeconds": {
                          "default": 30,
                          "description": "How many seconds one round of ringing lasts.",
                          "maximum": 120,
                          "minimum": 5,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "greeting": {
                          "description": "What the caller hears before the message. Left out: a standard greeting.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "greetingClip": {
                          "description": "A stored audio clip of yours, by its key, played instead of `greeting`.",
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "voicemail",
                          "description": "`voicemail`: the caller leaves a message, which `tools.inbox.voicemails.list` lists; the flow ends here.",
                          "type": "string"
                        },
                        "maxSeconds": {
                          "description": "The longest message, in seconds. Left out: the standard length.",
                          "maximum": 600,
                          "minimum": 10,
                          "type": "integer"
                        },
                        "notifyEmails": {
                          "description": "Email addresses told of each new message; the notice is free.",
                          "items": {
                            "format": "email",
                            "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"
                          },
                          "maxItems": 5,
                          "type": "array"
                        },
                        "notifySms": {
                          "description": "Phone numbers told of each new message by SMS, each charged as an SMS of yours.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 5,
                          "type": "array"
                        },
                        "transcribe": {
                          "description": "`true`: the message is transcribed after the call, charged as a transcript of yours.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "agentId": {
                          "description": "The agent, as `tools.agents.get` reads it; an archived one is refused.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "agent",
                          "description": "`agent`: an AI agent talks with the caller.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at when the agent's time in the call ends. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "agentId",
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "conference",
                          "description": "`conference`: the caller joins a meeting room and stays until leaving; the step has no branch.",
                          "type": "string"
                        },
                        "prompt": {
                          "description": "What the caller hears when the room asks for its PIN. Left out: a standard prompt. A wrong PIN asks again; the last wrong try ends the call.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "roomId": {
                          "description": "The meeting room, as `tools.meetingRooms.list` answers its `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",
                        "kind",
                        "roomId"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "maxItems": 500,
                "minItems": 1,
                "type": "array"
              },
              "start": {
                "description": "The `id` of the step a call starts at.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "nodes",
              "start"
            ],
            "type": "object"
          },
          "layout": {
            "additionalProperties": {
              "additionalProperties": false,
              "properties": {
                "x": {
                  "description": "The step's horizontal place in the editor.",
                  "type": "number"
                },
                "y": {
                  "description": "The step's vertical place in the editor.",
                  "type": "number"
                }
              },
              "required": [
                "x",
                "y"
              ],
              "type": "object"
            },
            "description": "Where each step sits in the dashboard's editor, by step id; `{}` when you draw none. No call reads it.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "revision": {
            "description": "The draft's `revision` you read: a draft saved since answers `call_flow_draft_conflict`.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "document",
          "layout",
          "revision"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.saveDraft.input": {
        "additionalProperties": false,
        "properties": {
          "document": {
            "additionalProperties": false,
            "description": "The draft's steps, whole: it replaces the draft's document.",
            "properties": {
              "nodes": {
                "description": "The steps, each of one `kind` with that kind's own fields. Every branch must be able to reach a step that ends the flow: `forward`, `queue`, `voicemail`, `hangup` or `conference`.",
                "items": {
                  "oneOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "say",
                          "description": "`say`: says a text to the caller.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the text. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "text": {
                          "description": "The words said to the caller.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "text"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "attempts": {
                          "description": "How many times the prompt is played before the `timeout` or `invalid` branch is taken.",
                          "maximum": 5,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "invalid": {
                          "description": "The step after the last attempt when the answer matched no choice. Left out: the `timeout` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "keypad",
                          "description": "`keypad`: a menu the caller answers with the phone's keys.",
                          "type": "string"
                        },
                        "maxDigits": {
                          "description": "The most keys one answer takes.",
                          "maximum": 8,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "prompt": {
                          "description": "What the caller hears before choosing.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "routes": {
                          "description": "The menu's choices.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "digits": {
                                "description": "The keys that pick this choice: 1 to 8 of `0`–`9`, `*` and `#`.",
                                "pattern": "^[0-9*#]{1,8}$",
                                "type": "string"
                              },
                              "next": {
                                "description": "The step this choice leads to.",
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "words": {
                                "description": "A `spoken` menu: the words that pick this choice when the caller says one.",
                                "items": {
                                  "maxLength": 40,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 10,
                                "type": "array"
                              }
                            },
                            "required": [
                              "digits",
                              "next"
                            ],
                            "type": "object"
                          },
                          "maxItems": 12,
                          "type": "array"
                        },
                        "timeout": {
                          "description": "The step after the last attempt when the caller answered nothing. Left out: the `invalid` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "timeoutSeconds": {
                          "description": "How many seconds the menu waits for an answer.",
                          "maximum": 30,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "attempts",
                        "id",
                        "kind",
                        "maxDigits",
                        "prompt",
                        "routes",
                        "timeoutSeconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "attempts": {
                          "description": "How many times the prompt is played before the `timeout` or `invalid` branch is taken.",
                          "maximum": 5,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "invalid": {
                          "description": "The step after the last attempt when the answer matched no choice. Left out: the `timeout` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "spoken",
                          "description": "`spoken`: a menu the caller answers with the keys or by saying a choice's word.",
                          "type": "string"
                        },
                        "maxDigits": {
                          "description": "The most keys one answer takes.",
                          "maximum": 8,
                          "minimum": 1,
                          "type": "integer"
                        },
                        "prompt": {
                          "description": "What the caller hears before choosing.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "routes": {
                          "description": "The menu's choices.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "digits": {
                                "description": "The keys that pick this choice: 1 to 8 of `0`–`9`, `*` and `#`.",
                                "pattern": "^[0-9*#]{1,8}$",
                                "type": "string"
                              },
                              "next": {
                                "description": "The step this choice leads to.",
                                "maxLength": 64,
                                "minLength": 1,
                                "type": "string"
                              },
                              "words": {
                                "description": "A `spoken` menu: the words that pick this choice when the caller says one.",
                                "items": {
                                  "maxLength": 40,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 10,
                                "type": "array"
                              }
                            },
                            "required": [
                              "digits",
                              "next"
                            ],
                            "type": "object"
                          },
                          "maxItems": 12,
                          "type": "array"
                        },
                        "timeout": {
                          "description": "The step after the last attempt when the caller answered nothing. Left out: the `invalid` step, else the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "timeoutSeconds": {
                          "description": "How many seconds the menu waits for an answer.",
                          "maximum": 30,
                          "minimum": 1,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "attempts",
                        "id",
                        "kind",
                        "maxDigits",
                        "prompt",
                        "routes",
                        "timeoutSeconds"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "failed": {
                          "description": "The step the call goes on at when the forward is refused. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "forward",
                          "description": "`forward`: sends the call on to a phone number.",
                          "type": "string"
                        },
                        "to": {
                          "description": "The number the call is forwarded to. A number you may not call is a `destination_refused` problem at publish.",
                          "maxLength": 20,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "to"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "hangup",
                          "description": "`hangup`: ends the call.",
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "closed": {
                          "description": "The step when it is closed, or the schedule is gone.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "hours",
                          "description": "`hours`: branches on whether a schedule is open now.",
                          "type": "string"
                        },
                        "open": {
                          "description": "The step when the schedule is open.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "scheduleId": {
                          "description": "The schedule to read, as `tools.callFlows.schedules.save` answers its `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": [
                        "closed",
                        "id",
                        "kind",
                        "open",
                        "scheduleId"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "ring",
                          "description": "`ring`: rings people and phones until one answers the call.",
                          "type": "string"
                        },
                        "members": {
                          "description": "The people who are rung in Telkit's browser phone, by their person id. A ring step needs a member or a phone.",
                          "items": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "noAnswer": {
                          "description": "The step the call goes on at when nobody answers. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "onHangup": {
                          "description": "An `sms` step that still texts the caller when the caller hangs up while it rings. Left out: nothing more happens.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "phones": {
                          "description": "The phone numbers that are rung.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "ringSeconds": {
                          "description": "How many seconds each ring lasts before it counts as not answered.",
                          "maximum": 120,
                          "minimum": 5,
                          "type": "integer"
                        },
                        "strategy": {
                          "description": "`all`: everyone at once; `in_turn`: one at a time in the listed order; `longest_idle`: one at a time, first the one who answered a call from this step longest ago.",
                          "enum": [
                            "all",
                            "in_turn",
                            "longest_idle"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "members",
                        "phones",
                        "ringSeconds",
                        "strategy"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "sms",
                          "description": "`sms`: texts the caller's own number, charged as an SMS of yours. A hidden number gets none, and one number is texted at most once within the flow's cooldown.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the SMS. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "text": {
                          "description": "The text of the SMS.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "text"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "branches": {
                          "additionalProperties": {
                            "maxLength": 64,
                            "minLength": 1,
                            "type": "string"
                          },
                          "description": "The branches your app picks among: a name (lower-case letters, digits and `_`) and the step it leads to.",
                          "propertyNames": {
                            "pattern": "^[a-z0-9_]{1,32}$",
                            "type": "string"
                          },
                          "type": "object"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "webhook",
                          "description": "`webhook`: your app picks the branch. The step sends `call.flow.handoff` and waits for `tools.callFlows.decide`.",
                          "type": "string"
                        },
                        "timeout": {
                          "description": "The step taken when your app has picked no branch in time.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "branches",
                        "id",
                        "kind",
                        "timeout"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "callback",
                          "description": "`callback`: leaves a callback request for the caller, which `tools.callFlows.callbacks.list` lists.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at after the request is left. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "announceEverySeconds": {
                          "description": "Tell the caller their place in the queue at this interval, in seconds; each telling is charged as speech of yours. Left out: never.",
                          "maximum": 600,
                          "minimum": 30,
                          "type": "integer"
                        },
                        "announcement": {
                          "description": "Said once to the caller before the hold tone.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "callback": {
                          "default": false,
                          "description": "`true`: a caller who waited `maxWaitSeconds` also leaves a callback request. `false` when left out.",
                          "type": "boolean"
                        },
                        "callbackKey": {
                          "description": "A key each place announcement offers: pressing it leaves a callback request that keeps the caller's place.",
                          "enum": [
                            "0",
                            "1",
                            "2",
                            "3",
                            "4",
                            "5",
                            "6",
                            "7",
                            "8",
                            "9",
                            "*",
                            "#"
                          ],
                          "type": "string"
                        },
                        "callbackOnAbandon": {
                          "description": "`true`: a caller who hangs up while waiting, and whose number is not hidden, becomes a callback request. Off when left out.",
                          "type": "boolean"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "queue",
                          "description": "`queue`: the caller waits on hold until a member or a phone answers. `tools.queues.listEntries` and `getStats` read what happened.",
                          "type": "string"
                        },
                        "maxWaitSeconds": {
                          "default": 300,
                          "description": "The longest a caller waits, in seconds; then the `overflow` step takes the call.",
                          "maximum": 3600,
                          "minimum": 30,
                          "type": "integer"
                        },
                        "members": {
                          "default": [],
                          "description": "The people who answer in Telkit's browser phone, by their person id: each is rung while set as available and not in a call. None when left out.",
                          "items": {
                            "maxLength": 200,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "overflow": {
                          "description": "The step that takes the call at `maxWaitSeconds` (a voicemail, a message, a callback). Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "phones": {
                          "default": [],
                          "description": "The phone numbers that are rung; none when left out.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 20,
                          "type": "array"
                        },
                        "report": {
                          "additionalProperties": false,
                          "description": "An email with the queue's figures for the period before, sent once per period that had callers. Left out: none.",
                          "properties": {
                            "members": {
                              "description": "The people who get it, by their person id.",
                              "items": {
                                "maxLength": 200,
                                "minLength": 1,
                                "type": "string"
                              },
                              "maxItems": 10,
                              "minItems": 1,
                              "type": "array"
                            },
                            "period": {
                              "description": "How often it is sent: for the day or the week before.",
                              "enum": [
                                "daily",
                                "weekly"
                              ],
                              "type": "string"
                            }
                          },
                          "required": [
                            "members",
                            "period"
                          ],
                          "type": "object"
                        },
                        "ringSeconds": {
                          "default": 30,
                          "description": "How many seconds one round of ringing lasts.",
                          "maximum": 120,
                          "minimum": 5,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "greeting": {
                          "description": "What the caller hears before the message. Left out: a standard greeting.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "greetingClip": {
                          "description": "A stored audio clip of yours, by its key, played instead of `greeting`.",
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "voicemail",
                          "description": "`voicemail`: the caller leaves a message, which `tools.inbox.voicemails.list` lists; the flow ends here.",
                          "type": "string"
                        },
                        "maxSeconds": {
                          "description": "The longest message, in seconds. Left out: the standard length.",
                          "maximum": 600,
                          "minimum": 10,
                          "type": "integer"
                        },
                        "notifyEmails": {
                          "description": "Email addresses told of each new message; the notice is free.",
                          "items": {
                            "format": "email",
                            "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"
                          },
                          "maxItems": 5,
                          "type": "array"
                        },
                        "notifySms": {
                          "description": "Phone numbers told of each new message by SMS, each charged as an SMS of yours.",
                          "items": {
                            "maxLength": 20,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 5,
                          "type": "array"
                        },
                        "transcribe": {
                          "description": "`true`: the message is transcribed after the call, charged as a transcript of yours.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "agentId": {
                          "description": "The agent, as `tools.agents.get` reads it; an archived one is refused.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "agent",
                          "description": "`agent`: an AI agent talks with the caller.",
                          "type": "string"
                        },
                        "next": {
                          "description": "The step the call goes on at when the agent's time in the call ends. Left out: the call ends.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "required": [
                        "agentId",
                        "id",
                        "kind"
                      ],
                      "type": "object"
                    },
                    {
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "description": "The step's id, unique in the document; a branch names the step it leads to by it.",
                          "maxLength": 64,
                          "minLength": 1,
                          "type": "string"
                        },
                        "kind": {
                          "const": "conference",
                          "description": "`conference`: the caller joins a meeting room and stays until leaving; the step has no branch.",
                          "type": "string"
                        },
                        "prompt": {
                          "description": "What the caller hears when the room asks for its PIN. Left out: a standard prompt. A wrong PIN asks again; the last wrong try ends the call.",
                          "maxLength": 1000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "roomId": {
                          "description": "The meeting room, as `tools.meetingRooms.list` answers its `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",
                        "kind",
                        "roomId"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "maxItems": 500,
                "minItems": 1,
                "type": "array"
              },
              "start": {
                "description": "The `id` of the step a call starts at.",
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "nodes",
              "start"
            ],
            "type": "object"
          },
          "id": {
            "description": "The call flow'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"
          },
          "layout": {
            "additionalProperties": {
              "additionalProperties": false,
              "properties": {
                "x": {
                  "description": "The step's horizontal place in the editor.",
                  "type": "number"
                },
                "y": {
                  "description": "The step's vertical place in the editor.",
                  "type": "number"
                }
              },
              "required": [
                "x",
                "y"
              ],
              "type": "object"
            },
            "description": "Where each step sits in the dashboard's editor, by step id; `{}` when you draw none. No call reads it.",
            "propertyNames": {
              "type": "string"
            },
            "type": "object"
          },
          "revision": {
            "description": "The draft's `revision` you read: a draft saved since answers `call_flow_draft_conflict`.",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "document",
          "id",
          "layout",
          "revision"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.saveDraft.output": {
        "$ref": "#/components/schemas/CallFlowDraftSaved"
      },
      "operation.tools.callFlows.schedules.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.tools.callFlows.schedules.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallFlowSchedule"
            },
            "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.tools.callFlows.schedules.save.input": {
        "additionalProperties": false,
        "properties": {
          "closedDays": {
            "description": "Dates it is closed all day, each `YYYY-MM-DD`.",
            "items": {
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
              "type": "string"
            },
            "maxItems": 366,
            "type": "array"
          },
          "id": {
            "description": "The schedule to replace; left out: a new one.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 name for the schedule.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "norwegianHolidays": {
            "description": "`true`: closed on Norway's public holidays.",
            "type": "boolean"
          },
          "timeZone": {
            "default": "Europe/Oslo",
            "description": "The IANA time zone the days and times are read in; `Europe/Oslo` when left out. A zone that is not known reads as closed.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "week": {
            "description": "The opening windows of each weekday: seven lists, Monday first; an empty list is a closed day.",
            "items": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "from": {
                    "description": "When the window opens: local time, `HH:MM` (24-hour).",
                    "pattern": "^([01][0-9]|2[0-4]):[0-5][0-9]$",
                    "type": "string"
                  },
                  "to": {
                    "description": "When it closes (not included), `HH:MM`; `24:00` is the end of the day.",
                    "pattern": "^([01][0-9]|2[0-4]):[0-5][0-9]$",
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "type": "object"
              },
              "maxItems": 4,
              "type": "array"
            },
            "maxItems": 7,
            "minItems": 7,
            "type": "array"
          }
        },
        "required": [
          "closedDays",
          "name",
          "norwegianHolidays",
          "week"
        ],
        "type": "object"
      },
      "operation.tools.callFlows.schedules.save.output": {
        "$ref": "#/components/schemas/CallFlowSchedule"
      },
      "operation.tools.callLists.archive.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call list'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.tools.callLists.archive.output": {
        "$ref": "#/components/schemas/CallList"
      },
      "operation.tools.callLists.create.input": {
        "additionalProperties": false,
        "properties": {
          "entries": {
            "description": "The numbers to call, in the order they are called.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "Who the number belongs to, for the one who calls.",
                  "maxLength": 80,
                  "minLength": 1,
                  "type": "string"
                },
                "phone": {
                  "description": "The number to call, as typed: `+47 912 34 567`.",
                  "maxLength": 40,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "phone"
              ],
              "type": "object"
            },
            "maxItems": 500,
            "type": "array"
          },
          "from": {
            "description": "The number the list calls from, or its `id`. Left out: the default number for calls of the business `identity` names, or of your own company when the call is placed.",
            "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"
          },
          "name": {
            "description": "Your name for the list.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "purpose": {
            "description": "What the list is for. Left out: telephone marketing for a seller's list, other calls otherwise.",
            "enum": [
              "consumer_marketing",
              "other_calls"
            ],
            "type": "string"
          },
          "seller": {
            "description": "A seller's list: it calls only from the number assigned to this seller, Norway only, with the seller in the browser.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "entries",
          "name"
        ],
        "type": "object"
      },
      "operation.tools.callLists.create.output": {
        "$ref": "#/components/schemas/CallList"
      },
      "operation.tools.callLists.doNotCall.add.input": {
        "additionalProperties": false,
        "properties": {
          "phone": {
            "description": "The number, for example `+4791234567`.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "phone"
        ],
        "type": "object"
      },
      "operation.tools.callLists.doNotCall.add.output": {
        "additionalProperties": false,
        "properties": {
          "blocked": {
            "description": "`true`: it is on the do-not-call list; `false`: it is not.",
            "type": "boolean"
          },
          "phone": {
            "description": "The number, E.164.",
            "type": "string"
          }
        },
        "required": [
          "blocked",
          "phone"
        ],
        "type": "object"
      },
      "operation.tools.callLists.doNotCall.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.tools.callLists.doNotCall.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "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"
                },
                "phone": {
                  "description": "The number, E.164.",
                  "type": "string"
                }
              },
              "required": [
                "createdAt",
                "phone"
              ],
              "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.tools.callLists.doNotCall.remove.input": {
        "additionalProperties": false,
        "properties": {
          "phone": {
            "description": "The number, for example `+4791234567`.",
            "maxLength": 40,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "phone"
        ],
        "type": "object"
      },
      "operation.tools.callLists.doNotCall.remove.output": {
        "additionalProperties": false,
        "properties": {
          "blocked": {
            "description": "`true`: it is on the do-not-call list; `false`: it is not.",
            "type": "boolean"
          },
          "phone": {
            "description": "The number, E.164.",
            "type": "string"
          }
        },
        "required": [
          "blocked",
          "phone"
        ],
        "type": "object"
      },
      "operation.tools.callLists.entries.add.body": {
        "additionalProperties": false,
        "properties": {
          "entries": {
            "description": "The numbers to call, in the order they are called.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "Who the number belongs to, for the one who calls.",
                  "maxLength": 80,
                  "minLength": 1,
                  "type": "string"
                },
                "phone": {
                  "description": "The number to call, as typed: `+47 912 34 567`.",
                  "maxLength": 40,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "phone"
              ],
              "type": "object"
            },
            "maxItems": 500,
            "type": "array"
          }
        },
        "required": [
          "entries"
        ],
        "type": "object"
      },
      "operation.tools.callLists.entries.add.input": {
        "additionalProperties": false,
        "properties": {
          "entries": {
            "description": "The numbers to call, in the order they are called.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "Who the number belongs to, for the one who calls.",
                  "maxLength": 80,
                  "minLength": 1,
                  "type": "string"
                },
                "phone": {
                  "description": "The number to call, as typed: `+47 912 34 567`.",
                  "maxLength": 40,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "phone"
              ],
              "type": "object"
            },
            "maxItems": 500,
            "type": "array"
          },
          "id": {
            "description": "The call list'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": [
          "entries",
          "id"
        ],
        "type": "object"
      },
      "operation.tools.callLists.entries.add.output": {
        "$ref": "#/components/schemas/CallList"
      },
      "operation.tools.callLists.entries.setResult.body": {
        "additionalProperties": false,
        "properties": {
          "note": {
            "description": "Your own note on the call.",
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "outcome": {
            "description": "How the call went: `reached`, `no_answer`, `busy`, `call_back`, `not_interested` or `wrong_number`.",
            "enum": [
              "reached",
              "no_answer",
              "busy",
              "call_back",
              "not_interested",
              "wrong_number"
            ],
            "type": "string"
          }
        },
        "required": [
          "outcome"
        ],
        "type": "object"
      },
      "operation.tools.callLists.entries.setResult.input": {
        "additionalProperties": false,
        "properties": {
          "entryId": {
            "description": "The entry's `id`, as `next` answered 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"
          },
          "id": {
            "description": "The call list'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": "Your own note on the call.",
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "outcome": {
            "description": "How the call went: `reached`, `no_answer`, `busy`, `call_back`, `not_interested` or `wrong_number`.",
            "enum": [
              "reached",
              "no_answer",
              "busy",
              "call_back",
              "not_interested",
              "wrong_number"
            ],
            "type": "string"
          }
        },
        "required": [
          "entryId",
          "id",
          "outcome"
        ],
        "type": "object"
      },
      "operation.tools.callLists.entries.setResult.output": {
        "additionalProperties": false,
        "properties": {
          "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"
          },
          "outcome": {
            "description": "The result, as written.",
            "enum": [
              "reached",
              "no_answer",
              "busy",
              "call_back",
              "not_interested",
              "wrong_number"
            ],
            "type": "string"
          },
          "state": {
            "description": "`pending` (waiting), `calling` (being called: one entry per list at a time), `done` (called), `skipped` (passed by, see `skipReason`) or `failed` (the call's start was refused, see `errorCode`).",
            "type": "string"
          }
        },
        "required": [
          "id",
          "outcome",
          "state"
        ],
        "type": "object"
      },
      "operation.tools.callLists.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call list'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.tools.callLists.get.output": {
        "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"
          },
          "entries": {
            "description": "The list's numbers in list order, the first 100.",
            "items": {
              "additionalProperties": false,
              "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"
                    }
                  ],
                  "description": "The call placed to the number, as `calls.get` reads it; `null` without one."
                },
                "errorCode": {
                  "description": "The error code the call's start was refused with; `null` unless `failed`.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "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"
                },
                "name": {
                  "description": "Who it belongs to; `null` when not given.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "note": {
                  "description": "The note written with the result; `null` for none.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "outcome": {
                  "description": "The result written after the call: `reached`, `no_answer`, `busy`, `call_back`, `not_interested` or `wrong_number`; `null` before that.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "phone": {
                  "description": "The number to call, E.164.",
                  "type": "string"
                },
                "position": {
                  "description": "Its place on the list, from 1.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                },
                "skipReason": {
                  "description": "Why a skipped entry was passed by; `null` for every other state.",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "state": {
                  "description": "`pending` (waiting), `calling` (being called: one entry per list at a time), `done` (called), `skipped` (passed by, see `skipReason`) or `failed` (the call's start was refused, see `errorCode`).",
                  "type": "string"
                }
              },
              "required": [
                "callId",
                "errorCode",
                "id",
                "name",
                "note",
                "outcome",
                "phone",
                "position",
                "skipReason",
                "state"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "fromSenderId": {
            "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 number the list calls from; `null`: the default number for calls."
          },
          "id": {
            "description": "The call list'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 the list's calls are for: the one its number stands on. `null` for your own company."
          },
          "name": {
            "description": "Your name for the list.",
            "type": "string"
          },
          "pausedAt": {
            "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 paused, ISO 8601 in UTC; `null` when it is not paused."
          },
          "purpose": {
            "description": "`consumer_marketing`: telephone marketing to consumers, which needs a screening statement and is called in the lawful hours only; `other_calls`: every other call.",
            "enum": [
              "consumer_marketing",
              "other_calls"
            ],
            "type": "string"
          },
          "seller": {
            "description": "The seller who works the list; `null`: not a seller's list.",
            "type": [
              "string",
              "null"
            ]
          },
          "size": {
            "description": "How many numbers the list holds.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "state": {
            "description": "`active`, or `archived`.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "entries",
          "fromSenderId",
          "id",
          "identity",
          "name",
          "pausedAt",
          "purpose",
          "seller",
          "size",
          "state"
        ],
        "type": "object"
      },
      "operation.tools.callLists.getScreening.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call list'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.tools.callLists.getScreening.output": {
        "$ref": "#/components/schemas/CallListScreening"
      },
      "operation.tools.callLists.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.tools.callLists.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallList"
            },
            "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.tools.callLists.next.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call list'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.tools.callLists.next.output": {
        "additionalProperties": false,
        "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"
              }
            ],
            "description": "The call that was started, as `calls.get` reads it; `null` when none was (the list is done, or the start was refused)."
          },
          "done": {
            "description": "`true`: no number is left to call.",
            "type": "boolean"
          },
          "entryId": {
            "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 entry being called; `null` when no call was placed."
          },
          "phone": {
            "description": "The number being called, E.164; `null` when no call was placed.",
            "type": [
              "string",
              "null"
            ]
          },
          "refusedCode": {
            "description": "The code the call's start refused with; the entry is then `failed`.",
            "type": [
              "string",
              "null"
            ]
          },
          "seller": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "expiresAt": {
                    "description": "When the token 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"
                  },
                  "identity": {
                    "description": "The name the participant has in the call's room.",
                    "type": "string"
                  },
                  "kind": {
                    "description": "What the participant is: `app` for the seller in the browser.",
                    "enum": [
                      "phone",
                      "app",
                      "bot"
                    ],
                    "type": "string"
                  },
                  "participantId": {
                    "description": "The seller's participant on 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"
                  },
                  "token": {
                    "description": "The join token; `null` when none could be made.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "url": {
                    "description": "The address to connect to; `null` when no token could be made.",
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "expiresAt",
                  "identity",
                  "kind",
                  "participantId",
                  "token",
                  "url"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "A seller's list: the seller's browser connection to the call (its join token)."
          },
          "skipped": {
            "description": "Numbers passed by as on the do-not-call list.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "callId",
          "done",
          "entryId",
          "phone",
          "refusedCode",
          "seller",
          "skipped"
        ],
        "type": "object"
      },
      "operation.tools.callLists.pause.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call list'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.tools.callLists.pause.output": {
        "$ref": "#/components/schemas/CallList"
      },
      "operation.tools.callLists.resume.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call list'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.tools.callLists.resume.output": {
        "$ref": "#/components/schemas/CallList"
      },
      "operation.tools.callLists.sellers.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.tools.callLists.sellers.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "assignedTo": {
                  "description": "The seller the number belongs to.",
                  "type": "string"
                },
                "id": {
                  "description": "The 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"
                },
                "number": {
                  "description": "The phone number, E.164.",
                  "type": "string"
                }
              },
              "required": [
                "assignedTo",
                "id",
                "number"
              ],
              "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.tools.callLists.sessions.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"
          },
          "seller": {
            "description": "Only this seller's lists; every seller's when left out.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.tools.callLists.sessions.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CallList"
            },
            "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.tools.callLists.setPurpose.body": {
        "additionalProperties": false,
        "properties": {
          "purpose": {
            "description": "`consumer_marketing`: telephone marketing to consumers, which needs a screening statement and is called in the lawful hours only; `other_calls`: every other call.",
            "enum": [
              "consumer_marketing",
              "other_calls"
            ],
            "type": "string"
          }
        },
        "required": [
          "purpose"
        ],
        "type": "object"
      },
      "operation.tools.callLists.setPurpose.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The call list'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"
          },
          "purpose": {
            "description": "`consumer_marketing`: telephone marketing to consumers, which needs a screening statement and is called in the lawful hours only; `other_calls`: every other call.",
            "enum": [
              "consumer_marketing",
              "other_calls"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "purpose"
        ],
        "type": "object"
      },
      "operation.tools.callLists.setPurpose.output": {
        "$ref": "#/components/schemas/CallListScreening"
      },
      "operation.tools.callLists.setScreening.body": {
        "additionalProperties": false,
        "properties": {
          "basis": {
            "description": "Why the list may be called: `screened` (you checked it against Reservasjonsregisteret on `screenedOn`), `express_request` (every person asked to be called) or `existing_relationship` (every person is an existing customer or donor).",
            "enum": [
              "screened",
              "express_request",
              "existing_relationship"
            ],
            "type": "string"
          },
          "screenedOn": {
            "description": "The day the list was checked against Reservasjonsregisteret (`YYYY-MM-DD`, Norway); only with `screened`.",
            "format": "date",
            "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])))$",
            "type": "string"
          }
        },
        "required": [
          "basis"
        ],
        "type": "object"
      },
      "operation.tools.callLists.setScreening.input": {
        "additionalProperties": false,
        "properties": {
          "basis": {
            "description": "Why the list may be called: `screened` (you checked it against Reservasjonsregisteret on `screenedOn`), `express_request` (every person asked to be called) or `existing_relationship` (every person is an existing customer or donor).",
            "enum": [
              "screened",
              "express_request",
              "existing_relationship"
            ],
            "type": "string"
          },
          "id": {
            "description": "The call list'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"
          },
          "screenedOn": {
            "description": "The day the list was checked against Reservasjonsregisteret (`YYYY-MM-DD`, Norway); only with `screened`.",
            "format": "date",
            "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])))$",
            "type": "string"
          }
        },
        "required": [
          "basis",
          "id"
        ],
        "type": "object"
      },
      "operation.tools.callLists.setScreening.output": {
        "$ref": "#/components/schemas/CallListScreening"
      },
      "operation.tools.consents.list.input": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "A number or an email address.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "channel": {
            "description": "Only the records on this channel (`sms` or `email`); both when left out.",
            "enum": [
              "sms",
              "email"
            ],
            "type": "string"
          },
          "contactId": {
            "description": "A contact'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"
          }
        },
        "type": "object"
      },
      "operation.tools.consents.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Consent"
            },
            "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.tools.consents.record.input": {
        "additionalProperties": false,
        "properties": {
          "consents": {
            "description": "The consents to record: all are stored, or none.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "address": {
                  "description": "Who gave it: a phone number or an email address. A number is stored in E.164, an address in lower case.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "channel": {
                  "description": "The channel the consent covers: sms or email.",
                  "enum": [
                    "sms",
                    "email"
                  ],
                  "type": "string"
                },
                "contactId": {
                  "description": "The contact the consent was given for. Left out: the one contact with this number or address, when exactly one has 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"
                },
                "evidence": {
                  "description": "Your own record of the consent: the form and its wording or version, a reference.",
                  "maxLength": 2000,
                  "minLength": 1,
                  "type": "string"
                },
                "givenAt": {
                  "description": "When the recipient gave it, ISO 8601; an instant in the future answers `consent_given_in_future`.",
                  "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"
                },
                "source": {
                  "description": "How the recipient gave it: `web_form`, `checkout`, `paper_form`, `in_person`, `phone_call`, `message_reply` or `other` (say how in `evidence`).",
                  "enum": [
                    "web_form",
                    "checkout",
                    "paper_form",
                    "in_person",
                    "phone_call",
                    "message_reply",
                    "other"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "address",
                "channel",
                "givenAt",
                "source"
              ],
              "type": "object"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "consents"
        ],
        "type": "object"
      },
      "operation.tools.consents.record.output": {
        "additionalProperties": false,
        "properties": {
          "consents": {
            "description": "The records that were made.",
            "items": {
              "$ref": "#/components/schemas/Consent"
            },
            "type": "array"
          }
        },
        "required": [
          "consents"
        ],
        "type": "object"
      },
      "operation.tools.consents.withdraw.input": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "The phone number or the email address whose consent is withdrawn.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "channel": {
            "description": "The channel the consent covers: `sms` or `email`.",
            "enum": [
              "sms",
              "email"
            ],
            "type": "string"
          }
        },
        "required": [
          "address",
          "channel"
        ],
        "type": "object"
      },
      "operation.tools.consents.withdraw.output": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "description": "The address as stored: a number in E.164, an email address in lower case.",
            "type": "string"
          },
          "channel": {
            "description": "The channel, as given.",
            "enum": [
              "sms",
              "email"
            ],
            "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": "The record withdrawn; `null` when none was current."
          },
          "withdrawn": {
            "description": "`true` when a current consent was withdrawn; `false` when there was none.",
            "type": "boolean"
          }
        },
        "required": [
          "address",
          "channel",
          "id",
          "withdrawn"
        ],
        "type": "object"
      },
      "operation.tools.contacts.create.input": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The country as two letters (`NO`); anything else answers `contact_fields_invalid`.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "description": "An email address; it is kept in lower case.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "externalId": {
            "description": "Your own id of the contact (a member or customer number); one contact only can have it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "description": "The contact's name.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "note": {
            "description": "Your own note on the contact.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "phone": {
            "description": "A phone number; it is kept in E.164, and one contact only can have it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "postalCode": {
            "description": "The postal code.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "postalName": {
            "description": "The postal town.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "street": {
            "description": "The street address.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.contacts.create.output": {
        "$ref": "#/components/schemas/Contact"
      },
      "operation.tools.contacts.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The contact'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.tools.contacts.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "const": true,
            "description": "Always `true`.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the contact 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.tools.contacts.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The contact'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.tools.contacts.get.output": {
        "$ref": "#/components/schemas/Contact"
      },
      "operation.tools.contacts.groups.addMembers.body": {
        "additionalProperties": false,
        "properties": {
          "contactIds": {
            "description": "The contacts' ids.",
            "items": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "contactIds"
        ],
        "type": "object"
      },
      "operation.tools.contacts.groups.addMembers.input": {
        "additionalProperties": false,
        "properties": {
          "contactIds": {
            "description": "The contacts' ids.",
            "items": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          },
          "id": {
            "description": "The group'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": [
          "contactIds",
          "id"
        ],
        "type": "object"
      },
      "operation.tools.contacts.groups.addMembers.output": {
        "additionalProperties": false,
        "properties": {
          "added": {
            "description": "Contacts put in; one already there counts none.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "added"
        ],
        "type": "object"
      },
      "operation.tools.contacts.groups.create.input": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "The group's name, used once (`contact_group_name_taken`).",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.contacts.groups.create.output": {
        "$ref": "#/components/schemas/ContactGroup"
      },
      "operation.tools.contacts.groups.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The group'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.tools.contacts.groups.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "const": true,
            "description": "Always `true`.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the group 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.tools.contacts.groups.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.tools.contacts.groups.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/ContactGroup"
            },
            "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.tools.contacts.groups.removeMembers.body": {
        "additionalProperties": false,
        "properties": {
          "contactIds": {
            "description": "The contacts' ids.",
            "items": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "contactIds"
        ],
        "type": "object"
      },
      "operation.tools.contacts.groups.removeMembers.input": {
        "additionalProperties": false,
        "properties": {
          "contactIds": {
            "description": "The contacts' ids.",
            "items": {
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 1,
            "type": "array"
          },
          "id": {
            "description": "The group'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": [
          "contactIds",
          "id"
        ],
        "type": "object"
      },
      "operation.tools.contacts.groups.removeMembers.output": {
        "additionalProperties": false,
        "properties": {
          "removed": {
            "description": "Contacts taken out; one that was not in the group counts none.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "removed"
        ],
        "type": "object"
      },
      "operation.tools.contacts.imports.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The import'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.tools.contacts.imports.get.output": {
        "$ref": "#/components/schemas/ContactImport"
      },
      "operation.tools.contacts.imports.preview.input": {
        "additionalProperties": false,
        "properties": {
          "columns": {
            "description": "The field each column fills, in order; left out: read from the header line.",
            "items": {
              "enum": [
                "name",
                "phone",
                "email",
                "street",
                "postalCode",
                "postalName",
                "country",
                "note",
                "externalId",
                "consentChannel",
                "consentSource",
                "consentGivenAt",
                "consentEvidence",
                "skip"
              ],
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "csv": {
            "description": "The file's text: a header line, then one contact a line.",
            "maxLength": 1000000,
            "minLength": 1,
            "type": "string"
          },
          "existing": {
            "description": "What a row that finds a contact you have does: `keep` (the default) leaves the contact as it is, `fill` writes the row's non-empty cells into it.",
            "enum": [
              "fill",
              "keep"
            ],
            "type": "string"
          }
        },
        "required": [
          "csv"
        ],
        "type": "object"
      },
      "operation.tools.contacts.imports.preview.output": {
        "additionalProperties": false,
        "properties": {
          "columns": {
            "description": "The file's columns, in order.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "field": {
                  "anyOf": [
                    {
                      "enum": [
                        "name",
                        "phone",
                        "email",
                        "street",
                        "postalCode",
                        "postalName",
                        "country",
                        "note",
                        "externalId",
                        "consentChannel",
                        "consentSource",
                        "consentGivenAt",
                        "consentEvidence",
                        "skip"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The field it would fill (`skip`: the column is not read); `null` when none is known for it."
                },
                "header": {
                  "description": "The column's header.",
                  "type": "string"
                }
              },
              "required": [
                "field",
                "header"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "existing": {
            "description": "The choice the preview used: yours, or `keep`.",
            "enum": [
              "fill",
              "keep"
            ],
            "type": "string"
          },
          "failure": {
            "anyOf": [
              {
                "enum": [
                  "unreadable",
                  "no_rows",
                  "too_many_rows",
                  "name_column_missing",
                  "columns_mismatch"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the whole file was refused: `unreadable`, `no_rows`, `too_many_rows`, `name_column_missing` or `columns_mismatch`; `null` when it was read."
          },
          "merged": {
            "description": "Rows that would find a contact you have.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "problems": {
            "description": "The first refused rows, by row number from 0.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "problem": {
                  "description": "Why it was refused, as a code (`name_missing`, `phone_invalid`, `phone_taken`).",
                  "type": "string"
                },
                "row": {
                  "description": "The row's number among the data rows, from 0.",
                  "maximum": 9007199254740991,
                  "minimum": -9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "problem",
                "row"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "refused": {
            "description": "Rows that would not be stored.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "rows": {
            "description": "The file's data rows.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          },
          "stored": {
            "description": "Rows that would become new contacts.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
          }
        },
        "required": [
          "columns",
          "existing",
          "failure",
          "merged",
          "problems",
          "refused",
          "rows",
          "stored"
        ],
        "type": "object"
      },
      "operation.tools.contacts.imports.start.input": {
        "additionalProperties": false,
        "properties": {
          "columns": {
            "description": "The field each column fills, in order; left out: read from the header line.",
            "items": {
              "enum": [
                "name",
                "phone",
                "email",
                "street",
                "postalCode",
                "postalName",
                "country",
                "note",
                "externalId",
                "consentChannel",
                "consentSource",
                "consentGivenAt",
                "consentEvidence",
                "skip"
              ],
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "csv": {
            "description": "The file's text: a header line, then one contact a line.",
            "maxLength": 1000000,
            "minLength": 1,
            "type": "string"
          },
          "existing": {
            "description": "What a row that finds a contact you have does: `keep` (the default) leaves the contact as it is, `fill` writes the row's non-empty cells into it.",
            "enum": [
              "fill",
              "keep"
            ],
            "type": "string"
          },
          "groupId": {
            "description": "A group the imported contacts 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"
          }
        },
        "required": [
          "csv"
        ],
        "type": "object"
      },
      "operation.tools.contacts.imports.start.output": {
        "$ref": "#/components/schemas/ContactImport"
      },
      "operation.tools.contacts.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "groupId": {
            "description": "Only this group's members.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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"
          },
          "search": {
            "description": "Part of the name, the number or the address.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.tools.contacts.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Contact"
            },
            "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.tools.contacts.sync.input": {
        "additionalProperties": false,
        "properties": {
          "contacts": {
            "description": "The contacts, each the whole contact.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "country": {
                  "description": "The country as two letters (`NO`); anything else answers `contact_fields_invalid`.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "email": {
                  "description": "An email address; it is kept in lower case.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "externalId": {
                  "description": "Your own id of the contact: the contact that has it is set, else one is made.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "name": {
                  "description": "The contact's name.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "note": {
                  "description": "Your own note on the contact.",
                  "maxLength": 2000,
                  "minLength": 1,
                  "type": "string"
                },
                "phone": {
                  "description": "A phone number; it is kept in E.164, and one contact only can have it.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "postalCode": {
                  "description": "The postal code.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "postalName": {
                  "description": "The postal town.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "street": {
                  "description": "The street address.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                }
              },
              "required": [
                "externalId",
                "name"
              ],
              "type": "object"
            },
            "maxItems": 100,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "contacts"
        ],
        "type": "object"
      },
      "operation.tools.contacts.sync.output": {
        "additionalProperties": false,
        "properties": {
          "results": {
            "description": "One answer per item, in the order sent.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "externalId": {
                  "description": "The item's `externalId`.",
                  "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": "The contact's `id`; `null` when refused."
                },
                "outcome": {
                  "description": "`created`, `updated` or `refused`.",
                  "enum": [
                    "created",
                    "updated",
                    "refused"
                  ],
                  "type": "string"
                },
                "problem": {
                  "anyOf": [
                    {
                      "enum": [
                        "name_missing",
                        "phone_invalid",
                        "email_invalid",
                        "country_invalid",
                        "cell_too_long",
                        "phone_repeated",
                        "external_id_repeated",
                        "email_repeated",
                        "phone_taken",
                        "email_ambiguous",
                        "contact_removed",
                        "consent_invalid"
                      ],
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Why it was refused, as a code (`phone_taken`); `null` otherwise."
                }
              },
              "required": [
                "externalId",
                "id",
                "outcome",
                "problem"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "operation.tools.contacts.update.body": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The country as two letters (`NO`); anything else answers `contact_fields_invalid`.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "description": "An email address; it is kept in lower case.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "externalId": {
            "description": "Your own id of the contact (a member or customer number); one contact only can have it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "description": "The contact's name.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "note": {
            "description": "Your own note on the contact.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "phone": {
            "description": "A phone number; it is kept in E.164, and one contact only can have it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "postalCode": {
            "description": "The postal code.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "postalName": {
            "description": "The postal town.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "street": {
            "description": "The street address.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.contacts.update.input": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "description": "The country as two letters (`NO`); anything else answers `contact_fields_invalid`.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "description": "An email address; it is kept in lower case.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "externalId": {
            "description": "Your own id of the contact (a member or customer number); one contact only can have it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The contact'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 contact's name.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "note": {
            "description": "Your own note on the contact.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "phone": {
            "description": "A phone number; it is kept in E.164, and one contact only can have it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "postalCode": {
            "description": "The postal code.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "postalName": {
            "description": "The postal town.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "street": {
            "description": "The street address.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "operation.tools.contacts.update.output": {
        "$ref": "#/components/schemas/Contact"
      },
      "operation.tools.emailCampaigns.cancel.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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.tools.emailCampaigns.cancel.output": {
        "$ref": "#/components/schemas/Campaign"
      },
      "operation.tools.emailCampaigns.create.input": {
        "additionalProperties": false,
        "properties": {
          "allContacts": {
            "description": "true: every contact of yours with a mobile number (SMS) or an email address (email) receives it, each filling its own `{{name}}`, `{{phone}}` and `{{email}}`; `recipients` and `groupId` are left out then.",
            "type": "boolean"
          },
          "consentRequired": {
            "description": "`true`: send only to recipients with a current consent record for the campaign's channel (`tools.consents.record`); the others are skipped with `consent_missing`. Left out or `false`: no consent is asked for.",
            "type": "boolean"
          },
          "draft": {
            "description": "`true`: store it as a draft with its quote; `start` sends it.",
            "type": "boolean"
          },
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`, on a domain of yours. Left out: your default sender for email.",
            "maxLength": 254,
            "minLength": 1,
            "type": "string"
          },
          "groupId": {
            "description": "A contact group whose contacts receive 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"
          },
          "html": {
            "description": "The HTML body, with places as the subject.",
            "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 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"
          },
          "name": {
            "description": "Your name for the campaign.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "recipients": {
            "description": "The recipients; or name a contact group with `groupId`, or every contact with `allContacts`.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "The recipient's name: it fills the place `{{name}}` unless its `variables` name one.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "to": {
                  "description": "A phone number (SMS) or an email address (email).",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "variables": {
                  "additionalProperties": {
                    "maxLength": 2000,
                    "type": "string"
                  },
                  "description": "This recipient's values of the template's places; they win over `variables`.",
                  "propertyNames": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "required": [
                "to"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "reference": {
            "description": "Your own id for the campaign: `getByReference` finds it, and a second create with it answers `campaign_reference_taken`.",
            "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"
          },
          "startAt": {
            "description": "Start at this instant (ISO 8601) instead of now; a past instant is refused.",
            "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"
          },
          "subject": {
            "description": "The subject; a place such as `{{name}}` is filled per recipient.",
            "maxLength": 998,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A template to send instead of the 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, with places as the subject.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "Values of the template's places every recipient shares.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.emailCampaigns.create.output": {
        "$ref": "#/components/schemas/CreatedCampaign"
      },
      "operation.tools.emailCampaigns.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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.tools.emailCampaigns.get.output": {
        "$ref": "#/components/schemas/CampaignDetail"
      },
      "operation.tools.emailCampaigns.getByReference.input": {
        "additionalProperties": false,
        "properties": {
          "reference": {
            "description": "The `reference` its create named.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "reference"
        ],
        "type": "object"
      },
      "operation.tools.emailCampaigns.getByReference.output": {
        "$ref": "#/components/schemas/CampaignDetail"
      },
      "operation.tools.emailCampaigns.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.tools.emailCampaigns.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            },
            "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.tools.emailCampaigns.listRecipients.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The campaign'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.tools.emailCampaigns.listRecipients.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CampaignRecipient"
            },
            "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.tools.emailCampaigns.quote.input": {
        "additionalProperties": false,
        "properties": {
          "allContacts": {
            "description": "true: every contact of yours with a mobile number (SMS) or an email address (email) receives it, each filling its own `{{name}}`, `{{phone}}` and `{{email}}`; `recipients` and `groupId` are left out then.",
            "type": "boolean"
          },
          "consentRequired": {
            "description": "`true`: send only to recipients with a current consent record for the campaign's channel (`tools.consents.record`); the others are skipped with `consent_missing`. Left out or `false`: no consent is asked for.",
            "type": "boolean"
          },
          "from": {
            "description": "The sender: `\"post@firma.no\"` or `\"Firma <post@firma.no>\"`, on a domain of yours. Left out: your default sender for email.",
            "maxLength": 254,
            "minLength": 1,
            "type": "string"
          },
          "groupId": {
            "description": "A contact group whose contacts receive 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"
          },
          "html": {
            "description": "The HTML body, with places as the subject.",
            "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 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"
          },
          "recipients": {
            "description": "The recipients; or name a contact group with `groupId`, or every contact with `allContacts`.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "The recipient's name: it fills the place `{{name}}` unless its `variables` name one.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "to": {
                  "description": "A phone number (SMS) or an email address (email).",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "variables": {
                  "additionalProperties": {
                    "maxLength": 2000,
                    "type": "string"
                  },
                  "description": "This recipient's values of the template's places; they win over `variables`.",
                  "propertyNames": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "required": [
                "to"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "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"
          },
          "startAt": {
            "description": "Start at this instant (ISO 8601) instead of now; a past instant is refused.",
            "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"
          },
          "subject": {
            "description": "The subject; a place such as `{{name}}` is filled per recipient.",
            "maxLength": 998,
            "minLength": 1,
            "type": "string"
          },
          "templateId": {
            "description": "A template to send instead of the 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, with places as the subject.",
            "maxLength": 200000,
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "Values of the template's places every recipient shares.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "operation.tools.emailCampaigns.quote.output": {
        "$ref": "#/components/schemas/CampaignQuote"
      },
      "operation.tools.emailCampaigns.resume.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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.tools.emailCampaigns.resume.output": {
        "$ref": "#/components/schemas/Campaign"
      },
      "operation.tools.emailCampaigns.start.body": {
        "additionalProperties": false,
        "properties": {
          "startAt": {
            "description": "Start at this instant instead of now.",
            "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": [],
        "type": "object"
      },
      "operation.tools.emailCampaigns.start.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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"
          },
          "startAt": {
            "description": "Start at this instant instead of now.",
            "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": [
          "id"
        ],
        "type": "object"
      },
      "operation.tools.emailCampaigns.start.output": {
        "$ref": "#/components/schemas/Campaign"
      },
      "operation.tools.inbox.assign.body": {
        "additionalProperties": false,
        "properties": {
          "assigneeId": {
            "anyOf": [
              {
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A member of your organization; `null`: nobody."
          }
        },
        "required": [
          "assigneeId"
        ],
        "type": "object"
      },
      "operation.tools.inbox.assign.input": {
        "additionalProperties": false,
        "properties": {
          "assigneeId": {
            "anyOf": [
              {
                "maxLength": 200,
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A member of your organization; `null`: nobody."
          },
          "id": {
            "description": "The inbox item'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": [
          "assigneeId",
          "id"
        ],
        "type": "object"
      },
      "operation.tools.inbox.assign.output": {
        "$ref": "#/components/schemas/InboxItem"
      },
      "operation.tools.inbox.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbox item'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.tools.inbox.get.output": {
        "$ref": "#/components/schemas/InboxItemDetail"
      },
      "operation.tools.inbox.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "assigneeId": {
            "description": "Only the items of this member.",
            "maxLength": 200,
            "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"
          },
          "kind": {
            "description": "Only this kind: `voicemail`, `missed_call`, `sms_thread` or `callback`; every kind when left out.",
            "enum": [
              "voicemail",
              "missed_call",
              "sms_thread",
              "callback"
            ],
            "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 `open` or only the `done` items; both when left out.",
            "enum": [
              "open",
              "done"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "operation.tools.inbox.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/InboxItem"
            },
            "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.tools.inbox.markRead.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbox item'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.tools.inbox.markRead.output": {
        "$ref": "#/components/schemas/InboxItem"
      },
      "operation.tools.inbox.note.body": {
        "additionalProperties": false,
        "properties": {
          "text": {
            "description": "The note.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "type": "object"
      },
      "operation.tools.inbox.note.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbox item'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"
          },
          "text": {
            "description": "The note.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "id",
          "text"
        ],
        "type": "object"
      },
      "operation.tools.inbox.note.output": {
        "$ref": "#/components/schemas/InboxNote"
      },
      "operation.tools.inbox.setState.body": {
        "additionalProperties": false,
        "properties": {
          "state": {
            "description": "`open`: open it again; `done`: mark it done.",
            "enum": [
              "open",
              "done"
            ],
            "type": "string"
          }
        },
        "required": [
          "state"
        ],
        "type": "object"
      },
      "operation.tools.inbox.setState.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbox item'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": "`open`: open it again; `done`: mark it done.",
            "enum": [
              "open",
              "done"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "state"
        ],
        "type": "object"
      },
      "operation.tools.inbox.setState.output": {
        "$ref": "#/components/schemas/InboxItem"
      },
      "operation.tools.inbox.tag.body": {
        "additionalProperties": false,
        "properties": {
          "tags": {
            "description": "The whole list: it replaces the item's tags.",
            "items": {
              "maxLength": 32,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 10,
            "type": "array"
          }
        },
        "required": [
          "tags"
        ],
        "type": "object"
      },
      "operation.tools.inbox.tag.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The inbox item'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"
          },
          "tags": {
            "description": "The whole list: it replaces the item's tags.",
            "items": {
              "maxLength": 32,
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 10,
            "type": "array"
          }
        },
        "required": [
          "id",
          "tags"
        ],
        "type": "object"
      },
      "operation.tools.inbox.tag.output": {
        "$ref": "#/components/schemas/InboxItem"
      },
      "operation.tools.inbox.voicemails.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The voicemail'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.tools.inbox.voicemails.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "const": true,
            "description": "Always `true`.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the voicemail 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.tools.inbox.voicemails.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The voicemail'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.tools.inbox.voicemails.get.output": {
        "$ref": "#/components/schemas/Voicemail"
      },
      "operation.tools.inbox.voicemails.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.tools.inbox.voicemails.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Voicemail"
            },
            "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.tools.inbox.voicemails.markRead.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The voicemail'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.tools.inbox.voicemails.markRead.output": {
        "$ref": "#/components/schemas/Voicemail"
      },
      "operation.tools.meetingRooms.archive.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The meeting room'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.tools.meetingRooms.archive.output": {
        "$ref": "#/components/schemas/MeetingRoom"
      },
      "operation.tools.meetingRooms.create.input": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "Your name for the room.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "pin": {
            "description": "The digits callers type to get in. Left out: the room has no PIN.",
            "maxLength": 8,
            "minLength": 4,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.create.output": {
        "$ref": "#/components/schemas/MeetingRoom"
      },
      "operation.tools.meetingRooms.getMeeting.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The meeting room'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.tools.meetingRooms.getMeeting.output": {
        "additionalProperties": false,
        "properties": {
          "meeting": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "generation": {
                    "description": "How many meetings the room has had.",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "type": "integer"
                  },
                  "id": {
                    "description": "The meeting'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"
                  },
                  "parties": {
                    "description": "The phones and app users in the meeting now.",
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "callId": {
                          "description": "The call the party is on, as `calls.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"
                        },
                        "from": {
                          "description": "The phone's number; `null`: an app user.",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "id": {
                          "description": "The party's id in the meeting.",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                          "type": "string"
                        },
                        "joinedAt": {
                          "description": "When the party joined, 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"
                        },
                        "participantId": {
                          "description": "The party's participant on that 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",
                        "from",
                        "id",
                        "joinedAt",
                        "participantId"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "startedAt": {
                    "description": "When its first party joined, 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": [
                  "generation",
                  "id",
                  "parties",
                  "startedAt"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "`null`: nobody is in the room."
          },
          "roomId": {
            "description": "The meeting room'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": [
          "meeting",
          "roomId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.join.body": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the party is on, one of yours.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 phone's participant on 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"
          },
          "pin": {
            "description": "The room's PIN, when it has one; a wrong one answers `meeting_pin_invalid`.",
            "maxLength": 8,
            "minLength": 4,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "participantId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.join.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the party is on, one of yours.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 meeting room'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"
          },
          "participantId": {
            "description": "The phone's participant on 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"
          },
          "pin": {
            "description": "The room's PIN, when it has one; a wrong one answers `meeting_pin_invalid`.",
            "maxLength": 8,
            "minLength": 4,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "participantId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.join.output": {
        "additionalProperties": false,
        "properties": {
          "meetingId": {
            "description": "The meeting the party is in: the room's meeting now.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "move": {
            "additionalProperties": false,
            "description": "The move of the phone into the meeting: it is `done` once the phone is in, and `calls.moves.get` follows it.",
            "properties": {
              "attemptRef": {
                "description": "The reference of the move's one attempt: `move:<id>`.",
                "type": "string"
              },
              "callId": {
                "description": "The call the phone is on; it stays on that call and is billed by 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"
              },
              "createdAt": {
                "description": "When the move was asked for, ISO 8601 in UTC.",
                "type": "string"
              },
              "failure": {
                "description": "Why it failed; `null` when it has not.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "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 when the target is `meeting_live`; `null` otherwise."
              },
              "moveId": {
                "description": "The move's id: `calls.moves.get` reads how it went.",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 phone's participant on that 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"
              },
              "settledAt": {
                "description": "When it was done or failed, ISO 8601 in UTC; `null` until then.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "state": {
                "description": "`pending` until the phone is in, then `done` or `failed`; `uncertain` when the outcome could not be learned (the move is never sent again).",
                "enum": [
                  "pending",
                  "done",
                  "failed",
                  "uncertain"
                ],
                "type": "string"
              },
              "target": {
                "description": "Where the phone goes: `meeting_live`, a room's meeting, or `call`, another call.",
                "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 when the target is `call`; `null` otherwise."
              }
            },
            "required": [
              "attemptRef",
              "callId",
              "createdAt",
              "failure",
              "meetingId",
              "moveId",
              "participantId",
              "settledAt",
              "state",
              "target",
              "toCallId"
            ],
            "type": "object"
          },
          "partyId": {
            "description": "The party's id in the meeting, as `getMeeting` lists 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"
          },
          "roomId": {
            "description": "The meeting room'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": [
          "meetingId",
          "move",
          "partyId",
          "roomId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.joinApp.body": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the party is on, one of yours.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 app user's participant on 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"
          },
          "pin": {
            "description": "The room's PIN, when it has one; a wrong one answers `meeting_pin_invalid`.",
            "maxLength": 8,
            "minLength": 4,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "participantId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.joinApp.input": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call the party is on, one of yours.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 meeting room'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"
          },
          "participantId": {
            "description": "The app user's participant on 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"
          },
          "pin": {
            "description": "The room's PIN, when it has one; a wrong one answers `meeting_pin_invalid`.",
            "maxLength": 8,
            "minLength": 4,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "callId",
          "id",
          "participantId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.joinApp.output": {
        "additionalProperties": false,
        "properties": {
          "connection": {
            "additionalProperties": false,
            "description": "The app user's connection to the meeting: the address and the join token `@telkit/client` connects with.",
            "properties": {
              "expiresAt": {
                "description": "When the token 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"
              },
              "identity": {
                "description": "The name the participant has in the call's room.",
                "type": "string"
              },
              "kind": {
                "description": "What the participant is: `app` for an app user.",
                "enum": [
                  "phone",
                  "app",
                  "bot"
                ],
                "type": "string"
              },
              "participantId": {
                "description": "The app user's participant on 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"
              },
              "token": {
                "description": "The join token; `null` when none could be made: ask again for a fresh one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "description": "The address to connect to; `null` when no token could be made: ask again.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "expiresAt",
              "identity",
              "kind",
              "participantId",
              "token",
              "url"
            ],
            "type": "object"
          },
          "meetingId": {
            "description": "The meeting the party is in: the room's meeting now.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "partyId": {
            "description": "The party's id in the meeting, as `getMeeting` lists 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"
          },
          "roomId": {
            "description": "The meeting room'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": [
          "connection",
          "meetingId",
          "partyId",
          "roomId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.joinBrowser.body": {
        "additionalProperties": false,
        "properties": {
          "displayName": {
            "description": "The name the other parties see.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "pin": {
            "description": "The room's PIN, when it has one; a wrong one answers `meeting_pin_invalid`.",
            "maxLength": 8,
            "minLength": 4,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.tools.meetingRooms.joinBrowser.input": {
        "additionalProperties": false,
        "properties": {
          "displayName": {
            "description": "The name the other parties see.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The meeting room'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"
          },
          "pin": {
            "description": "The room's PIN, when it has one; a wrong one answers `meeting_pin_invalid`.",
            "maxLength": 8,
            "minLength": 4,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.joinBrowser.output": {
        "additionalProperties": false,
        "properties": {
          "callId": {
            "description": "The call that was started for the app user, as `calls.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"
          },
          "connection": {
            "additionalProperties": false,
            "description": "The app user's connection to the meeting: the address and the join token `@telkit/client` connects with.",
            "properties": {
              "expiresAt": {
                "description": "When the token 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"
              },
              "identity": {
                "description": "The name the participant has in the call's room.",
                "type": "string"
              },
              "kind": {
                "description": "What the participant is: `app` for an app user.",
                "enum": [
                  "phone",
                  "app",
                  "bot"
                ],
                "type": "string"
              },
              "participantId": {
                "description": "The app user's participant on 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"
              },
              "token": {
                "description": "The join token; `null` when none could be made: ask again for a fresh one.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "url": {
                "description": "The address to connect to; `null` when no token could be made: ask again.",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "expiresAt",
              "identity",
              "kind",
              "participantId",
              "token",
              "url"
            ],
            "type": "object"
          },
          "meetingId": {
            "description": "The meeting the party is in: the room's meeting now.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "type": "string"
          },
          "partyId": {
            "description": "The party's id in the meeting, as `getMeeting` lists 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"
          },
          "roomId": {
            "description": "The meeting room'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",
          "connection",
          "meetingId",
          "partyId",
          "roomId"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.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.tools.meetingRooms.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/MeetingRoom"
            },
            "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.tools.meetingRooms.numbers.list.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The meeting room'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.tools.meetingRooms.numbers.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "flowId": {
                  "description": "The call flow whose meeting step sends the number's callers to the room.",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                  "type": "string"
                },
                "flowName": {
                  "description": "That call flow's name.",
                  "type": "string"
                },
                "id": {
                  "description": "The 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"
                },
                "number": {
                  "description": "The phone number callers dial (E.164).",
                  "type": "string"
                }
              },
              "required": [
                "flowId",
                "flowName",
                "id",
                "number"
              ],
              "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.tools.meetingRooms.update.body": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "description": "Your name for the room.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "pin": {
            "anyOf": [
              {
                "maxLength": 8,
                "minLength": 4,
                "pattern": "^[0-9]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A new PIN; `null` removes it. Left out: it stays as it is."
          }
        },
        "required": [],
        "type": "object"
      },
      "operation.tools.meetingRooms.update.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The meeting room'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 name for the room.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "pin": {
            "anyOf": [
              {
                "maxLength": 8,
                "minLength": 4,
                "pattern": "^[0-9]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A new PIN; `null` removes it. Left out: it stays as it is."
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "operation.tools.meetingRooms.update.output": {
        "$ref": "#/components/schemas/MeetingRoom"
      },
      "operation.tools.queues.getStats.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "from": {
            "description": "The start of the window, ISO 8601: callers who left the queue at or after 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"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "shortAbandonSeconds": {
            "default": 5,
            "description": "A caller who hung up after fewer seconds of waiting is left out of the service level. Default 5.",
            "maximum": 3600,
            "minimum": 0,
            "type": "integer"
          },
          "targetSeconds": {
            "default": 20,
            "description": "An answer after at most this many seconds of waiting counts as in time. Default 20.",
            "maximum": 3600,
            "minimum": 0,
            "type": "integer"
          },
          "to": {
            "description": "The end of the window, ISO 8601: callers who left the queue before 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"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "operation.tools.queues.getStats.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/QueueStats"
            },
            "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.tools.queues.listEntries.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "from": {
            "description": "Entered at or after this instant, ISO 8601.",
            "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"
          },
          "limit": {
            "description": "How many items to answer, at most 100; 50 when left out.",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "queueId": {
            "description": "Only this queue's entries.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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": "Entered before this instant, ISO 8601.",
            "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.tools.queues.listEntries.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/QueueEntry"
            },
            "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.tools.smsCampaigns.cancel.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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.tools.smsCampaigns.cancel.output": {
        "$ref": "#/components/schemas/Campaign"
      },
      "operation.tools.smsCampaigns.create.input": {
        "additionalProperties": false,
        "properties": {
          "allContacts": {
            "description": "true: every contact of yours with a mobile number (SMS) or an email address (email) receives it, each filling its own `{{name}}`, `{{phone}}` and `{{email}}`; `recipients` and `groupId` are left out then.",
            "type": "boolean"
          },
          "consentRequired": {
            "description": "`true`: send only to recipients with a current consent record for the campaign's channel (`tools.consents.record`); the others are skipped with `consent_missing`. Left out or `false`: no consent is asked for.",
            "type": "boolean"
          },
          "draft": {
            "description": "`true`: store it as a draft with its quote; `start` sends it.",
            "type": "boolean"
          },
          "from": {
            "description": "The sender: a sender name or a number of yours, or its `id` (`sms.senders.list`), which also names its business. Left out: your default sender, else Telkit's shared reply number.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "groupId": {
            "description": "A contact group whose contacts receive 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"
          },
          "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"
          },
          "name": {
            "description": "Your name for the campaign.",
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          },
          "ownOptOutRoute": {
            "description": "Telkit adds no opt-out link to a campaign's SMS: the text goes as written. A sender that cannot get replies (a text name, an own mobile number) never hears STOPP, so the text gives the recipient its own way to opt out. true or false changes nothing.",
            "type": "boolean"
          },
          "recipients": {
            "description": "The recipients; or name a contact group with `groupId`, or every contact with `allContacts`.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "The recipient's name: it fills the place `{{name}}` unless its `variables` name one.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "to": {
                  "description": "A phone number (SMS) or an email address (email).",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "variables": {
                  "additionalProperties": {
                    "maxLength": 2000,
                    "type": "string"
                  },
                  "description": "This recipient's values of the template's places; they win over `variables`.",
                  "propertyNames": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "required": [
                "to"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "reference": {
            "description": "Your own id for the campaign: `getByReference` finds it, and a second create with it answers `campaign_reference_taken`.",
            "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"
          },
          "sharedReplyNumber": {
            "description": "`true` sends from Telkit's shared reply number.",
            "type": "boolean"
          },
          "startAt": {
            "description": "Start at this instant (ISO 8601) instead of now; a past instant is refused.",
            "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"
          },
          "templateId": {
            "description": "A template to send instead of the 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 text each recipient gets; a place such as `{{name}}` is filled per recipient. Or name a `templateId`.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "Values of the template's places every recipient shares.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "operation.tools.smsCampaigns.create.output": {
        "$ref": "#/components/schemas/CreatedCampaign"
      },
      "operation.tools.smsCampaigns.get.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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.tools.smsCampaigns.get.output": {
        "$ref": "#/components/schemas/CampaignDetail"
      },
      "operation.tools.smsCampaigns.getByReference.input": {
        "additionalProperties": false,
        "properties": {
          "reference": {
            "description": "The `reference` its create named.",
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "reference"
        ],
        "type": "object"
      },
      "operation.tools.smsCampaigns.getByReference.output": {
        "$ref": "#/components/schemas/CampaignDetail"
      },
      "operation.tools.smsCampaigns.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.tools.smsCampaigns.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            },
            "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.tools.smsCampaigns.listRecipients.input": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "description": "The `next` of the page before; left out for the first page.",
            "type": "string"
          },
          "id": {
            "description": "The campaign'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.tools.smsCampaigns.listRecipients.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/CampaignRecipient"
            },
            "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.tools.smsCampaigns.quote.input": {
        "additionalProperties": false,
        "properties": {
          "allContacts": {
            "description": "true: every contact of yours with a mobile number (SMS) or an email address (email) receives it, each filling its own `{{name}}`, `{{phone}}` and `{{email}}`; `recipients` and `groupId` are left out then.",
            "type": "boolean"
          },
          "consentRequired": {
            "description": "`true`: send only to recipients with a current consent record for the campaign's channel (`tools.consents.record`); the others are skipped with `consent_missing`. Left out or `false`: no consent is asked for.",
            "type": "boolean"
          },
          "from": {
            "description": "The sender: a sender name or a number of yours, or its `id` (`sms.senders.list`), which also names its business. Left out: your default sender, else Telkit's shared reply number.",
            "maxLength": 253,
            "minLength": 1,
            "type": "string"
          },
          "groupId": {
            "description": "A contact group whose contacts receive 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"
          },
          "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"
          },
          "ownOptOutRoute": {
            "description": "Telkit adds no opt-out link to a campaign's SMS: the text goes as written. A sender that cannot get replies (a text name, an own mobile number) never hears STOPP, so the text gives the recipient its own way to opt out. true or false changes nothing.",
            "type": "boolean"
          },
          "recipients": {
            "description": "The recipients; or name a contact group with `groupId`, or every contact with `allContacts`.",
            "items": {
              "additionalProperties": false,
              "properties": {
                "name": {
                  "description": "The recipient's name: it fills the place `{{name}}` unless its `variables` name one.",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "to": {
                  "description": "A phone number (SMS) or an email address (email).",
                  "maxLength": 200,
                  "minLength": 1,
                  "type": "string"
                },
                "variables": {
                  "additionalProperties": {
                    "maxLength": 2000,
                    "type": "string"
                  },
                  "description": "This recipient's values of the template's places; they win over `variables`.",
                  "propertyNames": {
                    "maxLength": 80,
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "required": [
                "to"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "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.",
            "type": "boolean"
          },
          "startAt": {
            "description": "Start at this instant (ISO 8601) instead of now; a past instant is refused.",
            "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"
          },
          "templateId": {
            "description": "A template to send instead of the 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 text each recipient gets; a place such as `{{name}}` is filled per recipient. Or name a `templateId`.",
            "maxLength": 2000,
            "minLength": 1,
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "Values of the template's places every recipient shares.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "operation.tools.smsCampaigns.quote.output": {
        "$ref": "#/components/schemas/CampaignQuote"
      },
      "operation.tools.smsCampaigns.resume.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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.tools.smsCampaigns.resume.output": {
        "$ref": "#/components/schemas/Campaign"
      },
      "operation.tools.smsCampaigns.start.body": {
        "additionalProperties": false,
        "properties": {
          "startAt": {
            "description": "Start at this instant instead of now.",
            "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": [],
        "type": "object"
      },
      "operation.tools.smsCampaigns.start.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The campaign'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"
          },
          "startAt": {
            "description": "Start at this instant instead of now.",
            "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": [
          "id"
        ],
        "type": "object"
      },
      "operation.tools.smsCampaigns.start.output": {
        "$ref": "#/components/schemas/Campaign"
      },
      "operation.tools.templates.delete.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The template'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"
          },
          "service": {
            "description": "The channel the template is for: `sms`, `email` or `letters`.",
            "enum": [
              "sms",
              "email",
              "letters"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "service"
        ],
        "type": "object"
      },
      "operation.tools.templates.delete.output": {
        "additionalProperties": false,
        "properties": {
          "deleted": {
            "const": true,
            "description": "Always `true`.",
            "type": "boolean"
          },
          "id": {
            "description": "The id of the template 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.tools.templates.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"
          },
          "service": {
            "description": "The channel the template is for: `sms`, `email` or `letters`.",
            "enum": [
              "sms",
              "email",
              "letters"
            ],
            "type": "string"
          }
        },
        "required": [
          "service"
        ],
        "type": "object"
      },
      "operation.tools.templates.list.output": {
        "additionalProperties": false,
        "properties": {
          "items": {
            "description": "The items of this page.",
            "items": {
              "$ref": "#/components/schemas/Template"
            },
            "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.tools.templates.render.body": {
        "additionalProperties": false,
        "properties": {
          "service": {
            "description": "The channel the template is for: `sms`, `email` or `letters`.",
            "enum": [
              "sms",
              "email",
              "letters"
            ],
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places, by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "service",
          "variables"
        ],
        "type": "object"
      },
      "operation.tools.templates.render.input": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "description": "The template'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"
          },
          "service": {
            "description": "The channel the template is for: `sms`, `email` or `letters`.",
            "enum": [
              "sms",
              "email",
              "letters"
            ],
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "maxLength": 2000,
              "type": "string"
            },
            "description": "The values of the template's places, by name.",
            "propertyNames": {
              "maxLength": 80,
              "type": "string"
            },
            "type": "object"
          }
        },
        "required": [
          "id",
          "service",
          "variables"
        ],
        "type": "object"
      },
      "operation.tools.templates.render.output": {
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "The filled text.",
            "type": "string"
          },
          "title": {
            "description": "The filled title; `null` when the template has none.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "body",
          "title"
        ],
        "type": "object"
      },
      "operation.tools.templates.save.input": {
        "additionalProperties": false,
        "properties": {
          "body": {
            "description": "The text, with places such as `{{name}}`.",
            "maxLength": 20000,
            "minLength": 1,
            "type": "string"
          },
          "id": {
            "description": "The template to change; left out: a new one.",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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 name for it, used once per channel.",
            "maxLength": 80,
            "minLength": 1,
            "type": "string"
          },
          "service": {
            "description": "The channel the template is for: `sms`, `email` or `letters`.",
            "enum": [
              "sms",
              "email",
              "letters"
            ],
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "maxLength": 300,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "An email's subject or a letter's title, with places as the body. Left out or `null`: none."
          }
        },
        "required": [
          "body",
          "name",
          "service"
        ],
        "type": "object"
      },
      "operation.tools.templates.save.output": {
        "$ref": "#/components/schemas/Template"
      },
      "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.agent_not_found": {
        "properties": {
          "code": {
            "const": "agent_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.agent_test_read_only": {
        "properties": {
          "code": {
            "const": "agent_test_read_only",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.agent_tool_name_taken": {
        "properties": {
          "code": {
            "const": "agent_tool_name_taken",
            "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.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.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_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_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_flow_branch_unknown": {
        "properties": {
          "code": {
            "const": "call_flow_branch_unknown",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_flow_draft_conflict": {
        "properties": {
          "code": {
            "const": "call_flow_draft_conflict",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_flow_in_use": {
        "properties": {
          "code": {
            "const": "call_flow_in_use",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_flow_not_found": {
        "properties": {
          "code": {
            "const": "call_flow_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_flow_run_decided": {
        "properties": {
          "code": {
            "const": "call_flow_run_decided",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_flow_run_not_found": {
        "properties": {
          "code": {
            "const": "call_flow_run_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_flow_test_read_only": {
        "properties": {
          "code": {
            "const": "call_flow_test_read_only",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_busy": {
        "properties": {
          "code": {
            "const": "call_list_busy",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_entry_not_called": {
        "properties": {
          "code": {
            "const": "call_list_entry_not_called",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_entry_not_found": {
        "properties": {
          "code": {
            "const": "call_list_entry_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_not_found": {
        "properties": {
          "code": {
            "const": "call_list_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_outside_calling_hours": {
        "properties": {
          "code": {
            "const": "call_list_outside_calling_hours",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "opensAt": {
                "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "opensAt"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_paused": {
        "properties": {
          "code": {
            "const": "call_list_paused",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_screening_date_invalid": {
        "properties": {
          "code": {
            "const": "call_list_screening_date_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_screening_missing": {
        "properties": {
          "code": {
            "const": "call_list_screening_missing",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_screening_outdated": {
        "properties": {
          "code": {
            "const": "call_list_screening_outdated",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "screenedOn": {
                "format": "date",
                "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])))$",
                "type": "string"
              }
            },
            "required": [
              "screenedOn"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.call_list_seller_number_missing": {
        "properties": {
          "code": {
            "const": "call_list_seller_number_missing",
            "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_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_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_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_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_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_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.campaign_consent_missing": {
        "properties": {
          "code": {
            "const": "campaign_consent_missing",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "recipients": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "recipients"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.campaign_not_found": {
        "properties": {
          "code": {
            "const": "campaign_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.campaign_recipients_required": {
        "properties": {
          "code": {
            "const": "campaign_recipients_required",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.campaign_reference_taken": {
        "properties": {
          "code": {
            "const": "campaign_reference_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "campaignId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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": [
              "campaignId"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.campaign_too_many_recipients": {
        "properties": {
          "code": {
            "const": "campaign_too_many_recipients",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "maximum": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              },
              "recipients": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "maximum",
              "recipients"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.campaign_wrong_state": {
        "properties": {
          "code": {
            "const": "campaign_wrong_state",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "state": {
                "type": "string"
              }
            },
            "required": [
              "state"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "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.consent_address_invalid": {
        "properties": {
          "code": {
            "const": "consent_address_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "index": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.consent_current_exists": {
        "properties": {
          "code": {
            "const": "consent_current_exists",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "consentId": {
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
                "type": "string"
              },
              "index": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.consent_given_in_future": {
        "properties": {
          "code": {
            "const": "consent_given_in_future",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "meta": {
            "additionalProperties": false,
            "properties": {
              "index": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "index"
            ],
            "type": "object"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "meta",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.contact_external_id_taken": {
        "properties": {
          "code": {
            "const": "contact_external_id_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.contact_fields_invalid": {
        "properties": {
          "code": {
            "const": "contact_fields_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.contact_group_name_taken": {
        "properties": {
          "code": {
            "const": "contact_group_name_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.contact_group_not_found": {
        "properties": {
          "code": {
            "const": "contact_group_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.contact_import_not_found": {
        "properties": {
          "code": {
            "const": "contact_import_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.contact_not_found": {
        "properties": {
          "code": {
            "const": "contact_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.contact_phone_taken": {
        "properties": {
          "code": {
            "const": "contact_phone_taken",
            "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.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_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.flow_callback_not_found": {
        "properties": {
          "code": {
            "const": "flow_callback_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.flow_schedule_not_found": {
        "properties": {
          "code": {
            "const": "flow_schedule_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_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_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.inbox_assignee_unknown": {
        "properties": {
          "code": {
            "const": "inbox_assignee_unknown",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.inbox_item_not_found": {
        "properties": {
          "code": {
            "const": "inbox_item_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.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.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.meeting_pin_invalid": {
        "properties": {
          "code": {
            "const": "meeting_pin_invalid",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "requestId",
          "retryable"
        ],
        "type": "object"
      },
      "refusal.meeting_room_not_found": {
        "properties": {
          "code": {
            "const": "meeting_room_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "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.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.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.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_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.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_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_name_taken": {
        "properties": {
          "code": {
            "const": "template_name_taken",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "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.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.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.voicemail_not_found": {
        "properties": {
          "code": {
            "const": "voicemail_not_found",
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          },
          "retryable": {
            "const": false,
            "type": "boolean"
          }
        },
        "required": [
          "code",
          "message",
          "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"
      }
    },
    "securitySchemes": {
      "apiKey": {
        "description": "An API key sent as a bearer token.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Telkit's ready-made tools by API: SMS and email campaigns, contacts, consents, templates, call flows, queues, call lists, meeting rooms, the inbox and AI agents. The same keys, errors and rules as the Telkit API under /v2.",
    "title": "Telkit tools API",
    "version": "2026-11"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v2/tools/agents": {
      "get": {
        "description": "The AI agents that are not archived, oldest first, a page at a time. Plan feature: `ai_agents` (in every plan). Scope: `agents:manage`.",
        "operationId": "tools.agents.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.tools.agents.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.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.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 AI agents",
        "tags": [
          "AI agents"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.agents.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.agents.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates an AI agent: hosted (with `instructions`), or a webhook brain that decides each turn at `brainUrl`. A call flow step names the agent to put it in a call. Sends `agent.created`. Repeat it with the same `Idempotency-Key` after a lost answer. A test key reads agents but never changes them (`agent_test_read_only`). Plan feature: `ai_agents` (in every plan). Scope: `agents:manage`.",
        "operationId": "tools.agents.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.tools.agents.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.agents.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.agent_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads AI agents but never changes them. 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.agent_tool_name_taken"
                        }
                      },
                      "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. Two tools of one agent share a name, or a tool takes the built-in name `end_call`. 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": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "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": "Create an AI agent",
        "tags": [
          "AI agents"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.agents.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.agents.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "agent_test_read_only",
            "agent_tool_name_taken",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/agents/{id}": {
      "get": {
        "description": "One AI agent, archived ones too. Plan feature: `ai_agents` (in every plan). Scope: `agents:manage`.",
        "operationId": "tools.agents.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The agent'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.tools.agents.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.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.agent_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No AI agent 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 AI agent",
        "tags": [
          "AI agents"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.agents.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.agents.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "agent_not_found",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "put": {
        "description": "Replaces every field of an agent that is not archived: a field left out takes its default, as on create. Sends `agent.updated`. A test key reads agents but never changes them (`agent_test_read_only`). Plan feature: `ai_agents` (in every plan). Scope: `agents:manage`.",
        "operationId": "tools.agents.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The agent'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.tools.agents.update.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.agents.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.agent_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads AI agents but never changes them. 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.agent_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No AI agent 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.agent_tool_name_taken"
                        }
                      },
                      "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. Two tools of one agent share a name, or a tool takes the built-in name `end_call`. 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": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.speech_voice_unavailable"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "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": "Update an AI agent",
        "tags": [
          "AI agents"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.agents.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.agents.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "agent_not_found",
            "agent_test_read_only",
            "agent_tool_name_taken",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "speech_voice_unavailable",
            "unauthenticated",
            "voice_policy_not_accepted",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/agents/{id}/archive": {
      "post": {
        "description": "Archives an agent: a call flow step that names it then refuses it. An archived agent stays readable; a repeat answers `agent_not_found`. Sends `agent.archived`. A test key reads agents but never changes them (`agent_test_read_only`). Plan feature: `ai_agents` (in every plan). Scope: `agents:manage`.",
        "operationId": "tools.agents.archive",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The agent'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.tools.agents.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.agent_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads AI agents but never changes them. 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.agent_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No AI agent 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": "Archive an AI agent",
        "tags": [
          "AI agents"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.agents.archive.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.agents.archive.output"
          },
          "refusals": [
            "acknowledgement_required",
            "agent_not_found",
            "agent_test_read_only",
            "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/tools/call-flows": {
      "get": {
        "description": "The call flows, newest first, each with the numbers that follow it. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.callFlows.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.tools.callFlows.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.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.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 call flows",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates a call flow with its draft: the document given, a template's, or one hang-up step. Nothing answers a call before the flow is published and a number follows it. Repeat it with the same `Idempotency-Key` after a lost answer. Plan feature: `call_flows` (in every plan). Scope: `calls:write`; a test key reads flows but never changes them (`call_flow_test_read_only`).",
        "operationId": "tools.callFlows.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.tools.callFlows.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callFlows.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.call_flow_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads call flows and schedules but never changes them. 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.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 call flow",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_test_read_only",
            "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/tools/call-flows/callbacks": {
      "get": {
        "description": "The callback requests callers left, open first, then oldest first. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.callFlows.callbacks.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.tools.callFlows.callbacks.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.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.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 callback requests",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.callbacks.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.callbacks.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-flows/callbacks/{id}/close": {
      "post": {
        "description": "Marks a callback request done; a repeat answers the same. Plan feature: `call_flows` (in every plan). Scope: `calls:write`.",
        "operationId": "tools.callFlows.callbacks.close",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The callback request'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.tools.callFlows.callbacks.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.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.flow_callback_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No callback request with this id in this profile and 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": "Close a callback request",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.callbacks.close.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.callbacks.close.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "flow_callback_not_found",
            "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/tools/call-flows/runs/{id}/decide": {
      "post": {
        "description": "Picks the branch of the webhook step a call's run waits at; the run goes on at the branch's step. The step waits a short time only: once a branch was picked or its `timeout` step was taken, the call answers `call_flow_run_decided`. A test key decides the runs of test calls, a live key those of live calls. Plan feature: `call_flows` (in every plan). Scope: `calls:write`.",
        "operationId": "tools.callFlows.decide",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The run's `id`, as the webhook step sent 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": "simple"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tools.callFlows.decide.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callFlows.decide.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.call_flow_run_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No flow run with this id in this profile and 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.call_flow_run_decided"
                        }
                      },
                      "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 run no longer waits for a decision: it was decided, timed out or ended. 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_flow_branch_unknown"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The flow's webhook node has no branch by that name."
          },
          "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": "Pick the branch of a webhook step",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.decide.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.decide.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_branch_unknown",
            "call_flow_run_decided",
            "call_flow_run_not_found",
            "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/tools/call-flows/schedules": {
      "get": {
        "description": "The named opening hours a flow's hours step names, oldest first. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.callFlows.schedules.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.tools.callFlows.schedules.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.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.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 schedules",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.schedules.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.schedules.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Saves a named schedule: a new one, or the one `id` names, replaced whole. Plan feature: `call_flows` (in every plan). Scope: `calls:write`; a test key reads flows but never changes them (`call_flow_test_read_only`).",
        "operationId": "tools.callFlows.schedules.save",
        "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.tools.callFlows.schedules.save.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callFlows.schedules.save.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.call_flow_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads call flows and schedules but never changes them. 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.flow_schedule_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No schedule 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": "Save a schedule",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.schedules.save.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.schedules.save.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_test_read_only",
            "flow_schedule_not_found",
            "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/tools/call-flows/{id}": {
      "get": {
        "description": "One call flow with its draft (the document, its layout and its revision) and its newest published version. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.callFlows.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call flow'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.tools.callFlows.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.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.call_flow_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call flow with this id in this profile (an archived flow cannot be changed)."
          },
          "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 flow",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "patch": {
        "description": "Renames a flow that is not archived. Plan feature: `call_flows` (in every plan). Scope: `calls:write`; a test key reads flows but never changes them (`call_flow_test_read_only`).",
        "operationId": "tools.callFlows.rename",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call flow'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.tools.callFlows.rename.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callFlows.rename.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.call_flow_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads call flows and schedules but never changes them. 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.call_flow_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call flow with this id in this profile (an archived flow cannot be changed)."
          },
          "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 a call flow",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.rename.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.rename.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_not_found",
            "call_flow_test_read_only",
            "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/tools/call-flows/{id}/archive": {
      "post": {
        "description": "Archives a flow no number follows and no call runs (`call_flow_in_use`). Plan feature: `call_flows` (in every plan). Scope: `calls:write`; a test key reads flows but never changes them (`call_flow_test_read_only`).",
        "operationId": "tools.callFlows.archive",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call flow'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.tools.callFlows.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.call_flow_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads call flows and schedules but never changes them. 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.call_flow_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call flow with this id in this profile (an archived flow cannot be changed)."
          },
          "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_flow_in_use"
                        }
                      },
                      "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 number routes to the flow, or a call is running it. Change the route, or wait for the call. 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": "Archive a call flow",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.archive.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.archive.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_in_use",
            "call_flow_not_found",
            "call_flow_test_read_only",
            "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/tools/call-flows/{id}/check": {
      "post": {
        "description": "The problems a publish of the draft would answer (the graph check and the forward numbers' destinations), without publishing. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.callFlows.check",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call flow'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.tools.callFlows.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.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.call_flow_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call flow with this id in this profile (an archived flow cannot be changed)."
          },
          "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": "Check a call flow's draft",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.check.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.check.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_not_found",
            "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/tools/call-flows/{id}/draft": {
      "put": {
        "description": "Saves the flow's one draft at the revision you read; the answer's `revision` is the next one. Nothing reaches the flow's numbers before a publish. Plan feature: `call_flows` (in every plan). Scope: `calls:write`; a test key reads flows but never changes them (`call_flow_test_read_only`).",
        "operationId": "tools.callFlows.saveDraft",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call flow'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.tools.callFlows.saveDraft.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callFlows.saveDraft.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.call_flow_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads call flows and schedules but never changes them. 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.call_flow_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call flow with this id in this profile (an archived flow cannot be changed)."
          },
          "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_flow_draft_conflict"
                        }
                      },
                      "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 draft changed since it was read. Read it 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": "Save a call flow's draft",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.saveDraft.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.saveDraft.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_draft_conflict",
            "call_flow_not_found",
            "call_flow_test_read_only",
            "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/tools/call-flows/{id}/publish": {
      "post": {
        "description": "Publishes the draft as the flow's next version, which its numbers run from the next call. A draft with problems publishes nothing and answers them. Plan feature: `call_flows` (in every plan). Scope: `calls:write`; a test key reads flows but never changes them (`call_flow_test_read_only`).",
        "operationId": "tools.callFlows.publish",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call flow'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.tools.callFlows.publish.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.call_flow_test_read_only"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "A test key reads call flows and schedules but never changes them. 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.call_flow_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call flow with this id in this profile (an archived flow cannot be changed)."
          },
          "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": "Publish a call flow",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.publish.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.publish.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_not_found",
            "call_flow_test_read_only",
            "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/tools/call-flows/{id}/versions": {
      "get": {
        "description": "A flow's published versions, newest first. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.callFlows.listVersions",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call flow'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.tools.callFlows.listVersions.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.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.call_flow_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call flow with this id in this profile (an archived flow cannot be changed)."
          },
          "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 flow's versions",
        "tags": [
          "Call flows"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callFlows.listVersions.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callFlows.listVersions.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_flow_not_found",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists": {
      "get": {
        "description": "Your active call lists, newest first; `identity` narrows them to one business's. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.callLists.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.tools.callLists.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.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.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 call lists",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates a call list with its first numbers, in order; `next` then calls them one at a time. A number that cannot be called refuses the whole list. Repeat it with the same `Idempotency-Key` after a lost answer. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.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.tools.callLists.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.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": {
                  "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.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"
                    }
                  ]
                }
              }
            },
            "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. 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": "Create a call list",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "organization_blocked",
            "organization_closing",
            "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",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists/do-not-call": {
      "get": {
        "description": "The numbers no call list calls, newest first: `next` skips them. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.callLists.doNotCall.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.tools.callLists.doNotCall.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.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.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 do-not-call numbers",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Puts a number on the do-not-call list: no call list calls it. A number already on it answers as it is. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.doNotCall.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.add.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.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."
          },
          "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.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": "Never call a number",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.add.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.add.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists/do-not-call/{phone}": {
      "delete": {
        "description": "Takes a number off the do-not-call list. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.doNotCall.remove",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "phone",
            "required": true,
            "schema": {
              "description": "The number, for example `+4791234567`.",
              "maxLength": 40,
              "minLength": 1,
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.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.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.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": "Allow a number again",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.remove.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.doNotCall.remove.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists/sellers": {
      "get": {
        "description": "The numbers assigned to a seller (`numbers.update` sets `assignedTo`), by seller: at most 100 in all. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.callLists.sellers.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.tools.callLists.sellers.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.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.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 sellers",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.sellers.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.sellers.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists/sessions": {
      "get": {
        "description": "The active seller lists, newest first, or one seller's: the newest 100 at most. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.callLists.sessions.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": "seller",
            "required": false,
            "schema": {
              "description": "Only this seller's lists; every seller's when left out.",
              "maxLength": 80,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.sessions.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.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.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 seller sessions",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.sessions.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.sessions.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists/{id}": {
      "get": {
        "description": "A call list with its numbers in list order (the first 100). Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.callLists.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.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.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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 list",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists/{id}/archive": {
      "post": {
        "description": "Archives a list: it is no longer listed or called. A repeat answers `call_list_not_found`. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.archive",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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": "Archive a call list",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.archive.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.archive.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "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/tools/call-lists/{id}/entries": {
      "post": {
        "description": "Adds numbers at the end of an active list. A marketing list needs a new screening statement for them. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.entries.add",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.entries.add.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.entries.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."
          },
          "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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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 numbers",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.entries.add.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.entries.add.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/call-lists/{id}/entries/{entryId}/result": {
      "put": {
        "description": "Writes the result of a called number; the entry is done and the list free for the next call. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.entries.setResult",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "entryId",
            "required": true,
            "schema": {
              "description": "The entry's `id`, as `next` answered 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": "simple"
          },
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.entries.setResult.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.entries.setResult.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.call_list_entry_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No entry with this id on the list."
          },
          "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_list_entry_not_called"
                        }
                      },
                      "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 entry was never called: a result needs a placed call. 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 a call's result",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.entries.setResult.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.entries.setResult.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_entry_not_called",
            "call_list_entry_not_found",
            "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/tools/call-lists/{id}/next": {
      "post": {
        "description": "Calls the next number on the list, one call per list at a time: while the call before is still open it answers `call_list_busy`. Numbers on the do-not-call list are skipped. A refused start marks the entry `failed` and names its code. The call is placed and charged as `calls.start` places one. Repeat it with the same `Idempotency-Key` after a lost answer. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.next",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.next.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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_list_busy"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_list_outside_calling_hours"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_list_paused"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_list_screening_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_list_screening_outdated"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.call_list_seller_number_missing"
                        }
                      },
                      "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 call of this list is in progress. Write its result first, or wait until it ends. Telephone marketing to consumers is not allowed at this hour; `meta.opensAt` is the next lawful opening (null: none found). The list is paused. Resume it before the next call. A marketing list has no recorded screening against Reservasjonsregisteret that covers its numbers as they are now. Record one before the next call. The marketing list was last screened on `meta.screenedOn`, and a screening counts only for the same month in Norway. Screen it again and record it. The list's seller has no number of this profile and mode assigned. Assign one 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": "Call the next number",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.next.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.next.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_busy",
            "call_list_not_found",
            "call_list_outside_calling_hours",
            "call_list_paused",
            "call_list_screening_missing",
            "call_list_screening_outdated",
            "call_list_seller_number_missing",
            "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/tools/call-lists/{id}/pause": {
      "post": {
        "description": "Pauses a list: `next` refuses `call_list_paused` until it is resumed; a call in progress runs on. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.pause",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.pause.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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": "Pause a call list",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.pause.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.pause.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "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/tools/call-lists/{id}/purpose": {
      "put": {
        "description": "Sets what a list is for, and answers what that lets `next` do now. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.setPurpose",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.setPurpose.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.setPurpose.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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 a list's purpose",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.setPurpose.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.setPurpose.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "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/tools/call-lists/{id}/resume": {
      "post": {
        "description": "Resumes a paused list. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.resume",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.resume.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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": "Resume a call list",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.resume.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.resume.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "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/tools/call-lists/{id}/screening": {
      "get": {
        "description": "A list's purpose, its screening statement and whether `next` may call now. A marketing list is called only with this month's statement and in the lawful hours. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.callLists.getScreening",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.getScreening.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.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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 list's screening statement",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.getScreening.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.getScreening.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "put": {
        "description": "Records your statement that the list may be called: the day you checked it against Reservasjonsregisteret (valid for calls that calendar month), or an exception of markedsføringsloven § 12 for every number on it. It covers the numbers the list holds now. Live and test keys keep separate lists. Plan feature: `call_list` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.callLists.setScreening",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The call list'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.tools.callLists.setScreening.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.callLists.setScreening.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.call_list_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No call list with this id in this profile and mode (or it was archived)."
          },
          "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.call_list_screening_date_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The stated screening date is later than today in Norway."
          },
          "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 list's screening statement",
        "tags": [
          "Call lists"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.callLists.setScreening.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.callLists.setScreening.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "call_list_not_found",
            "call_list_screening_date_invalid",
            "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/tools/consents": {
      "get": {
        "description": "The consent records of one address or one contact, current and withdrawn, newest first: name exactly one of `address` and `contactId`. Live and test keys keep separate records. Plan feature: `campaigns` (in every plan). Scope: `contacts:manage`.",
        "operationId": "tools.consents.list",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "address",
            "required": false,
            "schema": {
              "description": "A number or an email address.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          },
          {
            "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": "channel",
            "required": false,
            "schema": {
              "description": "Only the records on this channel (`sms` or `email`); both when left out.",
              "enum": [
                "sms",
                "email"
              ],
              "type": "string"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "contactId",
            "required": false,
            "schema": {
              "description": "A contact'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": "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.tools.consents.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.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.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 consents",
        "tags": [
          "Consents"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.consents.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.consents.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Records consents a recipient gave, all or none: the proof a campaign with `consentRequired` asks for. An address with a current consent on that channel answers `consent_current_exists`: withdraw it first, so the history keeps both. Repeat it with the same `Idempotency-Key` after a lost answer. Live and test keys keep separate records. Plan feature: `campaigns` (in every plan). Scope: `contacts:manage`.",
        "operationId": "tools.consents.record",
        "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.tools.consents.record.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.consents.record.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.contact_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No contact 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.consent_current_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 address already has a current consent on this channel, in the profile or earlier in the same batch. Withdraw it before a new one. `meta.index` is the item, `meta.consentId` the current record. Nothing was stored. 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.consent_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.consent_given_in_future"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The address is not a mobile number (SMS) or an email address (email); `meta.index` is the item. The consent's `givenAt` is after now; `meta.index` is the item. Nothing was stored."
          },
          "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 consents",
        "tags": [
          "Consents"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.consents.record.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.consents.record.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "consent_address_invalid",
            "consent_current_exists",
            "consent_given_in_future",
            "contact_not_found",
            "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/tools/consents/withdraw": {
      "post": {
        "description": "Withdraws the current consent of an address on a channel; the record stays as history. It stops campaigns with `consentRequired` only: an opt-out is what stops every send. A repeat answers `withdrawn: false`. Live and test keys keep separate records. Plan feature: `campaigns` (in every plan). Scope: `contacts:manage`.",
        "operationId": "tools.consents.withdraw",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tools.consents.withdraw.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.consents.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.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.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.consent_address_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The address is not a mobile number (SMS) or an email address (email); `meta.index` is the item."
          },
          "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 a consent",
        "tags": [
          "Consents"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.consents.withdraw.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.consents.withdraw.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "consent_address_invalid",
            "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/tools/contacts": {
      "get": {
        "description": "The contacts, by name. Filter by a search or a group. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.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": "groupId",
            "required": false,
            "schema": {
              "description": "Only this group's members.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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": "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": "search",
            "required": false,
            "schema": {
              "description": "Part of the name, the number or the address.",
              "maxLength": 200,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.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.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.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 contacts",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates a contact. A number is kept as E.164 and used by one contact only (`contact_phone_taken`), as is your `externalId` (`contact_external_id_taken`). Repeat it with the same `Idempotency-Key` after a lost answer. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.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.tools.contacts.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.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.contact_external_id_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.contact_phone_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.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 profile already has a contact with this `externalId` (your own id for the contact). The profile already has a contact with this phone number. 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.contact_fields_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "A contact needs a name, and no field longer than it takes; `meta.problem` says what is wrong. An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. 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": "Create a contact",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_external_id_taken",
            "contact_fields_invalid",
            "contact_phone_taken",
            "email_address_invalid",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/contacts/groups": {
      "get": {
        "description": "The contact groups, by name, with their member counts. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.groups.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.tools.contacts.groups.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.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.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 contact groups",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates a contact group; a name is used once. Repeat it with the same `Idempotency-Key` after a lost answer. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.groups.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.tools.contacts.groups.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.groups.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.contact_group_name_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.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 profile already has a group with this name. 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 contact group",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_group_name_taken",
            "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/tools/contacts/groups/{id}": {
      "delete": {
        "description": "Deletes a contact group; its contacts stay. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.groups.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The group'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.tools.contacts.groups.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.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.contact_group_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No contact group 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": "Delete a contact group",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_group_not_found",
            "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/tools/contacts/groups/{id}/members": {
      "post": {
        "description": "Puts contacts in a group; a contact already there stays as it is. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.groups.addMembers",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The group'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.tools.contacts.groups.addMembers.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.groups.addMembers.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": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.contact_group_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.contact_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No contact group with this id in this profile. No contact 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": "Put contacts in a group",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.addMembers.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.addMembers.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_group_not_found",
            "contact_not_found",
            "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/tools/contacts/groups/{id}/members/remove": {
      "post": {
        "description": "Takes contacts out of a group; the contacts stay. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.groups.removeMembers",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The group'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.tools.contacts.groups.removeMembers.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.groups.removeMembers.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.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": "Take contacts out of a group",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.removeMembers.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.groups.removeMembers.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",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/contacts/imports": {
      "post": {
        "description": "Starts a CSV import; it runs in the background, and `imports.get` answers its result. Repeat it with the same `Idempotency-Key` after a lost answer. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.imports.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.tools.contacts.imports.start.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.imports.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."
          },
          "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.contact_group_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No contact group 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": "Import contacts from CSV",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.imports.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.imports.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_group_not_found",
            "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/tools/contacts/imports/preview": {
      "post": {
        "description": "Reads a CSV file as the import would, and answers its columns and what the import would store, merge and refuse; nothing is written. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.imports.preview",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tools.contacts.imports.preview.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.imports.preview.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.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.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": "Preview a contact import",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.imports.preview.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.imports.preview.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/contacts/imports/{id}": {
      "get": {
        "description": "One contact import and its result so far. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.imports.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The import'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.tools.contacts.imports.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.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.contact_import_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No contact import 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 contact import",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.imports.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.imports.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_import_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/contacts/sync": {
      "post": {
        "description": "Creates or sets contacts by your own id (`externalId`): each item is the whole contact, and the same call again changes nothing more. Answers each item in order: `created`, `updated` or `refused` with its problem. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.sync",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tools.contacts.sync.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.sync.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.contact_external_id_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.contact_phone_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.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 profile already has a contact with this `externalId` (your own id for the contact). The profile already has a contact with this phone number. 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 or update contacts by your own id",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.sync.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.sync.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_external_id_taken",
            "contact_phone_taken",
            "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/tools/contacts/{id}": {
      "delete": {
        "description": "Deletes a contact and takes it out of its groups. A repeat answers `contact_not_found`. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The contact'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.tools.contacts.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.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.contact_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No contact 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": "Delete a contact",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_not_found",
            "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
        }
      },
      "get": {
        "description": "One contact. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The contact'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.tools.contacts.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.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.contact_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No contact 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 contact",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "put": {
        "description": "Sets a contact to the fields sent: the whole contact, so a field left out is emptied. A test key reaches the same contacts as a live key. Plan feature: `contacts` (the Bedrift plan). Scope: `contacts:manage`.",
        "operationId": "tools.contacts.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The contact'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.tools.contacts.update.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.contacts.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.contact_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No contact 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.contact_external_id_taken"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.contact_phone_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.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 profile already has a contact with this `externalId` (your own id for the contact). The profile already has a contact with this phone number. 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.contact_fields_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.email_address_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.recipient_invalid"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "A contact needs a name, and no field longer than it takes; `meta.problem` says what is wrong. An address Telkit will not send to or from (`meta.address`); `meta.field` names where it was given. Nothing was sent. 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": "Update a contact",
        "tags": [
          "Contacts"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.contacts.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.contacts.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "contact_external_id_taken",
            "contact_fields_invalid",
            "contact_not_found",
            "contact_phone_taken",
            "email_address_invalid",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_invalid",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/email-campaigns": {
      "get": {
        "description": "The campaigns, newest first; `identity` narrows them to one business's. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.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.tools.emailCampaigns.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.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.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 campaigns",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates an email campaign and, unless it is a `draft`, starts it now or at `startAt`: one email per recipient, each with its own unsubscribe link. The subject, text and HTML take the template's places, filled per recipient. With `identity` the `from` must be on a domain of that business (left out: its default sender for email), and every email is booked on it. With a test key the campaign is `simulated`. Repeat it with the same `Idempotency-Key` after a lost answer. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.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.tools.emailCampaigns.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.emailCampaigns.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"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "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. 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.contact_group_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"
                    }
                  ]
                }
              }
            },
            "description": "No contact group 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."
          },
          "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.campaign_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.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 profile already has a campaign with this `reference` in this mode; `meta.campaignId` is that one. Nothing new was stored or 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. 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.campaign_consent_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_recipients_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_too_many_recipients"
                        }
                      },
                      "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.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.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_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The campaign requires consent and none of its `meta.recipients` recipients has a current consent on the channel. Nothing was stored. A campaign needs at least one recipient it can reach. The campaign names `meta.recipients` recipients and one campaign takes at most `meta.maximum`. Nothing was stored. 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. 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. 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 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": "Create an email campaign",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_consent_missing",
            "campaign_recipients_required",
            "campaign_reference_taken",
            "campaign_too_many_recipients",
            "contact_group_not_found",
            "destination_country_unsupported",
            "destination_unpriced",
            "email_address_invalid",
            "email_display_name_invalid",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "latest_send_passed",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "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_schedule_in_past",
            "sms_too_long",
            "template_not_found",
            "template_syntax_invalid",
            "template_wrong_service",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/email-campaigns/by-reference": {
      "get": {
        "description": "The campaign your `reference` names, as `get` answers it. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.getByReference",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "reference",
            "required": true,
            "schema": {
              "description": "The `reference` its create named.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.emailCampaigns.getByReference.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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 campaign by your reference",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.getByReference.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.getByReference.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/email-campaigns/quote": {
      "post": {
        "description": "Prices an email campaign as its create would, without storing it: how many it reaches, who is skipped and why, and the price. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tools.emailCampaigns.quote.input"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.emailCampaigns.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.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": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.contact_group_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"
                    }
                  ]
                }
              }
            },
            "description": "No contact group 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."
          },
          "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.campaign_consent_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_recipients_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_too_many_recipients"
                        }
                      },
                      "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.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.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_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The campaign requires consent and none of its `meta.recipients` recipients has a current consent on the channel. Nothing was stored. A campaign needs at least one recipient it can reach. The campaign names `meta.recipients` recipients and one campaign takes at most `meta.maximum`. Nothing was stored. 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. 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. 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 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": "Price an email campaign",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.quote.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.quote.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_consent_missing",
            "campaign_recipients_required",
            "campaign_too_many_recipients",
            "contact_group_not_found",
            "destination_country_unsupported",
            "destination_unpriced",
            "email_address_invalid",
            "email_display_name_invalid",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "identity_not_approved",
            "identity_not_found",
            "latest_send_passed",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "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_schedule_in_past",
            "sms_too_long",
            "template_not_found",
            "template_syntax_invalid",
            "template_wrong_service",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/email-campaigns/{id}": {
      "get": {
        "description": "One campaign with its recipients by state and the delivery of its messages. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.emailCampaigns.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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 campaign",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/email-campaigns/{id}/cancel": {
      "post": {
        "description": "Cancels a campaign: nothing more is sent, its pending recipients are cancelled and `campaign.completed` is published. A message already handed over goes on. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.cancel",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.emailCampaigns.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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.campaign_wrong_state"
                        }
                      },
                      "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 campaign is not in a state that allows this; `meta.state` is where it stands. 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 campaign",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.cancel.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.cancel.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "campaign_wrong_state",
            "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/tools/email-campaigns/{id}/recipients": {
      "get": {
        "description": "A campaign's recipients in their order, each with its message's delivery and what it was charged. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.listRecipients",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.emailCampaigns.listRecipients.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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 campaign's recipients",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.listRecipients.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.listRecipients.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/email-campaigns/{id}/resume": {
      "post": {
        "description": "Resumes a paused campaign (after a top-up, a plan change, a sender fix). Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.resume",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.emailCampaigns.resume.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"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "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. 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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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.campaign_wrong_state"
                        }
                      },
                      "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 campaign is not in a state that allows this; `meta.state` is where it stands. 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": "Resume a campaign",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.resume.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.resume.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "campaign_wrong_state",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/email-campaigns/{id}/start": {
      "post": {
        "description": "Starts a draft now, or at `startAt`. A campaign that is no draft answers `campaign_wrong_state` with its state. Plan feature: `campaigns` (in every plan). Scope: `email:send`.",
        "operationId": "tools.emailCampaigns.start",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.emailCampaigns.start.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.emailCampaigns.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."
          },
          "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"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "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. 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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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.campaign_wrong_state"
                        }
                      },
                      "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 campaign is not in a state that allows this; `meta.state` is where it stands. 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.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_schedule_in_past"
                        }
                      },
                      "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. `scheduledAt` must be in the future."
          },
          "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 draft",
        "tags": [
          "Email campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.emailCampaigns.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "campaign_wrong_state",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "latest_send_passed",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "sms_schedule_in_past",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/items": {
      "get": {
        "description": "The inbox's items (voicemails, missed calls, SMS threads and callback requests), newest activity first. With `identity`: only the items whose number stands on that business. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.inbox.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": "assigneeId",
            "required": false,
            "schema": {
              "description": "Only the items of this member.",
              "maxLength": 200,
              "minLength": 1,
              "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": "kind",
            "required": false,
            "schema": {
              "description": "Only this kind: `voicemail`, `missed_call`, `sms_thread` or `callback`; every kind when left out.",
              "enum": [
                "voicemail",
                "missed_call",
                "sms_thread",
                "callback"
              ],
              "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 `open` or only the `done` items; both when left out.",
              "enum": [
                "open",
                "done"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.inbox.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.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.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 inbox items",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/items/{id}": {
      "get": {
        "description": "One inbox item with its notes, oldest note first. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.inbox.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbox item'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.tools.inbox.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.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.inbox_item_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No inbox item with this id in this profile and 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 an inbox item",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "inbox_item_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/items/{id}/assign": {
      "post": {
        "description": "Assigns the item to a member of your organization, or to nobody (`null`). A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.inbox.assign",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbox item'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.tools.inbox.assign.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.inbox.assign.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.inbox_item_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No inbox item with this id in this profile and 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."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.inbox_assignee_unknown"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The assignee is not a member of the organization."
          },
          "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": "Assign an item",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.assign.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.assign.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "inbox_assignee_unknown",
            "inbox_item_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/items/{id}/notes": {
      "post": {
        "description": "Adds a note to the item; its author is the key (`key:<id>`). `tools.inbox.get` reads the notes. Repeat it with the same `Idempotency-Key` after a lost answer. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.inbox.note",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbox item'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.tools.inbox.note.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.inbox.note.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.inbox_item_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No inbox item with this id in this profile and 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": "Add a note",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.note.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.note.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "inbox_item_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/items/{id}/read": {
      "post": {
        "description": "Marks the item read. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.inbox.markRead",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbox item'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.tools.inbox.markRead.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.inbox_item_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No inbox item with this id in this profile and 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."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.inbox_assignee_unknown"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The assignee is not a member of the organization."
          },
          "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": "Mark an item read",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.markRead.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.markRead.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "inbox_assignee_unknown",
            "inbox_item_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/items/{id}/state": {
      "post": {
        "description": "Opens the item again or marks it done. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.inbox.setState",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbox item'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.tools.inbox.setState.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.inbox.setState.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.inbox_item_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No inbox item with this id in this profile and 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."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.inbox_assignee_unknown"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The assignee is not a member of the organization."
          },
          "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": "Open or close an item",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.setState.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.setState.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "inbox_assignee_unknown",
            "inbox_item_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/items/{id}/tags": {
      "put": {
        "description": "Sets the item's tags, the whole list. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.inbox.tag",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The inbox item'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.tools.inbox.tag.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.inbox.tag.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.inbox_item_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No inbox item with this id in this profile and 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."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.inbox_assignee_unknown"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "The assignee is not a member of the organization."
          },
          "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": "Tag an item",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.tag.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.tag.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "inbox_assignee_unknown",
            "inbox_item_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/voicemails": {
      "get": {
        "description": "The stored voicemails, newest first. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.inbox.voicemails.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.tools.inbox.voicemails.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.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.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 voicemails",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/voicemails/{id}": {
      "delete": {
        "description": "Deletes the voicemail, its recording and its inbox item with the item's notes. A repeat answers `voicemail_not_found`. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.inbox.voicemails.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The voicemail'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.tools.inbox.voicemails.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.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.voicemail_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No voicemail with this id in this profile 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": "Delete a voicemail",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.delete.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",
            "unauthenticated",
            "voicemail_not_found",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "get": {
        "description": "One voicemail: its caller, length, recording and transcript. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.inbox.voicemails.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The voicemail'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.tools.inbox.voicemails.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.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.voicemail_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No voicemail with this id in this profile 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": "Get a voicemail",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "voicemail_not_found",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/inbox/voicemails/{id}/read": {
      "post": {
        "description": "Marks the voicemail and its inbox item read; a repeat answers the same. A test key reads and changes the items of test calls and messages only. Plan feature: `inbox` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.inbox.voicemails.markRead",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The voicemail'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.tools.inbox.voicemails.markRead.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.voicemail_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No voicemail with this id in this profile 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": "Mark a voicemail read",
        "tags": [
          "Inbox"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.markRead.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.inbox.voicemails.markRead.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",
            "unauthenticated",
            "voicemail_not_found",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/meeting-rooms": {
      "get": {
        "description": "Your meeting rooms that are not archived, newest first: `next` reads on. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.meetingRooms.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.tools.meetingRooms.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.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.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 meeting rooms",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates a meeting room. Callers reach it through a call flow's `conference` step, or you put a call's party in with `join`. The PIN is never answered back (`hasPin` says whether one is set). Repeat it with the same `Idempotency-Key` after a lost answer. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.meetingRooms.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.tools.meetingRooms.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.meetingRooms.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.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 meeting room",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.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",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/meeting-rooms/{id}": {
      "patch": {
        "description": "Changes a room's name or PIN; a field left out stays as it is. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.meetingRooms.update",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The meeting room'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.tools.meetingRooms.update.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.meetingRooms.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.meeting_room_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No meeting room with this id in this profile and mode (or it was archived)."
          },
          "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 meeting room",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.update.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.update.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "meeting_room_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/meeting-rooms/{id}/app-participants": {
      "post": {
        "description": "Puts an app user already on one of your calls into the room's meeting, and answers its join token for the room. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.meetingRooms.joinApp",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The meeting room'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.tools.meetingRooms.joinApp.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.meetingRooms.joinApp.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.meeting_pin_invalid"
                        }
                      },
                      "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 meeting room has a PIN, and none or another was given. 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": {
                  "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.meeting_room_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No call with this id in this profile. No participant with this id in this call. No meeting room with this id in this profile and mode (or it was archived)."
          },
          "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": "Put an app user into a meeting room",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.joinApp.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.joinApp.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",
            "meeting_pin_invalid",
            "meeting_room_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/meeting-rooms/{id}/archive": {
      "post": {
        "description": "Archives a room: callers no longer get in. A repeat answers the archived room. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.meetingRooms.archive",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The meeting room'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.tools.meetingRooms.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.meeting_room_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No meeting room with this id in this profile and mode (or it was archived)."
          },
          "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": "Archive a meeting room",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.archive.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.archive.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "meeting_room_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/meeting-rooms/{id}/join": {
      "post": {
        "description": "Puts an answered phone of one of your calls into the room's meeting; the first one in starts it (`meeting.started`). The phone stays on its own call. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.meetingRooms.join",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The meeting room'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.tools.meetingRooms.join.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.meetingRooms.join.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.meeting_pin_invalid"
                        }
                      },
                      "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 meeting room has a PIN, and none or another was given. 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": {
                  "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.meeting_room_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "No call with this id in this profile. No participant with this id in this call. No meeting room with this id in this profile and mode (or it was archived)."
          },
          "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": "Put a phone into a meeting room",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.join.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.join.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",
            "meeting_pin_invalid",
            "meeting_room_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/meeting-rooms/{id}/join-browser": {
      "post": {
        "description": "Starts a call for one app user in the room's meeting and answers its join token, for `@telkit/client` in a browser. The call lasts while the app user is in the room, and is charged as a call with an app user that `calls.start` starts. Repeat it with the same `Idempotency-Key` after a lost answer. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:write`.",
        "operationId": "tools.meetingRooms.joinBrowser",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The meeting room'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.tools.meetingRooms.joinBrowser.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.meetingRooms.joinBrowser.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.meeting_pin_invalid"
                        }
                      },
                      "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 meeting room has a PIN, and none or another was given. 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.call_participant_not_found"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.meeting_room_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 participant with this id in this call. No meeting room with this id in this profile and mode (or it was archived). 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_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.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. 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. 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_control_unsupported"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "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": "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 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": "Join a meeting room from a browser",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.joinBrowser.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.joinBrowser.output"
          },
          "refusals": [
            "acknowledgement_required",
            "application_limit_reached",
            "audit_unavailable",
            "call_addons_invalid",
            "call_audio_private",
            "call_composition_invalid",
            "call_control_unsupported",
            "call_media_audio_not_found",
            "call_move_not_allowed",
            "call_not_found",
            "call_not_live",
            "call_participant_elsewhere",
            "call_participant_not_found",
            "call_participant_not_open",
            "call_participants_full",
            "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",
            "insufficient_funds",
            "limit_reached",
            "meeting_pin_invalid",
            "meeting_room_not_found",
            "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/tools/meeting-rooms/{id}/meeting": {
      "get": {
        "description": "The room's meeting now, with the callers in it. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.meetingRooms.getMeeting",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The meeting room'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.tools.meetingRooms.getMeeting.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.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.meeting_room_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No meeting room with this id in this profile and mode (or it was archived)."
          },
          "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 room's meeting",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.getMeeting.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.getMeeting.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "meeting_room_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/meeting-rooms/{id}/numbers": {
      "get": {
        "description": "The phone numbers callers dial to reach the room: each number whose call flow, as published, has a meeting step for it. Live and test keys keep separate rooms. Plan feature: `meeting_rooms` (the Bedrift plan). Scope: `calls:read`.",
        "operationId": "tools.meetingRooms.numbers.list",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The meeting room'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.tools.meetingRooms.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.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.meeting_room_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No meeting room with this id in this profile and mode (or it was archived)."
          },
          "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 numbers that reach a meeting room",
        "tags": [
          "Meeting rooms"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.numbers.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.meetingRooms.numbers.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "meeting_room_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/queues/entries": {
      "get": {
        "description": "One entry per caller and queue visit, newest entered first: when it entered, was answered and left the queue, and how it left. A test key reads the entries of test calls, a live key those of live calls. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.queues.listEntries",
        "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": "from",
            "required": false,
            "schema": {
              "description": "Entered at or after this instant, ISO 8601.",
              "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": "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": "queueId",
            "required": false,
            "schema": {
              "description": "Only this queue's entries.",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{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": "to",
            "required": false,
            "schema": {
              "description": "Entered before this instant, ISO 8601.",
              "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.tools.queues.listEntries.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.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.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 queue entries",
        "tags": [
          "Queues"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.queues.listEntries.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.queues.listEntries.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/queues/stats": {
      "get": {
        "description": "Callers who left each queue in [from, to), by how they left, with the average wait of those answered; one page of queues, oldest first. Service level of the window: `answeredWithinTarget` ÷ `counted`. `counted` = entries that ended in the window answered, abandoned (the caller hung up while waiting) or overflowed (the longest wait passed), minus abandoned entries that waited fewer than `shortAbandonSeconds`; callback-key requests and failed entries are outside the figure. `answeredWithinTarget` = answered entries that waited at most `targetSeconds`. `share` is from 0 to 1, `null` when nothing is counted. Plan feature: `call_flows` (in every plan). Scope: `calls:read`.",
        "operationId": "tools.queues.getStats",
        "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": "from",
            "required": true,
            "schema": {
              "description": "The start of the window, ISO 8601: callers who left the queue at or after 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"
            },
            "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": "shortAbandonSeconds",
            "required": false,
            "schema": {
              "default": 5,
              "description": "A caller who hung up after fewer seconds of waiting is left out of the service level. Default 5.",
              "maximum": 3600,
              "minimum": 0,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "targetSeconds",
            "required": false,
            "schema": {
              "default": 20,
              "description": "An answer after at most this many seconds of waiting counts as in time. Default 20.",
              "maximum": 3600,
              "minimum": 0,
              "type": "integer"
            },
            "style": "form"
          },
          {
            "explode": true,
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "description": "The end of the window, ISO 8601: callers who left the queue before 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"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.queues.getStats.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.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.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 queue statistics",
        "tags": [
          "Queues"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.queues.getStats.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.queues.getStats.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/sms-campaigns": {
      "get": {
        "description": "The campaigns, newest first; `identity` narrows them to one business's. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.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.tools.smsCampaigns.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.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.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 campaigns",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "identity_not_found",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Creates an SMS campaign and, unless it is a `draft`, starts it now or at `startAt`. Each recipient gets the text or the filled template; a recipient that cannot get it is skipped with its reason. With `identity` the sender must be that business's (left out: its default sender, else Telkit's shared reply number), and every message is booked on it. With a test key the campaign is `simulated`. Repeat it with the same `Idempotency-Key` after a lost answer. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.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.tools.smsCampaigns.create.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.smsCampaigns.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"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "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. 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.contact_group_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"
                    }
                  ]
                }
              }
            },
            "description": "No contact group 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."
          },
          "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.campaign_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.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 profile already has a campaign with this `reference` in this mode; `meta.campaignId` is that one. Nothing new was stored or 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. 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.campaign_consent_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_recipients_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_too_many_recipients"
                        }
                      },
                      "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.message_content_required"
                        }
                      },
                      "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_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The campaign requires consent and none of its `meta.recipients` recipients has a current consent on the channel. Nothing was stored. A campaign needs at least one recipient it can reach. The campaign names `meta.recipients` recipients and one campaign takes at most `meta.maximum`. Nothing was stored. 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 send needs either a text or a template: not both and not neither. 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 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 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": "Create an SMS campaign",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.create.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.create.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_consent_missing",
            "campaign_recipients_required",
            "campaign_reference_taken",
            "campaign_too_many_recipients",
            "contact_group_not_found",
            "destination_country_unsupported",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "idempotency_unsupported",
            "identity_not_approved",
            "identity_not_found",
            "latest_send_passed",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "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_schedule_in_past",
            "sms_too_long",
            "template_not_found",
            "template_syntax_invalid",
            "template_wrong_service",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/sms-campaigns/by-reference": {
      "get": {
        "description": "The campaign your `reference` names, as `get` answers it. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.getByReference",
        "parameters": [
          {
            "explode": true,
            "in": "query",
            "name": "reference",
            "required": true,
            "schema": {
              "description": "The `reference` its create named.",
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.smsCampaigns.getByReference.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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 campaign by your reference",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.getByReference.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.getByReference.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/sms-campaigns/quote": {
      "post": {
        "description": "Prices an SMS campaign as its create would, recipient by recipient, without storing it: how many it reaches, who is skipped and why, and the price. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/operation.tools.smsCampaigns.quote.input"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.smsCampaigns.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.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": {
                  "oneOf": [
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.contact_group_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"
                    }
                  ]
                }
              }
            },
            "description": "No contact group 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."
          },
          "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.campaign_consent_missing"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_recipients_required"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.campaign_too_many_recipients"
                        }
                      },
                      "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.message_content_required"
                        }
                      },
                      "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_wrong_service"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The campaign requires consent and none of its `meta.recipients` recipients has a current consent on the channel. Nothing was stored. A campaign needs at least one recipient it can reach. The campaign names `meta.recipients` recipients and one campaign takes at most `meta.maximum`. Nothing was stored. 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 send needs either a text or a template: not both and not neither. 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 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 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": "Price an SMS campaign",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.quote.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.quote.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_consent_missing",
            "campaign_recipients_required",
            "campaign_too_many_recipients",
            "contact_group_not_found",
            "destination_country_unsupported",
            "destination_unpriced",
            "forbidden",
            "fx_rate_unavailable",
            "idempotency_conflict",
            "identity_not_approved",
            "identity_not_found",
            "latest_send_passed",
            "message_content_required",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "recipient_blocked",
            "recipient_invalid",
            "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_schedule_in_past",
            "sms_too_long",
            "template_not_found",
            "template_syntax_invalid",
            "template_wrong_service",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/sms-campaigns/{id}": {
      "get": {
        "description": "One campaign with its recipients by state and the delivery of its messages. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.get",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.smsCampaigns.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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 campaign",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.get.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.get.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/sms-campaigns/{id}/cancel": {
      "post": {
        "description": "Cancels a campaign: nothing more is sent, its pending recipients are cancelled and `campaign.completed` is published. A message already handed over goes on. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.cancel",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.smsCampaigns.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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.campaign_wrong_state"
                        }
                      },
                      "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 campaign is not in a state that allows this; `meta.state` is where it stands. 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 campaign",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.cancel.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.cancel.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "campaign_wrong_state",
            "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/tools/sms-campaigns/{id}/recipients": {
      "get": {
        "description": "A campaign's recipients in their order, each with its message's delivery and what it was charged. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.listRecipients",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.smsCampaigns.listRecipients.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.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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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 campaign's recipients",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.listRecipients.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.listRecipients.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/sms-campaigns/{id}/resume": {
      "post": {
        "description": "Resumes a paused campaign (after a top-up, a plan change, a sender fix). Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.resume",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.smsCampaigns.resume.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"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "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. 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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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.campaign_wrong_state"
                        }
                      },
                      "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 campaign is not in a state that allows this; `meta.state` is where it stands. 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": "Resume a campaign",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.resume.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.resume.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "campaign_wrong_state",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/sms-campaigns/{id}/start": {
      "post": {
        "description": "Starts a draft now, or at `startAt`. A campaign that is no draft answers `campaign_wrong_state` with its state. Plan feature: `campaigns` (in every plan). Scope: `sms:send`.",
        "operationId": "tools.smsCampaigns.start",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The campaign'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.tools.smsCampaigns.start.body"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.smsCampaigns.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."
          },
          "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"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.verification_required"
                        }
                      },
                      "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. 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.campaign_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "No campaign 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.campaign_wrong_state"
                        }
                      },
                      "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 campaign is not in a state that allows this; `meta.state` is where it stands. 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.latest_send_passed"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.sms_schedule_in_past"
                        }
                      },
                      "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. `scheduledAt` must be in the future."
          },
          "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 draft",
        "tags": [
          "SMS campaigns"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.start.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.smsCampaigns.start.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "campaign_not_found",
            "campaign_wrong_state",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "latest_send_passed",
            "organization_blocked",
            "organization_closing",
            "plan_required",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "service_not_open",
            "sms_schedule_in_past",
            "unauthenticated",
            "verification_required",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/templates": {
      "get": {
        "description": "The templates of one channel, by name, a page at a time. Live and test keys see the same templates. Scope: the channel's read scope (`sms:read`, `email:read`, `letters:read`).",
        "operationId": "tools.templates.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": "service",
            "required": true,
            "schema": {
              "description": "The channel the template is for: `sms`, `email` or `letters`.",
              "enum": [
                "sms",
                "email",
                "letters"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.templates.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"
                    }
                  ]
                }
              }
            },
            "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."
          },
          "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 templates",
        "tags": [
          "Templates"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.templates.list.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.templates.list.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "cursor_invalid",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      },
      "post": {
        "description": "Saves a template: a new one, or the one `id` names, whose every field is replaced. A name is used once per channel (`template_name_taken`), and `id` must name a template of the `service` you give (`template_not_found` otherwise). A template made with a test key is used by live sends too. Repeat a save of a new one with the same `Idempotency-Key` after a lost answer. Scope: the channel's send scope (`sms:send`, `email:send`, `letters:send`).",
        "operationId": "tools.templates.save",
        "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.tools.templates.save.input"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.templates.save.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"
                    }
                  ]
                }
              }
            },
            "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."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.template_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "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.revision_conflict"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "type": "object"
                    },
                    {
                      "properties": {
                        "error": {
                          "$ref": "#/components/schemas/refusal.template_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. The record changed since the operator read it; read it again and decide again. The profile already has a template with this name for this service. A compare-and-set or revision check failed; read again and decide again."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.template_syntax_invalid"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "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."
          },
          "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": "Save a template",
        "tags": [
          "Templates"
        ],
        "x-pekka-operation": {
          "idempotency": "optional",
          "input": {
            "$ref": "#/components/schemas/operation.tools.templates.save.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.templates.save.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "organization_closing",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "template_name_taken",
            "template_not_found",
            "template_syntax_invalid",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/templates/{id}": {
      "delete": {
        "description": "Deletes a template of the `service` you name. A send that names it afterwards answers `template_not_found`, and so does a repeat of the delete. Scope: the channel's send scope (`sms:send`, `email:send`, `letters:send`).",
        "operationId": "tools.templates.delete",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The template'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": "service",
            "required": true,
            "schema": {
              "description": "The channel the template is for: `sms`, `email` or `letters`.",
              "enum": [
                "sms",
                "email",
                "letters"
              ],
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.templates.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"
                    }
                  ]
                }
              }
            },
            "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."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.template_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "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.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 template",
        "tags": [
          "Templates"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.templates.delete.input"
          },
          "kind": "mutation",
          "output": {
            "$ref": "#/components/schemas/operation.tools.templates.delete.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "idempotency_unsupported",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "template_not_found",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    },
    "/v2/tools/templates/{id}/render": {
      "post": {
        "description": "Fills a template with values as a send would, and answers the text; nothing is sent. A place without a value answers `template_variable_missing`. Scope: the channel's read scope (`sms:read`, `email:read`, `letters:read`).",
        "operationId": "tools.templates.render",
        "parameters": [
          {
            "explode": false,
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "description": "The template'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.tools.templates.render.body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/operation.tools.templates.render.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"
                    }
                  ]
                }
              }
            },
            "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."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "error": {
                      "$ref": "#/components/schemas/refusal.template_not_found"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "type": "object"
                }
              }
            },
            "description": "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.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.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": "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": "Fill a template",
        "tags": [
          "Templates"
        ],
        "x-pekka-operation": {
          "idempotency": "none",
          "input": {
            "$ref": "#/components/schemas/operation.tools.templates.render.input"
          },
          "kind": "query",
          "output": {
            "$ref": "#/components/schemas/operation.tools.templates.render.output"
          },
          "refusals": [
            "acknowledgement_required",
            "audit_unavailable",
            "forbidden",
            "idempotency_conflict",
            "rate_limited",
            "revision_conflict",
            "scope_missing",
            "template_not_found",
            "template_syntax_invalid",
            "template_variable_missing",
            "template_wrong_service",
            "unauthenticated",
            "write_conflict"
          ],
          "successStatus": 200
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.telkit.no"
    }
  ],
  "webhooks": {
    "agent.archived.v2": {
      "post": {
        "operationId": "webhook.agent.archived.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.agent.archived.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "agent.archived (version 2)",
        "x-pekka-event": {
          "name": "agent.archived",
          "version": 2
        }
      }
    },
    "agent.created.v2": {
      "post": {
        "operationId": "webhook.agent.created.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.agent.created.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "agent.created (version 2)",
        "x-pekka-event": {
          "name": "agent.created",
          "version": 2
        }
      }
    },
    "agent.updated.v2": {
      "post": {
        "operationId": "webhook.agent.updated.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.agent.updated.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "agent.updated (version 2)",
        "x-pekka-event": {
          "name": "agent.updated",
          "version": 2
        }
      }
    },
    "call.agent.ended.v2": {
      "post": {
        "operationId": "webhook.call.agent.ended.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.agent.ended.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.agent.ended (version 2)",
        "x-pekka-event": {
          "name": "call.agent.ended",
          "version": 2
        }
      }
    },
    "call.agent.started.v2": {
      "post": {
        "operationId": "webhook.call.agent.started.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.agent.started.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.agent.started (version 2)",
        "x-pekka-event": {
          "name": "call.agent.started",
          "version": 2
        }
      }
    },
    "call.flow.handoff.v2": {
      "post": {
        "operationId": "webhook.call.flow.handoff.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.flow.handoff.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.flow.handoff (version 2)",
        "x-pekka-event": {
          "name": "call.flow.handoff",
          "version": 2
        }
      }
    },
    "call.queue.abandoned.v2": {
      "post": {
        "operationId": "webhook.call.queue.abandoned.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.call.queue.abandoned.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "call.queue.abandoned (version 2)",
        "x-pekka-event": {
          "name": "call.queue.abandoned",
          "version": 2
        }
      }
    },
    "campaign.completed.v2": {
      "post": {
        "operationId": "webhook.campaign.completed.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.campaign.completed.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "campaign.completed (version 2)",
        "x-pekka-event": {
          "name": "campaign.completed",
          "version": 2
        }
      }
    },
    "meeting.ended.v2": {
      "post": {
        "operationId": "webhook.meeting.ended.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.meeting.ended.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "meeting.ended (version 2)",
        "x-pekka-event": {
          "name": "meeting.ended",
          "version": 2
        }
      }
    },
    "meeting.started.v2": {
      "post": {
        "operationId": "webhook.meeting.started.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.meeting.started.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "meeting.started (version 2)",
        "x-pekka-event": {
          "name": "meeting.started",
          "version": 2
        }
      }
    },
    "voicemail.received.v2": {
      "post": {
        "operationId": "webhook.voicemail.received.v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/event.voicemail.received.v2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Answer any 2xx status to acknowledge the delivery."
          }
        },
        "summary": "voicemail.received (version 2)",
        "x-pekka-event": {
          "name": "voicemail.received",
          "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"
    }
  }
}
