@axivoy/api 1.61.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 +204 -14
- 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;
|
|
@@ -53417,7 +53439,7 @@ export interface operations {
|
|
|
53417
53439
|
/** @description On site: arrived_at minus expected_at in minutes, judged by the on-time rule with the tenant grace; negative is early. Null without an appointment or arrived_at. */
|
|
53418
53440
|
arrived_minutes_vs_appointment?: number | null;
|
|
53419
53441
|
} | null;
|
|
53420
|
-
/** @description Does he make every stop left on this trip? Set for a driver with live clocks and a Live ETA on an in-progress load, while the outlook is for that load and next stop. An estimate from his ELD clocks and the route, not his hours: 2 hours at each stop, rests as soon as his hours run out. */
|
|
53442
|
+
/** @description Does he make every stop left on this trip? Set for a driver with live clocks and a Live ETA on an in-progress load, while the outlook is for that load and next stop. An estimate from his ELD clocks and the route, not his hours: 2 hours at each stop, rests as soon as his hours run out, and a wait for a scheduled start of a full reset or more (10 hours; 8 passenger; on site, with the rest he is already in) is that reset. */
|
|
53421
53443
|
trip_outlook?: {
|
|
53422
53444
|
/**
|
|
53423
53445
|
* Format: date-time
|
|
@@ -53472,13 +53494,13 @@ export interface operations {
|
|
|
53472
53494
|
}[];
|
|
53473
53495
|
/** @description Set while the verdict is late: the ways to make every stop, best first (the larger smallest margin, then fewer added rest hours), at most one per kind, a split last; empty when no single change does; null until searched. A split only while the tenant has split sleeper suggestions on and Axivoy's replay of his hours matches the ELD. A suggestion to talk through with the driver; he decides when he rests. */
|
|
53474
53496
|
ways?: {
|
|
53475
|
-
/** @description longer_rest (hold one full reset or 34-hour restart until rest_until)
|
|
53497
|
+
/** @description longer_rest (hold one full reset or 34-hour restart until rest_until) or split (a split sleeper pair across the trip, in steps). A reset during a long wait at a stop is not a way: the outlook already counts it. */
|
|
53476
53498
|
kind: string;
|
|
53477
|
-
/** @description reset or restart: the rest held longer;
|
|
53499
|
+
/** @description reset or restart: the rest held longer; split for split. */
|
|
53478
53500
|
rest_kind: string;
|
|
53479
53501
|
/** @description longer_rest: the rest held is the one he is in now. split: the first period is the rest he is in now, held longer. */
|
|
53480
53502
|
resting_now: boolean;
|
|
53481
|
-
/** @description longer_rest: the first stop after the rest held.
|
|
53503
|
+
/** @description longer_rest: the first stop after the rest held. split: the stop at or before which the first period falls. */
|
|
53482
53504
|
stop_id: number;
|
|
53483
53505
|
/**
|
|
53484
53506
|
* Format: date-time
|
|
@@ -53487,22 +53509,22 @@ export interface operations {
|
|
|
53487
53509
|
rest_starts_at?: string | null;
|
|
53488
53510
|
/**
|
|
53489
53511
|
* Format: date-time
|
|
53490
|
-
* @description longer_rest: when the rest would end without the change. Null for
|
|
53512
|
+
* @description longer_rest: when the rest would end without the change. Null for split.
|
|
53491
53513
|
*/
|
|
53492
53514
|
rest_planned_until?: string | null;
|
|
53493
53515
|
/**
|
|
53494
53516
|
* Format: date-time
|
|
53495
|
-
* @description longer_rest: the suggested end, the middle of the range that works, on 15 minutes.
|
|
53517
|
+
* @description longer_rest: the suggested end, the middle of the range that works, on 15 minutes. split: when the second period ends.
|
|
53496
53518
|
*/
|
|
53497
53519
|
rest_until: string;
|
|
53498
53520
|
/**
|
|
53499
53521
|
* Format: date-time
|
|
53500
|
-
* @description longer_rest: the earliest end that makes every stop. Null for
|
|
53522
|
+
* @description longer_rest: the earliest end that makes every stop. Null for split.
|
|
53501
53523
|
*/
|
|
53502
53524
|
rest_until_earliest?: string | null;
|
|
53503
53525
|
/**
|
|
53504
53526
|
* Format: date-time
|
|
53505
|
-
* @description longer_rest: the latest end that makes every stop. Null for
|
|
53527
|
+
* @description longer_rest: the latest end that makes every stop. Null for split.
|
|
53506
53528
|
*/
|
|
53507
53529
|
rest_until_latest?: string | null;
|
|
53508
53530
|
/** @description The stops the change moves, in route order. */
|
|
@@ -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;
|