@axivoy/api 2.34.0 → 2.35.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.
@@ -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 or goes to voicemail 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.
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;
@@ -18538,7 +18648,7 @@ export interface paths {
18538
18648
  put?: never;
18539
18649
  /**
18540
18650
  * 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.
18651
+ * @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
18652
  *
18543
18653
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
18544
18654
  */
@@ -18593,6 +18703,94 @@ export interface paths {
18593
18703
  patch?: never;
18594
18704
  trace?: never;
18595
18705
  };
18706
+ "/ops/voice.extensions.fill": {
18707
+ parameters: {
18708
+ query?: never;
18709
+ header?: never;
18710
+ path?: never;
18711
+ cookie?: never;
18712
+ };
18713
+ get?: never;
18714
+ put?: never;
18715
+ /**
18716
+ * Give everyone an extension
18717
+ * @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.
18718
+ *
18719
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
18720
+ */
18721
+ post: operations["ops.voice.extensions.fill"];
18722
+ delete?: never;
18723
+ options?: never;
18724
+ head?: never;
18725
+ patch?: never;
18726
+ trace?: never;
18727
+ };
18728
+ "/ops/voice.extensions.list": {
18729
+ parameters: {
18730
+ query?: never;
18731
+ header?: never;
18732
+ path?: never;
18733
+ cookie?: never;
18734
+ };
18735
+ get?: never;
18736
+ put?: never;
18737
+ /**
18738
+ * Extensions
18739
+ * @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).
18740
+ *
18741
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
18742
+ */
18743
+ post: operations["ops.voice.extensions.list"];
18744
+ delete?: never;
18745
+ options?: never;
18746
+ head?: never;
18747
+ patch?: never;
18748
+ trace?: never;
18749
+ };
18750
+ "/ops/voice.extensions.remove": {
18751
+ parameters: {
18752
+ query?: never;
18753
+ header?: never;
18754
+ path?: never;
18755
+ cookie?: never;
18756
+ };
18757
+ get?: never;
18758
+ put?: never;
18759
+ /**
18760
+ * Remove an extension
18761
+ * @description Frees an extension. Dialing it then says "That extension isn't in use." until it is given out again.
18762
+ *
18763
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
18764
+ */
18765
+ post: operations["ops.voice.extensions.remove"];
18766
+ delete?: never;
18767
+ options?: never;
18768
+ head?: never;
18769
+ patch?: never;
18770
+ trace?: never;
18771
+ };
18772
+ "/ops/voice.extensions.set": {
18773
+ parameters: {
18774
+ query?: never;
18775
+ header?: never;
18776
+ path?: never;
18777
+ cookie?: never;
18778
+ };
18779
+ get?: never;
18780
+ put?: never;
18781
+ /**
18782
+ * Set an extension
18783
+ * @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.
18784
+ *
18785
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
18786
+ */
18787
+ post: operations["ops.voice.extensions.set"];
18788
+ delete?: never;
18789
+ options?: never;
18790
+ head?: never;
18791
+ patch?: never;
18792
+ trace?: never;
18793
+ };
18596
18794
  "/ops/voice.main_menu.set": {
18597
18795
  parameters: {
18598
18796
  query?: never;
@@ -18604,7 +18802,7 @@ export interface paths {
18604
18802
  put?: never;
18605
18803
  /**
18606
18804
  * 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.
18805
+ * @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
18806
  *
18609
18807
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
18610
18808
  */
@@ -19330,7 +19528,7 @@ export interface paths {
19330
19528
  put?: never;
19331
19529
  /**
19332
19530
  * Create a ring group
19333
- * @description Creates a ring group: the people and phone numbers a phone menu rings together, everyone at once or one at a time in order.
19531
+ * @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
19532
  *
19335
19533
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
19336
19534
  */
@@ -19374,7 +19572,7 @@ export interface paths {
19374
19572
  put?: never;
19375
19573
  /**
19376
19574
  * Update a ring group
19377
- * @description Changes a ring group's name, members, ring order or ring time. Fields left out keep their value; members replaces the whole list.
19575
+ * @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
19576
  *
19379
19577
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
19380
19578
  */
@@ -29047,10 +29245,12 @@ export interface operations {
29047
29245
  /** @description The company's ring group; required when answered_by is ring_group */
29048
29246
  ring_group_id?: number | null;
29049
29247
  /**
29050
- * @description ring or voicemail when the company is closed
29248
+ * @description ring, voicemail or on_call (the team's on-call rotation, then its voicemail) when the company is closed
29051
29249
  * @enum {string}
29052
29250
  */
29053
- after_hours?: "ring" | "voicemail";
29251
+ after_hours?: "ring" | "voicemail" | "on_call";
29252
+ /** @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) */
29253
+ ring_member_phones?: boolean;
29054
29254
  /** @description What callers hear before the tone; empty uses the default */
29055
29255
  voicemail_greeting?: string | null;
29056
29256
  /** @description What the main phone menu says before "press {digit}", for example "For billing and payments" */
@@ -29156,7 +29356,7 @@ export interface operations {
29156
29356
  };
29157
29357
  };
29158
29358
  };
29159
- "ops.communication_teams.create": {
29359
+ "ops.communication_teams.coverage.get": {
29160
29360
  parameters: {
29161
29361
  query?: never;
29162
29362
  header?: {
@@ -29170,19 +29370,9 @@ export interface operations {
29170
29370
  };
29171
29371
  requestBody?: {
29172
29372
  content: {
29173
- /**
29174
- * @example {
29175
- * "name": " Brokerage desk ",
29176
- * "email_local_part": "Brokerage"
29177
- * }
29178
- */
29179
29373
  "application/json": {
29180
- /** @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 */
29181
- name?: string;
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;
29374
+ /** @description The team (from communication_teams.list) */
29375
+ team_key: string;
29186
29376
  };
29187
29377
  };
29188
29378
  };
@@ -29193,23 +29383,102 @@ export interface operations {
29193
29383
  [name: string]: unknown;
29194
29384
  };
29195
29385
  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
29386
  "application/json": {
29206
29387
  result: {
29207
- /** @description The new team (or the built-in team added) */
29388
+ /** @description The team */
29208
29389
  team_key: string;
29209
- /** @description The team's Axivoy address */
29210
- email_address?: string | null;
29211
- /** @description What happened, in the operator's words */
29212
- message: string;
29390
+ /** @description Whether the team has a rotation saved; false reads the defaults it would start from */
29391
+ in_use: boolean;
29392
+ /** @description IANA time zone turns change in */
29393
+ timezone: string;
29394
+ /**
29395
+ * Format: date
29396
+ * @description Local date the first turn starts
29397
+ */
29398
+ starts_on: string;
29399
+ /** @description Local time turns change, HH:MM */
29400
+ handoff_time: string;
29401
+ /** @description How many days each turn lasts */
29402
+ turn_days: number;
29403
+ /** @description How long each person rings */
29404
+ ring_seconds: number;
29405
+ /** @description People in turn order */
29406
+ members: {
29407
+ /** @description The person */
29408
+ user_id: number;
29409
+ /** @description Their name */
29410
+ name: string;
29411
+ /** @description Whether they still make and take calls; turns skip people who don't */
29412
+ takes_calls: boolean;
29413
+ /** @description Whether they have a verified phone, so calls reach them away from Axivoy */
29414
+ has_phone: boolean;
29415
+ }[];
29416
+ /** @description Who rings when the person on call does not answer: next (the next person in turn order), person (backup_user_id) or none */
29417
+ backup: string;
29418
+ /** @description The backup when backup is person */
29419
+ backup_user_id?: number | null;
29420
+ /** @description Who is on call now; null when nobody is */
29421
+ on_call_now?: {
29422
+ /** @description The person */
29423
+ user_id: number;
29424
+ /** @description Their name */
29425
+ name: string;
29426
+ /**
29427
+ * Format: date-time
29428
+ * @description When their window ends (UTC)
29429
+ */
29430
+ until: string;
29431
+ /** @description turn or hand_off */
29432
+ source: string;
29433
+ } | null;
29434
+ /** @description The next windows, turns split where hand-offs start and end */
29435
+ upcoming_turns: {
29436
+ /** @description Who is on call */
29437
+ user_id: number;
29438
+ /** @description Their name */
29439
+ name: string;
29440
+ /**
29441
+ * Format: date-time
29442
+ * @description Window start (UTC); the first may be under way
29443
+ */
29444
+ starts_at: string;
29445
+ /**
29446
+ * Format: date-time
29447
+ * @description Window end (UTC)
29448
+ */
29449
+ ends_at: string;
29450
+ /** @description turn or hand_off */
29451
+ source: string;
29452
+ /** @description The hand-off covering it, when source is hand_off */
29453
+ hand_off_id?: number | null;
29454
+ /** @description Whose turn it is in the rotation */
29455
+ turn_user_id?: number | null;
29456
+ }[];
29457
+ /** @description Hand-offs that have not ended or been canceled */
29458
+ hand_offs: {
29459
+ /** @description The hand-off (communication_teams.coverage.hand_offs.cancel) */
29460
+ hand_off_id: number;
29461
+ /** @description Who covers */
29462
+ user_id: number;
29463
+ /** @description Their name */
29464
+ name: string;
29465
+ /**
29466
+ * Format: date-time
29467
+ * @description Start (UTC)
29468
+ */
29469
+ starts_at: string;
29470
+ /**
29471
+ * Format: date-time
29472
+ * @description End (UTC)
29473
+ */
29474
+ ends_at: string;
29475
+ /** @description Why */
29476
+ note?: string | null;
29477
+ /** @description Who made it */
29478
+ created_by_user_id?: number | null;
29479
+ /** @description Their name */
29480
+ created_by_name?: string | null;
29481
+ }[];
29213
29482
  };
29214
29483
  };
29215
29484
  };
@@ -29280,7 +29549,7 @@ export interface operations {
29280
29549
  };
29281
29550
  };
29282
29551
  };
29283
- "ops.communication_teams.default.set": {
29552
+ "ops.communication_teams.coverage.hand_offs.cancel": {
29284
29553
  parameters: {
29285
29554
  query?: never;
29286
29555
  header?: {
@@ -29294,14 +29563,9 @@ export interface operations {
29294
29563
  };
29295
29564
  requestBody?: {
29296
29565
  content: {
29297
- /**
29298
- * @example {
29299
- * "team_key": "receivables"
29300
- * }
29301
- */
29302
29566
  "application/json": {
29303
- /** @description An active team key (from communication_teams.list); Recruiting is refused because candidates' texts already go there */
29304
- team_key: string;
29567
+ /** @description The hand-off (from communication_teams.coverage.get). */
29568
+ hand_off_id: number;
29305
29569
  };
29306
29570
  };
29307
29571
  };
@@ -29312,21 +29576,634 @@ export interface operations {
29312
29576
  [name: string]: unknown;
29313
29577
  };
29314
29578
  content: {
29315
- /**
29316
- * @example {
29317
- * "result": {
29318
- * "team_key": "receivables",
29319
- * "previous_team_key": "dispatch",
29320
- * "message": "New texts to numbers not set to a team, and calls that reach no team, now go to Receivables."
29321
- * }
29322
- * }
29323
- */
29324
29579
  "application/json": {
29325
29580
  result: {
29326
- /** @description The default team now */
29327
- team_key: string;
29328
- /** @description The default team before */
29329
- previous_team_key?: string | null;
29581
+ /** @description The hand-off */
29582
+ hand_off_id: number;
29583
+ /** @description What happened, in the operator's words */
29584
+ message: string;
29585
+ };
29586
+ };
29587
+ };
29588
+ };
29589
+ 202: components["responses"]["Proposal"];
29590
+ /** @description Refused: credits_exhausted. */
29591
+ 402: {
29592
+ headers: {
29593
+ [name: string]: unknown;
29594
+ };
29595
+ content: {
29596
+ "application/json": components["schemas"]["OperationError"];
29597
+ };
29598
+ };
29599
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
29600
+ 403: {
29601
+ headers: {
29602
+ [name: string]: unknown;
29603
+ };
29604
+ content: {
29605
+ "application/json": components["schemas"]["OperationError"];
29606
+ };
29607
+ };
29608
+ /** @description Refused: not_found. */
29609
+ 404: {
29610
+ headers: {
29611
+ [name: string]: unknown;
29612
+ };
29613
+ content: {
29614
+ "application/json": components["schemas"]["OperationError"];
29615
+ };
29616
+ };
29617
+ /** @description Refused: idempotency_conflict, stale_state. */
29618
+ 409: {
29619
+ headers: {
29620
+ [name: string]: unknown;
29621
+ };
29622
+ content: {
29623
+ "application/json": components["schemas"]["OperationError"];
29624
+ };
29625
+ };
29626
+ /** @description Refused: operation_retired. */
29627
+ 410: {
29628
+ headers: {
29629
+ [name: string]: unknown;
29630
+ };
29631
+ content: {
29632
+ "application/json": components["schemas"]["OperationError"];
29633
+ };
29634
+ };
29635
+ /** @description Refused: invalid_input, domain_rule. */
29636
+ 422: {
29637
+ headers: {
29638
+ [name: string]: unknown;
29639
+ };
29640
+ content: {
29641
+ "application/json": components["schemas"]["OperationError"];
29642
+ };
29643
+ };
29644
+ /** @description Refused: rate_limited. */
29645
+ 429: {
29646
+ headers: {
29647
+ [name: string]: unknown;
29648
+ };
29649
+ content: {
29650
+ "application/json": components["schemas"]["OperationError"];
29651
+ };
29652
+ };
29653
+ };
29654
+ };
29655
+ "ops.communication_teams.coverage.hand_offs.create": {
29656
+ parameters: {
29657
+ query?: never;
29658
+ header?: {
29659
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
29660
+ "Idempotency-Key"?: string;
29661
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
29662
+ "Axivoy-Dry-Run"?: "true" | "false";
29663
+ };
29664
+ path?: never;
29665
+ cookie?: never;
29666
+ };
29667
+ requestBody?: {
29668
+ content: {
29669
+ "application/json": {
29670
+ /** @description The team (from communication_teams.list) */
29671
+ team_key: string;
29672
+ /** @description Who covers; makes and takes calls in the company. */
29673
+ user_id: number;
29674
+ /**
29675
+ * Format: date-time
29676
+ * @description When the hand-off starts; not in the past.
29677
+ */
29678
+ starts_at: string;
29679
+ /**
29680
+ * Format: date-time
29681
+ * @description When it ends; after starts_at.
29682
+ */
29683
+ ends_at: string;
29684
+ /** @description Why, shown to the covering person. */
29685
+ note?: string | null;
29686
+ };
29687
+ };
29688
+ };
29689
+ responses: {
29690
+ /** @description The operation ran. */
29691
+ 200: {
29692
+ headers: {
29693
+ [name: string]: unknown;
29694
+ };
29695
+ content: {
29696
+ "application/json": {
29697
+ result: {
29698
+ /** @description The hand-off (communication_teams.coverage.hand_offs.cancel) */
29699
+ hand_off_id: number;
29700
+ /** @description What happened, in the operator's words */
29701
+ message: string;
29702
+ };
29703
+ };
29704
+ };
29705
+ };
29706
+ 202: components["responses"]["Proposal"];
29707
+ /** @description Refused: credits_exhausted. */
29708
+ 402: {
29709
+ headers: {
29710
+ [name: string]: unknown;
29711
+ };
29712
+ content: {
29713
+ "application/json": components["schemas"]["OperationError"];
29714
+ };
29715
+ };
29716
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
29717
+ 403: {
29718
+ headers: {
29719
+ [name: string]: unknown;
29720
+ };
29721
+ content: {
29722
+ "application/json": components["schemas"]["OperationError"];
29723
+ };
29724
+ };
29725
+ /** @description Refused: not_found. */
29726
+ 404: {
29727
+ headers: {
29728
+ [name: string]: unknown;
29729
+ };
29730
+ content: {
29731
+ "application/json": components["schemas"]["OperationError"];
29732
+ };
29733
+ };
29734
+ /** @description Refused: idempotency_conflict, stale_state. */
29735
+ 409: {
29736
+ headers: {
29737
+ [name: string]: unknown;
29738
+ };
29739
+ content: {
29740
+ "application/json": components["schemas"]["OperationError"];
29741
+ };
29742
+ };
29743
+ /** @description Refused: operation_retired. */
29744
+ 410: {
29745
+ headers: {
29746
+ [name: string]: unknown;
29747
+ };
29748
+ content: {
29749
+ "application/json": components["schemas"]["OperationError"];
29750
+ };
29751
+ };
29752
+ /** @description Refused: invalid_input, domain_rule. */
29753
+ 422: {
29754
+ headers: {
29755
+ [name: string]: unknown;
29756
+ };
29757
+ content: {
29758
+ "application/json": components["schemas"]["OperationError"];
29759
+ };
29760
+ };
29761
+ /** @description Refused: rate_limited. */
29762
+ 429: {
29763
+ headers: {
29764
+ [name: string]: unknown;
29765
+ };
29766
+ content: {
29767
+ "application/json": components["schemas"]["OperationError"];
29768
+ };
29769
+ };
29770
+ };
29771
+ };
29772
+ "ops.communication_teams.coverage.list": {
29773
+ parameters: {
29774
+ query?: never;
29775
+ header?: {
29776
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
29777
+ "Idempotency-Key"?: string;
29778
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
29779
+ "Axivoy-Dry-Run"?: "true" | "false";
29780
+ };
29781
+ path?: never;
29782
+ cookie?: never;
29783
+ };
29784
+ requestBody?: {
29785
+ content: {
29786
+ "application/json": {
29787
+ /** @description Cursor from the previous page's next_cursor. */
29788
+ cursor?: string | null;
29789
+ /** @description Rows per page (default 25). */
29790
+ limit?: number | null;
29791
+ /**
29792
+ * Format: date-time
29793
+ * @description Only rows changed at or after this instant, oldest change first, with deleted rows as tombstones.
29794
+ */
29795
+ updated_since?: string | null;
29796
+ };
29797
+ };
29798
+ };
29799
+ responses: {
29800
+ /** @description The operation ran. */
29801
+ 200: {
29802
+ headers: {
29803
+ [name: string]: unknown;
29804
+ };
29805
+ content: {
29806
+ "application/json": {
29807
+ result: {
29808
+ /** @description One page of rows. */
29809
+ items: {
29810
+ /** @description The row's id. */
29811
+ id: number;
29812
+ /** @description The team (communication_teams.coverage.get) */
29813
+ team_key: string;
29814
+ /** @description The team's name */
29815
+ team_name: string;
29816
+ /** @description Who is on call now; null when nobody is */
29817
+ on_call_now_user_id?: number | null;
29818
+ /** @description Their name */
29819
+ on_call_now_name?: string | null;
29820
+ /**
29821
+ * Format: date-time
29822
+ * @description When their window ends (UTC)
29823
+ */
29824
+ on_call_until?: string | null;
29825
+ /** @description Whether the person on call has a verified phone, so calls reach them away from Axivoy */
29826
+ reachable_by_phone: boolean;
29827
+ /** @description Who is on call next */
29828
+ next_user_id?: number | null;
29829
+ /** @description Their name */
29830
+ next_name?: string | null;
29831
+ /**
29832
+ * Format: date-time
29833
+ * @description When their window starts (UTC)
29834
+ */
29835
+ next_starts_at?: string | null;
29836
+ /** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
29837
+ deleted?: boolean | null;
29838
+ }[];
29839
+ /** @description Pass as cursor for the next page; null on the last page. */
29840
+ next_cursor?: string | null;
29841
+ };
29842
+ };
29843
+ };
29844
+ };
29845
+ 202: components["responses"]["Proposal"];
29846
+ /** @description Refused: credits_exhausted. */
29847
+ 402: {
29848
+ headers: {
29849
+ [name: string]: unknown;
29850
+ };
29851
+ content: {
29852
+ "application/json": components["schemas"]["OperationError"];
29853
+ };
29854
+ };
29855
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
29856
+ 403: {
29857
+ headers: {
29858
+ [name: string]: unknown;
29859
+ };
29860
+ content: {
29861
+ "application/json": components["schemas"]["OperationError"];
29862
+ };
29863
+ };
29864
+ /** @description Refused: not_found. */
29865
+ 404: {
29866
+ headers: {
29867
+ [name: string]: unknown;
29868
+ };
29869
+ content: {
29870
+ "application/json": components["schemas"]["OperationError"];
29871
+ };
29872
+ };
29873
+ /** @description Refused: idempotency_conflict, stale_state. */
29874
+ 409: {
29875
+ headers: {
29876
+ [name: string]: unknown;
29877
+ };
29878
+ content: {
29879
+ "application/json": components["schemas"]["OperationError"];
29880
+ };
29881
+ };
29882
+ /** @description Refused: operation_retired. */
29883
+ 410: {
29884
+ headers: {
29885
+ [name: string]: unknown;
29886
+ };
29887
+ content: {
29888
+ "application/json": components["schemas"]["OperationError"];
29889
+ };
29890
+ };
29891
+ /** @description Refused: invalid_input, domain_rule. */
29892
+ 422: {
29893
+ headers: {
29894
+ [name: string]: unknown;
29895
+ };
29896
+ content: {
29897
+ "application/json": components["schemas"]["OperationError"];
29898
+ };
29899
+ };
29900
+ /** @description Refused: rate_limited. */
29901
+ 429: {
29902
+ headers: {
29903
+ [name: string]: unknown;
29904
+ };
29905
+ content: {
29906
+ "application/json": components["schemas"]["OperationError"];
29907
+ };
29908
+ };
29909
+ };
29910
+ };
29911
+ "ops.communication_teams.coverage.set": {
29912
+ parameters: {
29913
+ query?: never;
29914
+ header?: {
29915
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
29916
+ "Idempotency-Key"?: string;
29917
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
29918
+ "Axivoy-Dry-Run"?: "true" | "false";
29919
+ };
29920
+ path?: never;
29921
+ cookie?: never;
29922
+ };
29923
+ requestBody?: {
29924
+ content: {
29925
+ "application/json": {
29926
+ /** @description The team (from communication_teams.list) */
29927
+ team_key: string;
29928
+ /** @description People in turn order; each makes and takes calls in the company. */
29929
+ member_user_ids?: number[];
29930
+ /**
29931
+ * Format: date
29932
+ * @description Local date the first turn starts.
29933
+ */
29934
+ starts_on?: string;
29935
+ /** @description Local time turns change, HH:MM, for example 08:00. */
29936
+ handoff_time?: string;
29937
+ /** @description IANA time zone the handoff time is in, for example America/Chicago. */
29938
+ timezone?: string;
29939
+ /** @description How many days each turn lasts, 1 to 14. */
29940
+ turn_days?: number;
29941
+ /** @description How long each person rings, 15 to 90 (default 30). */
29942
+ ring_seconds?: number;
29943
+ /**
29944
+ * @description Who rings when the person on call does not answer: the next person in turn order, backup_user_id, or nobody.
29945
+ * @enum {string}
29946
+ */
29947
+ backup?: "next" | "person" | "none";
29948
+ /** @description The backup when backup is person. */
29949
+ backup_user_id?: number | null;
29950
+ };
29951
+ };
29952
+ };
29953
+ responses: {
29954
+ /** @description The operation ran. */
29955
+ 200: {
29956
+ headers: {
29957
+ [name: string]: unknown;
29958
+ };
29959
+ content: {
29960
+ "application/json": {
29961
+ result: {
29962
+ /** @description The team */
29963
+ team_key: string;
29964
+ /** @description What happened, in the operator's words */
29965
+ message: string;
29966
+ };
29967
+ };
29968
+ };
29969
+ };
29970
+ 202: components["responses"]["Proposal"];
29971
+ /** @description Refused: credits_exhausted. */
29972
+ 402: {
29973
+ headers: {
29974
+ [name: string]: unknown;
29975
+ };
29976
+ content: {
29977
+ "application/json": components["schemas"]["OperationError"];
29978
+ };
29979
+ };
29980
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
29981
+ 403: {
29982
+ headers: {
29983
+ [name: string]: unknown;
29984
+ };
29985
+ content: {
29986
+ "application/json": components["schemas"]["OperationError"];
29987
+ };
29988
+ };
29989
+ /** @description Refused: not_found. */
29990
+ 404: {
29991
+ headers: {
29992
+ [name: string]: unknown;
29993
+ };
29994
+ content: {
29995
+ "application/json": components["schemas"]["OperationError"];
29996
+ };
29997
+ };
29998
+ /** @description Refused: idempotency_conflict, stale_state. */
29999
+ 409: {
30000
+ headers: {
30001
+ [name: string]: unknown;
30002
+ };
30003
+ content: {
30004
+ "application/json": components["schemas"]["OperationError"];
30005
+ };
30006
+ };
30007
+ /** @description Refused: operation_retired. */
30008
+ 410: {
30009
+ headers: {
30010
+ [name: string]: unknown;
30011
+ };
30012
+ content: {
30013
+ "application/json": components["schemas"]["OperationError"];
30014
+ };
30015
+ };
30016
+ /** @description Refused: invalid_input, domain_rule. */
30017
+ 422: {
30018
+ headers: {
30019
+ [name: string]: unknown;
30020
+ };
30021
+ content: {
30022
+ "application/json": components["schemas"]["OperationError"];
30023
+ };
30024
+ };
30025
+ /** @description Refused: rate_limited. */
30026
+ 429: {
30027
+ headers: {
30028
+ [name: string]: unknown;
30029
+ };
30030
+ content: {
30031
+ "application/json": components["schemas"]["OperationError"];
30032
+ };
30033
+ };
30034
+ };
30035
+ };
30036
+ "ops.communication_teams.create": {
30037
+ parameters: {
30038
+ query?: never;
30039
+ header?: {
30040
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
30041
+ "Idempotency-Key"?: string;
30042
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
30043
+ "Axivoy-Dry-Run"?: "true" | "false";
30044
+ };
30045
+ path?: never;
30046
+ cookie?: never;
30047
+ };
30048
+ requestBody?: {
30049
+ content: {
30050
+ /**
30051
+ * @example {
30052
+ * "name": " Brokerage desk ",
30053
+ * "email_local_part": "Brokerage"
30054
+ * }
30055
+ */
30056
+ "application/json": {
30057
+ /** @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 */
30058
+ name?: string;
30059
+ /** @description The part before @ of the team's Axivoy address; default from the name; reserved and used names are refused */
30060
+ email_local_part?: string;
30061
+ /** @description Adds an available built-in team instead of a custom one; its name and address come from the catalog */
30062
+ builtin_key?: string;
30063
+ };
30064
+ };
30065
+ };
30066
+ responses: {
30067
+ /** @description The operation ran. */
30068
+ 200: {
30069
+ headers: {
30070
+ [name: string]: unknown;
30071
+ };
30072
+ content: {
30073
+ /**
30074
+ * @example {
30075
+ * "result": {
30076
+ * "team_key": "brokerage_desk",
30077
+ * "email_address": null,
30078
+ * "message": "Brokerage desk created. Add its people next."
30079
+ * }
30080
+ * }
30081
+ */
30082
+ "application/json": {
30083
+ result: {
30084
+ /** @description The new team (or the built-in team added) */
30085
+ team_key: string;
30086
+ /** @description The team's Axivoy address */
30087
+ email_address?: string | null;
30088
+ /** @description What happened, in the operator's words */
30089
+ message: string;
30090
+ };
30091
+ };
30092
+ };
30093
+ };
30094
+ 202: components["responses"]["Proposal"];
30095
+ /** @description Refused: credits_exhausted. */
30096
+ 402: {
30097
+ headers: {
30098
+ [name: string]: unknown;
30099
+ };
30100
+ content: {
30101
+ "application/json": components["schemas"]["OperationError"];
30102
+ };
30103
+ };
30104
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
30105
+ 403: {
30106
+ headers: {
30107
+ [name: string]: unknown;
30108
+ };
30109
+ content: {
30110
+ "application/json": components["schemas"]["OperationError"];
30111
+ };
30112
+ };
30113
+ /** @description Refused: not_found. */
30114
+ 404: {
30115
+ headers: {
30116
+ [name: string]: unknown;
30117
+ };
30118
+ content: {
30119
+ "application/json": components["schemas"]["OperationError"];
30120
+ };
30121
+ };
30122
+ /** @description Refused: idempotency_conflict, stale_state. */
30123
+ 409: {
30124
+ headers: {
30125
+ [name: string]: unknown;
30126
+ };
30127
+ content: {
30128
+ "application/json": components["schemas"]["OperationError"];
30129
+ };
30130
+ };
30131
+ /** @description Refused: operation_retired. */
30132
+ 410: {
30133
+ headers: {
30134
+ [name: string]: unknown;
30135
+ };
30136
+ content: {
30137
+ "application/json": components["schemas"]["OperationError"];
30138
+ };
30139
+ };
30140
+ /** @description Refused: invalid_input, domain_rule. */
30141
+ 422: {
30142
+ headers: {
30143
+ [name: string]: unknown;
30144
+ };
30145
+ content: {
30146
+ "application/json": components["schemas"]["OperationError"];
30147
+ };
30148
+ };
30149
+ /** @description Refused: rate_limited. */
30150
+ 429: {
30151
+ headers: {
30152
+ [name: string]: unknown;
30153
+ };
30154
+ content: {
30155
+ "application/json": components["schemas"]["OperationError"];
30156
+ };
30157
+ };
30158
+ };
30159
+ };
30160
+ "ops.communication_teams.default.set": {
30161
+ parameters: {
30162
+ query?: never;
30163
+ header?: {
30164
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
30165
+ "Idempotency-Key"?: string;
30166
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
30167
+ "Axivoy-Dry-Run"?: "true" | "false";
30168
+ };
30169
+ path?: never;
30170
+ cookie?: never;
30171
+ };
30172
+ requestBody?: {
30173
+ content: {
30174
+ /**
30175
+ * @example {
30176
+ * "team_key": "receivables"
30177
+ * }
30178
+ */
30179
+ "application/json": {
30180
+ /** @description An active team key (from communication_teams.list); Recruiting is refused because candidates' texts already go there */
30181
+ team_key: string;
30182
+ };
30183
+ };
30184
+ };
30185
+ responses: {
30186
+ /** @description The operation ran. */
30187
+ 200: {
30188
+ headers: {
30189
+ [name: string]: unknown;
30190
+ };
30191
+ content: {
30192
+ /**
30193
+ * @example {
30194
+ * "result": {
30195
+ * "team_key": "receivables",
30196
+ * "previous_team_key": "dispatch",
30197
+ * "message": "New texts to numbers not set to a team, and calls that reach no team, now go to Receivables."
30198
+ * }
30199
+ * }
30200
+ */
30201
+ "application/json": {
30202
+ result: {
30203
+ /** @description The default team now */
30204
+ team_key: string;
30205
+ /** @description The default team before */
30206
+ previous_team_key?: string | null;
29330
30207
  /** @description What happened, in the operator's words */
29331
30208
  message: string;
29332
30209
  };
@@ -29612,12 +30489,18 @@ export interface operations {
29612
30489
  answered_by: string;
29613
30490
  /** @description The ring group that answers when answered_by is ring_group */
29614
30491
  ring_group_id?: number | null;
29615
- /** @description ring or voicemail when the company is closed */
30492
+ /** @description ring, voicemail or on_call (its on-call rotation, then its voicemail) when the company is closed */
29616
30493
  after_hours: string;
30494
+ /** @description When its people answer, whether their verified phones ring with Axivoy (press 1 to take the call) */
30495
+ ring_member_phones: boolean;
29617
30496
  /** @description Its voicemail greeting; null uses the default */
29618
30497
  voicemail_greeting?: string | null;
29619
30498
  /** @description The digit callers press for it in the main phone menu */
29620
30499
  main_menu_digit?: string | null;
30500
+ /** @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 */
30501
+ on_call_now_name?: string | null;
30502
+ /** @description Its 3-digit extension (voice.extensions.list); null when it has none */
30503
+ extension?: string | null;
29621
30504
  };
29622
30505
  /** @description Numbers whose calls or texts come to the team: {number_id, e164, calls, texts} */
29623
30506
  phone_numbers: unknown[];
@@ -112487,7 +113370,7 @@ export interface operations {
112487
113370
  "application/json": {
112488
113371
  preferences: {
112489
113372
  /** @enum {string} */
112490
- category: "schedule" | "maintenance" | "compliance" | "detention" | "load" | "payroll" | "receivables" | "ai_agent" | "referrals" | "announcements" | "system";
113373
+ category: "schedule" | "maintenance" | "compliance" | "detention" | "load" | "payroll" | "receivables" | "ai_agent" | "referrals" | "announcements" | "calls" | "system";
112491
113374
  /** @enum {string} */
112492
113375
  channel: "email" | "sms" | "push" | "in_app" | "voice";
112493
113376
  enabled?: boolean | null;
@@ -159360,6 +160243,19 @@ export interface operations {
159360
160243
  team_name?: string | null;
159361
160244
  /** @description The caller's conversation the call is part of (conversations.get); null for a withheld number */
159362
160245
  conversation_id?: number | null;
160246
+ /** @description Placed from one of the person's own phones; null for any other call */
160247
+ via_my_phone?: {
160248
+ /** @description dial (the person's phone dialled the company) or ring_first (Axivoy rang their phone first) */
160249
+ method: string;
160250
+ /** @description The last four digits of the person's phone that placed it */
160251
+ phone_last_four?: string | null;
160252
+ /** @description ringing_you, waiting_for_press, connecting, connected or ended */
160253
+ state: string;
160254
+ /** @description Where the call stands, as the person sees it */
160255
+ label: string;
160256
+ /** @description Why it ended; null while it is going */
160257
+ reason?: string | null;
160258
+ } | null;
159363
160259
  };
159364
160260
  };
159365
160261
  };
@@ -159869,7 +160765,608 @@ export interface operations {
159869
160765
  };
159870
160766
  };
159871
160767
  };
159872
- "ops.voice.calls.transfer": {
160768
+ "ops.voice.calls.transfer": {
160769
+ parameters: {
160770
+ query?: never;
160771
+ header?: {
160772
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
160773
+ "Idempotency-Key"?: string;
160774
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
160775
+ "Axivoy-Dry-Run"?: "true" | "false";
160776
+ };
160777
+ path?: never;
160778
+ cookie?: never;
160779
+ };
160780
+ requestBody?: {
160781
+ content: {
160782
+ /**
160783
+ * @example {
160784
+ * "call_sid": "CA_API_3",
160785
+ * "action": "hold"
160786
+ * }
160787
+ */
160788
+ "application/json": {
160789
+ /** @description The calling panel's own call id for the current call */
160790
+ call_sid: string;
160791
+ /**
160792
+ * @description hold, resume (back to the caller) or transfer
160793
+ * @enum {string}
160794
+ */
160795
+ action: "hold" | "resume" | "transfer";
160796
+ /** @description Transfer: the teammate whose calling panel rings */
160797
+ to_user_id?: number | null;
160798
+ /** @description Transfer: the phone number to ring instead of a teammate */
160799
+ to_number?: string | null;
160800
+ /** @description Transfer: the extension (a person, team, ring group or voicemail) to send the call to instead */
160801
+ to_extension?: string | null;
160802
+ };
160803
+ };
160804
+ };
160805
+ responses: {
160806
+ /** @description The operation ran. */
160807
+ 200: {
160808
+ headers: {
160809
+ [name: string]: unknown;
160810
+ };
160811
+ content: {
160812
+ /**
160813
+ * @example {
160814
+ * "result": {
160815
+ * "call_id": 1,
160816
+ * "action": "hold",
160817
+ * "message": "The caller is on hold."
160818
+ * }
160819
+ * }
160820
+ */
160821
+ "application/json": {
160822
+ result: {
160823
+ /** @description The call */
160824
+ call_id: number;
160825
+ /** @description hold, resume or transfer */
160826
+ action: string;
160827
+ /** @description What happened, in the operator's words */
160828
+ message: string;
160829
+ };
160830
+ };
160831
+ };
160832
+ };
160833
+ 202: components["responses"]["Proposal"];
160834
+ /** @description Refused: credits_exhausted. */
160835
+ 402: {
160836
+ headers: {
160837
+ [name: string]: unknown;
160838
+ };
160839
+ content: {
160840
+ "application/json": components["schemas"]["OperationError"];
160841
+ };
160842
+ };
160843
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
160844
+ 403: {
160845
+ headers: {
160846
+ [name: string]: unknown;
160847
+ };
160848
+ content: {
160849
+ "application/json": components["schemas"]["OperationError"];
160850
+ };
160851
+ };
160852
+ /** @description Refused: not_found. */
160853
+ 404: {
160854
+ headers: {
160855
+ [name: string]: unknown;
160856
+ };
160857
+ content: {
160858
+ "application/json": components["schemas"]["OperationError"];
160859
+ };
160860
+ };
160861
+ /** @description Refused: idempotency_conflict, stale_state. */
160862
+ 409: {
160863
+ headers: {
160864
+ [name: string]: unknown;
160865
+ };
160866
+ content: {
160867
+ "application/json": components["schemas"]["OperationError"];
160868
+ };
160869
+ };
160870
+ /** @description Refused: operation_retired. */
160871
+ 410: {
160872
+ headers: {
160873
+ [name: string]: unknown;
160874
+ };
160875
+ content: {
160876
+ "application/json": components["schemas"]["OperationError"];
160877
+ };
160878
+ };
160879
+ /** @description Refused: invalid_input, domain_rule. */
160880
+ 422: {
160881
+ headers: {
160882
+ [name: string]: unknown;
160883
+ };
160884
+ content: {
160885
+ "application/json": components["schemas"]["OperationError"];
160886
+ };
160887
+ };
160888
+ /** @description Refused: rate_limited. */
160889
+ 429: {
160890
+ headers: {
160891
+ [name: string]: unknown;
160892
+ };
160893
+ content: {
160894
+ "application/json": components["schemas"]["OperationError"];
160895
+ };
160896
+ };
160897
+ };
160898
+ };
160899
+ "ops.voice.calls.update": {
160900
+ parameters: {
160901
+ query?: never;
160902
+ header?: {
160903
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
160904
+ "Idempotency-Key"?: string;
160905
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
160906
+ "Axivoy-Dry-Run"?: "true" | "false";
160907
+ };
160908
+ path?: never;
160909
+ cookie?: never;
160910
+ };
160911
+ requestBody?: {
160912
+ content: {
160913
+ /**
160914
+ * @example {
160915
+ * "call_id": 1,
160916
+ * "outcome": "resolved",
160917
+ * "notes": "Detention at the receiver."
160918
+ * }
160919
+ */
160920
+ "application/json": {
160921
+ /** @description The call (from voice.calls.list) */
160922
+ call_id: number;
160923
+ /**
160924
+ * @description resolved, callback_needed, voicemail_left, wrong_number, spam or other; empty clears it
160925
+ * @enum {string|null}
160926
+ */
160927
+ outcome?: "resolved" | "callback_needed" | "voicemail_left" | "wrong_number" | "spam" | "other" | null;
160928
+ /** @description Notes on the call; replaces the current notes, empty clears them */
160929
+ notes?: string | null;
160930
+ };
160931
+ };
160932
+ };
160933
+ responses: {
160934
+ /** @description The operation ran. */
160935
+ 200: {
160936
+ headers: {
160937
+ [name: string]: unknown;
160938
+ };
160939
+ content: {
160940
+ /**
160941
+ * @example {
160942
+ * "result": {
160943
+ * "call_id": 1,
160944
+ * "outcome": "resolved",
160945
+ * "message": "Call saved."
160946
+ * }
160947
+ * }
160948
+ */
160949
+ "application/json": {
160950
+ result: {
160951
+ /** @description The call */
160952
+ call_id: number;
160953
+ /** @description The outcome now recorded */
160954
+ outcome?: string | null;
160955
+ /** @description What happened, in the operator's words */
160956
+ message: string;
160957
+ };
160958
+ };
160959
+ };
160960
+ };
160961
+ 202: components["responses"]["Proposal"];
160962
+ /** @description Refused: credits_exhausted. */
160963
+ 402: {
160964
+ headers: {
160965
+ [name: string]: unknown;
160966
+ };
160967
+ content: {
160968
+ "application/json": components["schemas"]["OperationError"];
160969
+ };
160970
+ };
160971
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
160972
+ 403: {
160973
+ headers: {
160974
+ [name: string]: unknown;
160975
+ };
160976
+ content: {
160977
+ "application/json": components["schemas"]["OperationError"];
160978
+ };
160979
+ };
160980
+ /** @description Refused: not_found. */
160981
+ 404: {
160982
+ headers: {
160983
+ [name: string]: unknown;
160984
+ };
160985
+ content: {
160986
+ "application/json": components["schemas"]["OperationError"];
160987
+ };
160988
+ };
160989
+ /** @description Refused: idempotency_conflict, stale_state. */
160990
+ 409: {
160991
+ headers: {
160992
+ [name: string]: unknown;
160993
+ };
160994
+ content: {
160995
+ "application/json": components["schemas"]["OperationError"];
160996
+ };
160997
+ };
160998
+ /** @description Refused: operation_retired. */
160999
+ 410: {
161000
+ headers: {
161001
+ [name: string]: unknown;
161002
+ };
161003
+ content: {
161004
+ "application/json": components["schemas"]["OperationError"];
161005
+ };
161006
+ };
161007
+ /** @description Refused: invalid_input, domain_rule. */
161008
+ 422: {
161009
+ headers: {
161010
+ [name: string]: unknown;
161011
+ };
161012
+ content: {
161013
+ "application/json": components["schemas"]["OperationError"];
161014
+ };
161015
+ };
161016
+ /** @description Refused: rate_limited. */
161017
+ 429: {
161018
+ headers: {
161019
+ [name: string]: unknown;
161020
+ };
161021
+ content: {
161022
+ "application/json": components["schemas"]["OperationError"];
161023
+ };
161024
+ };
161025
+ };
161026
+ };
161027
+ "ops.voice.capture_suggestions.accept": {
161028
+ parameters: {
161029
+ query?: never;
161030
+ header?: {
161031
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
161032
+ "Idempotency-Key"?: string;
161033
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
161034
+ "Axivoy-Dry-Run"?: "true" | "false";
161035
+ };
161036
+ path?: never;
161037
+ cookie?: never;
161038
+ };
161039
+ requestBody?: {
161040
+ content: {
161041
+ /**
161042
+ * @example {
161043
+ * "load_opportunity_id": 5,
161044
+ * "fields": [
161045
+ * "posted_rate"
161046
+ * ]
161047
+ * }
161048
+ */
161049
+ "application/json": {
161050
+ /** @description Load opportunity id */
161051
+ load_opportunity_id: number;
161052
+ /** @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 */
161053
+ fields?: string[] | null;
161054
+ /** @description Field => your own value, used instead of the suggestion */
161055
+ values?: Record<string, never> | null;
161056
+ };
161057
+ };
161058
+ };
161059
+ responses: {
161060
+ /** @description The operation ran. */
161061
+ 200: {
161062
+ headers: {
161063
+ [name: string]: unknown;
161064
+ };
161065
+ content: {
161066
+ /**
161067
+ * @example {
161068
+ * "result": {
161069
+ * "accepted_fields": [
161070
+ * "posted_rate"
161071
+ * ],
161072
+ * "opportunity": {
161073
+ * "id": 5,
161074
+ * "status": "captured",
161075
+ * "source_board": "phone",
161076
+ * "source_reference": "DAT-API-5",
161077
+ * "source_url": null,
161078
+ * "lane": {
161079
+ * "origin_city": "Chicago",
161080
+ * "origin_state": "IL",
161081
+ * "destination_city": "Dallas",
161082
+ * "destination_state": "TX",
161083
+ * "label": "Chicago, IL → Dallas, TX"
161084
+ * },
161085
+ * "pickup_window_start": "2026-11-02T14:00:00+00:00",
161086
+ * "pickup_window_end": null,
161087
+ * "delivery_window_start": null,
161088
+ * "delivery_window_end": null,
161089
+ * "equipment": "Van",
161090
+ * "weight_lbs": 42000,
161091
+ * "commodity": null,
161092
+ * "posted_rate": "2100.00",
161093
+ * "loaded_miles": "925.00",
161094
+ * "loaded_miles_provider": null,
161095
+ * "derived_floor_rate": null,
161096
+ * "derived_target_rate": null,
161097
+ * "effective_floor_rate": null,
161098
+ * "effective_target_rate": null,
161099
+ * "agreed_rate": null,
161100
+ * "economics_unavailable": false,
161101
+ * "economics_unavailable_reason": null,
161102
+ * "broker": {
161103
+ * "name": "TQL",
161104
+ * "mc": "322905",
161105
+ * "email": "broker@example.com",
161106
+ * "phone": "+13125550100",
161107
+ * "credit_score": null,
161108
+ * "days_to_pay": null
161109
+ * },
161110
+ * "captured_by_user_id": 1,
161111
+ * "created_at": "2026-10-22T21:22:28+00:00",
161112
+ * "updated_at": "2026-10-22T21:22:28+00:00",
161113
+ * "web_url": "http://localhost/admin/load-opportunities/5"
161114
+ * }
161115
+ * }
161116
+ * }
161117
+ */
161118
+ "application/json": {
161119
+ result: {
161120
+ /** @description Fields written */
161121
+ accepted_fields: unknown[];
161122
+ /** @description The opportunity after the change */
161123
+ opportunity: {
161124
+ /** @description Load opportunity id */
161125
+ id: number;
161126
+ /** @description Negotiation stage: captured, negotiating, offer_received, confirmation_requested, ratecon_received, converted, lost or expired */
161127
+ status: string;
161128
+ /** @description Load board the posting came from */
161129
+ source_board: string;
161130
+ /** @description Posting reference on the load board */
161131
+ source_reference?: string | null;
161132
+ /** @description Link to the posting on the load board */
161133
+ source_url?: string | null;
161134
+ /** @description Origin and destination city and state, with a display label */
161135
+ lane?: Record<string, never> | null;
161136
+ /**
161137
+ * Format: date-time
161138
+ * @description Pickup window start (UTC)
161139
+ */
161140
+ pickup_window_start?: string | null;
161141
+ /**
161142
+ * Format: date-time
161143
+ * @description Pickup window end (UTC)
161144
+ */
161145
+ pickup_window_end?: string | null;
161146
+ /**
161147
+ * Format: date-time
161148
+ * @description Delivery window start (UTC)
161149
+ */
161150
+ delivery_window_start?: string | null;
161151
+ /**
161152
+ * Format: date-time
161153
+ * @description Delivery window end (UTC)
161154
+ */
161155
+ delivery_window_end?: string | null;
161156
+ /** @description Equipment type */
161157
+ equipment?: string | null;
161158
+ /** @description Weight in pounds */
161159
+ weight_lbs?: number | null;
161160
+ /** @description Commodity as posted */
161161
+ commodity?: string | null;
161162
+ /** @description Rate posted on the board, in dollars */
161163
+ posted_rate?: string | null;
161164
+ /** @description Loaded miles from origin to destination */
161165
+ loaded_miles?: string | null;
161166
+ /** @description Routing provider that computed the loaded miles */
161167
+ loaded_miles_provider?: string | null;
161168
+ /** @description Lowest acceptable rate from the selected driver economics */
161169
+ derived_floor_rate?: string | null;
161170
+ /** @description Target rate from the selected driver economics */
161171
+ derived_target_rate?: string | null;
161172
+ /** @description Floor rate after thresholds apply */
161173
+ effective_floor_rate?: string | null;
161174
+ /** @description Target rate after thresholds apply */
161175
+ effective_target_rate?: string | null;
161176
+ /** @description Rate agreed with the broker */
161177
+ agreed_rate?: string | null;
161178
+ /** @description True when the rates could not be computed */
161179
+ economics_unavailable?: boolean | null;
161180
+ /** @description Why the rates could not be computed */
161181
+ economics_unavailable_reason?: string | null;
161182
+ /** @description Broker name, MC number, email, phone, credit score and days to pay */
161183
+ broker?: Record<string, never> | null;
161184
+ /** @description Dispatcher who owns the opportunity */
161185
+ captured_by_user_id?: number | null;
161186
+ /**
161187
+ * Format: date-time
161188
+ * @description When the opportunity was captured (UTC)
161189
+ */
161190
+ created_at?: string | null;
161191
+ /**
161192
+ * Format: date-time
161193
+ * @description Last change (UTC)
161194
+ */
161195
+ updated_at?: string | null;
161196
+ /** @description Opportunity page in Axivoy */
161197
+ web_url?: string | null;
161198
+ };
161199
+ };
161200
+ };
161201
+ };
161202
+ };
161203
+ 202: components["responses"]["Proposal"];
161204
+ /** @description Refused: credits_exhausted. */
161205
+ 402: {
161206
+ headers: {
161207
+ [name: string]: unknown;
161208
+ };
161209
+ content: {
161210
+ "application/json": components["schemas"]["OperationError"];
161211
+ };
161212
+ };
161213
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
161214
+ 403: {
161215
+ headers: {
161216
+ [name: string]: unknown;
161217
+ };
161218
+ content: {
161219
+ "application/json": components["schemas"]["OperationError"];
161220
+ };
161221
+ };
161222
+ /** @description Refused: not_found. */
161223
+ 404: {
161224
+ headers: {
161225
+ [name: string]: unknown;
161226
+ };
161227
+ content: {
161228
+ "application/json": components["schemas"]["OperationError"];
161229
+ };
161230
+ };
161231
+ /** @description Refused: idempotency_conflict, stale_state. */
161232
+ 409: {
161233
+ headers: {
161234
+ [name: string]: unknown;
161235
+ };
161236
+ content: {
161237
+ "application/json": components["schemas"]["OperationError"];
161238
+ };
161239
+ };
161240
+ /** @description Refused: operation_retired. */
161241
+ 410: {
161242
+ headers: {
161243
+ [name: string]: unknown;
161244
+ };
161245
+ content: {
161246
+ "application/json": components["schemas"]["OperationError"];
161247
+ };
161248
+ };
161249
+ /** @description Refused: invalid_input, domain_rule. */
161250
+ 422: {
161251
+ headers: {
161252
+ [name: string]: unknown;
161253
+ };
161254
+ content: {
161255
+ "application/json": components["schemas"]["OperationError"];
161256
+ };
161257
+ };
161258
+ /** @description Refused: rate_limited. */
161259
+ 429: {
161260
+ headers: {
161261
+ [name: string]: unknown;
161262
+ };
161263
+ content: {
161264
+ "application/json": components["schemas"]["OperationError"];
161265
+ };
161266
+ };
161267
+ };
161268
+ };
161269
+ "ops.voice.extensions.fill": {
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
+ "application/json": Record<string, never>;
161284
+ };
161285
+ };
161286
+ responses: {
161287
+ /** @description The operation ran. */
161288
+ 200: {
161289
+ headers: {
161290
+ [name: string]: unknown;
161291
+ };
161292
+ content: {
161293
+ "application/json": {
161294
+ result: {
161295
+ /** @description How many extensions were given out */
161296
+ assigned_count: number;
161297
+ /** @description What happened, in the operator's words */
161298
+ message: string;
161299
+ };
161300
+ };
161301
+ };
161302
+ };
161303
+ 202: components["responses"]["Proposal"];
161304
+ /** @description Refused: credits_exhausted. */
161305
+ 402: {
161306
+ headers: {
161307
+ [name: string]: unknown;
161308
+ };
161309
+ content: {
161310
+ "application/json": components["schemas"]["OperationError"];
161311
+ };
161312
+ };
161313
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
161314
+ 403: {
161315
+ headers: {
161316
+ [name: string]: unknown;
161317
+ };
161318
+ content: {
161319
+ "application/json": components["schemas"]["OperationError"];
161320
+ };
161321
+ };
161322
+ /** @description Refused: not_found. */
161323
+ 404: {
161324
+ headers: {
161325
+ [name: string]: unknown;
161326
+ };
161327
+ content: {
161328
+ "application/json": components["schemas"]["OperationError"];
161329
+ };
161330
+ };
161331
+ /** @description Refused: idempotency_conflict, stale_state. */
161332
+ 409: {
161333
+ headers: {
161334
+ [name: string]: unknown;
161335
+ };
161336
+ content: {
161337
+ "application/json": components["schemas"]["OperationError"];
161338
+ };
161339
+ };
161340
+ /** @description Refused: operation_retired. */
161341
+ 410: {
161342
+ headers: {
161343
+ [name: string]: unknown;
161344
+ };
161345
+ content: {
161346
+ "application/json": components["schemas"]["OperationError"];
161347
+ };
161348
+ };
161349
+ /** @description Refused: invalid_input, domain_rule. */
161350
+ 422: {
161351
+ headers: {
161352
+ [name: string]: unknown;
161353
+ };
161354
+ content: {
161355
+ "application/json": components["schemas"]["OperationError"];
161356
+ };
161357
+ };
161358
+ /** @description Refused: rate_limited. */
161359
+ 429: {
161360
+ headers: {
161361
+ [name: string]: unknown;
161362
+ };
161363
+ content: {
161364
+ "application/json": components["schemas"]["OperationError"];
161365
+ };
161366
+ };
161367
+ };
161368
+ };
161369
+ "ops.voice.extensions.list": {
159873
161370
  parameters: {
159874
161371
  query?: never;
159875
161372
  header?: {
@@ -159883,24 +161380,21 @@ export interface operations {
159883
161380
  };
159884
161381
  requestBody?: {
159885
161382
  content: {
159886
- /**
159887
- * @example {
159888
- * "call_sid": "CA_API_3",
159889
- * "action": "hold"
159890
- * }
159891
- */
159892
161383
  "application/json": {
159893
- /** @description The calling panel's own call id for the current call */
159894
- call_sid: string;
159895
161384
  /**
159896
- * @description hold, resume (back to the caller) or transfer
159897
- * @enum {string}
161385
+ * @description Only extensions of this kind: user, team, ring_group or voicemail_box
161386
+ * @enum {string|null}
159898
161387
  */
159899
- action: "hold" | "resume" | "transfer";
159900
- /** @description Transfer: the teammate whose calling panel rings */
159901
- to_user_id?: number | null;
159902
- /** @description Transfer: the phone number to ring instead of a teammate */
159903
- to_number?: string | null;
161388
+ target_type?: "user" | "team" | "ring_group" | "voicemail_box" | null;
161389
+ /** @description Cursor from the previous page's next_cursor. */
161390
+ cursor?: string | null;
161391
+ /** @description Rows per page (default 25). */
161392
+ limit?: number | null;
161393
+ /**
161394
+ * Format: date-time
161395
+ * @description Only rows changed at or after this instant, oldest change first, with deleted rows as tombstones.
161396
+ */
161397
+ updated_since?: string | null;
159904
161398
  };
159905
161399
  };
159906
161400
  };
@@ -159911,23 +161405,31 @@ export interface operations {
159911
161405
  [name: string]: unknown;
159912
161406
  };
159913
161407
  content: {
159914
- /**
159915
- * @example {
159916
- * "result": {
159917
- * "call_id": 1,
159918
- * "action": "hold",
159919
- * "message": "The caller is on hold."
159920
- * }
159921
- * }
159922
- */
159923
161408
  "application/json": {
159924
161409
  result: {
159925
- /** @description The call */
159926
- call_id: number;
159927
- /** @description hold, resume or transfer */
159928
- action: string;
159929
- /** @description What happened, in the operator's words */
159930
- message: string;
161410
+ /** @description One page of rows. */
161411
+ items: {
161412
+ /** @description The row's id. */
161413
+ id: number;
161414
+ /** @description The extension, 200 to 899 */
161415
+ number: string;
161416
+ /** @description user, team, ring_group or voicemail_box */
161417
+ target_type: string;
161418
+ /** @description The person, team, ring group or voicemail box */
161419
+ target_id: number;
161420
+ /** @description The team's key, for a team */
161421
+ team_key?: string | null;
161422
+ /** @description Who or what it reaches */
161423
+ name: string;
161424
+ /** @description Whether a call to it rings anything now */
161425
+ in_use: boolean;
161426
+ /** @description Why it is not in use, in the operator's words */
161427
+ flag?: string | null;
161428
+ /** @description True on a tombstone (the row was deleted or recycled); other fields are absent. */
161429
+ deleted?: boolean | null;
161430
+ }[];
161431
+ /** @description Pass as cursor for the next page; null on the last page. */
161432
+ next_cursor?: string | null;
159931
161433
  };
159932
161434
  };
159933
161435
  };
@@ -159998,7 +161500,7 @@ export interface operations {
159998
161500
  };
159999
161501
  };
160000
161502
  };
160001
- "ops.voice.calls.update": {
161503
+ "ops.voice.extensions.remove": {
160002
161504
  parameters: {
160003
161505
  query?: never;
160004
161506
  header?: {
@@ -160012,23 +161514,9 @@ export interface operations {
160012
161514
  };
160013
161515
  requestBody?: {
160014
161516
  content: {
160015
- /**
160016
- * @example {
160017
- * "call_id": 1,
160018
- * "outcome": "resolved",
160019
- * "notes": "Detention at the receiver."
160020
- * }
160021
- */
160022
161517
  "application/json": {
160023
- /** @description The call (from voice.calls.list) */
160024
- call_id: number;
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;
161518
+ /** @description The extension (from voice.extensions.list) */
161519
+ extension_id: number;
160032
161520
  };
160033
161521
  };
160034
161522
  };
@@ -160039,21 +161527,10 @@ export interface operations {
160039
161527
  [name: string]: unknown;
160040
161528
  };
160041
161529
  content: {
160042
- /**
160043
- * @example {
160044
- * "result": {
160045
- * "call_id": 1,
160046
- * "outcome": "resolved",
160047
- * "message": "Call saved."
160048
- * }
160049
- * }
160050
- */
160051
161530
  "application/json": {
160052
161531
  result: {
160053
- /** @description The call */
160054
- call_id: number;
160055
- /** @description The outcome now recorded */
160056
- outcome?: string | null;
161532
+ /** @description The extension */
161533
+ extension_id: number;
160057
161534
  /** @description What happened, in the operator's words */
160058
161535
  message: string;
160059
161536
  };
@@ -160126,7 +161603,7 @@ export interface operations {
160126
161603
  };
160127
161604
  };
160128
161605
  };
160129
- "ops.voice.capture_suggestions.accept": {
161606
+ "ops.voice.extensions.set": {
160130
161607
  parameters: {
160131
161608
  query?: never;
160132
161609
  header?: {
@@ -160140,21 +161617,18 @@ export interface operations {
160140
161617
  };
160141
161618
  requestBody?: {
160142
161619
  content: {
160143
- /**
160144
- * @example {
160145
- * "load_opportunity_id": 5,
160146
- * "fields": [
160147
- * "posted_rate"
160148
- * ]
160149
- * }
160150
- */
160151
161620
  "application/json": {
160152
- /** @description Load opportunity id */
160153
- load_opportunity_id: number;
160154
- /** @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 */
160155
- fields?: string[] | null;
160156
- /** @description Field => your own value, used instead of the suggestion */
160157
- values?: Record<string, never> | null;
161621
+ /**
161622
+ * @description user, team, ring_group or voicemail_box
161623
+ * @enum {string}
161624
+ */
161625
+ target_type: "user" | "team" | "ring_group" | "voicemail_box";
161626
+ /** @description The person, ring group or voicemail box (not for teams) */
161627
+ target_id?: number | null;
161628
+ /** @description The team's key, for a team (from communication_teams.list) */
161629
+ team_key?: string | null;
161630
+ /** @description The extension, 3 digits; left out, the next free one */
161631
+ number?: string | null;
160158
161632
  };
160159
161633
  };
160160
161634
  };
@@ -160165,139 +161639,14 @@ export interface operations {
160165
161639
  [name: string]: unknown;
160166
161640
  };
160167
161641
  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
161642
  "application/json": {
160221
161643
  result: {
160222
- /** @description Fields written */
160223
- accepted_fields: unknown[];
160224
- /** @description The opportunity after the change */
160225
- opportunity: {
160226
- /** @description Load opportunity id */
160227
- id: number;
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
- };
161644
+ /** @description The extension */
161645
+ extension_id: number;
161646
+ /** @description What happened, in the operator's words */
161647
+ message: string;
161648
+ /** @description The extension */
161649
+ number: string;
160301
161650
  };
160302
161651
  };
160303
161652
  };
@@ -160394,6 +161743,8 @@ export interface operations {
160394
161743
  "application/json": {
160395
161744
  /** @description Active team keys in the order callers hear them (0 to 8; from communication_teams.list) */
160396
161745
  team_keys: string[] | null;
161746
+ /** @description Callers can press star, then an extension; left out keeps the current choice */
161747
+ dial_by_extension?: boolean | null;
160397
161748
  };
160398
161749
  };
160399
161750
  };
@@ -160440,6 +161791,8 @@ export interface operations {
160440
161791
  /** @description The team's name */
160441
161792
  name: string;
160442
161793
  }[];
161794
+ /** @description Whether callers can press star, then an extension */
161795
+ dial_by_extension: boolean;
160443
161796
  /** @description What callers hear after the greeting */
160444
161797
  prompt: string;
160445
161798
  /** @description What happened, in the operator's words */
@@ -160853,6 +162206,8 @@ export interface operations {
160853
162206
  use_default_hours?: boolean | null;
160854
162207
  /** @description Ring a department: follow the department's after hours choice (voicemail skips the ring) */
160855
162208
  after_hours?: boolean | null;
162209
+ /** @description Menu: callers can press star, then an extension */
162210
+ extensions?: boolean | null;
160856
162211
  /** @description Menu choices in order */
160857
162212
  options?: {
160858
162213
  /** @description Keypad key: 0 to 9, * or # */
@@ -161355,6 +162710,8 @@ export interface operations {
161355
162710
  use_default_hours?: boolean | null;
161356
162711
  /** @description Ring a department: follow the department's after hours choice (voicemail skips the ring) */
161357
162712
  after_hours?: boolean | null;
162713
+ /** @description Menu: callers can press star, then an extension */
162714
+ extensions?: boolean | null;
161358
162715
  /** @description Menu choices in order */
161359
162716
  options?: {
161360
162717
  /** @description Keypad key: 0 to 9, * or # */
@@ -163682,6 +165039,41 @@ export interface operations {
163682
165039
  * @description When their Busy ends (UTC); null when not Busy or Busy has no end
163683
165040
  */
163684
165041
  busy_until?: string | null;
165042
+ /** @description Teams they are on call for now, soonest end first; empty when none */
165043
+ on_call_now: {
165044
+ /** @description The team (communication_teams.coverage.get) */
165045
+ team_key: string;
165046
+ /** @description The team's name */
165047
+ team_name: string;
165048
+ /**
165049
+ * Format: date-time
165050
+ * @description When their window ends (UTC)
165051
+ */
165052
+ until: string;
165053
+ }[];
165054
+ /** @description Their next on-call windows across teams that ring who's on call, soonest first */
165055
+ upcoming_turns: {
165056
+ /** @description The team */
165057
+ team_key: string;
165058
+ /** @description The team's name */
165059
+ team_name: string;
165060
+ /**
165061
+ * Format: date-time
165062
+ * @description Window start (UTC); the first may be under way
165063
+ */
165064
+ starts_at: string;
165065
+ /**
165066
+ * Format: date-time
165067
+ * @description Window end (UTC)
165068
+ */
165069
+ ends_at: string;
165070
+ /** @description turn or hand_off (someone handed it to them) */
165071
+ source: string;
165072
+ /** @description The hand-off, when source is hand_off */
165073
+ hand_off_id?: number | null;
165074
+ }[];
165075
+ /** @description Their 3-digit extension (voice.extensions.list); null when they have none */
165076
+ extension?: string | null;
163685
165077
  };
163686
165078
  };
163687
165079
  };
@@ -164826,6 +166218,23 @@ export interface operations {
164826
166218
  busy_until?: string | null;
164827
166219
  /** @description How long choosing Busy lasts in this company */
164828
166220
  busy_minutes: number;
166221
+ /** @description The person's first verified phone, for Use my cell instead; null when they have none */
166222
+ my_phone?: {
166223
+ /** @description The phone (voice.calls.ring_my_phone_first phone_id) */
166224
+ id: number;
166225
+ /** @description The number, formatted for display */
166226
+ display: string;
166227
+ } | null;
166228
+ /** @description Whether the person is on call now for a team's after-hours calls (which ring them even when Busy); null when not */
166229
+ on_call?: {
166230
+ /** @description The teams the person is on call for now, joined for display */
166231
+ team_name: string;
166232
+ /**
166233
+ * Format: date-time
166234
+ * @description When the soonest of those turns ends
166235
+ */
166236
+ until: string;
166237
+ } | null;
164829
166238
  };
164830
166239
  };
164831
166240
  };
@@ -164928,8 +166337,15 @@ export interface operations {
164928
166337
  "application/json": {
164929
166338
  /** @description Ring group name, for example "Day dispatch" */
164930
166339
  name: string;
164931
- /** @description True rings everyone at once (default); false rings one member at a time in order */
166340
+ /**
166341
+ * @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)
166342
+ * @enum {string|null}
166343
+ */
166344
+ strategy?: "all" | "in_order" | "rotating" | "longest_idle" | null;
166345
+ /** @description Older form of strategy, used only when strategy is left out: true is all, false is in_order */
164932
166346
  ring_all?: boolean | null;
166347
+ /** @description True also rings each person member's verified phones with their calling panel; they press 1 to take the call (default false) */
166348
+ ring_member_phones?: boolean | null;
164933
166349
  /** @description How long each ring lasts, in seconds (default 20) */
164934
166350
  ring_seconds?: number | null;
164935
166351
  /** @description Members in ring order */
@@ -165174,8 +166590,15 @@ export interface operations {
165174
166590
  ring_group_id: number;
165175
166591
  /** @description Ring group name, for example "Day dispatch" */
165176
166592
  name?: string;
165177
- /** @description True rings everyone at once (default); false rings one member at a time in order */
166593
+ /**
166594
+ * @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)
166595
+ * @enum {string|null}
166596
+ */
166597
+ strategy?: "all" | "in_order" | "rotating" | "longest_idle" | null;
166598
+ /** @description Older form of strategy, used only when strategy is left out: true is all, false is in_order */
165178
166599
  ring_all?: boolean | null;
166600
+ /** @description True also rings each person member's verified phones with their calling panel; they press 1 to take the call (default false) */
166601
+ ring_member_phones?: boolean | null;
165179
166602
  /** @description How long each ring lasts, in seconds (default 20) */
165180
166603
  ring_seconds?: number | null;
165181
166604
  /** @description Members in ring order */