@axivoy/api 1.62.0 → 1.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/schema.d.ts +196 -6
- package/package.json +1 -1
|
@@ -17856,7 +17856,7 @@ export interface paths {
|
|
|
17856
17856
|
put?: never;
|
|
17857
17857
|
/**
|
|
17858
17858
|
* Use a phone menu on a number
|
|
17859
|
-
* @description Chooses the phone menu a company number answers with, the built-in Axivoy carrier main line (builtin_key), or none to ring everyone available and then take a voicemail. The menu must be published. Refused while the number is moving to another provider.
|
|
17859
|
+
* @description Chooses the phone menu a company number answers with, the built-in Axivoy carrier main line (builtin_key), or none to ring everyone available and then take a voicemail. Assigning a menu or none also stops forwarding. The menu must be published. Refused while the number is moving to another provider.
|
|
17860
17860
|
*
|
|
17861
17861
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
17862
17862
|
*/
|
|
@@ -17933,6 +17933,28 @@ export interface paths {
|
|
|
17933
17933
|
patch?: never;
|
|
17934
17934
|
trace?: never;
|
|
17935
17935
|
};
|
|
17936
|
+
"/ops/voice.numbers.set_call_handling": {
|
|
17937
|
+
parameters: {
|
|
17938
|
+
query?: never;
|
|
17939
|
+
header?: never;
|
|
17940
|
+
path?: never;
|
|
17941
|
+
cookie?: never;
|
|
17942
|
+
};
|
|
17943
|
+
get?: never;
|
|
17944
|
+
put?: never;
|
|
17945
|
+
/**
|
|
17946
|
+
* Choose what happens when someone calls a number
|
|
17947
|
+
* @description Chooses how one of the company's phone numbers answers calls: ring the team (everyone available, then their mobiles, then voicemail), a phone menu (menu_id or builtin_key), or forward to an outside US or Canada number (forward_to, ring_seconds, show_company_number) with voicemail if nobody answers. Turns on calls for the number when they are off; a number whose calls go somewhere else today needs replace_elsewhere.
|
|
17948
|
+
*
|
|
17949
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
17950
|
+
*/
|
|
17951
|
+
post: operations["ops.voice.numbers.set_call_handling"];
|
|
17952
|
+
delete?: never;
|
|
17953
|
+
options?: never;
|
|
17954
|
+
head?: never;
|
|
17955
|
+
patch?: never;
|
|
17956
|
+
trace?: never;
|
|
17957
|
+
};
|
|
17936
17958
|
"/ops/voice.numbers.set_default": {
|
|
17937
17959
|
parameters: {
|
|
17938
17960
|
query?: never;
|
|
@@ -152850,17 +152872,24 @@ export interface operations {
|
|
|
152850
152872
|
* "items": [
|
|
152851
152873
|
* {
|
|
152852
152874
|
* "id": 1,
|
|
152853
|
-
* "number": "+
|
|
152854
|
-
* "source": "
|
|
152855
|
-
* "status": "
|
|
152856
|
-
* "status_label": "
|
|
152875
|
+
* "number": "+13125550150",
|
|
152876
|
+
* "source": "rented",
|
|
152877
|
+
* "status": "active",
|
|
152878
|
+
* "status_label": "Active",
|
|
152857
152879
|
* "is_main": false,
|
|
152858
|
-
* "calls": "
|
|
152880
|
+
* "calls": "on",
|
|
152859
152881
|
* "calls_elsewhere_host": null,
|
|
152860
152882
|
* "texts": "needs_registration",
|
|
152861
152883
|
* "texting_error": null,
|
|
152862
152884
|
* "is_main_texting_number": false,
|
|
152885
|
+
* "answers_with": "forward",
|
|
152886
|
+
* "menu_id": null,
|
|
152887
|
+
* "menu_name": null,
|
|
152888
|
+
* "forward_to": "+18325550101",
|
|
152889
|
+
* "forward_ring_seconds": 30,
|
|
152890
|
+
* "forward_shows_company_number": true,
|
|
152863
152891
|
* "texting_registration": "none",
|
|
152892
|
+
* "handed_over_until": null,
|
|
152864
152893
|
* "deleted": null
|
|
152865
152894
|
* }
|
|
152866
152895
|
* ],
|
|
@@ -152894,6 +152923,18 @@ export interface operations {
|
|
|
152894
152923
|
texting_error?: string | null;
|
|
152895
152924
|
/** @description Whether new texts go from this number */
|
|
152896
152925
|
is_main_texting_number: boolean;
|
|
152926
|
+
/** @description How the number answers calls: team (rings everyone available, then voicemail), menu or forward */
|
|
152927
|
+
answers_with: string;
|
|
152928
|
+
/** @description The phone menu it answers with, when answers_with is menu */
|
|
152929
|
+
menu_id?: number | null;
|
|
152930
|
+
/** @description That phone menu's name */
|
|
152931
|
+
menu_name?: string | null;
|
|
152932
|
+
/** @description The outside number calls forward to (+1 format), when answers_with is forward */
|
|
152933
|
+
forward_to?: string | null;
|
|
152934
|
+
/** @description How long the forwarded phone rings before voicemail, when answers_with is forward */
|
|
152935
|
+
forward_ring_seconds?: number | null;
|
|
152936
|
+
/** @description Whether the forwarded phone sees the company number instead of the caller's */
|
|
152937
|
+
forward_shows_company_number: boolean;
|
|
152897
152938
|
/** @description The company's texting registration: none, in_progress or active (the same on every number) */
|
|
152898
152939
|
texting_registration: string;
|
|
152899
152940
|
/**
|
|
@@ -153105,6 +153146,155 @@ export interface operations {
|
|
|
153105
153146
|
};
|
|
153106
153147
|
};
|
|
153107
153148
|
};
|
|
153149
|
+
"ops.voice.numbers.set_call_handling": {
|
|
153150
|
+
parameters: {
|
|
153151
|
+
query?: never;
|
|
153152
|
+
header?: {
|
|
153153
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
153154
|
+
"Idempotency-Key"?: string;
|
|
153155
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
153156
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
153157
|
+
};
|
|
153158
|
+
path?: never;
|
|
153159
|
+
cookie?: never;
|
|
153160
|
+
};
|
|
153161
|
+
requestBody?: {
|
|
153162
|
+
content: {
|
|
153163
|
+
/**
|
|
153164
|
+
* @example {
|
|
153165
|
+
* "number_id": 1,
|
|
153166
|
+
* "answer_with": "forward",
|
|
153167
|
+
* "forward_to": "(832) 555-0101",
|
|
153168
|
+
* "ring_seconds": 30,
|
|
153169
|
+
* "show_company_number": true
|
|
153170
|
+
* }
|
|
153171
|
+
*/
|
|
153172
|
+
"application/json": {
|
|
153173
|
+
/** @description The phone number (from voice.numbers.list) */
|
|
153174
|
+
number_id: number;
|
|
153175
|
+
/**
|
|
153176
|
+
* @description How the number answers calls
|
|
153177
|
+
* @enum {string}
|
|
153178
|
+
*/
|
|
153179
|
+
answer_with: "team" | "menu" | "forward";
|
|
153180
|
+
/** @description The phone menu, when answer_with is menu (or builtin_key) */
|
|
153181
|
+
menu_id?: number | null;
|
|
153182
|
+
/**
|
|
153183
|
+
* @description A built-in Axivoy menu, when answer_with is menu (or menu_id)
|
|
153184
|
+
* @enum {string|null}
|
|
153185
|
+
*/
|
|
153186
|
+
builtin_key?: "carrier_main_line" | null;
|
|
153187
|
+
/** @description US or Canada number calls forward to; required when answer_with is forward */
|
|
153188
|
+
forward_to?: string | null;
|
|
153189
|
+
/** @description How long the forwarded phone rings before voicemail, 10 to 60; default 20 */
|
|
153190
|
+
ring_seconds?: number | null;
|
|
153191
|
+
/** @description True shows the company number to the forwarded phone instead of the caller's; default false */
|
|
153192
|
+
show_company_number?: boolean | null;
|
|
153193
|
+
/** @description True replaces call handling set up outside Axivoy; required when the number's calls go to another host today */
|
|
153194
|
+
replace_elsewhere?: boolean | null;
|
|
153195
|
+
};
|
|
153196
|
+
};
|
|
153197
|
+
};
|
|
153198
|
+
responses: {
|
|
153199
|
+
/** @description The operation ran. */
|
|
153200
|
+
200: {
|
|
153201
|
+
headers: {
|
|
153202
|
+
[name: string]: unknown;
|
|
153203
|
+
};
|
|
153204
|
+
content: {
|
|
153205
|
+
/**
|
|
153206
|
+
* @example {
|
|
153207
|
+
* "result": {
|
|
153208
|
+
* "number_id": 1,
|
|
153209
|
+
* "answers_with": "forward",
|
|
153210
|
+
* "calls": "on",
|
|
153211
|
+
* "calls_turned_on": false,
|
|
153212
|
+
* "message": "Calls to (312) 555-0150 now forward to (832) 555-0101."
|
|
153213
|
+
* }
|
|
153214
|
+
* }
|
|
153215
|
+
*/
|
|
153216
|
+
"application/json": {
|
|
153217
|
+
result: {
|
|
153218
|
+
/** @description The phone number */
|
|
153219
|
+
number_id: number;
|
|
153220
|
+
/** @description How it answers calls now: team, menu or forward */
|
|
153221
|
+
answers_with: string;
|
|
153222
|
+
/** @description What Axivoy does with calls to it now: on, or needs_setup for a number at another provider */
|
|
153223
|
+
calls: string;
|
|
153224
|
+
/** @description Whether calls were turned on for the number by this change */
|
|
153225
|
+
calls_turned_on: boolean;
|
|
153226
|
+
/** @description What happened, in the operator's words */
|
|
153227
|
+
message: string;
|
|
153228
|
+
};
|
|
153229
|
+
};
|
|
153230
|
+
};
|
|
153231
|
+
};
|
|
153232
|
+
202: components["responses"]["Proposal"];
|
|
153233
|
+
/** @description Refused: credits_exhausted. */
|
|
153234
|
+
402: {
|
|
153235
|
+
headers: {
|
|
153236
|
+
[name: string]: unknown;
|
|
153237
|
+
};
|
|
153238
|
+
content: {
|
|
153239
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153240
|
+
};
|
|
153241
|
+
};
|
|
153242
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
153243
|
+
403: {
|
|
153244
|
+
headers: {
|
|
153245
|
+
[name: string]: unknown;
|
|
153246
|
+
};
|
|
153247
|
+
content: {
|
|
153248
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153249
|
+
};
|
|
153250
|
+
};
|
|
153251
|
+
/** @description Refused: not_found. */
|
|
153252
|
+
404: {
|
|
153253
|
+
headers: {
|
|
153254
|
+
[name: string]: unknown;
|
|
153255
|
+
};
|
|
153256
|
+
content: {
|
|
153257
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153258
|
+
};
|
|
153259
|
+
};
|
|
153260
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
153261
|
+
409: {
|
|
153262
|
+
headers: {
|
|
153263
|
+
[name: string]: unknown;
|
|
153264
|
+
};
|
|
153265
|
+
content: {
|
|
153266
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153267
|
+
};
|
|
153268
|
+
};
|
|
153269
|
+
/** @description Refused: operation_retired. */
|
|
153270
|
+
410: {
|
|
153271
|
+
headers: {
|
|
153272
|
+
[name: string]: unknown;
|
|
153273
|
+
};
|
|
153274
|
+
content: {
|
|
153275
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153276
|
+
};
|
|
153277
|
+
};
|
|
153278
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
153279
|
+
422: {
|
|
153280
|
+
headers: {
|
|
153281
|
+
[name: string]: unknown;
|
|
153282
|
+
};
|
|
153283
|
+
content: {
|
|
153284
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153285
|
+
};
|
|
153286
|
+
};
|
|
153287
|
+
/** @description Refused: rate_limited. */
|
|
153288
|
+
429: {
|
|
153289
|
+
headers: {
|
|
153290
|
+
[name: string]: unknown;
|
|
153291
|
+
};
|
|
153292
|
+
content: {
|
|
153293
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153294
|
+
};
|
|
153295
|
+
};
|
|
153296
|
+
};
|
|
153297
|
+
};
|
|
153108
153298
|
"ops.voice.numbers.set_default": {
|
|
153109
153299
|
parameters: {
|
|
153110
153300
|
query?: never;
|