@axivoy/api 2.34.0 → 2.38.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 +2176 -252
- package/package.json +1 -1
|
@@ -1180,7 +1180,7 @@ export interface paths {
|
|
|
1180
1180
|
put?: never;
|
|
1181
1181
|
/**
|
|
1182
1182
|
* Change how a team takes calls
|
|
1183
|
-
* @description Changes who answers a team's calls (its people with Calls on, or a ring group), whether it rings
|
|
1183
|
+
* @description Changes who answers a team's calls (its people with Calls on, or a ring group), whether its people's own verified phones ring too, whether it rings, goes to voicemail or rings who's on call when the company is closed, its voicemail greeting, and what callers hear for it in the main phone menu. Fields left out keep their value. The first time on_call is picked the team's on-call rotation starts with its defaults (communication_teams.coverage.get).
|
|
1184
1184
|
*
|
|
1185
1185
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1186
1186
|
*/
|
|
@@ -1191,6 +1191,116 @@ export interface paths {
|
|
|
1191
1191
|
patch?: never;
|
|
1192
1192
|
trace?: never;
|
|
1193
1193
|
};
|
|
1194
|
+
"/ops/communication_teams.coverage.get": {
|
|
1195
|
+
parameters: {
|
|
1196
|
+
query?: never;
|
|
1197
|
+
header?: never;
|
|
1198
|
+
path?: never;
|
|
1199
|
+
cookie?: never;
|
|
1200
|
+
};
|
|
1201
|
+
get?: never;
|
|
1202
|
+
put?: never;
|
|
1203
|
+
/**
|
|
1204
|
+
* View a team's on-call rotation
|
|
1205
|
+
* @description One team's on-call rotation: its people in turn order, how long turns last and when they change, who rings when the person on call does not answer, the upcoming turns with hand-offs applied, and whether the team rings it after hours. A team without a rotation reads as not in use with the defaults: the team's people who make and take calls, weekly turns from next Monday at 8:00 AM, 30 seconds, backup the next person.
|
|
1206
|
+
*
|
|
1207
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1208
|
+
*/
|
|
1209
|
+
post: operations["ops.communication_teams.coverage.get"];
|
|
1210
|
+
delete?: never;
|
|
1211
|
+
options?: never;
|
|
1212
|
+
head?: never;
|
|
1213
|
+
patch?: never;
|
|
1214
|
+
trace?: never;
|
|
1215
|
+
};
|
|
1216
|
+
"/ops/communication_teams.coverage.hand_offs.cancel": {
|
|
1217
|
+
parameters: {
|
|
1218
|
+
query?: never;
|
|
1219
|
+
header?: never;
|
|
1220
|
+
path?: never;
|
|
1221
|
+
cookie?: never;
|
|
1222
|
+
};
|
|
1223
|
+
get?: never;
|
|
1224
|
+
put?: never;
|
|
1225
|
+
/**
|
|
1226
|
+
* Cancel an on-call hand-off
|
|
1227
|
+
* @description Cancels a hand-off that has not ended; the turn goes back to the rotation and the person who was covering is told. The person who made it, or someone with Manage teams, can cancel.
|
|
1228
|
+
*
|
|
1229
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1230
|
+
*/
|
|
1231
|
+
post: operations["ops.communication_teams.coverage.hand_offs.cancel"];
|
|
1232
|
+
delete?: never;
|
|
1233
|
+
options?: never;
|
|
1234
|
+
head?: never;
|
|
1235
|
+
patch?: never;
|
|
1236
|
+
trace?: never;
|
|
1237
|
+
};
|
|
1238
|
+
"/ops/communication_teams.coverage.hand_offs.create": {
|
|
1239
|
+
parameters: {
|
|
1240
|
+
query?: never;
|
|
1241
|
+
header?: never;
|
|
1242
|
+
path?: never;
|
|
1243
|
+
cookie?: never;
|
|
1244
|
+
};
|
|
1245
|
+
get?: never;
|
|
1246
|
+
put?: never;
|
|
1247
|
+
/**
|
|
1248
|
+
* Hand off an on-call turn
|
|
1249
|
+
* @description Someone else covers part or all of a team's on-call turn. The person on call for the whole window can hand it to any teammate who makes and takes calls; someone with Manage teams can hand off any window. The covering person is notified.
|
|
1250
|
+
*
|
|
1251
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1252
|
+
*/
|
|
1253
|
+
post: operations["ops.communication_teams.coverage.hand_offs.create"];
|
|
1254
|
+
delete?: never;
|
|
1255
|
+
options?: never;
|
|
1256
|
+
head?: never;
|
|
1257
|
+
patch?: never;
|
|
1258
|
+
trace?: never;
|
|
1259
|
+
};
|
|
1260
|
+
"/ops/communication_teams.coverage.list": {
|
|
1261
|
+
parameters: {
|
|
1262
|
+
query?: never;
|
|
1263
|
+
header?: never;
|
|
1264
|
+
path?: never;
|
|
1265
|
+
cookie?: never;
|
|
1266
|
+
};
|
|
1267
|
+
get?: never;
|
|
1268
|
+
put?: never;
|
|
1269
|
+
/**
|
|
1270
|
+
* Who is on call
|
|
1271
|
+
* @description Every team that rings who's on call after hours: who is on call now and until when, whether they can be reached on a verified phone, and who is next and from when.
|
|
1272
|
+
*
|
|
1273
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1274
|
+
*/
|
|
1275
|
+
post: operations["ops.communication_teams.coverage.list"];
|
|
1276
|
+
delete?: never;
|
|
1277
|
+
options?: never;
|
|
1278
|
+
head?: never;
|
|
1279
|
+
patch?: never;
|
|
1280
|
+
trace?: never;
|
|
1281
|
+
};
|
|
1282
|
+
"/ops/communication_teams.coverage.set": {
|
|
1283
|
+
parameters: {
|
|
1284
|
+
query?: never;
|
|
1285
|
+
header?: never;
|
|
1286
|
+
path?: never;
|
|
1287
|
+
cookie?: never;
|
|
1288
|
+
};
|
|
1289
|
+
get?: never;
|
|
1290
|
+
put?: never;
|
|
1291
|
+
/**
|
|
1292
|
+
* Change a team's on-call rotation
|
|
1293
|
+
* @description Sets who answers a team's calls after hours, taking turns: people in turn order, turns of 1 to 14 days that change at a local time, how long each person rings, and who rings next when they don't answer; then the team's voicemail. The team rings it when its after-hours choice is on_call (communication_teams.calls.update). Fields left out keep their value; calls already ringing keep the people they started with.
|
|
1294
|
+
*
|
|
1295
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1296
|
+
*/
|
|
1297
|
+
post: operations["ops.communication_teams.coverage.set"];
|
|
1298
|
+
delete?: never;
|
|
1299
|
+
options?: never;
|
|
1300
|
+
head?: never;
|
|
1301
|
+
patch?: never;
|
|
1302
|
+
trace?: never;
|
|
1303
|
+
};
|
|
1194
1304
|
"/ops/communication_teams.create": {
|
|
1195
1305
|
parameters: {
|
|
1196
1306
|
query?: never;
|
|
@@ -15777,6 +15887,72 @@ export interface paths {
|
|
|
15777
15887
|
patch?: never;
|
|
15778
15888
|
trace?: never;
|
|
15779
15889
|
};
|
|
15890
|
+
"/ops/recruiting.traffic.outside_spend.imports.columns.update": {
|
|
15891
|
+
parameters: {
|
|
15892
|
+
query?: never;
|
|
15893
|
+
header?: never;
|
|
15894
|
+
path?: never;
|
|
15895
|
+
cookie?: never;
|
|
15896
|
+
};
|
|
15897
|
+
get?: never;
|
|
15898
|
+
put?: never;
|
|
15899
|
+
/**
|
|
15900
|
+
* Match a spend report's columns
|
|
15901
|
+
* @description Says which columns of a spend report hold the day, the spend and the optional counts, for a report waiting for its columns or one recorded with the wrong ones, then records it. Axivoy remembers the match for that place's reports with the same columns, records any others waiting with them, and when changing a recorded report's match records again every report of that place with those columns, oldest first.
|
|
15902
|
+
*
|
|
15903
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15904
|
+
*/
|
|
15905
|
+
post: operations["ops.recruiting.traffic.outside_spend.imports.columns.update"];
|
|
15906
|
+
delete?: never;
|
|
15907
|
+
options?: never;
|
|
15908
|
+
head?: never;
|
|
15909
|
+
patch?: never;
|
|
15910
|
+
trace?: never;
|
|
15911
|
+
};
|
|
15912
|
+
"/ops/recruiting.traffic.outside_spend.imports.create": {
|
|
15913
|
+
parameters: {
|
|
15914
|
+
query?: never;
|
|
15915
|
+
header?: never;
|
|
15916
|
+
path?: never;
|
|
15917
|
+
cookie?: never;
|
|
15918
|
+
};
|
|
15919
|
+
get?: never;
|
|
15920
|
+
put?: never;
|
|
15921
|
+
/**
|
|
15922
|
+
* Import a spend report
|
|
15923
|
+
* @description Reads a daily spend report from a place you pay directly, such as Indeed, and records each day's spend for that place. Re-importing the same file changes nothing; a report that overlaps earlier ones updates only the days whose numbers changed. When Axivoy cannot tell which columns hold the day and the spend, the report waits for you to match them.
|
|
15924
|
+
*
|
|
15925
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15926
|
+
*/
|
|
15927
|
+
post: operations["ops.recruiting.traffic.outside_spend.imports.create"];
|
|
15928
|
+
delete?: never;
|
|
15929
|
+
options?: never;
|
|
15930
|
+
head?: never;
|
|
15931
|
+
patch?: never;
|
|
15932
|
+
trace?: never;
|
|
15933
|
+
};
|
|
15934
|
+
"/ops/recruiting.traffic.outside_spend.months.record": {
|
|
15935
|
+
parameters: {
|
|
15936
|
+
query?: never;
|
|
15937
|
+
header?: never;
|
|
15938
|
+
path?: never;
|
|
15939
|
+
cookie?: never;
|
|
15940
|
+
};
|
|
15941
|
+
get?: never;
|
|
15942
|
+
put?: never;
|
|
15943
|
+
/**
|
|
15944
|
+
* Enter what you paid a place for a month
|
|
15945
|
+
* @description Records what you paid a place you advertise for one month, for places without a daily report. Imported daily spend for that place and month takes its place. An empty amount clears it.
|
|
15946
|
+
*
|
|
15947
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15948
|
+
*/
|
|
15949
|
+
post: operations["ops.recruiting.traffic.outside_spend.months.record"];
|
|
15950
|
+
delete?: never;
|
|
15951
|
+
options?: never;
|
|
15952
|
+
head?: never;
|
|
15953
|
+
patch?: never;
|
|
15954
|
+
trace?: never;
|
|
15955
|
+
};
|
|
15780
15956
|
"/ops/reports.catalog": {
|
|
15781
15957
|
parameters: {
|
|
15782
15958
|
query?: never;
|
|
@@ -18538,7 +18714,7 @@ export interface paths {
|
|
|
18538
18714
|
put?: never;
|
|
18539
18715
|
/**
|
|
18540
18716
|
* Hold or transfer my call
|
|
18541
|
-
* @description Puts the other person on the signed-in person's current call on hold, brings them back, or transfers them to a teammate's calling panel or a phone number.
|
|
18717
|
+
* @description Puts the other person on the signed-in person's current call on hold, brings them back, or transfers them to a teammate's calling panel, an extension or a phone number.
|
|
18542
18718
|
*
|
|
18543
18719
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18544
18720
|
*/
|
|
@@ -18593,6 +18769,94 @@ export interface paths {
|
|
|
18593
18769
|
patch?: never;
|
|
18594
18770
|
trace?: never;
|
|
18595
18771
|
};
|
|
18772
|
+
"/ops/voice.extensions.fill": {
|
|
18773
|
+
parameters: {
|
|
18774
|
+
query?: never;
|
|
18775
|
+
header?: never;
|
|
18776
|
+
path?: never;
|
|
18777
|
+
cookie?: never;
|
|
18778
|
+
};
|
|
18779
|
+
get?: never;
|
|
18780
|
+
put?: never;
|
|
18781
|
+
/**
|
|
18782
|
+
* Give everyone an extension
|
|
18783
|
+
* @description Gives an extension to everyone who makes and takes calls and has none (200 up, by last name), then to each team that is on and has none (801 up, main phone menu order first). Extensions already given out stay as they are.
|
|
18784
|
+
*
|
|
18785
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18786
|
+
*/
|
|
18787
|
+
post: operations["ops.voice.extensions.fill"];
|
|
18788
|
+
delete?: never;
|
|
18789
|
+
options?: never;
|
|
18790
|
+
head?: never;
|
|
18791
|
+
patch?: never;
|
|
18792
|
+
trace?: never;
|
|
18793
|
+
};
|
|
18794
|
+
"/ops/voice.extensions.list": {
|
|
18795
|
+
parameters: {
|
|
18796
|
+
query?: never;
|
|
18797
|
+
header?: never;
|
|
18798
|
+
path?: never;
|
|
18799
|
+
cookie?: never;
|
|
18800
|
+
};
|
|
18801
|
+
get?: never;
|
|
18802
|
+
put?: never;
|
|
18803
|
+
/**
|
|
18804
|
+
* Extensions
|
|
18805
|
+
* @description The company's 3-digit extensions: the person, team, ring group or voicemail box each reaches, and whether a call to it rings anything now (in_use false for someone no longer with the company or a team that is off).
|
|
18806
|
+
*
|
|
18807
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18808
|
+
*/
|
|
18809
|
+
post: operations["ops.voice.extensions.list"];
|
|
18810
|
+
delete?: never;
|
|
18811
|
+
options?: never;
|
|
18812
|
+
head?: never;
|
|
18813
|
+
patch?: never;
|
|
18814
|
+
trace?: never;
|
|
18815
|
+
};
|
|
18816
|
+
"/ops/voice.extensions.remove": {
|
|
18817
|
+
parameters: {
|
|
18818
|
+
query?: never;
|
|
18819
|
+
header?: never;
|
|
18820
|
+
path?: never;
|
|
18821
|
+
cookie?: never;
|
|
18822
|
+
};
|
|
18823
|
+
get?: never;
|
|
18824
|
+
put?: never;
|
|
18825
|
+
/**
|
|
18826
|
+
* Remove an extension
|
|
18827
|
+
* @description Frees an extension. Dialing it then says "That extension isn't in use." until it is given out again.
|
|
18828
|
+
*
|
|
18829
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18830
|
+
*/
|
|
18831
|
+
post: operations["ops.voice.extensions.remove"];
|
|
18832
|
+
delete?: never;
|
|
18833
|
+
options?: never;
|
|
18834
|
+
head?: never;
|
|
18835
|
+
patch?: never;
|
|
18836
|
+
trace?: never;
|
|
18837
|
+
};
|
|
18838
|
+
"/ops/voice.extensions.set": {
|
|
18839
|
+
parameters: {
|
|
18840
|
+
query?: never;
|
|
18841
|
+
header?: never;
|
|
18842
|
+
path?: never;
|
|
18843
|
+
cookie?: never;
|
|
18844
|
+
};
|
|
18845
|
+
get?: never;
|
|
18846
|
+
put?: never;
|
|
18847
|
+
/**
|
|
18848
|
+
* Set an extension
|
|
18849
|
+
* @description Gives a person, team, ring group or voicemail box a 3-digit extension, or changes it. People get 200 to 799, the rest 801 to 899; 211 to 811 and numbers starting with 9 are reserved. Left out, the number is the next free one.
|
|
18850
|
+
*
|
|
18851
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18852
|
+
*/
|
|
18853
|
+
post: operations["ops.voice.extensions.set"];
|
|
18854
|
+
delete?: never;
|
|
18855
|
+
options?: never;
|
|
18856
|
+
head?: never;
|
|
18857
|
+
patch?: never;
|
|
18858
|
+
trace?: never;
|
|
18859
|
+
};
|
|
18596
18860
|
"/ops/voice.main_menu.set": {
|
|
18597
18861
|
parameters: {
|
|
18598
18862
|
query?: never;
|
|
@@ -18604,7 +18868,7 @@ export interface paths {
|
|
|
18604
18868
|
put?: never;
|
|
18605
18869
|
/**
|
|
18606
18870
|
* Choose the main phone menu's teams
|
|
18607
|
-
* @description Sets which teams callers can choose in the Axivoy carrier main line and in what order: the first team is press 1, up to 8 teams, and 9 repeats the options. Calls already in progress keep the menu they started with.
|
|
18871
|
+
* @description Sets which teams callers can choose in the Axivoy carrier main line and in what order: the first team is press 1, up to 8 teams, and 9 repeats the options. Can also let callers press star, then an extension. Calls already in progress keep the menu they started with.
|
|
18608
18872
|
*
|
|
18609
18873
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
18610
18874
|
*/
|
|
@@ -19330,7 +19594,7 @@ export interface paths {
|
|
|
19330
19594
|
put?: never;
|
|
19331
19595
|
/**
|
|
19332
19596
|
* Create a ring group
|
|
19333
|
-
* @description Creates a ring group: the people and phone numbers a phone menu rings together, everyone at once
|
|
19597
|
+
* @description Creates a ring group: the people and phone numbers a phone menu rings together, everyone at once, one at a time in order, taking turns, or whoever has gone longest without a call first, optionally with people's own verified phones.
|
|
19334
19598
|
*
|
|
19335
19599
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
19336
19600
|
*/
|
|
@@ -19374,7 +19638,7 @@ export interface paths {
|
|
|
19374
19638
|
put?: never;
|
|
19375
19639
|
/**
|
|
19376
19640
|
* Update a ring group
|
|
19377
|
-
* @description Changes a ring group's name, members, ring
|
|
19641
|
+
* @description Changes a ring group's name, members, how it rings (strategy), whether people's own phones ring too, or ring time. Fields left out keep their value; members replaces the whole list.
|
|
19378
19642
|
*
|
|
19379
19643
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
19380
19644
|
*/
|
|
@@ -29047,10 +29311,12 @@ export interface operations {
|
|
|
29047
29311
|
/** @description The company's ring group; required when answered_by is ring_group */
|
|
29048
29312
|
ring_group_id?: number | null;
|
|
29049
29313
|
/**
|
|
29050
|
-
* @description ring or voicemail when the company is closed
|
|
29314
|
+
* @description ring, voicemail or on_call (the team's on-call rotation, then its voicemail) when the company is closed
|
|
29051
29315
|
* @enum {string}
|
|
29052
29316
|
*/
|
|
29053
|
-
after_hours?: "ring" | "voicemail";
|
|
29317
|
+
after_hours?: "ring" | "voicemail" | "on_call";
|
|
29318
|
+
/** @description When its people answer: true also rings their verified phones with Axivoy, each asking them to press 1 (a ring group has its own switch; on call always rings phones) */
|
|
29319
|
+
ring_member_phones?: boolean;
|
|
29054
29320
|
/** @description What callers hear before the tone; empty uses the default */
|
|
29055
29321
|
voicemail_greeting?: string | null;
|
|
29056
29322
|
/** @description What the main phone menu says before "press {digit}", for example "For billing and payments" */
|
|
@@ -29156,7 +29422,7 @@ export interface operations {
|
|
|
29156
29422
|
};
|
|
29157
29423
|
};
|
|
29158
29424
|
};
|
|
29159
|
-
"ops.communication_teams.
|
|
29425
|
+
"ops.communication_teams.coverage.get": {
|
|
29160
29426
|
parameters: {
|
|
29161
29427
|
query?: never;
|
|
29162
29428
|
header?: {
|
|
@@ -29170,19 +29436,9 @@ export interface operations {
|
|
|
29170
29436
|
};
|
|
29171
29437
|
requestBody?: {
|
|
29172
29438
|
content: {
|
|
29173
|
-
/**
|
|
29174
|
-
* @example {
|
|
29175
|
-
* "name": " Brokerage desk ",
|
|
29176
|
-
* "email_local_part": "Brokerage"
|
|
29177
|
-
* }
|
|
29178
|
-
*/
|
|
29179
29439
|
"application/json": {
|
|
29180
|
-
/** @description
|
|
29181
|
-
|
|
29182
|
-
/** @description The part before @ of the team's Axivoy address; default from the name; reserved and used names are refused */
|
|
29183
|
-
email_local_part?: string;
|
|
29184
|
-
/** @description Adds an available built-in team instead of a custom one; its name and address come from the catalog */
|
|
29185
|
-
builtin_key?: string;
|
|
29440
|
+
/** @description The team (from communication_teams.list) */
|
|
29441
|
+
team_key: string;
|
|
29186
29442
|
};
|
|
29187
29443
|
};
|
|
29188
29444
|
};
|
|
@@ -29193,23 +29449,710 @@ export interface operations {
|
|
|
29193
29449
|
[name: string]: unknown;
|
|
29194
29450
|
};
|
|
29195
29451
|
content: {
|
|
29196
|
-
/**
|
|
29197
|
-
* @example {
|
|
29198
|
-
* "result": {
|
|
29199
|
-
* "team_key": "brokerage_desk",
|
|
29200
|
-
* "email_address": null,
|
|
29201
|
-
* "message": "Brokerage desk created. Add its people next."
|
|
29202
|
-
* }
|
|
29203
|
-
* }
|
|
29204
|
-
*/
|
|
29205
29452
|
"application/json": {
|
|
29206
29453
|
result: {
|
|
29207
|
-
/** @description The
|
|
29454
|
+
/** @description The team */
|
|
29208
29455
|
team_key: string;
|
|
29209
|
-
/** @description
|
|
29210
|
-
|
|
29211
|
-
/** @description
|
|
29212
|
-
|
|
29456
|
+
/** @description Whether the team has a rotation saved; false reads the defaults it would start from */
|
|
29457
|
+
in_use: boolean;
|
|
29458
|
+
/** @description IANA time zone turns change in */
|
|
29459
|
+
timezone: string;
|
|
29460
|
+
/**
|
|
29461
|
+
* Format: date
|
|
29462
|
+
* @description Local date the first turn starts
|
|
29463
|
+
*/
|
|
29464
|
+
starts_on: string;
|
|
29465
|
+
/** @description Local time turns change, HH:MM */
|
|
29466
|
+
handoff_time: string;
|
|
29467
|
+
/** @description How many days each turn lasts */
|
|
29468
|
+
turn_days: number;
|
|
29469
|
+
/** @description How long each person rings */
|
|
29470
|
+
ring_seconds: number;
|
|
29471
|
+
/** @description People in turn order */
|
|
29472
|
+
members: {
|
|
29473
|
+
/** @description The person */
|
|
29474
|
+
user_id: number;
|
|
29475
|
+
/** @description Their name */
|
|
29476
|
+
name: string;
|
|
29477
|
+
/** @description Whether they still make and take calls; turns skip people who don't */
|
|
29478
|
+
takes_calls: boolean;
|
|
29479
|
+
/** @description Whether they have a verified phone, so calls reach them away from Axivoy */
|
|
29480
|
+
has_phone: boolean;
|
|
29481
|
+
}[];
|
|
29482
|
+
/** @description Who rings when the person on call does not answer: next (the next person in turn order), person (backup_user_id) or none */
|
|
29483
|
+
backup: string;
|
|
29484
|
+
/** @description The backup when backup is person */
|
|
29485
|
+
backup_user_id?: number | null;
|
|
29486
|
+
/** @description Who is on call now; null when nobody is */
|
|
29487
|
+
on_call_now?: {
|
|
29488
|
+
/** @description The person */
|
|
29489
|
+
user_id: number;
|
|
29490
|
+
/** @description Their name */
|
|
29491
|
+
name: string;
|
|
29492
|
+
/**
|
|
29493
|
+
* Format: date-time
|
|
29494
|
+
* @description When their window ends (UTC)
|
|
29495
|
+
*/
|
|
29496
|
+
until: string;
|
|
29497
|
+
/** @description turn or hand_off */
|
|
29498
|
+
source: string;
|
|
29499
|
+
} | null;
|
|
29500
|
+
/** @description The next windows, turns split where hand-offs start and end */
|
|
29501
|
+
upcoming_turns: {
|
|
29502
|
+
/** @description Who is on call */
|
|
29503
|
+
user_id: number;
|
|
29504
|
+
/** @description Their name */
|
|
29505
|
+
name: string;
|
|
29506
|
+
/**
|
|
29507
|
+
* Format: date-time
|
|
29508
|
+
* @description Window start (UTC); the first may be under way
|
|
29509
|
+
*/
|
|
29510
|
+
starts_at: string;
|
|
29511
|
+
/**
|
|
29512
|
+
* Format: date-time
|
|
29513
|
+
* @description Window end (UTC)
|
|
29514
|
+
*/
|
|
29515
|
+
ends_at: string;
|
|
29516
|
+
/** @description turn or hand_off */
|
|
29517
|
+
source: string;
|
|
29518
|
+
/** @description The hand-off covering it, when source is hand_off */
|
|
29519
|
+
hand_off_id?: number | null;
|
|
29520
|
+
/** @description Whose turn it is in the rotation */
|
|
29521
|
+
turn_user_id?: number | null;
|
|
29522
|
+
}[];
|
|
29523
|
+
/** @description Hand-offs that have not ended or been canceled */
|
|
29524
|
+
hand_offs: {
|
|
29525
|
+
/** @description The hand-off (communication_teams.coverage.hand_offs.cancel) */
|
|
29526
|
+
hand_off_id: number;
|
|
29527
|
+
/** @description Who covers */
|
|
29528
|
+
user_id: number;
|
|
29529
|
+
/** @description Their name */
|
|
29530
|
+
name: string;
|
|
29531
|
+
/**
|
|
29532
|
+
* Format: date-time
|
|
29533
|
+
* @description Start (UTC)
|
|
29534
|
+
*/
|
|
29535
|
+
starts_at: string;
|
|
29536
|
+
/**
|
|
29537
|
+
* Format: date-time
|
|
29538
|
+
* @description End (UTC)
|
|
29539
|
+
*/
|
|
29540
|
+
ends_at: string;
|
|
29541
|
+
/** @description Why */
|
|
29542
|
+
note?: string | null;
|
|
29543
|
+
/** @description Who made it */
|
|
29544
|
+
created_by_user_id?: number | null;
|
|
29545
|
+
/** @description Their name */
|
|
29546
|
+
created_by_name?: string | null;
|
|
29547
|
+
}[];
|
|
29548
|
+
};
|
|
29549
|
+
};
|
|
29550
|
+
};
|
|
29551
|
+
};
|
|
29552
|
+
202: components["responses"]["Proposal"];
|
|
29553
|
+
/** @description Refused: credits_exhausted. */
|
|
29554
|
+
402: {
|
|
29555
|
+
headers: {
|
|
29556
|
+
[name: string]: unknown;
|
|
29557
|
+
};
|
|
29558
|
+
content: {
|
|
29559
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29560
|
+
};
|
|
29561
|
+
};
|
|
29562
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29563
|
+
403: {
|
|
29564
|
+
headers: {
|
|
29565
|
+
[name: string]: unknown;
|
|
29566
|
+
};
|
|
29567
|
+
content: {
|
|
29568
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29569
|
+
};
|
|
29570
|
+
};
|
|
29571
|
+
/** @description Refused: not_found. */
|
|
29572
|
+
404: {
|
|
29573
|
+
headers: {
|
|
29574
|
+
[name: string]: unknown;
|
|
29575
|
+
};
|
|
29576
|
+
content: {
|
|
29577
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29578
|
+
};
|
|
29579
|
+
};
|
|
29580
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29581
|
+
409: {
|
|
29582
|
+
headers: {
|
|
29583
|
+
[name: string]: unknown;
|
|
29584
|
+
};
|
|
29585
|
+
content: {
|
|
29586
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29587
|
+
};
|
|
29588
|
+
};
|
|
29589
|
+
/** @description Refused: operation_retired. */
|
|
29590
|
+
410: {
|
|
29591
|
+
headers: {
|
|
29592
|
+
[name: string]: unknown;
|
|
29593
|
+
};
|
|
29594
|
+
content: {
|
|
29595
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29596
|
+
};
|
|
29597
|
+
};
|
|
29598
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29599
|
+
422: {
|
|
29600
|
+
headers: {
|
|
29601
|
+
[name: string]: unknown;
|
|
29602
|
+
};
|
|
29603
|
+
content: {
|
|
29604
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29605
|
+
};
|
|
29606
|
+
};
|
|
29607
|
+
/** @description Refused: rate_limited. */
|
|
29608
|
+
429: {
|
|
29609
|
+
headers: {
|
|
29610
|
+
[name: string]: unknown;
|
|
29611
|
+
};
|
|
29612
|
+
content: {
|
|
29613
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29614
|
+
};
|
|
29615
|
+
};
|
|
29616
|
+
};
|
|
29617
|
+
};
|
|
29618
|
+
"ops.communication_teams.coverage.hand_offs.cancel": {
|
|
29619
|
+
parameters: {
|
|
29620
|
+
query?: never;
|
|
29621
|
+
header?: {
|
|
29622
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29623
|
+
"Idempotency-Key"?: string;
|
|
29624
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29625
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29626
|
+
};
|
|
29627
|
+
path?: never;
|
|
29628
|
+
cookie?: never;
|
|
29629
|
+
};
|
|
29630
|
+
requestBody?: {
|
|
29631
|
+
content: {
|
|
29632
|
+
"application/json": {
|
|
29633
|
+
/** @description The hand-off (from communication_teams.coverage.get). */
|
|
29634
|
+
hand_off_id: number;
|
|
29635
|
+
};
|
|
29636
|
+
};
|
|
29637
|
+
};
|
|
29638
|
+
responses: {
|
|
29639
|
+
/** @description The operation ran. */
|
|
29640
|
+
200: {
|
|
29641
|
+
headers: {
|
|
29642
|
+
[name: string]: unknown;
|
|
29643
|
+
};
|
|
29644
|
+
content: {
|
|
29645
|
+
"application/json": {
|
|
29646
|
+
result: {
|
|
29647
|
+
/** @description The hand-off */
|
|
29648
|
+
hand_off_id: number;
|
|
29649
|
+
/** @description What happened, in the operator's words */
|
|
29650
|
+
message: string;
|
|
29651
|
+
};
|
|
29652
|
+
};
|
|
29653
|
+
};
|
|
29654
|
+
};
|
|
29655
|
+
202: components["responses"]["Proposal"];
|
|
29656
|
+
/** @description Refused: credits_exhausted. */
|
|
29657
|
+
402: {
|
|
29658
|
+
headers: {
|
|
29659
|
+
[name: string]: unknown;
|
|
29660
|
+
};
|
|
29661
|
+
content: {
|
|
29662
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29663
|
+
};
|
|
29664
|
+
};
|
|
29665
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29666
|
+
403: {
|
|
29667
|
+
headers: {
|
|
29668
|
+
[name: string]: unknown;
|
|
29669
|
+
};
|
|
29670
|
+
content: {
|
|
29671
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29672
|
+
};
|
|
29673
|
+
};
|
|
29674
|
+
/** @description Refused: not_found. */
|
|
29675
|
+
404: {
|
|
29676
|
+
headers: {
|
|
29677
|
+
[name: string]: unknown;
|
|
29678
|
+
};
|
|
29679
|
+
content: {
|
|
29680
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29681
|
+
};
|
|
29682
|
+
};
|
|
29683
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29684
|
+
409: {
|
|
29685
|
+
headers: {
|
|
29686
|
+
[name: string]: unknown;
|
|
29687
|
+
};
|
|
29688
|
+
content: {
|
|
29689
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29690
|
+
};
|
|
29691
|
+
};
|
|
29692
|
+
/** @description Refused: operation_retired. */
|
|
29693
|
+
410: {
|
|
29694
|
+
headers: {
|
|
29695
|
+
[name: string]: unknown;
|
|
29696
|
+
};
|
|
29697
|
+
content: {
|
|
29698
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29699
|
+
};
|
|
29700
|
+
};
|
|
29701
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29702
|
+
422: {
|
|
29703
|
+
headers: {
|
|
29704
|
+
[name: string]: unknown;
|
|
29705
|
+
};
|
|
29706
|
+
content: {
|
|
29707
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29708
|
+
};
|
|
29709
|
+
};
|
|
29710
|
+
/** @description Refused: rate_limited. */
|
|
29711
|
+
429: {
|
|
29712
|
+
headers: {
|
|
29713
|
+
[name: string]: unknown;
|
|
29714
|
+
};
|
|
29715
|
+
content: {
|
|
29716
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29717
|
+
};
|
|
29718
|
+
};
|
|
29719
|
+
};
|
|
29720
|
+
};
|
|
29721
|
+
"ops.communication_teams.coverage.hand_offs.create": {
|
|
29722
|
+
parameters: {
|
|
29723
|
+
query?: never;
|
|
29724
|
+
header?: {
|
|
29725
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29726
|
+
"Idempotency-Key"?: string;
|
|
29727
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29728
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29729
|
+
};
|
|
29730
|
+
path?: never;
|
|
29731
|
+
cookie?: never;
|
|
29732
|
+
};
|
|
29733
|
+
requestBody?: {
|
|
29734
|
+
content: {
|
|
29735
|
+
"application/json": {
|
|
29736
|
+
/** @description The team (from communication_teams.list) */
|
|
29737
|
+
team_key: string;
|
|
29738
|
+
/** @description Who covers; makes and takes calls in the company. */
|
|
29739
|
+
user_id: number;
|
|
29740
|
+
/**
|
|
29741
|
+
* Format: date-time
|
|
29742
|
+
* @description When the hand-off starts; not in the past.
|
|
29743
|
+
*/
|
|
29744
|
+
starts_at: string;
|
|
29745
|
+
/**
|
|
29746
|
+
* Format: date-time
|
|
29747
|
+
* @description When it ends; after starts_at.
|
|
29748
|
+
*/
|
|
29749
|
+
ends_at: string;
|
|
29750
|
+
/** @description Why, shown to the covering person. */
|
|
29751
|
+
note?: string | null;
|
|
29752
|
+
};
|
|
29753
|
+
};
|
|
29754
|
+
};
|
|
29755
|
+
responses: {
|
|
29756
|
+
/** @description The operation ran. */
|
|
29757
|
+
200: {
|
|
29758
|
+
headers: {
|
|
29759
|
+
[name: string]: unknown;
|
|
29760
|
+
};
|
|
29761
|
+
content: {
|
|
29762
|
+
"application/json": {
|
|
29763
|
+
result: {
|
|
29764
|
+
/** @description The hand-off (communication_teams.coverage.hand_offs.cancel) */
|
|
29765
|
+
hand_off_id: number;
|
|
29766
|
+
/** @description What happened, in the operator's words */
|
|
29767
|
+
message: string;
|
|
29768
|
+
};
|
|
29769
|
+
};
|
|
29770
|
+
};
|
|
29771
|
+
};
|
|
29772
|
+
202: components["responses"]["Proposal"];
|
|
29773
|
+
/** @description Refused: credits_exhausted. */
|
|
29774
|
+
402: {
|
|
29775
|
+
headers: {
|
|
29776
|
+
[name: string]: unknown;
|
|
29777
|
+
};
|
|
29778
|
+
content: {
|
|
29779
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29780
|
+
};
|
|
29781
|
+
};
|
|
29782
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29783
|
+
403: {
|
|
29784
|
+
headers: {
|
|
29785
|
+
[name: string]: unknown;
|
|
29786
|
+
};
|
|
29787
|
+
content: {
|
|
29788
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29789
|
+
};
|
|
29790
|
+
};
|
|
29791
|
+
/** @description Refused: not_found. */
|
|
29792
|
+
404: {
|
|
29793
|
+
headers: {
|
|
29794
|
+
[name: string]: unknown;
|
|
29795
|
+
};
|
|
29796
|
+
content: {
|
|
29797
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29798
|
+
};
|
|
29799
|
+
};
|
|
29800
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29801
|
+
409: {
|
|
29802
|
+
headers: {
|
|
29803
|
+
[name: string]: unknown;
|
|
29804
|
+
};
|
|
29805
|
+
content: {
|
|
29806
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29807
|
+
};
|
|
29808
|
+
};
|
|
29809
|
+
/** @description Refused: operation_retired. */
|
|
29810
|
+
410: {
|
|
29811
|
+
headers: {
|
|
29812
|
+
[name: string]: unknown;
|
|
29813
|
+
};
|
|
29814
|
+
content: {
|
|
29815
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29816
|
+
};
|
|
29817
|
+
};
|
|
29818
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29819
|
+
422: {
|
|
29820
|
+
headers: {
|
|
29821
|
+
[name: string]: unknown;
|
|
29822
|
+
};
|
|
29823
|
+
content: {
|
|
29824
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29825
|
+
};
|
|
29826
|
+
};
|
|
29827
|
+
/** @description Refused: rate_limited. */
|
|
29828
|
+
429: {
|
|
29829
|
+
headers: {
|
|
29830
|
+
[name: string]: unknown;
|
|
29831
|
+
};
|
|
29832
|
+
content: {
|
|
29833
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29834
|
+
};
|
|
29835
|
+
};
|
|
29836
|
+
};
|
|
29837
|
+
};
|
|
29838
|
+
"ops.communication_teams.coverage.list": {
|
|
29839
|
+
parameters: {
|
|
29840
|
+
query?: never;
|
|
29841
|
+
header?: {
|
|
29842
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29843
|
+
"Idempotency-Key"?: string;
|
|
29844
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29845
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29846
|
+
};
|
|
29847
|
+
path?: never;
|
|
29848
|
+
cookie?: never;
|
|
29849
|
+
};
|
|
29850
|
+
requestBody?: {
|
|
29851
|
+
content: {
|
|
29852
|
+
"application/json": {
|
|
29853
|
+
/** @description Cursor from the previous page's next_cursor. */
|
|
29854
|
+
cursor?: string | null;
|
|
29855
|
+
/** @description Rows per page (default 25). */
|
|
29856
|
+
limit?: number | null;
|
|
29857
|
+
/**
|
|
29858
|
+
* Format: date-time
|
|
29859
|
+
* @description Only rows changed at or after this instant, oldest change first, with deleted rows as tombstones.
|
|
29860
|
+
*/
|
|
29861
|
+
updated_since?: string | null;
|
|
29862
|
+
};
|
|
29863
|
+
};
|
|
29864
|
+
};
|
|
29865
|
+
responses: {
|
|
29866
|
+
/** @description The operation ran. */
|
|
29867
|
+
200: {
|
|
29868
|
+
headers: {
|
|
29869
|
+
[name: string]: unknown;
|
|
29870
|
+
};
|
|
29871
|
+
content: {
|
|
29872
|
+
"application/json": {
|
|
29873
|
+
result: {
|
|
29874
|
+
/** @description One page of rows. */
|
|
29875
|
+
items: {
|
|
29876
|
+
/** @description The row's id. */
|
|
29877
|
+
id: number;
|
|
29878
|
+
/** @description The team (communication_teams.coverage.get) */
|
|
29879
|
+
team_key: string;
|
|
29880
|
+
/** @description The team's name */
|
|
29881
|
+
team_name: string;
|
|
29882
|
+
/** @description Who is on call now; null when nobody is */
|
|
29883
|
+
on_call_now_user_id?: number | null;
|
|
29884
|
+
/** @description Their name */
|
|
29885
|
+
on_call_now_name?: string | null;
|
|
29886
|
+
/**
|
|
29887
|
+
* Format: date-time
|
|
29888
|
+
* @description When their window ends (UTC)
|
|
29889
|
+
*/
|
|
29890
|
+
on_call_until?: string | null;
|
|
29891
|
+
/** @description Whether the person on call has a verified phone, so calls reach them away from Axivoy */
|
|
29892
|
+
reachable_by_phone: boolean;
|
|
29893
|
+
/** @description Who is on call next */
|
|
29894
|
+
next_user_id?: number | null;
|
|
29895
|
+
/** @description Their name */
|
|
29896
|
+
next_name?: string | null;
|
|
29897
|
+
/**
|
|
29898
|
+
* Format: date-time
|
|
29899
|
+
* @description When their window starts (UTC)
|
|
29900
|
+
*/
|
|
29901
|
+
next_starts_at?: string | null;
|
|
29902
|
+
/** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
|
|
29903
|
+
deleted?: boolean | null;
|
|
29904
|
+
}[];
|
|
29905
|
+
/** @description Pass as cursor for the next page; null on the last page. */
|
|
29906
|
+
next_cursor?: string | null;
|
|
29907
|
+
};
|
|
29908
|
+
};
|
|
29909
|
+
};
|
|
29910
|
+
};
|
|
29911
|
+
202: components["responses"]["Proposal"];
|
|
29912
|
+
/** @description Refused: credits_exhausted. */
|
|
29913
|
+
402: {
|
|
29914
|
+
headers: {
|
|
29915
|
+
[name: string]: unknown;
|
|
29916
|
+
};
|
|
29917
|
+
content: {
|
|
29918
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29919
|
+
};
|
|
29920
|
+
};
|
|
29921
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29922
|
+
403: {
|
|
29923
|
+
headers: {
|
|
29924
|
+
[name: string]: unknown;
|
|
29925
|
+
};
|
|
29926
|
+
content: {
|
|
29927
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29928
|
+
};
|
|
29929
|
+
};
|
|
29930
|
+
/** @description Refused: not_found. */
|
|
29931
|
+
404: {
|
|
29932
|
+
headers: {
|
|
29933
|
+
[name: string]: unknown;
|
|
29934
|
+
};
|
|
29935
|
+
content: {
|
|
29936
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29937
|
+
};
|
|
29938
|
+
};
|
|
29939
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29940
|
+
409: {
|
|
29941
|
+
headers: {
|
|
29942
|
+
[name: string]: unknown;
|
|
29943
|
+
};
|
|
29944
|
+
content: {
|
|
29945
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29946
|
+
};
|
|
29947
|
+
};
|
|
29948
|
+
/** @description Refused: operation_retired. */
|
|
29949
|
+
410: {
|
|
29950
|
+
headers: {
|
|
29951
|
+
[name: string]: unknown;
|
|
29952
|
+
};
|
|
29953
|
+
content: {
|
|
29954
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29955
|
+
};
|
|
29956
|
+
};
|
|
29957
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29958
|
+
422: {
|
|
29959
|
+
headers: {
|
|
29960
|
+
[name: string]: unknown;
|
|
29961
|
+
};
|
|
29962
|
+
content: {
|
|
29963
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29964
|
+
};
|
|
29965
|
+
};
|
|
29966
|
+
/** @description Refused: rate_limited. */
|
|
29967
|
+
429: {
|
|
29968
|
+
headers: {
|
|
29969
|
+
[name: string]: unknown;
|
|
29970
|
+
};
|
|
29971
|
+
content: {
|
|
29972
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29973
|
+
};
|
|
29974
|
+
};
|
|
29975
|
+
};
|
|
29976
|
+
};
|
|
29977
|
+
"ops.communication_teams.coverage.set": {
|
|
29978
|
+
parameters: {
|
|
29979
|
+
query?: never;
|
|
29980
|
+
header?: {
|
|
29981
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
29982
|
+
"Idempotency-Key"?: string;
|
|
29983
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
29984
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
29985
|
+
};
|
|
29986
|
+
path?: never;
|
|
29987
|
+
cookie?: never;
|
|
29988
|
+
};
|
|
29989
|
+
requestBody?: {
|
|
29990
|
+
content: {
|
|
29991
|
+
"application/json": {
|
|
29992
|
+
/** @description The team (from communication_teams.list) */
|
|
29993
|
+
team_key: string;
|
|
29994
|
+
/** @description People in turn order; each makes and takes calls in the company. */
|
|
29995
|
+
member_user_ids?: number[];
|
|
29996
|
+
/**
|
|
29997
|
+
* Format: date
|
|
29998
|
+
* @description Local date the first turn starts.
|
|
29999
|
+
*/
|
|
30000
|
+
starts_on?: string;
|
|
30001
|
+
/** @description Local time turns change, HH:MM, for example 08:00. */
|
|
30002
|
+
handoff_time?: string;
|
|
30003
|
+
/** @description IANA time zone the handoff time is in, for example America/Chicago. */
|
|
30004
|
+
timezone?: string;
|
|
30005
|
+
/** @description How many days each turn lasts, 1 to 14. */
|
|
30006
|
+
turn_days?: number;
|
|
30007
|
+
/** @description How long each person rings, 15 to 90 (default 30). */
|
|
30008
|
+
ring_seconds?: number;
|
|
30009
|
+
/**
|
|
30010
|
+
* @description Who rings when the person on call does not answer: the next person in turn order, backup_user_id, or nobody.
|
|
30011
|
+
* @enum {string}
|
|
30012
|
+
*/
|
|
30013
|
+
backup?: "next" | "person" | "none";
|
|
30014
|
+
/** @description The backup when backup is person. */
|
|
30015
|
+
backup_user_id?: number | null;
|
|
30016
|
+
};
|
|
30017
|
+
};
|
|
30018
|
+
};
|
|
30019
|
+
responses: {
|
|
30020
|
+
/** @description The operation ran. */
|
|
30021
|
+
200: {
|
|
30022
|
+
headers: {
|
|
30023
|
+
[name: string]: unknown;
|
|
30024
|
+
};
|
|
30025
|
+
content: {
|
|
30026
|
+
"application/json": {
|
|
30027
|
+
result: {
|
|
30028
|
+
/** @description The team */
|
|
30029
|
+
team_key: string;
|
|
30030
|
+
/** @description What happened, in the operator's words */
|
|
30031
|
+
message: string;
|
|
30032
|
+
};
|
|
30033
|
+
};
|
|
30034
|
+
};
|
|
30035
|
+
};
|
|
30036
|
+
202: components["responses"]["Proposal"];
|
|
30037
|
+
/** @description Refused: credits_exhausted. */
|
|
30038
|
+
402: {
|
|
30039
|
+
headers: {
|
|
30040
|
+
[name: string]: unknown;
|
|
30041
|
+
};
|
|
30042
|
+
content: {
|
|
30043
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30044
|
+
};
|
|
30045
|
+
};
|
|
30046
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
30047
|
+
403: {
|
|
30048
|
+
headers: {
|
|
30049
|
+
[name: string]: unknown;
|
|
30050
|
+
};
|
|
30051
|
+
content: {
|
|
30052
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30053
|
+
};
|
|
30054
|
+
};
|
|
30055
|
+
/** @description Refused: not_found. */
|
|
30056
|
+
404: {
|
|
30057
|
+
headers: {
|
|
30058
|
+
[name: string]: unknown;
|
|
30059
|
+
};
|
|
30060
|
+
content: {
|
|
30061
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30062
|
+
};
|
|
30063
|
+
};
|
|
30064
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
30065
|
+
409: {
|
|
30066
|
+
headers: {
|
|
30067
|
+
[name: string]: unknown;
|
|
30068
|
+
};
|
|
30069
|
+
content: {
|
|
30070
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30071
|
+
};
|
|
30072
|
+
};
|
|
30073
|
+
/** @description Refused: operation_retired. */
|
|
30074
|
+
410: {
|
|
30075
|
+
headers: {
|
|
30076
|
+
[name: string]: unknown;
|
|
30077
|
+
};
|
|
30078
|
+
content: {
|
|
30079
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30080
|
+
};
|
|
30081
|
+
};
|
|
30082
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
30083
|
+
422: {
|
|
30084
|
+
headers: {
|
|
30085
|
+
[name: string]: unknown;
|
|
30086
|
+
};
|
|
30087
|
+
content: {
|
|
30088
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30089
|
+
};
|
|
30090
|
+
};
|
|
30091
|
+
/** @description Refused: rate_limited. */
|
|
30092
|
+
429: {
|
|
30093
|
+
headers: {
|
|
30094
|
+
[name: string]: unknown;
|
|
30095
|
+
};
|
|
30096
|
+
content: {
|
|
30097
|
+
"application/json": components["schemas"]["OperationError"];
|
|
30098
|
+
};
|
|
30099
|
+
};
|
|
30100
|
+
};
|
|
30101
|
+
};
|
|
30102
|
+
"ops.communication_teams.create": {
|
|
30103
|
+
parameters: {
|
|
30104
|
+
query?: never;
|
|
30105
|
+
header?: {
|
|
30106
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
30107
|
+
"Idempotency-Key"?: string;
|
|
30108
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
30109
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
30110
|
+
};
|
|
30111
|
+
path?: never;
|
|
30112
|
+
cookie?: never;
|
|
30113
|
+
};
|
|
30114
|
+
requestBody?: {
|
|
30115
|
+
content: {
|
|
30116
|
+
/**
|
|
30117
|
+
* @example {
|
|
30118
|
+
* "name": " Brokerage desk ",
|
|
30119
|
+
* "email_local_part": "Brokerage"
|
|
30120
|
+
* }
|
|
30121
|
+
*/
|
|
30122
|
+
"application/json": {
|
|
30123
|
+
/** @description Required for a custom team, for example "Claims"; unique in the company, and never a built-in team's name, ignoring case and spacing */
|
|
30124
|
+
name?: string;
|
|
30125
|
+
/** @description The part before @ of the team's Axivoy address; default from the name; reserved and used names are refused */
|
|
30126
|
+
email_local_part?: string;
|
|
30127
|
+
/** @description Adds an available built-in team instead of a custom one; its name and address come from the catalog */
|
|
30128
|
+
builtin_key?: string;
|
|
30129
|
+
};
|
|
30130
|
+
};
|
|
30131
|
+
};
|
|
30132
|
+
responses: {
|
|
30133
|
+
/** @description The operation ran. */
|
|
30134
|
+
200: {
|
|
30135
|
+
headers: {
|
|
30136
|
+
[name: string]: unknown;
|
|
30137
|
+
};
|
|
30138
|
+
content: {
|
|
30139
|
+
/**
|
|
30140
|
+
* @example {
|
|
30141
|
+
* "result": {
|
|
30142
|
+
* "team_key": "brokerage_desk",
|
|
30143
|
+
* "email_address": null,
|
|
30144
|
+
* "message": "Brokerage desk created. Add its people next."
|
|
30145
|
+
* }
|
|
30146
|
+
* }
|
|
30147
|
+
*/
|
|
30148
|
+
"application/json": {
|
|
30149
|
+
result: {
|
|
30150
|
+
/** @description The new team (or the built-in team added) */
|
|
30151
|
+
team_key: string;
|
|
30152
|
+
/** @description The team's Axivoy address */
|
|
30153
|
+
email_address?: string | null;
|
|
30154
|
+
/** @description What happened, in the operator's words */
|
|
30155
|
+
message: string;
|
|
29213
30156
|
};
|
|
29214
30157
|
};
|
|
29215
30158
|
};
|
|
@@ -29612,12 +30555,18 @@ export interface operations {
|
|
|
29612
30555
|
answered_by: string;
|
|
29613
30556
|
/** @description The ring group that answers when answered_by is ring_group */
|
|
29614
30557
|
ring_group_id?: number | null;
|
|
29615
|
-
/** @description ring or voicemail when the company is closed */
|
|
30558
|
+
/** @description ring, voicemail or on_call (its on-call rotation, then its voicemail) when the company is closed */
|
|
29616
30559
|
after_hours: string;
|
|
30560
|
+
/** @description When its people answer, whether their verified phones ring with Axivoy (press 1 to take the call) */
|
|
30561
|
+
ring_member_phones: boolean;
|
|
29617
30562
|
/** @description Its voicemail greeting; null uses the default */
|
|
29618
30563
|
voicemail_greeting?: string | null;
|
|
29619
30564
|
/** @description The digit callers press for it in the main phone menu */
|
|
29620
30565
|
main_menu_digit?: string | null;
|
|
30566
|
+
/** @description Who is on call for it now (communication_teams.coverage.get); null when it does not ring who's on call or nobody is */
|
|
30567
|
+
on_call_now_name?: string | null;
|
|
30568
|
+
/** @description Its 3-digit extension (voice.extensions.list); null when it has none */
|
|
30569
|
+
extension?: string | null;
|
|
29621
30570
|
};
|
|
29622
30571
|
/** @description Numbers whose calls or texts come to the team: {number_id, e164, calls, texts} */
|
|
29623
30572
|
phone_numbers: unknown[];
|
|
@@ -108849,6 +109798,7 @@ export interface operations {
|
|
|
108849
109798
|
driver_compliance: boolean;
|
|
108850
109799
|
operations_api_client: boolean;
|
|
108851
109800
|
announcements: boolean;
|
|
109801
|
+
referrals: boolean;
|
|
108852
109802
|
};
|
|
108853
109803
|
app_update: {
|
|
108854
109804
|
latest_version?: string | null;
|
|
@@ -112487,7 +113437,7 @@ export interface operations {
|
|
|
112487
113437
|
"application/json": {
|
|
112488
113438
|
preferences: {
|
|
112489
113439
|
/** @enum {string} */
|
|
112490
|
-
category: "schedule" | "maintenance" | "compliance" | "detention" | "load" | "payroll" | "receivables" | "ai_agent" | "referrals" | "announcements" | "system";
|
|
113440
|
+
category: "schedule" | "maintenance" | "compliance" | "detention" | "load" | "payroll" | "receivables" | "ai_agent" | "referrals" | "announcements" | "calls" | "system";
|
|
112491
113441
|
/** @enum {string} */
|
|
112492
113442
|
channel: "email" | "sms" | "push" | "in_app" | "voice";
|
|
112493
113443
|
enabled?: boolean | null;
|
|
@@ -124566,16 +125516,16 @@ export interface operations {
|
|
|
124566
125516
|
created_at?: string | null;
|
|
124567
125517
|
/** @description The next automatic text or AI recruiter follow-up; null when the file is closed for good */
|
|
124568
125518
|
next_contact?: {
|
|
124569
|
-
/** @description scheduled, paused_for_reply, paused_hold, opted_out or none */
|
|
125519
|
+
/** @description scheduled, planned (nothing owed; the AI recruiter plans to check in, and the plan can change), paused_for_reply, paused_hold, opted_out or none */
|
|
124570
125520
|
state: string;
|
|
124571
125521
|
/**
|
|
124572
125522
|
* Format: date-time
|
|
124573
|
-
* @description When the next contact goes out (scheduled
|
|
125523
|
+
* @description When the next contact goes out (scheduled), or when the AI recruiter plans to check in (planned)
|
|
124574
125524
|
*/
|
|
124575
125525
|
at?: string | null;
|
|
124576
125526
|
/** @description text or ai_recruiter */
|
|
124577
125527
|
route?: string | null;
|
|
124578
|
-
/** @description reminder or
|
|
125528
|
+
/** @description reminder, keep_in_touch or check_in */
|
|
124579
125529
|
purpose?: string | null;
|
|
124580
125530
|
/** @description The open item the reminder is about */
|
|
124581
125531
|
item?: string | null;
|
|
@@ -125271,16 +126221,16 @@ export interface operations {
|
|
|
125271
126221
|
created_at?: string | null;
|
|
125272
126222
|
/** @description The next automatic text or AI recruiter follow-up; null when the file is closed for good */
|
|
125273
126223
|
next_contact?: {
|
|
125274
|
-
/** @description scheduled, paused_for_reply, paused_hold, opted_out or none */
|
|
126224
|
+
/** @description scheduled, planned (nothing owed; the AI recruiter plans to check in, and the plan can change), paused_for_reply, paused_hold, opted_out or none */
|
|
125275
126225
|
state: string;
|
|
125276
126226
|
/**
|
|
125277
126227
|
* Format: date-time
|
|
125278
|
-
* @description When the next contact goes out (scheduled
|
|
126228
|
+
* @description When the next contact goes out (scheduled), or when the AI recruiter plans to check in (planned)
|
|
125279
126229
|
*/
|
|
125280
126230
|
at?: string | null;
|
|
125281
126231
|
/** @description text or ai_recruiter */
|
|
125282
126232
|
route?: string | null;
|
|
125283
|
-
/** @description reminder or
|
|
126233
|
+
/** @description reminder, keep_in_touch or check_in */
|
|
125284
126234
|
purpose?: string | null;
|
|
125285
126235
|
/** @description The open item the reminder is about */
|
|
125286
126236
|
item?: string | null;
|
|
@@ -133530,13 +134480,19 @@ export interface operations {
|
|
|
133530
134480
|
/** @description Where the job is */
|
|
133531
134481
|
location?: string | null;
|
|
133532
134482
|
}[];
|
|
133533
|
-
/** @description
|
|
134483
|
+
/** @description The company has a recruiting number, so texting a code can be turned on */
|
|
133534
134484
|
texting_available: boolean;
|
|
134485
|
+
/** @description The live terms let people text a code to the recruiting number; it works only with a referral posting */
|
|
134486
|
+
text_codes: boolean;
|
|
134487
|
+
/** @description The recruiting number codes are texted to, in E.164 */
|
|
134488
|
+
texting_number?: string | null;
|
|
133535
134489
|
/**
|
|
133536
134490
|
* Format: date-time
|
|
133537
134491
|
* @description When everyone was told about the live version
|
|
133538
134492
|
*/
|
|
133539
134493
|
announced_at?: string | null;
|
|
134494
|
+
/** @description The announcement that told them (announcements.get) */
|
|
134495
|
+
announcement_id?: number | null;
|
|
133540
134496
|
/** @description The company's own program rules */
|
|
133541
134497
|
rules_text?: string | null;
|
|
133542
134498
|
/** @description Every published version, newest first */
|
|
@@ -134638,6 +135594,434 @@ export interface operations {
|
|
|
134638
135594
|
};
|
|
134639
135595
|
};
|
|
134640
135596
|
};
|
|
135597
|
+
"ops.recruiting.traffic.outside_spend.imports.columns.update": {
|
|
135598
|
+
parameters: {
|
|
135599
|
+
query?: never;
|
|
135600
|
+
header?: {
|
|
135601
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
135602
|
+
"Idempotency-Key"?: string;
|
|
135603
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
135604
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
135605
|
+
};
|
|
135606
|
+
path?: never;
|
|
135607
|
+
cookie?: never;
|
|
135608
|
+
};
|
|
135609
|
+
requestBody?: {
|
|
135610
|
+
content: {
|
|
135611
|
+
"application/json": {
|
|
135612
|
+
/** @description A spend report waiting for its columns, or recorded with the wrong ones */
|
|
135613
|
+
import_id: number;
|
|
135614
|
+
/** @description The report column that holds the day */
|
|
135615
|
+
day_column: string;
|
|
135616
|
+
/** @description The report column that holds the money spent that day */
|
|
135617
|
+
spend_column: string;
|
|
135618
|
+
/**
|
|
135619
|
+
* @description How the day column writes dates, when Axivoy cannot tell from the values
|
|
135620
|
+
* @enum {string|null}
|
|
135621
|
+
*/
|
|
135622
|
+
date_order?: "ymd" | "mdy" | "dmy" | null;
|
|
135623
|
+
/** @description The column with impressions, if any */
|
|
135624
|
+
impressions_column?: string | null;
|
|
135625
|
+
/** @description The column with clicks, if any */
|
|
135626
|
+
clicks_column?: string | null;
|
|
135627
|
+
/** @description The column with apply starts (people sent on to apply), if any */
|
|
135628
|
+
apply_starts_column?: string | null;
|
|
135629
|
+
/** @description The column with applications the place counted, if any */
|
|
135630
|
+
applies_column?: string | null;
|
|
135631
|
+
/** @description The column naming a job or campaign when the report splits each day; Axivoy adds a day's rows together */
|
|
135632
|
+
line_column?: string | null;
|
|
135633
|
+
};
|
|
135634
|
+
};
|
|
135635
|
+
};
|
|
135636
|
+
responses: {
|
|
135637
|
+
/** @description The operation ran. */
|
|
135638
|
+
200: {
|
|
135639
|
+
headers: {
|
|
135640
|
+
[name: string]: unknown;
|
|
135641
|
+
};
|
|
135642
|
+
content: {
|
|
135643
|
+
"application/json": {
|
|
135644
|
+
result: {
|
|
135645
|
+
/** @description What happened, in the operator's words */
|
|
135646
|
+
message: string;
|
|
135647
|
+
/** @description The spend report */
|
|
135648
|
+
import_id: number;
|
|
135649
|
+
/** @description applied, or needs_columns when Day or Spend could not be matched or the dates read two ways */
|
|
135650
|
+
status: string;
|
|
135651
|
+
/**
|
|
135652
|
+
* Format: date
|
|
135653
|
+
* @description The first day the report has
|
|
135654
|
+
*/
|
|
135655
|
+
first_day?: string | null;
|
|
135656
|
+
/**
|
|
135657
|
+
* Format: date
|
|
135658
|
+
* @description The last day the report has
|
|
135659
|
+
*/
|
|
135660
|
+
last_day?: string | null;
|
|
135661
|
+
/**
|
|
135662
|
+
* Format: date
|
|
135663
|
+
* @description The first date the report covers, from its file name when it has one
|
|
135664
|
+
*/
|
|
135665
|
+
covered_from?: string | null;
|
|
135666
|
+
/**
|
|
135667
|
+
* Format: date
|
|
135668
|
+
* @description The last date the report covers
|
|
135669
|
+
*/
|
|
135670
|
+
covered_to?: string | null;
|
|
135671
|
+
/** @description Days recorded for the first time */
|
|
135672
|
+
days_added: number;
|
|
135673
|
+
/** @description Days whose numbers changed */
|
|
135674
|
+
days_changed: number;
|
|
135675
|
+
/** @description Days already recorded with the same numbers */
|
|
135676
|
+
days_unchanged: number;
|
|
135677
|
+
/** @description Rows without a day or a spend Axivoy could read, such as a total row */
|
|
135678
|
+
rows_skipped: number;
|
|
135679
|
+
/** @description What the report says was spent, in US dollars */
|
|
135680
|
+
spend: string;
|
|
135681
|
+
/** @description Report columns Axivoy did not use */
|
|
135682
|
+
ignored_columns: {
|
|
135683
|
+
name: string;
|
|
135684
|
+
}[];
|
|
135685
|
+
/** @description What still needs a column, or date_order when the dates read two ways */
|
|
135686
|
+
missing_fields: {
|
|
135687
|
+
key: string;
|
|
135688
|
+
label: string;
|
|
135689
|
+
}[];
|
|
135690
|
+
};
|
|
135691
|
+
};
|
|
135692
|
+
};
|
|
135693
|
+
};
|
|
135694
|
+
202: components["responses"]["Proposal"];
|
|
135695
|
+
/** @description Refused: credits_exhausted. */
|
|
135696
|
+
402: {
|
|
135697
|
+
headers: {
|
|
135698
|
+
[name: string]: unknown;
|
|
135699
|
+
};
|
|
135700
|
+
content: {
|
|
135701
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135702
|
+
};
|
|
135703
|
+
};
|
|
135704
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
135705
|
+
403: {
|
|
135706
|
+
headers: {
|
|
135707
|
+
[name: string]: unknown;
|
|
135708
|
+
};
|
|
135709
|
+
content: {
|
|
135710
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135711
|
+
};
|
|
135712
|
+
};
|
|
135713
|
+
/** @description Refused: not_found. */
|
|
135714
|
+
404: {
|
|
135715
|
+
headers: {
|
|
135716
|
+
[name: string]: unknown;
|
|
135717
|
+
};
|
|
135718
|
+
content: {
|
|
135719
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135720
|
+
};
|
|
135721
|
+
};
|
|
135722
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
135723
|
+
409: {
|
|
135724
|
+
headers: {
|
|
135725
|
+
[name: string]: unknown;
|
|
135726
|
+
};
|
|
135727
|
+
content: {
|
|
135728
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135729
|
+
};
|
|
135730
|
+
};
|
|
135731
|
+
/** @description Refused: operation_retired. */
|
|
135732
|
+
410: {
|
|
135733
|
+
headers: {
|
|
135734
|
+
[name: string]: unknown;
|
|
135735
|
+
};
|
|
135736
|
+
content: {
|
|
135737
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135738
|
+
};
|
|
135739
|
+
};
|
|
135740
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
135741
|
+
422: {
|
|
135742
|
+
headers: {
|
|
135743
|
+
[name: string]: unknown;
|
|
135744
|
+
};
|
|
135745
|
+
content: {
|
|
135746
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135747
|
+
};
|
|
135748
|
+
};
|
|
135749
|
+
/** @description Refused: rate_limited. */
|
|
135750
|
+
429: {
|
|
135751
|
+
headers: {
|
|
135752
|
+
[name: string]: unknown;
|
|
135753
|
+
};
|
|
135754
|
+
content: {
|
|
135755
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135756
|
+
};
|
|
135757
|
+
};
|
|
135758
|
+
};
|
|
135759
|
+
};
|
|
135760
|
+
"ops.recruiting.traffic.outside_spend.imports.create": {
|
|
135761
|
+
parameters: {
|
|
135762
|
+
query?: never;
|
|
135763
|
+
header?: {
|
|
135764
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
135765
|
+
"Idempotency-Key"?: string;
|
|
135766
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
135767
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
135768
|
+
};
|
|
135769
|
+
path?: never;
|
|
135770
|
+
cookie?: never;
|
|
135771
|
+
};
|
|
135772
|
+
requestBody?: {
|
|
135773
|
+
content: {
|
|
135774
|
+
"application/json": {
|
|
135775
|
+
/** @description The place you advertise that the report is for */
|
|
135776
|
+
channel_id: number;
|
|
135777
|
+
/** @description The report as a CSV or Excel file, up to 5 MB */
|
|
135778
|
+
report_file: string | null;
|
|
135779
|
+
};
|
|
135780
|
+
};
|
|
135781
|
+
};
|
|
135782
|
+
responses: {
|
|
135783
|
+
/** @description The operation ran. */
|
|
135784
|
+
200: {
|
|
135785
|
+
headers: {
|
|
135786
|
+
[name: string]: unknown;
|
|
135787
|
+
};
|
|
135788
|
+
content: {
|
|
135789
|
+
"application/json": {
|
|
135790
|
+
result: {
|
|
135791
|
+
/** @description What happened, in the operator's words */
|
|
135792
|
+
message: string;
|
|
135793
|
+
/** @description The spend report */
|
|
135794
|
+
import_id: number;
|
|
135795
|
+
/** @description applied, or needs_columns when Day or Spend could not be matched or the dates read two ways */
|
|
135796
|
+
status: string;
|
|
135797
|
+
/**
|
|
135798
|
+
* Format: date
|
|
135799
|
+
* @description The first day the report has
|
|
135800
|
+
*/
|
|
135801
|
+
first_day?: string | null;
|
|
135802
|
+
/**
|
|
135803
|
+
* Format: date
|
|
135804
|
+
* @description The last day the report has
|
|
135805
|
+
*/
|
|
135806
|
+
last_day?: string | null;
|
|
135807
|
+
/**
|
|
135808
|
+
* Format: date
|
|
135809
|
+
* @description The first date the report covers, from its file name when it has one
|
|
135810
|
+
*/
|
|
135811
|
+
covered_from?: string | null;
|
|
135812
|
+
/**
|
|
135813
|
+
* Format: date
|
|
135814
|
+
* @description The last date the report covers
|
|
135815
|
+
*/
|
|
135816
|
+
covered_to?: string | null;
|
|
135817
|
+
/** @description Days recorded for the first time */
|
|
135818
|
+
days_added: number;
|
|
135819
|
+
/** @description Days whose numbers changed */
|
|
135820
|
+
days_changed: number;
|
|
135821
|
+
/** @description Days already recorded with the same numbers */
|
|
135822
|
+
days_unchanged: number;
|
|
135823
|
+
/** @description Rows without a day or a spend Axivoy could read, such as a total row */
|
|
135824
|
+
rows_skipped: number;
|
|
135825
|
+
/** @description What the report says was spent, in US dollars */
|
|
135826
|
+
spend: string;
|
|
135827
|
+
/** @description Report columns Axivoy did not use */
|
|
135828
|
+
ignored_columns: {
|
|
135829
|
+
name: string;
|
|
135830
|
+
}[];
|
|
135831
|
+
/** @description What still needs a column, or date_order when the dates read two ways */
|
|
135832
|
+
missing_fields: {
|
|
135833
|
+
key: string;
|
|
135834
|
+
label: string;
|
|
135835
|
+
}[];
|
|
135836
|
+
/** @description The report's columns, to match when it needs columns */
|
|
135837
|
+
headers: {
|
|
135838
|
+
name: string;
|
|
135839
|
+
/** @description The first few values in that column */
|
|
135840
|
+
samples: string;
|
|
135841
|
+
}[];
|
|
135842
|
+
};
|
|
135843
|
+
};
|
|
135844
|
+
};
|
|
135845
|
+
};
|
|
135846
|
+
202: components["responses"]["Proposal"];
|
|
135847
|
+
/** @description Refused: credits_exhausted. */
|
|
135848
|
+
402: {
|
|
135849
|
+
headers: {
|
|
135850
|
+
[name: string]: unknown;
|
|
135851
|
+
};
|
|
135852
|
+
content: {
|
|
135853
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135854
|
+
};
|
|
135855
|
+
};
|
|
135856
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
135857
|
+
403: {
|
|
135858
|
+
headers: {
|
|
135859
|
+
[name: string]: unknown;
|
|
135860
|
+
};
|
|
135861
|
+
content: {
|
|
135862
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135863
|
+
};
|
|
135864
|
+
};
|
|
135865
|
+
/** @description Refused: not_found. */
|
|
135866
|
+
404: {
|
|
135867
|
+
headers: {
|
|
135868
|
+
[name: string]: unknown;
|
|
135869
|
+
};
|
|
135870
|
+
content: {
|
|
135871
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135872
|
+
};
|
|
135873
|
+
};
|
|
135874
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
135875
|
+
409: {
|
|
135876
|
+
headers: {
|
|
135877
|
+
[name: string]: unknown;
|
|
135878
|
+
};
|
|
135879
|
+
content: {
|
|
135880
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135881
|
+
};
|
|
135882
|
+
};
|
|
135883
|
+
/** @description Refused: operation_retired. */
|
|
135884
|
+
410: {
|
|
135885
|
+
headers: {
|
|
135886
|
+
[name: string]: unknown;
|
|
135887
|
+
};
|
|
135888
|
+
content: {
|
|
135889
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135890
|
+
};
|
|
135891
|
+
};
|
|
135892
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
135893
|
+
422: {
|
|
135894
|
+
headers: {
|
|
135895
|
+
[name: string]: unknown;
|
|
135896
|
+
};
|
|
135897
|
+
content: {
|
|
135898
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135899
|
+
};
|
|
135900
|
+
};
|
|
135901
|
+
/** @description Refused: rate_limited. */
|
|
135902
|
+
429: {
|
|
135903
|
+
headers: {
|
|
135904
|
+
[name: string]: unknown;
|
|
135905
|
+
};
|
|
135906
|
+
content: {
|
|
135907
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135908
|
+
};
|
|
135909
|
+
};
|
|
135910
|
+
};
|
|
135911
|
+
};
|
|
135912
|
+
"ops.recruiting.traffic.outside_spend.months.record": {
|
|
135913
|
+
parameters: {
|
|
135914
|
+
query?: never;
|
|
135915
|
+
header?: {
|
|
135916
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
135917
|
+
"Idempotency-Key"?: string;
|
|
135918
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
135919
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
135920
|
+
};
|
|
135921
|
+
path?: never;
|
|
135922
|
+
cookie?: never;
|
|
135923
|
+
};
|
|
135924
|
+
requestBody?: {
|
|
135925
|
+
content: {
|
|
135926
|
+
"application/json": {
|
|
135927
|
+
/** @description The place you advertise */
|
|
135928
|
+
channel_id: number;
|
|
135929
|
+
/** @description The month as YYYY-MM */
|
|
135930
|
+
month: string;
|
|
135931
|
+
/** @description What you paid that place for the month; empty clears it */
|
|
135932
|
+
amount?: string | null;
|
|
135933
|
+
};
|
|
135934
|
+
};
|
|
135935
|
+
};
|
|
135936
|
+
responses: {
|
|
135937
|
+
/** @description The operation ran. */
|
|
135938
|
+
200: {
|
|
135939
|
+
headers: {
|
|
135940
|
+
[name: string]: unknown;
|
|
135941
|
+
};
|
|
135942
|
+
content: {
|
|
135943
|
+
"application/json": {
|
|
135944
|
+
result: {
|
|
135945
|
+
/** @description What happened, in the operator's words */
|
|
135946
|
+
message: string;
|
|
135947
|
+
/** @description The place */
|
|
135948
|
+
channel_id: number;
|
|
135949
|
+
/** @description The month as YYYY-MM */
|
|
135950
|
+
month: string;
|
|
135951
|
+
/** @description What you paid that place for the month, or null when cleared */
|
|
135952
|
+
amount?: string | null;
|
|
135953
|
+
/** @description Whether a daily report already reaches this place and month, so the amount is kept but not counted */
|
|
135954
|
+
replaced_by_report: boolean;
|
|
135955
|
+
};
|
|
135956
|
+
};
|
|
135957
|
+
};
|
|
135958
|
+
};
|
|
135959
|
+
202: components["responses"]["Proposal"];
|
|
135960
|
+
/** @description Refused: credits_exhausted. */
|
|
135961
|
+
402: {
|
|
135962
|
+
headers: {
|
|
135963
|
+
[name: string]: unknown;
|
|
135964
|
+
};
|
|
135965
|
+
content: {
|
|
135966
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135967
|
+
};
|
|
135968
|
+
};
|
|
135969
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
135970
|
+
403: {
|
|
135971
|
+
headers: {
|
|
135972
|
+
[name: string]: unknown;
|
|
135973
|
+
};
|
|
135974
|
+
content: {
|
|
135975
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135976
|
+
};
|
|
135977
|
+
};
|
|
135978
|
+
/** @description Refused: not_found. */
|
|
135979
|
+
404: {
|
|
135980
|
+
headers: {
|
|
135981
|
+
[name: string]: unknown;
|
|
135982
|
+
};
|
|
135983
|
+
content: {
|
|
135984
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135985
|
+
};
|
|
135986
|
+
};
|
|
135987
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
135988
|
+
409: {
|
|
135989
|
+
headers: {
|
|
135990
|
+
[name: string]: unknown;
|
|
135991
|
+
};
|
|
135992
|
+
content: {
|
|
135993
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135994
|
+
};
|
|
135995
|
+
};
|
|
135996
|
+
/** @description Refused: operation_retired. */
|
|
135997
|
+
410: {
|
|
135998
|
+
headers: {
|
|
135999
|
+
[name: string]: unknown;
|
|
136000
|
+
};
|
|
136001
|
+
content: {
|
|
136002
|
+
"application/json": components["schemas"]["OperationError"];
|
|
136003
|
+
};
|
|
136004
|
+
};
|
|
136005
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
136006
|
+
422: {
|
|
136007
|
+
headers: {
|
|
136008
|
+
[name: string]: unknown;
|
|
136009
|
+
};
|
|
136010
|
+
content: {
|
|
136011
|
+
"application/json": components["schemas"]["OperationError"];
|
|
136012
|
+
};
|
|
136013
|
+
};
|
|
136014
|
+
/** @description Refused: rate_limited. */
|
|
136015
|
+
429: {
|
|
136016
|
+
headers: {
|
|
136017
|
+
[name: string]: unknown;
|
|
136018
|
+
};
|
|
136019
|
+
content: {
|
|
136020
|
+
"application/json": components["schemas"]["OperationError"];
|
|
136021
|
+
};
|
|
136022
|
+
};
|
|
136023
|
+
};
|
|
136024
|
+
};
|
|
134641
136025
|
"ops.reports.catalog": {
|
|
134642
136026
|
parameters: {
|
|
134643
136027
|
query?: never;
|
|
@@ -159360,6 +160744,19 @@ export interface operations {
|
|
|
159360
160744
|
team_name?: string | null;
|
|
159361
160745
|
/** @description The caller's conversation the call is part of (conversations.get); null for a withheld number */
|
|
159362
160746
|
conversation_id?: number | null;
|
|
160747
|
+
/** @description Placed from one of the person's own phones; null for any other call */
|
|
160748
|
+
via_my_phone?: {
|
|
160749
|
+
/** @description dial (the person's phone dialled the company) or ring_first (Axivoy rang their phone first) */
|
|
160750
|
+
method: string;
|
|
160751
|
+
/** @description The last four digits of the person's phone that placed it */
|
|
160752
|
+
phone_last_four?: string | null;
|
|
160753
|
+
/** @description ringing_you, waiting_for_press, connecting, connected or ended */
|
|
160754
|
+
state: string;
|
|
160755
|
+
/** @description Where the call stands, as the person sees it */
|
|
160756
|
+
label: string;
|
|
160757
|
+
/** @description Why it ended; null while it is going */
|
|
160758
|
+
reason?: string | null;
|
|
160759
|
+
} | null;
|
|
159363
160760
|
};
|
|
159364
160761
|
};
|
|
159365
160762
|
};
|
|
@@ -159869,7 +161266,608 @@ export interface operations {
|
|
|
159869
161266
|
};
|
|
159870
161267
|
};
|
|
159871
161268
|
};
|
|
159872
|
-
"ops.voice.calls.transfer": {
|
|
161269
|
+
"ops.voice.calls.transfer": {
|
|
161270
|
+
parameters: {
|
|
161271
|
+
query?: never;
|
|
161272
|
+
header?: {
|
|
161273
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
161274
|
+
"Idempotency-Key"?: string;
|
|
161275
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
161276
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
161277
|
+
};
|
|
161278
|
+
path?: never;
|
|
161279
|
+
cookie?: never;
|
|
161280
|
+
};
|
|
161281
|
+
requestBody?: {
|
|
161282
|
+
content: {
|
|
161283
|
+
/**
|
|
161284
|
+
* @example {
|
|
161285
|
+
* "call_sid": "CA_API_3",
|
|
161286
|
+
* "action": "hold"
|
|
161287
|
+
* }
|
|
161288
|
+
*/
|
|
161289
|
+
"application/json": {
|
|
161290
|
+
/** @description The calling panel's own call id for the current call */
|
|
161291
|
+
call_sid: string;
|
|
161292
|
+
/**
|
|
161293
|
+
* @description hold, resume (back to the caller) or transfer
|
|
161294
|
+
* @enum {string}
|
|
161295
|
+
*/
|
|
161296
|
+
action: "hold" | "resume" | "transfer";
|
|
161297
|
+
/** @description Transfer: the teammate whose calling panel rings */
|
|
161298
|
+
to_user_id?: number | null;
|
|
161299
|
+
/** @description Transfer: the phone number to ring instead of a teammate */
|
|
161300
|
+
to_number?: string | null;
|
|
161301
|
+
/** @description Transfer: the extension (a person, team, ring group or voicemail) to send the call to instead */
|
|
161302
|
+
to_extension?: string | null;
|
|
161303
|
+
};
|
|
161304
|
+
};
|
|
161305
|
+
};
|
|
161306
|
+
responses: {
|
|
161307
|
+
/** @description The operation ran. */
|
|
161308
|
+
200: {
|
|
161309
|
+
headers: {
|
|
161310
|
+
[name: string]: unknown;
|
|
161311
|
+
};
|
|
161312
|
+
content: {
|
|
161313
|
+
/**
|
|
161314
|
+
* @example {
|
|
161315
|
+
* "result": {
|
|
161316
|
+
* "call_id": 1,
|
|
161317
|
+
* "action": "hold",
|
|
161318
|
+
* "message": "The caller is on hold."
|
|
161319
|
+
* }
|
|
161320
|
+
* }
|
|
161321
|
+
*/
|
|
161322
|
+
"application/json": {
|
|
161323
|
+
result: {
|
|
161324
|
+
/** @description The call */
|
|
161325
|
+
call_id: number;
|
|
161326
|
+
/** @description hold, resume or transfer */
|
|
161327
|
+
action: string;
|
|
161328
|
+
/** @description What happened, in the operator's words */
|
|
161329
|
+
message: string;
|
|
161330
|
+
};
|
|
161331
|
+
};
|
|
161332
|
+
};
|
|
161333
|
+
};
|
|
161334
|
+
202: components["responses"]["Proposal"];
|
|
161335
|
+
/** @description Refused: credits_exhausted. */
|
|
161336
|
+
402: {
|
|
161337
|
+
headers: {
|
|
161338
|
+
[name: string]: unknown;
|
|
161339
|
+
};
|
|
161340
|
+
content: {
|
|
161341
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161342
|
+
};
|
|
161343
|
+
};
|
|
161344
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
161345
|
+
403: {
|
|
161346
|
+
headers: {
|
|
161347
|
+
[name: string]: unknown;
|
|
161348
|
+
};
|
|
161349
|
+
content: {
|
|
161350
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161351
|
+
};
|
|
161352
|
+
};
|
|
161353
|
+
/** @description Refused: not_found. */
|
|
161354
|
+
404: {
|
|
161355
|
+
headers: {
|
|
161356
|
+
[name: string]: unknown;
|
|
161357
|
+
};
|
|
161358
|
+
content: {
|
|
161359
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161360
|
+
};
|
|
161361
|
+
};
|
|
161362
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
161363
|
+
409: {
|
|
161364
|
+
headers: {
|
|
161365
|
+
[name: string]: unknown;
|
|
161366
|
+
};
|
|
161367
|
+
content: {
|
|
161368
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161369
|
+
};
|
|
161370
|
+
};
|
|
161371
|
+
/** @description Refused: operation_retired. */
|
|
161372
|
+
410: {
|
|
161373
|
+
headers: {
|
|
161374
|
+
[name: string]: unknown;
|
|
161375
|
+
};
|
|
161376
|
+
content: {
|
|
161377
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161378
|
+
};
|
|
161379
|
+
};
|
|
161380
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
161381
|
+
422: {
|
|
161382
|
+
headers: {
|
|
161383
|
+
[name: string]: unknown;
|
|
161384
|
+
};
|
|
161385
|
+
content: {
|
|
161386
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161387
|
+
};
|
|
161388
|
+
};
|
|
161389
|
+
/** @description Refused: rate_limited. */
|
|
161390
|
+
429: {
|
|
161391
|
+
headers: {
|
|
161392
|
+
[name: string]: unknown;
|
|
161393
|
+
};
|
|
161394
|
+
content: {
|
|
161395
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161396
|
+
};
|
|
161397
|
+
};
|
|
161398
|
+
};
|
|
161399
|
+
};
|
|
161400
|
+
"ops.voice.calls.update": {
|
|
161401
|
+
parameters: {
|
|
161402
|
+
query?: never;
|
|
161403
|
+
header?: {
|
|
161404
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
161405
|
+
"Idempotency-Key"?: string;
|
|
161406
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
161407
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
161408
|
+
};
|
|
161409
|
+
path?: never;
|
|
161410
|
+
cookie?: never;
|
|
161411
|
+
};
|
|
161412
|
+
requestBody?: {
|
|
161413
|
+
content: {
|
|
161414
|
+
/**
|
|
161415
|
+
* @example {
|
|
161416
|
+
* "call_id": 1,
|
|
161417
|
+
* "outcome": "resolved",
|
|
161418
|
+
* "notes": "Detention at the receiver."
|
|
161419
|
+
* }
|
|
161420
|
+
*/
|
|
161421
|
+
"application/json": {
|
|
161422
|
+
/** @description The call (from voice.calls.list) */
|
|
161423
|
+
call_id: number;
|
|
161424
|
+
/**
|
|
161425
|
+
* @description resolved, callback_needed, voicemail_left, wrong_number, spam or other; empty clears it
|
|
161426
|
+
* @enum {string|null}
|
|
161427
|
+
*/
|
|
161428
|
+
outcome?: "resolved" | "callback_needed" | "voicemail_left" | "wrong_number" | "spam" | "other" | null;
|
|
161429
|
+
/** @description Notes on the call; replaces the current notes, empty clears them */
|
|
161430
|
+
notes?: string | null;
|
|
161431
|
+
};
|
|
161432
|
+
};
|
|
161433
|
+
};
|
|
161434
|
+
responses: {
|
|
161435
|
+
/** @description The operation ran. */
|
|
161436
|
+
200: {
|
|
161437
|
+
headers: {
|
|
161438
|
+
[name: string]: unknown;
|
|
161439
|
+
};
|
|
161440
|
+
content: {
|
|
161441
|
+
/**
|
|
161442
|
+
* @example {
|
|
161443
|
+
* "result": {
|
|
161444
|
+
* "call_id": 1,
|
|
161445
|
+
* "outcome": "resolved",
|
|
161446
|
+
* "message": "Call saved."
|
|
161447
|
+
* }
|
|
161448
|
+
* }
|
|
161449
|
+
*/
|
|
161450
|
+
"application/json": {
|
|
161451
|
+
result: {
|
|
161452
|
+
/** @description The call */
|
|
161453
|
+
call_id: number;
|
|
161454
|
+
/** @description The outcome now recorded */
|
|
161455
|
+
outcome?: string | null;
|
|
161456
|
+
/** @description What happened, in the operator's words */
|
|
161457
|
+
message: string;
|
|
161458
|
+
};
|
|
161459
|
+
};
|
|
161460
|
+
};
|
|
161461
|
+
};
|
|
161462
|
+
202: components["responses"]["Proposal"];
|
|
161463
|
+
/** @description Refused: credits_exhausted. */
|
|
161464
|
+
402: {
|
|
161465
|
+
headers: {
|
|
161466
|
+
[name: string]: unknown;
|
|
161467
|
+
};
|
|
161468
|
+
content: {
|
|
161469
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161470
|
+
};
|
|
161471
|
+
};
|
|
161472
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
161473
|
+
403: {
|
|
161474
|
+
headers: {
|
|
161475
|
+
[name: string]: unknown;
|
|
161476
|
+
};
|
|
161477
|
+
content: {
|
|
161478
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161479
|
+
};
|
|
161480
|
+
};
|
|
161481
|
+
/** @description Refused: not_found. */
|
|
161482
|
+
404: {
|
|
161483
|
+
headers: {
|
|
161484
|
+
[name: string]: unknown;
|
|
161485
|
+
};
|
|
161486
|
+
content: {
|
|
161487
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161488
|
+
};
|
|
161489
|
+
};
|
|
161490
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
161491
|
+
409: {
|
|
161492
|
+
headers: {
|
|
161493
|
+
[name: string]: unknown;
|
|
161494
|
+
};
|
|
161495
|
+
content: {
|
|
161496
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161497
|
+
};
|
|
161498
|
+
};
|
|
161499
|
+
/** @description Refused: operation_retired. */
|
|
161500
|
+
410: {
|
|
161501
|
+
headers: {
|
|
161502
|
+
[name: string]: unknown;
|
|
161503
|
+
};
|
|
161504
|
+
content: {
|
|
161505
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161506
|
+
};
|
|
161507
|
+
};
|
|
161508
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
161509
|
+
422: {
|
|
161510
|
+
headers: {
|
|
161511
|
+
[name: string]: unknown;
|
|
161512
|
+
};
|
|
161513
|
+
content: {
|
|
161514
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161515
|
+
};
|
|
161516
|
+
};
|
|
161517
|
+
/** @description Refused: rate_limited. */
|
|
161518
|
+
429: {
|
|
161519
|
+
headers: {
|
|
161520
|
+
[name: string]: unknown;
|
|
161521
|
+
};
|
|
161522
|
+
content: {
|
|
161523
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161524
|
+
};
|
|
161525
|
+
};
|
|
161526
|
+
};
|
|
161527
|
+
};
|
|
161528
|
+
"ops.voice.capture_suggestions.accept": {
|
|
161529
|
+
parameters: {
|
|
161530
|
+
query?: never;
|
|
161531
|
+
header?: {
|
|
161532
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
161533
|
+
"Idempotency-Key"?: string;
|
|
161534
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
161535
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
161536
|
+
};
|
|
161537
|
+
path?: never;
|
|
161538
|
+
cookie?: never;
|
|
161539
|
+
};
|
|
161540
|
+
requestBody?: {
|
|
161541
|
+
content: {
|
|
161542
|
+
/**
|
|
161543
|
+
* @example {
|
|
161544
|
+
* "load_opportunity_id": 5,
|
|
161545
|
+
* "fields": [
|
|
161546
|
+
* "posted_rate"
|
|
161547
|
+
* ]
|
|
161548
|
+
* }
|
|
161549
|
+
*/
|
|
161550
|
+
"application/json": {
|
|
161551
|
+
/** @description Load opportunity id */
|
|
161552
|
+
load_opportunity_id: number;
|
|
161553
|
+
/** @description Fields to accept: origin_city, origin_state, destination_city, destination_state, pickup_window_start, pickup_window_end, delivery_window_start, delivery_window_end, equipment, weight_lbs, commodity, posted_rate, broker_name, broker_mc, broker_email, source_reference */
|
|
161554
|
+
fields?: string[] | null;
|
|
161555
|
+
/** @description Field => your own value, used instead of the suggestion */
|
|
161556
|
+
values?: Record<string, never> | null;
|
|
161557
|
+
};
|
|
161558
|
+
};
|
|
161559
|
+
};
|
|
161560
|
+
responses: {
|
|
161561
|
+
/** @description The operation ran. */
|
|
161562
|
+
200: {
|
|
161563
|
+
headers: {
|
|
161564
|
+
[name: string]: unknown;
|
|
161565
|
+
};
|
|
161566
|
+
content: {
|
|
161567
|
+
/**
|
|
161568
|
+
* @example {
|
|
161569
|
+
* "result": {
|
|
161570
|
+
* "accepted_fields": [
|
|
161571
|
+
* "posted_rate"
|
|
161572
|
+
* ],
|
|
161573
|
+
* "opportunity": {
|
|
161574
|
+
* "id": 5,
|
|
161575
|
+
* "status": "captured",
|
|
161576
|
+
* "source_board": "phone",
|
|
161577
|
+
* "source_reference": "DAT-API-5",
|
|
161578
|
+
* "source_url": null,
|
|
161579
|
+
* "lane": {
|
|
161580
|
+
* "origin_city": "Chicago",
|
|
161581
|
+
* "origin_state": "IL",
|
|
161582
|
+
* "destination_city": "Dallas",
|
|
161583
|
+
* "destination_state": "TX",
|
|
161584
|
+
* "label": "Chicago, IL → Dallas, TX"
|
|
161585
|
+
* },
|
|
161586
|
+
* "pickup_window_start": "2026-11-02T14:00:00+00:00",
|
|
161587
|
+
* "pickup_window_end": null,
|
|
161588
|
+
* "delivery_window_start": null,
|
|
161589
|
+
* "delivery_window_end": null,
|
|
161590
|
+
* "equipment": "Van",
|
|
161591
|
+
* "weight_lbs": 42000,
|
|
161592
|
+
* "commodity": null,
|
|
161593
|
+
* "posted_rate": "2100.00",
|
|
161594
|
+
* "loaded_miles": "925.00",
|
|
161595
|
+
* "loaded_miles_provider": null,
|
|
161596
|
+
* "derived_floor_rate": null,
|
|
161597
|
+
* "derived_target_rate": null,
|
|
161598
|
+
* "effective_floor_rate": null,
|
|
161599
|
+
* "effective_target_rate": null,
|
|
161600
|
+
* "agreed_rate": null,
|
|
161601
|
+
* "economics_unavailable": false,
|
|
161602
|
+
* "economics_unavailable_reason": null,
|
|
161603
|
+
* "broker": {
|
|
161604
|
+
* "name": "TQL",
|
|
161605
|
+
* "mc": "322905",
|
|
161606
|
+
* "email": "broker@example.com",
|
|
161607
|
+
* "phone": "+13125550100",
|
|
161608
|
+
* "credit_score": null,
|
|
161609
|
+
* "days_to_pay": null
|
|
161610
|
+
* },
|
|
161611
|
+
* "captured_by_user_id": 1,
|
|
161612
|
+
* "created_at": "2026-10-22T21:22:28+00:00",
|
|
161613
|
+
* "updated_at": "2026-10-22T21:22:28+00:00",
|
|
161614
|
+
* "web_url": "http://localhost/admin/load-opportunities/5"
|
|
161615
|
+
* }
|
|
161616
|
+
* }
|
|
161617
|
+
* }
|
|
161618
|
+
*/
|
|
161619
|
+
"application/json": {
|
|
161620
|
+
result: {
|
|
161621
|
+
/** @description Fields written */
|
|
161622
|
+
accepted_fields: unknown[];
|
|
161623
|
+
/** @description The opportunity after the change */
|
|
161624
|
+
opportunity: {
|
|
161625
|
+
/** @description Load opportunity id */
|
|
161626
|
+
id: number;
|
|
161627
|
+
/** @description Negotiation stage: captured, negotiating, offer_received, confirmation_requested, ratecon_received, converted, lost or expired */
|
|
161628
|
+
status: string;
|
|
161629
|
+
/** @description Load board the posting came from */
|
|
161630
|
+
source_board: string;
|
|
161631
|
+
/** @description Posting reference on the load board */
|
|
161632
|
+
source_reference?: string | null;
|
|
161633
|
+
/** @description Link to the posting on the load board */
|
|
161634
|
+
source_url?: string | null;
|
|
161635
|
+
/** @description Origin and destination city and state, with a display label */
|
|
161636
|
+
lane?: Record<string, never> | null;
|
|
161637
|
+
/**
|
|
161638
|
+
* Format: date-time
|
|
161639
|
+
* @description Pickup window start (UTC)
|
|
161640
|
+
*/
|
|
161641
|
+
pickup_window_start?: string | null;
|
|
161642
|
+
/**
|
|
161643
|
+
* Format: date-time
|
|
161644
|
+
* @description Pickup window end (UTC)
|
|
161645
|
+
*/
|
|
161646
|
+
pickup_window_end?: string | null;
|
|
161647
|
+
/**
|
|
161648
|
+
* Format: date-time
|
|
161649
|
+
* @description Delivery window start (UTC)
|
|
161650
|
+
*/
|
|
161651
|
+
delivery_window_start?: string | null;
|
|
161652
|
+
/**
|
|
161653
|
+
* Format: date-time
|
|
161654
|
+
* @description Delivery window end (UTC)
|
|
161655
|
+
*/
|
|
161656
|
+
delivery_window_end?: string | null;
|
|
161657
|
+
/** @description Equipment type */
|
|
161658
|
+
equipment?: string | null;
|
|
161659
|
+
/** @description Weight in pounds */
|
|
161660
|
+
weight_lbs?: number | null;
|
|
161661
|
+
/** @description Commodity as posted */
|
|
161662
|
+
commodity?: string | null;
|
|
161663
|
+
/** @description Rate posted on the board, in dollars */
|
|
161664
|
+
posted_rate?: string | null;
|
|
161665
|
+
/** @description Loaded miles from origin to destination */
|
|
161666
|
+
loaded_miles?: string | null;
|
|
161667
|
+
/** @description Routing provider that computed the loaded miles */
|
|
161668
|
+
loaded_miles_provider?: string | null;
|
|
161669
|
+
/** @description Lowest acceptable rate from the selected driver economics */
|
|
161670
|
+
derived_floor_rate?: string | null;
|
|
161671
|
+
/** @description Target rate from the selected driver economics */
|
|
161672
|
+
derived_target_rate?: string | null;
|
|
161673
|
+
/** @description Floor rate after thresholds apply */
|
|
161674
|
+
effective_floor_rate?: string | null;
|
|
161675
|
+
/** @description Target rate after thresholds apply */
|
|
161676
|
+
effective_target_rate?: string | null;
|
|
161677
|
+
/** @description Rate agreed with the broker */
|
|
161678
|
+
agreed_rate?: string | null;
|
|
161679
|
+
/** @description True when the rates could not be computed */
|
|
161680
|
+
economics_unavailable?: boolean | null;
|
|
161681
|
+
/** @description Why the rates could not be computed */
|
|
161682
|
+
economics_unavailable_reason?: string | null;
|
|
161683
|
+
/** @description Broker name, MC number, email, phone, credit score and days to pay */
|
|
161684
|
+
broker?: Record<string, never> | null;
|
|
161685
|
+
/** @description Dispatcher who owns the opportunity */
|
|
161686
|
+
captured_by_user_id?: number | null;
|
|
161687
|
+
/**
|
|
161688
|
+
* Format: date-time
|
|
161689
|
+
* @description When the opportunity was captured (UTC)
|
|
161690
|
+
*/
|
|
161691
|
+
created_at?: string | null;
|
|
161692
|
+
/**
|
|
161693
|
+
* Format: date-time
|
|
161694
|
+
* @description Last change (UTC)
|
|
161695
|
+
*/
|
|
161696
|
+
updated_at?: string | null;
|
|
161697
|
+
/** @description Opportunity page in Axivoy */
|
|
161698
|
+
web_url?: string | null;
|
|
161699
|
+
};
|
|
161700
|
+
};
|
|
161701
|
+
};
|
|
161702
|
+
};
|
|
161703
|
+
};
|
|
161704
|
+
202: components["responses"]["Proposal"];
|
|
161705
|
+
/** @description Refused: credits_exhausted. */
|
|
161706
|
+
402: {
|
|
161707
|
+
headers: {
|
|
161708
|
+
[name: string]: unknown;
|
|
161709
|
+
};
|
|
161710
|
+
content: {
|
|
161711
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161712
|
+
};
|
|
161713
|
+
};
|
|
161714
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
161715
|
+
403: {
|
|
161716
|
+
headers: {
|
|
161717
|
+
[name: string]: unknown;
|
|
161718
|
+
};
|
|
161719
|
+
content: {
|
|
161720
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161721
|
+
};
|
|
161722
|
+
};
|
|
161723
|
+
/** @description Refused: not_found. */
|
|
161724
|
+
404: {
|
|
161725
|
+
headers: {
|
|
161726
|
+
[name: string]: unknown;
|
|
161727
|
+
};
|
|
161728
|
+
content: {
|
|
161729
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161730
|
+
};
|
|
161731
|
+
};
|
|
161732
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
161733
|
+
409: {
|
|
161734
|
+
headers: {
|
|
161735
|
+
[name: string]: unknown;
|
|
161736
|
+
};
|
|
161737
|
+
content: {
|
|
161738
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161739
|
+
};
|
|
161740
|
+
};
|
|
161741
|
+
/** @description Refused: operation_retired. */
|
|
161742
|
+
410: {
|
|
161743
|
+
headers: {
|
|
161744
|
+
[name: string]: unknown;
|
|
161745
|
+
};
|
|
161746
|
+
content: {
|
|
161747
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161748
|
+
};
|
|
161749
|
+
};
|
|
161750
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
161751
|
+
422: {
|
|
161752
|
+
headers: {
|
|
161753
|
+
[name: string]: unknown;
|
|
161754
|
+
};
|
|
161755
|
+
content: {
|
|
161756
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161757
|
+
};
|
|
161758
|
+
};
|
|
161759
|
+
/** @description Refused: rate_limited. */
|
|
161760
|
+
429: {
|
|
161761
|
+
headers: {
|
|
161762
|
+
[name: string]: unknown;
|
|
161763
|
+
};
|
|
161764
|
+
content: {
|
|
161765
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161766
|
+
};
|
|
161767
|
+
};
|
|
161768
|
+
};
|
|
161769
|
+
};
|
|
161770
|
+
"ops.voice.extensions.fill": {
|
|
161771
|
+
parameters: {
|
|
161772
|
+
query?: never;
|
|
161773
|
+
header?: {
|
|
161774
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
161775
|
+
"Idempotency-Key"?: string;
|
|
161776
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
161777
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
161778
|
+
};
|
|
161779
|
+
path?: never;
|
|
161780
|
+
cookie?: never;
|
|
161781
|
+
};
|
|
161782
|
+
requestBody?: {
|
|
161783
|
+
content: {
|
|
161784
|
+
"application/json": Record<string, never>;
|
|
161785
|
+
};
|
|
161786
|
+
};
|
|
161787
|
+
responses: {
|
|
161788
|
+
/** @description The operation ran. */
|
|
161789
|
+
200: {
|
|
161790
|
+
headers: {
|
|
161791
|
+
[name: string]: unknown;
|
|
161792
|
+
};
|
|
161793
|
+
content: {
|
|
161794
|
+
"application/json": {
|
|
161795
|
+
result: {
|
|
161796
|
+
/** @description How many extensions were given out */
|
|
161797
|
+
assigned_count: number;
|
|
161798
|
+
/** @description What happened, in the operator's words */
|
|
161799
|
+
message: string;
|
|
161800
|
+
};
|
|
161801
|
+
};
|
|
161802
|
+
};
|
|
161803
|
+
};
|
|
161804
|
+
202: components["responses"]["Proposal"];
|
|
161805
|
+
/** @description Refused: credits_exhausted. */
|
|
161806
|
+
402: {
|
|
161807
|
+
headers: {
|
|
161808
|
+
[name: string]: unknown;
|
|
161809
|
+
};
|
|
161810
|
+
content: {
|
|
161811
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161812
|
+
};
|
|
161813
|
+
};
|
|
161814
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
161815
|
+
403: {
|
|
161816
|
+
headers: {
|
|
161817
|
+
[name: string]: unknown;
|
|
161818
|
+
};
|
|
161819
|
+
content: {
|
|
161820
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161821
|
+
};
|
|
161822
|
+
};
|
|
161823
|
+
/** @description Refused: not_found. */
|
|
161824
|
+
404: {
|
|
161825
|
+
headers: {
|
|
161826
|
+
[name: string]: unknown;
|
|
161827
|
+
};
|
|
161828
|
+
content: {
|
|
161829
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161830
|
+
};
|
|
161831
|
+
};
|
|
161832
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
161833
|
+
409: {
|
|
161834
|
+
headers: {
|
|
161835
|
+
[name: string]: unknown;
|
|
161836
|
+
};
|
|
161837
|
+
content: {
|
|
161838
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161839
|
+
};
|
|
161840
|
+
};
|
|
161841
|
+
/** @description Refused: operation_retired. */
|
|
161842
|
+
410: {
|
|
161843
|
+
headers: {
|
|
161844
|
+
[name: string]: unknown;
|
|
161845
|
+
};
|
|
161846
|
+
content: {
|
|
161847
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161848
|
+
};
|
|
161849
|
+
};
|
|
161850
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
161851
|
+
422: {
|
|
161852
|
+
headers: {
|
|
161853
|
+
[name: string]: unknown;
|
|
161854
|
+
};
|
|
161855
|
+
content: {
|
|
161856
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161857
|
+
};
|
|
161858
|
+
};
|
|
161859
|
+
/** @description Refused: rate_limited. */
|
|
161860
|
+
429: {
|
|
161861
|
+
headers: {
|
|
161862
|
+
[name: string]: unknown;
|
|
161863
|
+
};
|
|
161864
|
+
content: {
|
|
161865
|
+
"application/json": components["schemas"]["OperationError"];
|
|
161866
|
+
};
|
|
161867
|
+
};
|
|
161868
|
+
};
|
|
161869
|
+
};
|
|
161870
|
+
"ops.voice.extensions.list": {
|
|
159873
161871
|
parameters: {
|
|
159874
161872
|
query?: never;
|
|
159875
161873
|
header?: {
|
|
@@ -159883,24 +161881,21 @@ export interface operations {
|
|
|
159883
161881
|
};
|
|
159884
161882
|
requestBody?: {
|
|
159885
161883
|
content: {
|
|
159886
|
-
/**
|
|
159887
|
-
* @example {
|
|
159888
|
-
* "call_sid": "CA_API_3",
|
|
159889
|
-
* "action": "hold"
|
|
159890
|
-
* }
|
|
159891
|
-
*/
|
|
159892
161884
|
"application/json": {
|
|
159893
|
-
/** @description The calling panel's own call id for the current call */
|
|
159894
|
-
call_sid: string;
|
|
159895
161885
|
/**
|
|
159896
|
-
* @description
|
|
159897
|
-
* @enum {string}
|
|
161886
|
+
* @description Only extensions of this kind: user, team, ring_group or voicemail_box
|
|
161887
|
+
* @enum {string|null}
|
|
159898
161888
|
*/
|
|
159899
|
-
|
|
159900
|
-
/** @description
|
|
159901
|
-
|
|
159902
|
-
/** @description
|
|
159903
|
-
|
|
161889
|
+
target_type?: "user" | "team" | "ring_group" | "voicemail_box" | null;
|
|
161890
|
+
/** @description Cursor from the previous page's next_cursor. */
|
|
161891
|
+
cursor?: string | null;
|
|
161892
|
+
/** @description Rows per page (default 25). */
|
|
161893
|
+
limit?: number | null;
|
|
161894
|
+
/**
|
|
161895
|
+
* Format: date-time
|
|
161896
|
+
* @description Only rows changed at or after this instant, oldest change first, with deleted rows as tombstones.
|
|
161897
|
+
*/
|
|
161898
|
+
updated_since?: string | null;
|
|
159904
161899
|
};
|
|
159905
161900
|
};
|
|
159906
161901
|
};
|
|
@@ -159911,23 +161906,31 @@ export interface operations {
|
|
|
159911
161906
|
[name: string]: unknown;
|
|
159912
161907
|
};
|
|
159913
161908
|
content: {
|
|
159914
|
-
/**
|
|
159915
|
-
* @example {
|
|
159916
|
-
* "result": {
|
|
159917
|
-
* "call_id": 1,
|
|
159918
|
-
* "action": "hold",
|
|
159919
|
-
* "message": "The caller is on hold."
|
|
159920
|
-
* }
|
|
159921
|
-
* }
|
|
159922
|
-
*/
|
|
159923
161909
|
"application/json": {
|
|
159924
161910
|
result: {
|
|
159925
|
-
/** @description
|
|
159926
|
-
|
|
159927
|
-
|
|
159928
|
-
|
|
159929
|
-
|
|
159930
|
-
|
|
161911
|
+
/** @description One page of rows. */
|
|
161912
|
+
items: {
|
|
161913
|
+
/** @description The row's id. */
|
|
161914
|
+
id: number;
|
|
161915
|
+
/** @description The extension, 200 to 899 */
|
|
161916
|
+
number: string;
|
|
161917
|
+
/** @description user, team, ring_group or voicemail_box */
|
|
161918
|
+
target_type: string;
|
|
161919
|
+
/** @description The person, team, ring group or voicemail box */
|
|
161920
|
+
target_id: number;
|
|
161921
|
+
/** @description The team's key, for a team */
|
|
161922
|
+
team_key?: string | null;
|
|
161923
|
+
/** @description Who or what it reaches */
|
|
161924
|
+
name: string;
|
|
161925
|
+
/** @description Whether a call to it rings anything now */
|
|
161926
|
+
in_use: boolean;
|
|
161927
|
+
/** @description Why it is not in use, in the operator's words */
|
|
161928
|
+
flag?: string | null;
|
|
161929
|
+
/** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
|
|
161930
|
+
deleted?: boolean | null;
|
|
161931
|
+
}[];
|
|
161932
|
+
/** @description Pass as cursor for the next page; null on the last page. */
|
|
161933
|
+
next_cursor?: string | null;
|
|
159931
161934
|
};
|
|
159932
161935
|
};
|
|
159933
161936
|
};
|
|
@@ -159998,7 +162001,7 @@ export interface operations {
|
|
|
159998
162001
|
};
|
|
159999
162002
|
};
|
|
160000
162003
|
};
|
|
160001
|
-
"ops.voice.
|
|
162004
|
+
"ops.voice.extensions.remove": {
|
|
160002
162005
|
parameters: {
|
|
160003
162006
|
query?: never;
|
|
160004
162007
|
header?: {
|
|
@@ -160012,23 +162015,9 @@ export interface operations {
|
|
|
160012
162015
|
};
|
|
160013
162016
|
requestBody?: {
|
|
160014
162017
|
content: {
|
|
160015
|
-
/**
|
|
160016
|
-
* @example {
|
|
160017
|
-
* "call_id": 1,
|
|
160018
|
-
* "outcome": "resolved",
|
|
160019
|
-
* "notes": "Detention at the receiver."
|
|
160020
|
-
* }
|
|
160021
|
-
*/
|
|
160022
162018
|
"application/json": {
|
|
160023
|
-
/** @description The
|
|
160024
|
-
|
|
160025
|
-
/**
|
|
160026
|
-
* @description resolved, callback_needed, voicemail_left, wrong_number, spam or other; empty clears it
|
|
160027
|
-
* @enum {string|null}
|
|
160028
|
-
*/
|
|
160029
|
-
outcome?: "resolved" | "callback_needed" | "voicemail_left" | "wrong_number" | "spam" | "other" | null;
|
|
160030
|
-
/** @description Notes on the call; replaces the current notes, empty clears them */
|
|
160031
|
-
notes?: string | null;
|
|
162019
|
+
/** @description The extension (from voice.extensions.list) */
|
|
162020
|
+
extension_id: number;
|
|
160032
162021
|
};
|
|
160033
162022
|
};
|
|
160034
162023
|
};
|
|
@@ -160039,21 +162028,10 @@ export interface operations {
|
|
|
160039
162028
|
[name: string]: unknown;
|
|
160040
162029
|
};
|
|
160041
162030
|
content: {
|
|
160042
|
-
/**
|
|
160043
|
-
* @example {
|
|
160044
|
-
* "result": {
|
|
160045
|
-
* "call_id": 1,
|
|
160046
|
-
* "outcome": "resolved",
|
|
160047
|
-
* "message": "Call saved."
|
|
160048
|
-
* }
|
|
160049
|
-
* }
|
|
160050
|
-
*/
|
|
160051
162031
|
"application/json": {
|
|
160052
162032
|
result: {
|
|
160053
|
-
/** @description The
|
|
160054
|
-
|
|
160055
|
-
/** @description The outcome now recorded */
|
|
160056
|
-
outcome?: string | null;
|
|
162033
|
+
/** @description The extension */
|
|
162034
|
+
extension_id: number;
|
|
160057
162035
|
/** @description What happened, in the operator's words */
|
|
160058
162036
|
message: string;
|
|
160059
162037
|
};
|
|
@@ -160126,7 +162104,7 @@ export interface operations {
|
|
|
160126
162104
|
};
|
|
160127
162105
|
};
|
|
160128
162106
|
};
|
|
160129
|
-
"ops.voice.
|
|
162107
|
+
"ops.voice.extensions.set": {
|
|
160130
162108
|
parameters: {
|
|
160131
162109
|
query?: never;
|
|
160132
162110
|
header?: {
|
|
@@ -160140,21 +162118,18 @@ export interface operations {
|
|
|
160140
162118
|
};
|
|
160141
162119
|
requestBody?: {
|
|
160142
162120
|
content: {
|
|
160143
|
-
/**
|
|
160144
|
-
* @example {
|
|
160145
|
-
* "load_opportunity_id": 5,
|
|
160146
|
-
* "fields": [
|
|
160147
|
-
* "posted_rate"
|
|
160148
|
-
* ]
|
|
160149
|
-
* }
|
|
160150
|
-
*/
|
|
160151
162121
|
"application/json": {
|
|
160152
|
-
/**
|
|
160153
|
-
|
|
160154
|
-
|
|
160155
|
-
|
|
160156
|
-
|
|
160157
|
-
|
|
162122
|
+
/**
|
|
162123
|
+
* @description user, team, ring_group or voicemail_box
|
|
162124
|
+
* @enum {string}
|
|
162125
|
+
*/
|
|
162126
|
+
target_type: "user" | "team" | "ring_group" | "voicemail_box";
|
|
162127
|
+
/** @description The person, ring group or voicemail box (not for teams) */
|
|
162128
|
+
target_id?: number | null;
|
|
162129
|
+
/** @description The team's key, for a team (from communication_teams.list) */
|
|
162130
|
+
team_key?: string | null;
|
|
162131
|
+
/** @description The extension, 3 digits; left out, the next free one */
|
|
162132
|
+
number?: string | null;
|
|
160158
162133
|
};
|
|
160159
162134
|
};
|
|
160160
162135
|
};
|
|
@@ -160165,139 +162140,14 @@ export interface operations {
|
|
|
160165
162140
|
[name: string]: unknown;
|
|
160166
162141
|
};
|
|
160167
162142
|
content: {
|
|
160168
|
-
/**
|
|
160169
|
-
* @example {
|
|
160170
|
-
* "result": {
|
|
160171
|
-
* "accepted_fields": [
|
|
160172
|
-
* "posted_rate"
|
|
160173
|
-
* ],
|
|
160174
|
-
* "opportunity": {
|
|
160175
|
-
* "id": 5,
|
|
160176
|
-
* "status": "captured",
|
|
160177
|
-
* "source_board": "phone",
|
|
160178
|
-
* "source_reference": "DAT-API-5",
|
|
160179
|
-
* "source_url": null,
|
|
160180
|
-
* "lane": {
|
|
160181
|
-
* "origin_city": "Chicago",
|
|
160182
|
-
* "origin_state": "IL",
|
|
160183
|
-
* "destination_city": "Dallas",
|
|
160184
|
-
* "destination_state": "TX",
|
|
160185
|
-
* "label": "Chicago, IL → Dallas, TX"
|
|
160186
|
-
* },
|
|
160187
|
-
* "pickup_window_start": "2026-11-02T14:00:00+00:00",
|
|
160188
|
-
* "pickup_window_end": null,
|
|
160189
|
-
* "delivery_window_start": null,
|
|
160190
|
-
* "delivery_window_end": null,
|
|
160191
|
-
* "equipment": "Van",
|
|
160192
|
-
* "weight_lbs": 42000,
|
|
160193
|
-
* "commodity": null,
|
|
160194
|
-
* "posted_rate": "2100.00",
|
|
160195
|
-
* "loaded_miles": "925.00",
|
|
160196
|
-
* "loaded_miles_provider": null,
|
|
160197
|
-
* "derived_floor_rate": null,
|
|
160198
|
-
* "derived_target_rate": null,
|
|
160199
|
-
* "effective_floor_rate": null,
|
|
160200
|
-
* "effective_target_rate": null,
|
|
160201
|
-
* "agreed_rate": null,
|
|
160202
|
-
* "economics_unavailable": false,
|
|
160203
|
-
* "economics_unavailable_reason": null,
|
|
160204
|
-
* "broker": {
|
|
160205
|
-
* "name": "TQL",
|
|
160206
|
-
* "mc": "322905",
|
|
160207
|
-
* "email": "broker@example.com",
|
|
160208
|
-
* "phone": "+13125550100",
|
|
160209
|
-
* "credit_score": null,
|
|
160210
|
-
* "days_to_pay": null
|
|
160211
|
-
* },
|
|
160212
|
-
* "captured_by_user_id": 1,
|
|
160213
|
-
* "created_at": "2026-10-22T21:22:28+00:00",
|
|
160214
|
-
* "updated_at": "2026-10-22T21:22:28+00:00",
|
|
160215
|
-
* "web_url": "http://localhost/admin/load-opportunities/5"
|
|
160216
|
-
* }
|
|
160217
|
-
* }
|
|
160218
|
-
* }
|
|
160219
|
-
*/
|
|
160220
162143
|
"application/json": {
|
|
160221
162144
|
result: {
|
|
160222
|
-
/** @description
|
|
160223
|
-
|
|
160224
|
-
/** @description
|
|
160225
|
-
|
|
160226
|
-
|
|
160227
|
-
|
|
160228
|
-
/** @description Negotiation stage: captured, negotiating, offer_received, confirmation_requested, ratecon_received, converted, lost or expired */
|
|
160229
|
-
status: string;
|
|
160230
|
-
/** @description Load board the posting came from */
|
|
160231
|
-
source_board: string;
|
|
160232
|
-
/** @description Posting reference on the load board */
|
|
160233
|
-
source_reference?: string | null;
|
|
160234
|
-
/** @description Link to the posting on the load board */
|
|
160235
|
-
source_url?: string | null;
|
|
160236
|
-
/** @description Origin and destination city and state, with a display label */
|
|
160237
|
-
lane?: Record<string, never> | null;
|
|
160238
|
-
/**
|
|
160239
|
-
* Format: date-time
|
|
160240
|
-
* @description Pickup window start (UTC)
|
|
160241
|
-
*/
|
|
160242
|
-
pickup_window_start?: string | null;
|
|
160243
|
-
/**
|
|
160244
|
-
* Format: date-time
|
|
160245
|
-
* @description Pickup window end (UTC)
|
|
160246
|
-
*/
|
|
160247
|
-
pickup_window_end?: string | null;
|
|
160248
|
-
/**
|
|
160249
|
-
* Format: date-time
|
|
160250
|
-
* @description Delivery window start (UTC)
|
|
160251
|
-
*/
|
|
160252
|
-
delivery_window_start?: string | null;
|
|
160253
|
-
/**
|
|
160254
|
-
* Format: date-time
|
|
160255
|
-
* @description Delivery window end (UTC)
|
|
160256
|
-
*/
|
|
160257
|
-
delivery_window_end?: string | null;
|
|
160258
|
-
/** @description Equipment type */
|
|
160259
|
-
equipment?: string | null;
|
|
160260
|
-
/** @description Weight in pounds */
|
|
160261
|
-
weight_lbs?: number | null;
|
|
160262
|
-
/** @description Commodity as posted */
|
|
160263
|
-
commodity?: string | null;
|
|
160264
|
-
/** @description Rate posted on the board, in dollars */
|
|
160265
|
-
posted_rate?: string | null;
|
|
160266
|
-
/** @description Loaded miles from origin to destination */
|
|
160267
|
-
loaded_miles?: string | null;
|
|
160268
|
-
/** @description Routing provider that computed the loaded miles */
|
|
160269
|
-
loaded_miles_provider?: string | null;
|
|
160270
|
-
/** @description Lowest acceptable rate from the selected driver economics */
|
|
160271
|
-
derived_floor_rate?: string | null;
|
|
160272
|
-
/** @description Target rate from the selected driver economics */
|
|
160273
|
-
derived_target_rate?: string | null;
|
|
160274
|
-
/** @description Floor rate after thresholds apply */
|
|
160275
|
-
effective_floor_rate?: string | null;
|
|
160276
|
-
/** @description Target rate after thresholds apply */
|
|
160277
|
-
effective_target_rate?: string | null;
|
|
160278
|
-
/** @description Rate agreed with the broker */
|
|
160279
|
-
agreed_rate?: string | null;
|
|
160280
|
-
/** @description True when the rates could not be computed */
|
|
160281
|
-
economics_unavailable?: boolean | null;
|
|
160282
|
-
/** @description Why the rates could not be computed */
|
|
160283
|
-
economics_unavailable_reason?: string | null;
|
|
160284
|
-
/** @description Broker name, MC number, email, phone, credit score and days to pay */
|
|
160285
|
-
broker?: Record<string, never> | null;
|
|
160286
|
-
/** @description Dispatcher who owns the opportunity */
|
|
160287
|
-
captured_by_user_id?: number | null;
|
|
160288
|
-
/**
|
|
160289
|
-
* Format: date-time
|
|
160290
|
-
* @description When the opportunity was captured (UTC)
|
|
160291
|
-
*/
|
|
160292
|
-
created_at?: string | null;
|
|
160293
|
-
/**
|
|
160294
|
-
* Format: date-time
|
|
160295
|
-
* @description Last change (UTC)
|
|
160296
|
-
*/
|
|
160297
|
-
updated_at?: string | null;
|
|
160298
|
-
/** @description Opportunity page in Axivoy */
|
|
160299
|
-
web_url?: string | null;
|
|
160300
|
-
};
|
|
162145
|
+
/** @description The extension */
|
|
162146
|
+
extension_id: number;
|
|
162147
|
+
/** @description What happened, in the operator's words */
|
|
162148
|
+
message: string;
|
|
162149
|
+
/** @description The extension */
|
|
162150
|
+
number: string;
|
|
160301
162151
|
};
|
|
160302
162152
|
};
|
|
160303
162153
|
};
|
|
@@ -160394,6 +162244,8 @@ export interface operations {
|
|
|
160394
162244
|
"application/json": {
|
|
160395
162245
|
/** @description Active team keys in the order callers hear them (0 to 8; from communication_teams.list) */
|
|
160396
162246
|
team_keys: string[] | null;
|
|
162247
|
+
/** @description Callers can press star, then an extension; left out keeps the current choice */
|
|
162248
|
+
dial_by_extension?: boolean | null;
|
|
160397
162249
|
};
|
|
160398
162250
|
};
|
|
160399
162251
|
};
|
|
@@ -160440,6 +162292,8 @@ export interface operations {
|
|
|
160440
162292
|
/** @description The team's name */
|
|
160441
162293
|
name: string;
|
|
160442
162294
|
}[];
|
|
162295
|
+
/** @description Whether callers can press star, then an extension */
|
|
162296
|
+
dial_by_extension: boolean;
|
|
160443
162297
|
/** @description What callers hear after the greeting */
|
|
160444
162298
|
prompt: string;
|
|
160445
162299
|
/** @description What happened, in the operator's words */
|
|
@@ -160853,6 +162707,8 @@ export interface operations {
|
|
|
160853
162707
|
use_default_hours?: boolean | null;
|
|
160854
162708
|
/** @description Ring a department: follow the department's after hours choice (voicemail skips the ring) */
|
|
160855
162709
|
after_hours?: boolean | null;
|
|
162710
|
+
/** @description Menu: callers can press star, then an extension */
|
|
162711
|
+
extensions?: boolean | null;
|
|
160856
162712
|
/** @description Menu choices in order */
|
|
160857
162713
|
options?: {
|
|
160858
162714
|
/** @description Keypad key: 0 to 9, * or # */
|
|
@@ -161355,6 +163211,8 @@ export interface operations {
|
|
|
161355
163211
|
use_default_hours?: boolean | null;
|
|
161356
163212
|
/** @description Ring a department: follow the department's after hours choice (voicemail skips the ring) */
|
|
161357
163213
|
after_hours?: boolean | null;
|
|
163214
|
+
/** @description Menu: callers can press star, then an extension */
|
|
163215
|
+
extensions?: boolean | null;
|
|
161358
163216
|
/** @description Menu choices in order */
|
|
161359
163217
|
options?: {
|
|
161360
163218
|
/** @description Keypad key: 0 to 9, * or # */
|
|
@@ -163682,6 +165540,41 @@ export interface operations {
|
|
|
163682
165540
|
* @description When their Busy ends (UTC); null when not Busy or Busy has no end
|
|
163683
165541
|
*/
|
|
163684
165542
|
busy_until?: string | null;
|
|
165543
|
+
/** @description Teams they are on call for now, soonest end first; empty when none */
|
|
165544
|
+
on_call_now: {
|
|
165545
|
+
/** @description The team (communication_teams.coverage.get) */
|
|
165546
|
+
team_key: string;
|
|
165547
|
+
/** @description The team's name */
|
|
165548
|
+
team_name: string;
|
|
165549
|
+
/**
|
|
165550
|
+
* Format: date-time
|
|
165551
|
+
* @description When their window ends (UTC)
|
|
165552
|
+
*/
|
|
165553
|
+
until: string;
|
|
165554
|
+
}[];
|
|
165555
|
+
/** @description Their next on-call windows across teams that ring who's on call, soonest first */
|
|
165556
|
+
upcoming_turns: {
|
|
165557
|
+
/** @description The team */
|
|
165558
|
+
team_key: string;
|
|
165559
|
+
/** @description The team's name */
|
|
165560
|
+
team_name: string;
|
|
165561
|
+
/**
|
|
165562
|
+
* Format: date-time
|
|
165563
|
+
* @description Window start (UTC); the first may be under way
|
|
165564
|
+
*/
|
|
165565
|
+
starts_at: string;
|
|
165566
|
+
/**
|
|
165567
|
+
* Format: date-time
|
|
165568
|
+
* @description Window end (UTC)
|
|
165569
|
+
*/
|
|
165570
|
+
ends_at: string;
|
|
165571
|
+
/** @description turn or hand_off (someone handed it to them) */
|
|
165572
|
+
source: string;
|
|
165573
|
+
/** @description The hand-off, when source is hand_off */
|
|
165574
|
+
hand_off_id?: number | null;
|
|
165575
|
+
}[];
|
|
165576
|
+
/** @description Their 3-digit extension (voice.extensions.list); null when they have none */
|
|
165577
|
+
extension?: string | null;
|
|
163685
165578
|
};
|
|
163686
165579
|
};
|
|
163687
165580
|
};
|
|
@@ -164826,6 +166719,23 @@ export interface operations {
|
|
|
164826
166719
|
busy_until?: string | null;
|
|
164827
166720
|
/** @description How long choosing Busy lasts in this company */
|
|
164828
166721
|
busy_minutes: number;
|
|
166722
|
+
/** @description The person's first verified phone, for Use my cell instead; null when they have none */
|
|
166723
|
+
my_phone?: {
|
|
166724
|
+
/** @description The phone (voice.calls.ring_my_phone_first phone_id) */
|
|
166725
|
+
id: number;
|
|
166726
|
+
/** @description The number, formatted for display */
|
|
166727
|
+
display: string;
|
|
166728
|
+
} | null;
|
|
166729
|
+
/** @description Whether the person is on call now for a team's after-hours calls (which ring them even when Busy); null when not */
|
|
166730
|
+
on_call?: {
|
|
166731
|
+
/** @description The teams the person is on call for now, joined for display */
|
|
166732
|
+
team_name: string;
|
|
166733
|
+
/**
|
|
166734
|
+
* Format: date-time
|
|
166735
|
+
* @description When the soonest of those turns ends
|
|
166736
|
+
*/
|
|
166737
|
+
until: string;
|
|
166738
|
+
} | null;
|
|
164829
166739
|
};
|
|
164830
166740
|
};
|
|
164831
166741
|
};
|
|
@@ -164928,8 +166838,15 @@ export interface operations {
|
|
|
164928
166838
|
"application/json": {
|
|
164929
166839
|
/** @description Ring group name, for example "Day dispatch" */
|
|
164930
166840
|
name: string;
|
|
164931
|
-
/**
|
|
166841
|
+
/**
|
|
166842
|
+
* @description How the group rings: all (everyone at once, the default), in_order (one at a time in member order), rotating (one at a time, each call starting with the next member) or longest_idle (one at a time, whoever has gone longest without a call first)
|
|
166843
|
+
* @enum {string|null}
|
|
166844
|
+
*/
|
|
166845
|
+
strategy?: "all" | "in_order" | "rotating" | "longest_idle" | null;
|
|
166846
|
+
/** @description Older form of strategy, used only when strategy is left out: true is all, false is in_order */
|
|
164932
166847
|
ring_all?: boolean | null;
|
|
166848
|
+
/** @description True also rings each person member's verified phones with their calling panel; they press 1 to take the call (default false) */
|
|
166849
|
+
ring_member_phones?: boolean | null;
|
|
164933
166850
|
/** @description How long each ring lasts, in seconds (default 20) */
|
|
164934
166851
|
ring_seconds?: number | null;
|
|
164935
166852
|
/** @description Members in ring order */
|
|
@@ -165174,8 +167091,15 @@ export interface operations {
|
|
|
165174
167091
|
ring_group_id: number;
|
|
165175
167092
|
/** @description Ring group name, for example "Day dispatch" */
|
|
165176
167093
|
name?: string;
|
|
165177
|
-
/**
|
|
167094
|
+
/**
|
|
167095
|
+
* @description How the group rings: all (everyone at once, the default), in_order (one at a time in member order), rotating (one at a time, each call starting with the next member) or longest_idle (one at a time, whoever has gone longest without a call first)
|
|
167096
|
+
* @enum {string|null}
|
|
167097
|
+
*/
|
|
167098
|
+
strategy?: "all" | "in_order" | "rotating" | "longest_idle" | null;
|
|
167099
|
+
/** @description Older form of strategy, used only when strategy is left out: true is all, false is in_order */
|
|
165178
167100
|
ring_all?: boolean | null;
|
|
167101
|
+
/** @description True also rings each person member's verified phones with their calling panel; they press 1 to take the call (default false) */
|
|
167102
|
+
ring_member_phones?: boolean | null;
|
|
165179
167103
|
/** @description How long each ring lasts, in seconds (default 20) */
|
|
165180
167104
|
ring_seconds?: number | null;
|
|
165181
167105
|
/** @description Members in ring order */
|