@axivoy/api 1.62.0 → 1.65.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 +210 -9
- 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;
|
|
@@ -17988,7 +18010,7 @@ export interface paths {
|
|
|
17988
18010
|
put?: never;
|
|
17989
18011
|
/**
|
|
17990
18012
|
* Turn on texting for a phone number
|
|
17991
|
-
* @description Lets one of the company's phone numbers send and receive texts under the company's approved texting registration. Refused while the registration is not active, when the number is in another calling account, or when the registration is at its number limit.
|
|
18013
|
+
* @description Lets one of the company's phone numbers send and receive texts under the company's approved texting registration. When carriers have approved the company and Axivoy is waiting for a number, this number becomes the texting number. Refused while the registration is not active, when the number is in another calling account, or when the registration is at its number limit.
|
|
17992
18014
|
*
|
|
17993
18015
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
17994
18016
|
*/
|
|
@@ -136906,6 +136928,8 @@ export interface operations {
|
|
|
136906
136928
|
contact_name?: string | null;
|
|
136907
136929
|
/** @description Authorized contact title */
|
|
136908
136930
|
contact_title?: string | null;
|
|
136931
|
+
/** @description Authorized contact position: Director, GM, VP, CEO, CFO, General Counsel or Other */
|
|
136932
|
+
contact_job_position?: string | null;
|
|
136909
136933
|
/** @description Authorized contact email */
|
|
136910
136934
|
contact_email?: string | null;
|
|
136911
136935
|
/** @description Authorized contact phone (E.164) */
|
|
@@ -140676,7 +140700,9 @@ export interface operations {
|
|
|
140676
140700
|
* "status": "brand_pending",
|
|
140677
140701
|
* "status_label": "Brand review pending",
|
|
140678
140702
|
* "sending_number": null,
|
|
140679
|
-
* "
|
|
140703
|
+
* "requested_number": null,
|
|
140704
|
+
* "number_needed": false,
|
|
140705
|
+
* "submitted_at": "2026-10-25T01:30:45Z",
|
|
140680
140706
|
* "approved_at": null,
|
|
140681
140707
|
* "rejection_reason": null,
|
|
140682
140708
|
* "steps": [
|
|
@@ -140736,6 +140762,10 @@ export interface operations {
|
|
|
140736
140762
|
status_label?: string | null;
|
|
140737
140763
|
/** @description The number texts are sent from (E.164) */
|
|
140738
140764
|
sending_number?: string | null;
|
|
140765
|
+
/** @description The company number texting will use once carriers approve (E.164) */
|
|
140766
|
+
requested_number?: string | null;
|
|
140767
|
+
/** @description Whether carriers approved the company and Axivoy is waiting for it to choose a number to text from */
|
|
140768
|
+
number_needed: boolean;
|
|
140739
140769
|
/**
|
|
140740
140770
|
* Format: date-time
|
|
140741
140771
|
* @description When it was sent to carriers
|
|
@@ -152850,17 +152880,25 @@ export interface operations {
|
|
|
152850
152880
|
* "items": [
|
|
152851
152881
|
* {
|
|
152852
152882
|
* "id": 1,
|
|
152853
|
-
* "number": "+
|
|
152854
|
-
* "source": "
|
|
152855
|
-
* "status": "
|
|
152856
|
-
* "status_label": "
|
|
152883
|
+
* "number": "+13125550150",
|
|
152884
|
+
* "source": "rented",
|
|
152885
|
+
* "status": "active",
|
|
152886
|
+
* "status_label": "Active",
|
|
152857
152887
|
* "is_main": false,
|
|
152858
|
-
* "calls": "
|
|
152888
|
+
* "calls": "on",
|
|
152859
152889
|
* "calls_elsewhere_host": null,
|
|
152860
152890
|
* "texts": "needs_registration",
|
|
152861
152891
|
* "texting_error": null,
|
|
152862
152892
|
* "is_main_texting_number": false,
|
|
152893
|
+
* "answers_with": "forward",
|
|
152894
|
+
* "menu_id": null,
|
|
152895
|
+
* "menu_name": null,
|
|
152896
|
+
* "forward_to": "+18325550101",
|
|
152897
|
+
* "forward_ring_seconds": 30,
|
|
152898
|
+
* "forward_shows_company_number": true,
|
|
152863
152899
|
* "texting_registration": "none",
|
|
152900
|
+
* "texting_requested": false,
|
|
152901
|
+
* "handed_over_until": null,
|
|
152864
152902
|
* "deleted": null
|
|
152865
152903
|
* }
|
|
152866
152904
|
* ],
|
|
@@ -152894,8 +152932,22 @@ export interface operations {
|
|
|
152894
152932
|
texting_error?: string | null;
|
|
152895
152933
|
/** @description Whether new texts go from this number */
|
|
152896
152934
|
is_main_texting_number: boolean;
|
|
152897
|
-
/** @description
|
|
152935
|
+
/** @description How the number answers calls: team (rings everyone available, then voicemail), menu or forward */
|
|
152936
|
+
answers_with: string;
|
|
152937
|
+
/** @description The phone menu it answers with, when answers_with is menu */
|
|
152938
|
+
menu_id?: number | null;
|
|
152939
|
+
/** @description That phone menu's name */
|
|
152940
|
+
menu_name?: string | null;
|
|
152941
|
+
/** @description The outside number calls forward to (+1 format), when answers_with is forward */
|
|
152942
|
+
forward_to?: string | null;
|
|
152943
|
+
/** @description How long the forwarded phone rings before voicemail, when answers_with is forward */
|
|
152944
|
+
forward_ring_seconds?: number | null;
|
|
152945
|
+
/** @description Whether the forwarded phone sees the company number instead of the caller's */
|
|
152946
|
+
forward_shows_company_number: boolean;
|
|
152947
|
+
/** @description The company's texting registration: none, in_progress, needs_changes (carriers refused a step), number_needed (approved, waiting for the company to choose a number) or active (the same on every number) */
|
|
152898
152948
|
texting_registration: string;
|
|
152949
|
+
/** @description Whether this is the number the texting registration will text from once carriers approve */
|
|
152950
|
+
texting_requested: boolean;
|
|
152899
152951
|
/**
|
|
152900
152952
|
* Format: date-time
|
|
152901
152953
|
* @description Set when the number moved to Axivoy: it is read-only and texts to it reach the company until then
|
|
@@ -153105,6 +153157,155 @@ export interface operations {
|
|
|
153105
153157
|
};
|
|
153106
153158
|
};
|
|
153107
153159
|
};
|
|
153160
|
+
"ops.voice.numbers.set_call_handling": {
|
|
153161
|
+
parameters: {
|
|
153162
|
+
query?: never;
|
|
153163
|
+
header?: {
|
|
153164
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
153165
|
+
"Idempotency-Key"?: string;
|
|
153166
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
153167
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
153168
|
+
};
|
|
153169
|
+
path?: never;
|
|
153170
|
+
cookie?: never;
|
|
153171
|
+
};
|
|
153172
|
+
requestBody?: {
|
|
153173
|
+
content: {
|
|
153174
|
+
/**
|
|
153175
|
+
* @example {
|
|
153176
|
+
* "number_id": 1,
|
|
153177
|
+
* "answer_with": "forward",
|
|
153178
|
+
* "forward_to": "(832) 555-0101",
|
|
153179
|
+
* "ring_seconds": 30,
|
|
153180
|
+
* "show_company_number": true
|
|
153181
|
+
* }
|
|
153182
|
+
*/
|
|
153183
|
+
"application/json": {
|
|
153184
|
+
/** @description The phone number (from voice.numbers.list) */
|
|
153185
|
+
number_id: number;
|
|
153186
|
+
/**
|
|
153187
|
+
* @description How the number answers calls
|
|
153188
|
+
* @enum {string}
|
|
153189
|
+
*/
|
|
153190
|
+
answer_with: "team" | "menu" | "forward";
|
|
153191
|
+
/** @description The phone menu, when answer_with is menu (or builtin_key) */
|
|
153192
|
+
menu_id?: number | null;
|
|
153193
|
+
/**
|
|
153194
|
+
* @description A built-in Axivoy menu, when answer_with is menu (or menu_id)
|
|
153195
|
+
* @enum {string|null}
|
|
153196
|
+
*/
|
|
153197
|
+
builtin_key?: "carrier_main_line" | null;
|
|
153198
|
+
/** @description US or Canada number calls forward to; required when answer_with is forward */
|
|
153199
|
+
forward_to?: string | null;
|
|
153200
|
+
/** @description How long the forwarded phone rings before voicemail, 10 to 60; default 20 */
|
|
153201
|
+
ring_seconds?: number | null;
|
|
153202
|
+
/** @description True shows the company number to the forwarded phone instead of the caller's; default false */
|
|
153203
|
+
show_company_number?: boolean | null;
|
|
153204
|
+
/** @description True replaces call handling set up outside Axivoy; required when the number's calls go to another host today */
|
|
153205
|
+
replace_elsewhere?: boolean | null;
|
|
153206
|
+
};
|
|
153207
|
+
};
|
|
153208
|
+
};
|
|
153209
|
+
responses: {
|
|
153210
|
+
/** @description The operation ran. */
|
|
153211
|
+
200: {
|
|
153212
|
+
headers: {
|
|
153213
|
+
[name: string]: unknown;
|
|
153214
|
+
};
|
|
153215
|
+
content: {
|
|
153216
|
+
/**
|
|
153217
|
+
* @example {
|
|
153218
|
+
* "result": {
|
|
153219
|
+
* "number_id": 1,
|
|
153220
|
+
* "answers_with": "forward",
|
|
153221
|
+
* "calls": "on",
|
|
153222
|
+
* "calls_turned_on": false,
|
|
153223
|
+
* "message": "Calls to (312) 555-0150 now forward to (832) 555-0101."
|
|
153224
|
+
* }
|
|
153225
|
+
* }
|
|
153226
|
+
*/
|
|
153227
|
+
"application/json": {
|
|
153228
|
+
result: {
|
|
153229
|
+
/** @description The phone number */
|
|
153230
|
+
number_id: number;
|
|
153231
|
+
/** @description How it answers calls now: team, menu or forward */
|
|
153232
|
+
answers_with: string;
|
|
153233
|
+
/** @description What Axivoy does with calls to it now: on, or needs_setup for a number at another provider */
|
|
153234
|
+
calls: string;
|
|
153235
|
+
/** @description Whether calls were turned on for the number by this change */
|
|
153236
|
+
calls_turned_on: boolean;
|
|
153237
|
+
/** @description What happened, in the operator's words */
|
|
153238
|
+
message: string;
|
|
153239
|
+
};
|
|
153240
|
+
};
|
|
153241
|
+
};
|
|
153242
|
+
};
|
|
153243
|
+
202: components["responses"]["Proposal"];
|
|
153244
|
+
/** @description Refused: credits_exhausted. */
|
|
153245
|
+
402: {
|
|
153246
|
+
headers: {
|
|
153247
|
+
[name: string]: unknown;
|
|
153248
|
+
};
|
|
153249
|
+
content: {
|
|
153250
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153251
|
+
};
|
|
153252
|
+
};
|
|
153253
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
153254
|
+
403: {
|
|
153255
|
+
headers: {
|
|
153256
|
+
[name: string]: unknown;
|
|
153257
|
+
};
|
|
153258
|
+
content: {
|
|
153259
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153260
|
+
};
|
|
153261
|
+
};
|
|
153262
|
+
/** @description Refused: not_found. */
|
|
153263
|
+
404: {
|
|
153264
|
+
headers: {
|
|
153265
|
+
[name: string]: unknown;
|
|
153266
|
+
};
|
|
153267
|
+
content: {
|
|
153268
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153269
|
+
};
|
|
153270
|
+
};
|
|
153271
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
153272
|
+
409: {
|
|
153273
|
+
headers: {
|
|
153274
|
+
[name: string]: unknown;
|
|
153275
|
+
};
|
|
153276
|
+
content: {
|
|
153277
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153278
|
+
};
|
|
153279
|
+
};
|
|
153280
|
+
/** @description Refused: operation_retired. */
|
|
153281
|
+
410: {
|
|
153282
|
+
headers: {
|
|
153283
|
+
[name: string]: unknown;
|
|
153284
|
+
};
|
|
153285
|
+
content: {
|
|
153286
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153287
|
+
};
|
|
153288
|
+
};
|
|
153289
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
153290
|
+
422: {
|
|
153291
|
+
headers: {
|
|
153292
|
+
[name: string]: unknown;
|
|
153293
|
+
};
|
|
153294
|
+
content: {
|
|
153295
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153296
|
+
};
|
|
153297
|
+
};
|
|
153298
|
+
/** @description Refused: rate_limited. */
|
|
153299
|
+
429: {
|
|
153300
|
+
headers: {
|
|
153301
|
+
[name: string]: unknown;
|
|
153302
|
+
};
|
|
153303
|
+
content: {
|
|
153304
|
+
"application/json": components["schemas"]["OperationError"];
|
|
153305
|
+
};
|
|
153306
|
+
};
|
|
153307
|
+
};
|
|
153308
|
+
};
|
|
153108
153309
|
"ops.voice.numbers.set_default": {
|
|
153109
153310
|
parameters: {
|
|
153110
153311
|
query?: never;
|