@axivoy/api 2.10.0 → 2.23.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.
@@ -1070,7 +1070,7 @@ export interface paths {
1070
1070
  put?: never;
1071
1071
  /**
1072
1072
  * Show a team
1073
- * @description One team in full: its people (each person or role with their Email, Texts and Calls switches, the status of people who take calls, and any permission warnings), its email address, From name, own address, filing copies and sent-mail alerts, its phone numbers (whether each one's calls and texts come to the team), its calls settings and what Axivoy sends from it.
1073
+ * @description One team in full: its people (each person or role with their Email, Texts and Calls switches, the status of people who take calls, and any permission warnings), its email address, where its mail goes out from (its own confirmed address, the default sending address or its Axivoy address), From name, own address and its test, filing copies and sent-mail alerts, its phone numbers (whether each one's calls and texts come to the team), its calls settings and what Axivoy sends from it.
1074
1074
  *
1075
1075
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1076
1076
  */
@@ -1092,7 +1092,7 @@ export interface paths {
1092
1092
  put?: never;
1093
1093
  /**
1094
1094
  * List teams
1095
- * @description The company's teams: each one's name, email address, phone numbers, how many people see its email and its texts and how many take its calls, its main phone menu digit, whether it is the company's default team and whether it is ready. Built-in teams the company can add (their module is off) only with include_available; archived teams only with include_archived. With member_user_id, only the teams that person is on, directly or through a role, with their Email, Texts and Calls switches and the row that decides them (needs Manage teams and a person in the company).
1095
+ * @description The company's teams: each one's name, email address, where its mail goes out from (its own confirmed address, the default sending address or its Axivoy address), phone numbers, how many people see its email and its texts and how many take its calls, its main phone menu digit, whether it is the company's default team and whether it is ready. Built-in teams the company can add (their module is off) only with include_available; archived teams only with include_archived. With member_user_id, only the teams that person is on, directly or through a role, with their Email, Texts and Calls switches and the row that decides them (needs Manage teams and a person in the company).
1096
1096
  *
1097
1097
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1098
1098
  */
@@ -1202,7 +1202,7 @@ export interface paths {
1202
1202
  put?: never;
1203
1203
  /**
1204
1204
  * Stop using your own address for a team
1205
- * @description Stops using the company's own address on a team's mail; the team sends from its Axivoy address again.
1205
+ * @description Stops using a team's own address, or cancels one waiting for its test; the team sends from the default sending address, or its Axivoy address when the default isn't confirmed.
1206
1206
  *
1207
1207
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1208
1208
  */
@@ -1224,7 +1224,7 @@ export interface paths {
1224
1224
  put?: never;
1225
1225
  /**
1226
1226
  * Resend a team address confirmation
1227
- * @description Emails the confirmation link for a team's own address again while it waits for confirmation.
1227
+ * @description Sends a team's own address its test again while it waits for confirmation; the new test replaces the old link.
1228
1228
  *
1229
1229
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1230
1230
  */
@@ -1246,7 +1246,7 @@ export interface paths {
1246
1246
  put?: never;
1247
1247
  /**
1248
1248
  * Use your own address for a team
1249
- * @description Sets the address customers see on a team's mail, on the company's live sending domain, and emails that mailbox a confirmation link. The address is used once someone confirms it.
1249
+ * @description Sets the address customers see on a team's mail, on the company's live sending domain, and emails that mailbox a test. The address is used once the test comes back through the mailbox's forwarding or someone clicks its link; until then the team sends from the default sending address or its Axivoy address. The default sending address itself is refused.
1250
1250
  *
1251
1251
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1252
1252
  */
@@ -1257,6 +1257,28 @@ export interface paths {
1257
1257
  patch?: never;
1258
1258
  trace?: never;
1259
1259
  };
1260
+ "/ops/communication_teams.public_from.test_forwarding": {
1261
+ parameters: {
1262
+ query?: never;
1263
+ header?: never;
1264
+ path?: never;
1265
+ cookie?: never;
1266
+ };
1267
+ get?: never;
1268
+ put?: never;
1269
+ /**
1270
+ * Test a team address forwarding
1271
+ * @description Sends a team's confirmed own address a test email. If it comes back to the company in Axivoy through the mailbox's forwarding, the address is marked as reaching the team. The address keeps sending whatever the result.
1272
+ *
1273
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1274
+ */
1275
+ post: operations["ops.communication_teams.public_from.test_forwarding"];
1276
+ delete?: never;
1277
+ options?: never;
1278
+ head?: never;
1279
+ patch?: never;
1280
+ trace?: never;
1281
+ };
1260
1282
  "/ops/communication_teams.update": {
1261
1283
  parameters: {
1262
1284
  query?: never;
@@ -6471,6 +6493,28 @@ export interface paths {
6471
6493
  patch?: never;
6472
6494
  trace?: never;
6473
6495
  };
6496
+ "/ops/inbox.conversations.split_message": {
6497
+ parameters: {
6498
+ query?: never;
6499
+ header?: never;
6500
+ path?: never;
6501
+ cookie?: never;
6502
+ };
6503
+ get?: never;
6504
+ put?: never;
6505
+ /**
6506
+ * Move an email to its own conversation
6507
+ * @description Takes one received email out of a conversation it was threaded into by mistake and starts a new conversation for it in the same teams. Loads, owners and everything else stay on the original.
6508
+ *
6509
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
6510
+ */
6511
+ post: operations["ops.inbox.conversations.split_message"];
6512
+ delete?: never;
6513
+ options?: never;
6514
+ head?: never;
6515
+ patch?: never;
6516
+ trace?: never;
6517
+ };
6474
6518
  "/ops/inbox.conversations.transfer_queue": {
6475
6519
  parameters: {
6476
6520
  query?: never;
@@ -8605,6 +8649,28 @@ export interface paths {
8605
8649
  patch?: never;
8606
8650
  trace?: never;
8607
8651
  };
8652
+ "/ops/loads.trip_stops.save": {
8653
+ parameters: {
8654
+ query?: never;
8655
+ header?: never;
8656
+ path?: never;
8657
+ cookie?: never;
8658
+ };
8659
+ get?: never;
8660
+ put?: never;
8661
+ /**
8662
+ * Save a stop
8663
+ * @description Saves a stop's type, site, schedule, references and times in one step, or adds a new stop with them; nothing is saved if any part is refused.
8664
+ *
8665
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
8666
+ */
8667
+ post: operations["ops.loads.trip_stops.save"];
8668
+ delete?: never;
8669
+ options?: never;
8670
+ head?: never;
8671
+ patch?: never;
8672
+ trace?: never;
8673
+ };
8608
8674
  "/ops/loads.trip_stops.schedule.update": {
8609
8675
  parameters: {
8610
8676
  query?: never;
@@ -9881,6 +9947,28 @@ export interface paths {
9881
9947
  patch?: never;
9882
9948
  trace?: never;
9883
9949
  };
9950
+ "/ops/maintenance.repairs.due_service_matches": {
9951
+ parameters: {
9952
+ query?: never;
9953
+ header?: never;
9954
+ path?: never;
9955
+ cookie?: never;
9956
+ };
9957
+ get?: never;
9958
+ put?: never;
9959
+ /**
9960
+ * Due services a repair would count as
9961
+ * @description For a unit and the jobs picked for a repair, the scheduled services fixing it would restart, on the unit or the reefer unit installed on it, with each one's due, where the report would be filed, and warnings for reefer services that would not count.
9962
+ *
9963
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
9964
+ */
9965
+ post: operations["ops.maintenance.repairs.due_service_matches"];
9966
+ delete?: never;
9967
+ options?: never;
9968
+ head?: never;
9969
+ patch?: never;
9970
+ trace?: never;
9971
+ };
9884
9972
  "/ops/maintenance.repairs.mark_paid": {
9885
9973
  parameters: {
9886
9974
  query?: never;
@@ -9991,6 +10079,28 @@ export interface paths {
9991
10079
  patch?: never;
9992
10080
  trace?: never;
9993
10081
  };
10082
+ "/ops/maintenance.repairs.unit.move": {
10083
+ parameters: {
10084
+ query?: never;
10085
+ header?: never;
10086
+ path?: never;
10087
+ cookie?: never;
10088
+ };
10089
+ get?: never;
10090
+ put?: never;
10091
+ /**
10092
+ * Move a finished repair to its reefer unit or trailer
10093
+ * @description Move a finished repair between a trailer and the reefer unit installed on it when the repair was fixed, both directions, with its service history entry, and optionally count it for scheduled services on the new unit. Its cost reads under the new unit; no order, bill or payment changes.
10094
+ *
10095
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
10096
+ */
10097
+ post: operations["ops.maintenance.repairs.unit.move"];
10098
+ delete?: never;
10099
+ options?: never;
10100
+ head?: never;
10101
+ patch?: never;
10102
+ trace?: never;
10103
+ };
9994
10104
  "/ops/maintenance.repairs.unit.update": {
9995
10105
  parameters: {
9996
10106
  query?: never;
@@ -12905,8 +13015,8 @@ export interface paths {
12905
13015
  get?: never;
12906
13016
  put?: never;
12907
13017
  /**
12908
- * Choose a different opening for a draft video
12909
- * @description Switches a draft video to another of its suggested openings and rewrites the script for it.
13018
+ * Choose a different idea for a draft video
13019
+ * @description Switches a draft video to another of its suggested ideas and rewrites the script for it.
12910
13020
  *
12911
13021
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
12912
13022
  */
@@ -16305,6 +16415,28 @@ export interface paths {
16305
16415
  patch?: never;
16306
16416
  trace?: never;
16307
16417
  };
16418
+ "/ops/system.domains.default_address.get": {
16419
+ parameters: {
16420
+ query?: never;
16421
+ header?: never;
16422
+ path?: never;
16423
+ cookie?: never;
16424
+ };
16425
+ get?: never;
16426
+ put?: never;
16427
+ /**
16428
+ * Default sending address
16429
+ * @description The address the company's mail goes out from when a team has no confirmed address of its own: the confirmed address, a first or changed address waiting for confirmation, an expired link or a delivery failure, and what mail uses meanwhile.
16430
+ *
16431
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
16432
+ */
16433
+ post: operations["ops.system.domains.default_address.get"];
16434
+ delete?: never;
16435
+ options?: never;
16436
+ head?: never;
16437
+ patch?: never;
16438
+ trace?: never;
16439
+ };
16308
16440
  "/ops/system.domains.list": {
16309
16441
  parameters: {
16310
16442
  query?: never;
@@ -16613,6 +16745,28 @@ export interface paths {
16613
16745
  patch?: never;
16614
16746
  trace?: never;
16615
16747
  };
16748
+ "/ops/system.settings.company_clock.preview": {
16749
+ parameters: {
16750
+ query?: never;
16751
+ header?: never;
16752
+ path?: never;
16753
+ cookie?: never;
16754
+ };
16755
+ get?: never;
16756
+ put?: never;
16757
+ /**
16758
+ * Preview a company timezone switch
16759
+ * @description Shows what switching the company timezone from a chosen Sunday would change: when the first new day starts, how much longer or shorter the day before it runs, which pay period and scorecard week stretch, loads due to deliver in the moved hours, and why the switch would be refused. Changes nothing.
16760
+ *
16761
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
16762
+ */
16763
+ post: operations["ops.system.settings.company_clock.preview"];
16764
+ delete?: never;
16765
+ options?: never;
16766
+ head?: never;
16767
+ patch?: never;
16768
+ trace?: never;
16769
+ };
16616
16770
  "/ops/system.settings.planned_mileage.list": {
16617
16771
  parameters: {
16618
16772
  query?: never;
@@ -21324,9 +21478,9 @@ export interface operations {
21324
21478
  * @enum {string}
21325
21479
  */
21326
21480
  scope?: "live" | "recent";
21327
- /** @description recent scope only: start of the departure window (YYYY-MM-DD, UTC). Default 14 days ago. */
21481
+ /** @description recent scope only: start of the departure window (YYYY-MM-DD, a company date). Default 14 days ago. */
21328
21482
  date_from?: string;
21329
- /** @description recent scope only: end of the departure window (YYYY-MM-DD, UTC, inclusive). Default today. */
21483
+ /** @description recent scope only: end of the departure window (YYYY-MM-DD, a company date, inclusive). Default today. */
21330
21484
  date_to?: string;
21331
21485
  /** @description Customer name or part of it (case-insensitive). */
21332
21486
  customer?: string;
@@ -21493,9 +21647,9 @@ export interface operations {
21493
21647
  "application/json": {
21494
21648
  /** @description One driver's user id (users.id). Omit to list drivers by what they are doing on date_from. */
21495
21649
  driver_user_id?: number;
21496
- /** @description Start of the window, or the day to look at when listing drivers (YYYY-MM-DD, UTC). Default today. */
21650
+ /** @description Start of the window, or the day to look at when listing drivers (YYYY-MM-DD, a company date). Default today. */
21497
21651
  date_from?: string;
21498
- /** @description End of the window (YYYY-MM-DD, UTC, inclusive). Default 14 days after date_from. Ignored when listing drivers. */
21652
+ /** @description End of the window (YYYY-MM-DD, a company date, inclusive). Default 14 days after date_from. Ignored when listing drivers. */
21499
21653
  date_to?: string;
21500
21654
  /**
21501
21655
  * @description List filter: only drivers whose segment on date_from has this type (otr, home, exception) or who have no segment that day (unscheduled).
@@ -21676,9 +21830,9 @@ export interface operations {
21676
21830
  customer?: string;
21677
21831
  /** @description The driver's user id (users.id) from an earlier result. */
21678
21832
  driver_user_id?: number;
21679
- /** @description Start of the window (YYYY-MM-DD, UTC). Matches loads whose scheduled pickup or delivery falls in the window. */
21833
+ /** @description Start of the window (YYYY-MM-DD, a company date). Matches loads whose scheduled pickup or delivery falls in the window. */
21680
21834
  date_from?: string;
21681
- /** @description End of the window (YYYY-MM-DD, UTC, inclusive). */
21835
+ /** @description End of the window (YYYY-MM-DD, a company date, inclusive). */
21682
21836
  date_to?: string;
21683
21837
  /** @description Rows to return (default and maximum 25). */
21684
21838
  limit?: number;
@@ -22305,9 +22459,9 @@ export interface operations {
22305
22459
  * @enum {string}
22306
22460
  */
22307
22461
  subject?: "driver" | "dispatcher";
22308
- /** @description Start of the delivered-at window (YYYY-MM-DD, UTC). Default 7 days ago. */
22462
+ /** @description Start of the delivered-at window (YYYY-MM-DD, a company date). Default 7 days ago. */
22309
22463
  date_from?: string;
22310
- /** @description End of the window (YYYY-MM-DD, UTC, inclusive). Default yesterday. */
22464
+ /** @description End of the window (YYYY-MM-DD, a company date, inclusive). Default yesterday. */
22311
22465
  date_to?: string;
22312
22466
  /**
22313
22467
  * @description Order rows by the first measure: desc (default, highest first) or asc.
@@ -26905,115 +27059,6 @@ export interface operations {
26905
27059
  };
26906
27060
  };
26907
27061
  "ops.communication_teams.archive": {
26908
- parameters: {
26909
- query?: never;
26910
- header?: {
26911
- /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
26912
- "Idempotency-Key"?: string;
26913
- /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
26914
- "Axivoy-Dry-Run"?: "true" | "false";
26915
- };
26916
- path?: never;
26917
- cookie?: never;
26918
- };
26919
- requestBody?: {
26920
- content: {
26921
- "application/json": {
26922
- /** @description A custom team, or a built-in team other than Dispatch whose module is off */
26923
- team_key: string;
26924
- /** @description The active team that takes its conversations and mail; required when it has conversations */
26925
- move_conversations_to?: string;
26926
- };
26927
- };
26928
- };
26929
- responses: {
26930
- /** @description The operation ran. */
26931
- 200: {
26932
- headers: {
26933
- [name: string]: unknown;
26934
- };
26935
- content: {
26936
- "application/json": {
26937
- result: {
26938
- /** @description The team */
26939
- team_key: string;
26940
- /** @description archived for a custom team, available for a removed built-in team */
26941
- state: string;
26942
- /** @description Conversations queued to move to the chosen team */
26943
- moved_conversations: number;
26944
- /** @description What happened, in the operator's words */
26945
- message: string;
26946
- };
26947
- };
26948
- };
26949
- };
26950
- 202: components["responses"]["Proposal"];
26951
- /** @description Refused: credits_exhausted. */
26952
- 402: {
26953
- headers: {
26954
- [name: string]: unknown;
26955
- };
26956
- content: {
26957
- "application/json": components["schemas"]["OperationError"];
26958
- };
26959
- };
26960
- /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
26961
- 403: {
26962
- headers: {
26963
- [name: string]: unknown;
26964
- };
26965
- content: {
26966
- "application/json": components["schemas"]["OperationError"];
26967
- };
26968
- };
26969
- /** @description Refused: not_found. */
26970
- 404: {
26971
- headers: {
26972
- [name: string]: unknown;
26973
- };
26974
- content: {
26975
- "application/json": components["schemas"]["OperationError"];
26976
- };
26977
- };
26978
- /** @description Refused: idempotency_conflict, stale_state. */
26979
- 409: {
26980
- headers: {
26981
- [name: string]: unknown;
26982
- };
26983
- content: {
26984
- "application/json": components["schemas"]["OperationError"];
26985
- };
26986
- };
26987
- /** @description Refused: operation_retired. */
26988
- 410: {
26989
- headers: {
26990
- [name: string]: unknown;
26991
- };
26992
- content: {
26993
- "application/json": components["schemas"]["OperationError"];
26994
- };
26995
- };
26996
- /** @description Refused: invalid_input, domain_rule. */
26997
- 422: {
26998
- headers: {
26999
- [name: string]: unknown;
27000
- };
27001
- content: {
27002
- "application/json": components["schemas"]["OperationError"];
27003
- };
27004
- };
27005
- /** @description Refused: rate_limited. */
27006
- 429: {
27007
- headers: {
27008
- [name: string]: unknown;
27009
- };
27010
- content: {
27011
- "application/json": components["schemas"]["OperationError"];
27012
- };
27013
- };
27014
- };
27015
- };
27016
- "ops.communication_teams.calls.update": {
27017
27062
  parameters: {
27018
27063
  query?: never;
27019
27064
  header?: {
@@ -27029,33 +27074,14 @@ export interface operations {
27029
27074
  content: {
27030
27075
  /**
27031
27076
  * @example {
27032
- * "team_key": "safety",
27033
- * "answered_by": "ring_group",
27034
- * "ring_group_id": 1,
27035
- * "after_hours": "ring",
27036
- * "voicemail_greeting": "Safety is out. Leave a message.",
27037
- * "menu_phrase": "For safety"
27077
+ * "team_key": "claims"
27038
27078
  * }
27039
27079
  */
27040
27080
  "application/json": {
27041
- /** @description The team (from communication_teams.list) */
27081
+ /** @description A custom team, or a built-in team other than Dispatch whose module is off */
27042
27082
  team_key: string;
27043
- /**
27044
- * @description members rings the team's people with Calls on; ring_group rings ring_group_id
27045
- * @enum {string}
27046
- */
27047
- answered_by?: "members" | "ring_group";
27048
- /** @description The company's ring group; required when answered_by is ring_group */
27049
- ring_group_id?: number | null;
27050
- /**
27051
- * @description ring or voicemail when the company is closed
27052
- * @enum {string}
27053
- */
27054
- after_hours?: "ring" | "voicemail";
27055
- /** @description What callers hear before the tone; empty uses the default */
27056
- voicemail_greeting?: string | null;
27057
- /** @description What the main phone menu says before "press {digit}", for example "For billing and payments" */
27058
- menu_phrase?: string | null;
27083
+ /** @description The active team that takes its conversations and mail; required when it has conversations */
27084
+ move_conversations_to?: string;
27059
27085
  };
27060
27086
  };
27061
27087
  };
@@ -27069,13 +27095,10 @@ export interface operations {
27069
27095
  /**
27070
27096
  * @example {
27071
27097
  * "result": {
27072
- * "team_key": "safety",
27073
- * "readiness": {
27074
- * "state": "ready",
27075
- * "label": "Ready",
27076
- * "tone": "success"
27077
- * },
27078
- * "message": "Safety & compliance saved."
27098
+ * "team_key": "claims",
27099
+ * "state": "archived",
27100
+ * "moved_conversations": 0,
27101
+ * "message": "Claims archived."
27079
27102
  * }
27080
27103
  * }
27081
27104
  */
@@ -27083,8 +27106,154 @@ export interface operations {
27083
27106
  result: {
27084
27107
  /** @description The team */
27085
27108
  team_key: string;
27086
- /** @description {state, label, tone} after the change */
27087
- readiness: Record<string, never>;
27109
+ /** @description archived for a custom team, available for a removed built-in team */
27110
+ state: string;
27111
+ /** @description Conversations queued to move to the chosen team */
27112
+ moved_conversations: number;
27113
+ /** @description What happened, in the operator's words */
27114
+ message: string;
27115
+ };
27116
+ };
27117
+ };
27118
+ };
27119
+ 202: components["responses"]["Proposal"];
27120
+ /** @description Refused: credits_exhausted. */
27121
+ 402: {
27122
+ headers: {
27123
+ [name: string]: unknown;
27124
+ };
27125
+ content: {
27126
+ "application/json": components["schemas"]["OperationError"];
27127
+ };
27128
+ };
27129
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
27130
+ 403: {
27131
+ headers: {
27132
+ [name: string]: unknown;
27133
+ };
27134
+ content: {
27135
+ "application/json": components["schemas"]["OperationError"];
27136
+ };
27137
+ };
27138
+ /** @description Refused: not_found. */
27139
+ 404: {
27140
+ headers: {
27141
+ [name: string]: unknown;
27142
+ };
27143
+ content: {
27144
+ "application/json": components["schemas"]["OperationError"];
27145
+ };
27146
+ };
27147
+ /** @description Refused: idempotency_conflict, stale_state. */
27148
+ 409: {
27149
+ headers: {
27150
+ [name: string]: unknown;
27151
+ };
27152
+ content: {
27153
+ "application/json": components["schemas"]["OperationError"];
27154
+ };
27155
+ };
27156
+ /** @description Refused: operation_retired. */
27157
+ 410: {
27158
+ headers: {
27159
+ [name: string]: unknown;
27160
+ };
27161
+ content: {
27162
+ "application/json": components["schemas"]["OperationError"];
27163
+ };
27164
+ };
27165
+ /** @description Refused: invalid_input, domain_rule. */
27166
+ 422: {
27167
+ headers: {
27168
+ [name: string]: unknown;
27169
+ };
27170
+ content: {
27171
+ "application/json": components["schemas"]["OperationError"];
27172
+ };
27173
+ };
27174
+ /** @description Refused: rate_limited. */
27175
+ 429: {
27176
+ headers: {
27177
+ [name: string]: unknown;
27178
+ };
27179
+ content: {
27180
+ "application/json": components["schemas"]["OperationError"];
27181
+ };
27182
+ };
27183
+ };
27184
+ };
27185
+ "ops.communication_teams.calls.update": {
27186
+ parameters: {
27187
+ query?: never;
27188
+ header?: {
27189
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
27190
+ "Idempotency-Key"?: string;
27191
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
27192
+ "Axivoy-Dry-Run"?: "true" | "false";
27193
+ };
27194
+ path?: never;
27195
+ cookie?: never;
27196
+ };
27197
+ requestBody?: {
27198
+ content: {
27199
+ /**
27200
+ * @example {
27201
+ * "team_key": "safety",
27202
+ * "answered_by": "ring_group",
27203
+ * "ring_group_id": 1,
27204
+ * "after_hours": "ring",
27205
+ * "voicemail_greeting": "Safety is out. Leave a message.",
27206
+ * "menu_phrase": "For safety"
27207
+ * }
27208
+ */
27209
+ "application/json": {
27210
+ /** @description The team (from communication_teams.list) */
27211
+ team_key: string;
27212
+ /**
27213
+ * @description members rings the team's people with Calls on; ring_group rings ring_group_id
27214
+ * @enum {string}
27215
+ */
27216
+ answered_by?: "members" | "ring_group";
27217
+ /** @description The company's ring group; required when answered_by is ring_group */
27218
+ ring_group_id?: number | null;
27219
+ /**
27220
+ * @description ring or voicemail when the company is closed
27221
+ * @enum {string}
27222
+ */
27223
+ after_hours?: "ring" | "voicemail";
27224
+ /** @description What callers hear before the tone; empty uses the default */
27225
+ voicemail_greeting?: string | null;
27226
+ /** @description What the main phone menu says before "press {digit}", for example "For billing and payments" */
27227
+ menu_phrase?: string | null;
27228
+ };
27229
+ };
27230
+ };
27231
+ responses: {
27232
+ /** @description The operation ran. */
27233
+ 200: {
27234
+ headers: {
27235
+ [name: string]: unknown;
27236
+ };
27237
+ content: {
27238
+ /**
27239
+ * @example {
27240
+ * "result": {
27241
+ * "team_key": "safety",
27242
+ * "readiness": {
27243
+ * "state": "ready",
27244
+ * "label": "Ready",
27245
+ * "tone": "success"
27246
+ * },
27247
+ * "message": "Safety & compliance saved."
27248
+ * }
27249
+ * }
27250
+ */
27251
+ "application/json": {
27252
+ result: {
27253
+ /** @description The team */
27254
+ team_key: string;
27255
+ /** @description {state, label, tone} after the change */
27256
+ readiness: Record<string, never>;
27088
27257
  /** @description What happened, in the operator's words */
27089
27258
  message: string;
27090
27259
  };
@@ -27171,6 +27340,12 @@ export interface operations {
27171
27340
  };
27172
27341
  requestBody?: {
27173
27342
  content: {
27343
+ /**
27344
+ * @example {
27345
+ * "name": " Brokerage desk ",
27346
+ * "email_local_part": "Brokerage"
27347
+ * }
27348
+ */
27174
27349
  "application/json": {
27175
27350
  /** @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 */
27176
27351
  name?: string;
@@ -27188,6 +27363,15 @@ export interface operations {
27188
27363
  [name: string]: unknown;
27189
27364
  };
27190
27365
  content: {
27366
+ /**
27367
+ * @example {
27368
+ * "result": {
27369
+ * "team_key": "brokerage_desk",
27370
+ * "email_address": null,
27371
+ * "message": "Brokerage desk created. Add its people next."
27372
+ * }
27373
+ * }
27374
+ */
27191
27375
  "application/json": {
27192
27376
  result: {
27193
27377
  /** @description The new team (or the built-in team added) */
@@ -27280,6 +27464,11 @@ export interface operations {
27280
27464
  };
27281
27465
  requestBody?: {
27282
27466
  content: {
27467
+ /**
27468
+ * @example {
27469
+ * "team_key": "receivables"
27470
+ * }
27471
+ */
27283
27472
  "application/json": {
27284
27473
  /** @description An active team key (from communication_teams.list); Recruiting is refused because candidates' texts already go there */
27285
27474
  team_key: string;
@@ -27293,6 +27482,15 @@ export interface operations {
27293
27482
  [name: string]: unknown;
27294
27483
  };
27295
27484
  content: {
27485
+ /**
27486
+ * @example {
27487
+ * "result": {
27488
+ * "team_key": "receivables",
27489
+ * "previous_team_key": "dispatch",
27490
+ * "message": "New texts to numbers not set to a team, and calls that reach no team, now go to Receivables."
27491
+ * }
27492
+ * }
27493
+ */
27296
27494
  "application/json": {
27297
27495
  result: {
27298
27496
  /** @description The default team now */
@@ -27457,6 +27655,7 @@ export interface operations {
27457
27655
  * },
27458
27656
  * "phone_numbers": [],
27459
27657
  * "is_default": true,
27658
+ * "sealed": false,
27460
27659
  * "sends": [
27461
27660
  * "Detention and accessorial mail",
27462
27661
  * "Broker negotiations",
@@ -27483,14 +27682,65 @@ export interface operations {
27483
27682
  menu_phrase?: string | null;
27484
27683
  /** @description Email settings */
27485
27684
  email: {
27486
- /** @description The team's Axivoy address; null before the company has a mail domain */
27685
+ /** @description The team's Axivoy address (on the shared reply domain under the company's name once it sends from its own domain); null before the company has a mail domain */
27487
27686
  address?: string | null;
27488
- /** @description The address customers see: the confirmed own address, else the Axivoy address */
27687
+ /** @description The address customers see: sends_from.address */
27489
27688
  from_address?: string | null;
27689
+ /** @description Where its mail goes out from now; null when none can send yet */
27690
+ sends_from?: {
27691
+ /** @description own (its confirmed own address), default (the confirmed default sending address under its name) or axivoy (its Axivoy address) */
27692
+ kind: string;
27693
+ /** @description The address */
27694
+ address: string;
27695
+ } | null;
27696
+ /** @description The company's confirmed default sending address; null when it has none */
27697
+ default_address?: string | null;
27698
+ /** @description The receive address to forward its own mailbox to; null before the company has a mail domain */
27699
+ forward_target?: string | null;
27700
+ /** @description Where the team receives email, and where to copy the company's own mailbox; on the mail subdomain even when its mail is sent from the company domain; null before the company has a mail domain */
27701
+ replies_address?: string | null;
27490
27702
  /** @description The name customers see on its mail */
27491
27703
  from_name: string;
27492
27704
  /** @description pending_confirmation, active or failed; null without an own address */
27493
27705
  own_address_status?: string | null;
27706
+ /** @description The team's own address; null without one */
27707
+ own_address?: {
27708
+ /** @description The address on the live sending domain */
27709
+ address: string;
27710
+ /** @description confirmed, else checking (test out), waiting (didn't come back), expired (link expired) or failed (bounced) */
27711
+ state: string;
27712
+ /** @description forwarding or link once confirmed */
27713
+ confirmed_via?: string | null;
27714
+ /** @description The team its forwarding reached; null until a test came back through it */
27715
+ forwards_to?: {
27716
+ /** @description Team key */
27717
+ key: string;
27718
+ /** @description Team name */
27719
+ name: string;
27720
+ } | null;
27721
+ /**
27722
+ * Format: date-time
27723
+ * @description When its latest test was sent
27724
+ */
27725
+ test_sent_at?: string | null;
27726
+ /**
27727
+ * Format: date-time
27728
+ * @description When it was confirmed
27729
+ */
27730
+ confirmed_at?: string | null;
27731
+ /**
27732
+ * Format: date-time
27733
+ * @description When a test last came back through its forwarding
27734
+ */
27735
+ forwarding_verified_at?: string | null;
27736
+ /**
27737
+ * Format: date-time
27738
+ * @description A forwarding test of the confirmed address that hasn't come back
27739
+ */
27740
+ forwarding_test_sent_at?: string | null;
27741
+ /** @description Why its test could not be delivered */
27742
+ failure_reason?: string | null;
27743
+ } | null;
27494
27744
  /** @description {mode, people}: who is emailed when Axivoy sends mail from the team (off, email or chosen); null on a team Axivoy sends nothing from */
27495
27745
  alerts?: Record<string, never> | null;
27496
27746
  };
@@ -27538,6 +27788,8 @@ export interface operations {
27538
27788
  phone_numbers: unknown[];
27539
27789
  /** @description Whether it is the company's default team */
27540
27790
  is_default: boolean;
27791
+ /** @description Whether its people follow its default roles (Drug & alcohol testing follows the DER role): people can't be added, removed or shared, a ring group never answers, it files no copies, alerts only its people, is never the default team, and its conversations and calls stay with its people */
27792
+ sealed: boolean;
27541
27793
  /** @description What Axivoy sends from it */
27542
27794
  sends: unknown[];
27543
27795
  /** @description {state, label, tone}; null when archived */
@@ -27840,7 +28092,7 @@ export interface operations {
27840
28092
  id: number;
27841
28093
  /** @description With member_user_id: {member_id, via, back_to_role, shares_people_with, email, texts, calls} for that person. via is person (their own row, member_id) or the name of the role whose row puts them on the team (member_id is that role row); back_to_role is the role row their own row replaces, else null; shares_people_with is the team whose people this team uses (its rows decide), else null. Null without member_user_id */
27842
28094
  membership?: Record<string, never> | null;
27843
- /** @description Team key: dispatch, safety, maintenance, receivables, onboarding, driver_payroll, hr, fleet, or a company team's key */
28095
+ /** @description Team key: dispatch, safety, maintenance, receivables, onboarding, driver_payroll, hr, fleet, drug_testing, or a company team's key */
27844
28096
  key: string;
27845
28097
  /** @description Team name */
27846
28098
  name: string;
@@ -27850,8 +28102,15 @@ export interface operations {
27850
28102
  state: string;
27851
28103
  /** @description The module that turns a built-in team on, for example Compliance; null when it is always on or a company team */
27852
28104
  module_label?: string | null;
27853
- /** @description The team's Axivoy address; null before the company has a mail domain */
28105
+ /** @description The team's Axivoy address (on the shared reply domain under the company's name once it sends from its own domain); null before the company has a mail domain */
27854
28106
  email_address?: string | null;
28107
+ /** @description Where its mail goes out from now; null unless on, or when none can send yet */
28108
+ sends_from?: {
28109
+ /** @description own (its confirmed own address), default (the confirmed default sending address under its name) or axivoy (its Axivoy address) */
28110
+ kind: string;
28111
+ /** @description The address */
28112
+ address: string;
28113
+ } | null;
27855
28114
  /** @description Numbers whose calls or texts come to the team: {number_id, e164, calls, texts} */
27856
28115
  phone_numbers: unknown[];
27857
28116
  /** @description Active people with any switch on */
@@ -28335,6 +28594,15 @@ export interface operations {
28335
28594
  };
28336
28595
  requestBody?: {
28337
28596
  content: {
28597
+ /**
28598
+ * @example {
28599
+ * "team_key": "safety",
28600
+ * "number_id": 1,
28601
+ * "calls": true,
28602
+ * "texts": true,
28603
+ * "confirm_move": true
28604
+ * }
28605
+ */
28338
28606
  "application/json": {
28339
28607
  /** @description An active team (from communication_teams.list) */
28340
28608
  team_key: string;
@@ -28356,6 +28624,18 @@ export interface operations {
28356
28624
  [name: string]: unknown;
28357
28625
  };
28358
28626
  content: {
28627
+ /**
28628
+ * @example {
28629
+ * "result": {
28630
+ * "number_id": 1,
28631
+ * "team_key": "safety",
28632
+ * "calls": true,
28633
+ * "texts": true,
28634
+ * "moved_from": "Texts to (713) 555-0142 go to Dispatch today.",
28635
+ * "message": "Calls to (713) 555-0142 now ring Safety & compliance. Texts to (713) 555-0142 now come to Safety & compliance."
28636
+ * }
28637
+ * }
28638
+ */
28359
28639
  "application/json": {
28360
28640
  result: {
28361
28641
  /** @description The phone number */
@@ -28717,7 +28997,7 @@ export interface operations {
28717
28997
  result: {
28718
28998
  /** @description The team's own address */
28719
28999
  identity_id: number;
28720
- /** @description pending_confirmation until someone opens the link */
29000
+ /** @description pending_confirmation until the test comes back or someone clicks its link; failed when it could not be delivered; active when the address was already confirmed */
28721
29001
  status: string;
28722
29002
  /** @description What happened, in the operator's words */
28723
29003
  message: string;
@@ -28791,7 +29071,7 @@ export interface operations {
28791
29071
  };
28792
29072
  };
28793
29073
  };
28794
- "ops.communication_teams.update": {
29074
+ "ops.communication_teams.public_from.test_forwarding": {
28795
29075
  parameters: {
28796
29076
  query?: never;
28797
29077
  header?: {
@@ -28807,49 +29087,12 @@ export interface operations {
28807
29087
  content: {
28808
29088
  /**
28809
29089
  * @example {
28810
- * "team_key": "receivables",
28811
- * "name": "Billing",
28812
- * "from_name": "Team Ops Billing",
28813
- * "filing_copy_emails": [
28814
- * "AP@team-ops.test"
28815
- * ],
28816
- * "sent_mail_alerts": "chosen",
28817
- * "sent_mail_alert_people": [
28818
- * {
28819
- * "type": "user",
28820
- * "user_id": 2
28821
- * }
28822
- * ]
29090
+ * "team_key": "dispatch"
28823
29091
  * }
28824
29092
  */
28825
29093
  "application/json": {
28826
29094
  /** @description The team (from communication_teams.list) */
28827
29095
  team_key: string;
28828
- /** @description New team name */
28829
- name?: string;
28830
- /** @description The name customers see on mail from this team; empty uses "{team} @ {company}" */
28831
- from_name?: string | null;
28832
- /** @description Addresses that get a filing copy of the team's Axivoy mail (max 10); only on teams that support it */
28833
- filing_copy_emails?: string[] | null;
28834
- /**
28835
- * @description Who gets an alert when Axivoy sends mail from this team: nobody, people with Email on, or the chosen people
28836
- * @enum {string}
28837
- */
28838
- sent_mail_alerts?: "off" | "email" | "chosen";
28839
- /** @description When sent_mail_alerts is chosen: {type: role or user, role, user_id} */
28840
- sent_mail_alert_people?: {
28841
- /**
28842
- * @description role or user
28843
- * @enum {string}
28844
- */
28845
- type: "role" | "user";
28846
- /** @description The role name when type is role */
28847
- role?: string | null;
28848
- /** @description The person when type is user */
28849
- user_id?: number | null;
28850
- }[] | null;
28851
- /** @description Another team's key to use its people (one hop); empty stops sharing */
28852
- shares_people_with?: string | null;
28853
29096
  };
28854
29097
  };
28855
29098
  };
@@ -28863,22 +29106,21 @@ export interface operations {
28863
29106
  /**
28864
29107
  * @example {
28865
29108
  * "result": {
28866
- * "team_key": "receivables",
28867
- * "readiness": {
28868
- * "state": "ready",
28869
- * "label": "Ready",
28870
- * "tone": "success"
28871
- * },
28872
- * "message": "Billing saved."
29109
+ * "identity_id": 1,
29110
+ * "forwarding_test_sent_at": "2026-10-29T19:28:52Z",
29111
+ * "message": "We sent a test to ops@carrier.example.com."
28873
29112
  * }
28874
29113
  * }
28875
29114
  */
28876
29115
  "application/json": {
28877
29116
  result: {
28878
- /** @description The team */
28879
- team_key: string;
28880
- /** @description {state, label, tone} after the change */
28881
- readiness: Record<string, never>;
29117
+ /** @description The team's own address */
29118
+ identity_id: number;
29119
+ /**
29120
+ * Format: date-time
29121
+ * @description When the forwarding test was sent
29122
+ */
29123
+ forwarding_test_sent_at?: string | null;
28882
29124
  /** @description What happened, in the operator's words */
28883
29125
  message: string;
28884
29126
  };
@@ -28951,7 +29193,7 @@ export interface operations {
28951
29193
  };
28952
29194
  };
28953
29195
  };
28954
- "ops.company_documents.broker_shareable": {
29196
+ "ops.communication_teams.update": {
28955
29197
  parameters: {
28956
29198
  query?: never;
28957
29199
  header?: {
@@ -28967,15 +29209,49 @@ export interface operations {
28967
29209
  content: {
28968
29210
  /**
28969
29211
  * @example {
28970
- * "document_id": 1,
28971
- * "broker_shareable": false
29212
+ * "team_key": "receivables",
29213
+ * "name": "Billing",
29214
+ * "from_name": "Team Ops Billing",
29215
+ * "filing_copy_emails": [
29216
+ * "AP@team-ops.test"
29217
+ * ],
29218
+ * "sent_mail_alerts": "chosen",
29219
+ * "sent_mail_alert_people": [
29220
+ * {
29221
+ * "type": "user",
29222
+ * "user_id": 2
29223
+ * }
29224
+ * ]
28972
29225
  * }
28973
29226
  */
28974
29227
  "application/json": {
28975
- /** @description The company document */
28976
- document_id: number;
28977
- /** @description Whether brokers may see the document */
28978
- broker_shareable: boolean | string | number | null;
29228
+ /** @description The team (from communication_teams.list) */
29229
+ team_key: string;
29230
+ /** @description New team name */
29231
+ name?: string;
29232
+ /** @description The name customers see on mail from this team; empty uses "{team} @ {company}" */
29233
+ from_name?: string | null;
29234
+ /** @description Addresses that get a filing copy of the team's Axivoy mail (max 10); only on teams that support it */
29235
+ filing_copy_emails?: string[] | null;
29236
+ /**
29237
+ * @description Who gets an alert when Axivoy sends mail from this team: nobody, people with Email on, or the chosen people
29238
+ * @enum {string}
29239
+ */
29240
+ sent_mail_alerts?: "off" | "email" | "chosen";
29241
+ /** @description When sent_mail_alerts is chosen: {type: role or user, role, user_id} */
29242
+ sent_mail_alert_people?: {
29243
+ /**
29244
+ * @description role or user
29245
+ * @enum {string}
29246
+ */
29247
+ type: "role" | "user";
29248
+ /** @description The role name when type is role */
29249
+ role?: string | null;
29250
+ /** @description The person when type is user */
29251
+ user_id?: number | null;
29252
+ }[] | null;
29253
+ /** @description Another team's key to use its people (one hop); empty stops sharing */
29254
+ shares_people_with?: string | null;
28979
29255
  };
28980
29256
  };
28981
29257
  };
@@ -28989,17 +29265,24 @@ export interface operations {
28989
29265
  /**
28990
29266
  * @example {
28991
29267
  * "result": {
28992
- * "message": "No longer shared with brokers.",
28993
- * "broker_shareable": false
29268
+ * "team_key": "receivables",
29269
+ * "readiness": {
29270
+ * "state": "ready",
29271
+ * "label": "Ready",
29272
+ * "tone": "success"
29273
+ * },
29274
+ * "message": "Billing saved."
28994
29275
  * }
28995
29276
  * }
28996
29277
  */
28997
29278
  "application/json": {
28998
29279
  result: {
29280
+ /** @description The team */
29281
+ team_key: string;
29282
+ /** @description {state, label, tone} after the change */
29283
+ readiness: Record<string, never>;
28999
29284
  /** @description What happened, in the operator's words */
29000
29285
  message: string;
29001
- /** @description Whether brokers now see the document */
29002
- broker_shareable: boolean;
29003
29286
  };
29004
29287
  };
29005
29288
  };
@@ -29070,7 +29353,7 @@ export interface operations {
29070
29353
  };
29071
29354
  };
29072
29355
  };
29073
- "ops.company_documents.create": {
29356
+ "ops.company_documents.broker_shareable": {
29074
29357
  parameters: {
29075
29358
  query?: never;
29076
29359
  header?: {
@@ -29086,30 +29369,15 @@ export interface operations {
29086
29369
  content: {
29087
29370
  /**
29088
29371
  * @example {
29089
- * "kind": "certificate_of_insurance",
29090
- * "title": "COI 2027",
29091
- * "file": "700f09e1-62f2-4c3b-83fd-47384a44e9b4",
29092
- * "expires_at": "2027-10-01",
29093
- * "broker_shareable": true
29372
+ * "document_id": 1,
29373
+ * "broker_shareable": false
29094
29374
  * }
29095
29375
  */
29096
29376
  "application/json": {
29097
- /** @description Document kind, from the workspace's company document kinds */
29098
- kind: string | null;
29099
- /** @description Title, max 255 */
29100
- title: string | null;
29101
- /** @description The document file */
29102
- file: string | null;
29103
- /** @description Expiry date, YYYY-MM-DD */
29104
- expires_at?: string | null;
29105
- /** @description Notes, max 2000 */
29106
- notes?: string | null;
29107
- /** @description Brokers may see it in the carrier packet */
29108
- broker_shareable?: boolean | string | number | null;
29109
- /** @description The open document request this upload answers, if any */
29110
- request_id?: number | string | null;
29111
- /** @description The insurance policy this upload proves, if any */
29112
- policy_id?: number | string | null;
29377
+ /** @description The company document */
29378
+ document_id: number;
29379
+ /** @description Whether brokers may see the document */
29380
+ broker_shareable: boolean | string | number | null;
29113
29381
  };
29114
29382
  };
29115
29383
  };
@@ -29123,13 +29391,8 @@ export interface operations {
29123
29391
  /**
29124
29392
  * @example {
29125
29393
  * "result": {
29126
- * "message": "Document uploaded.",
29127
- * "document_id": 2,
29128
- * "kind_label": "Certificate of insurance",
29129
- * "review_url": "http://localhost/admin/compliance/review/documents/company/2",
29130
- * "ai_queued": true,
29131
- * "sides": 1,
29132
- * "linked_to_policy": false
29394
+ * "message": "No longer shared with brokers.",
29395
+ * "broker_shareable": false
29133
29396
  * }
29134
29397
  * }
29135
29398
  */
@@ -29137,18 +29400,8 @@ export interface operations {
29137
29400
  result: {
29138
29401
  /** @description What happened, in the operator's words */
29139
29402
  message: string;
29140
- /** @description The new document */
29141
- document_id: number;
29142
- /** @description The document kind as people say it */
29143
- kind_label: string;
29144
- /** @description Where to review what AI read from it, for people who review documents */
29145
- review_url?: string | null;
29146
- /** @description AI is reading the document */
29147
- ai_queued: boolean;
29148
- /** @description Files on the document (two for a two-sided card) */
29149
- sides: number;
29150
- /** @description The upload was linked to an insurance policy */
29151
- linked_to_policy: boolean;
29403
+ /** @description Whether brokers now see the document */
29404
+ broker_shareable: boolean;
29152
29405
  };
29153
29406
  };
29154
29407
  };
@@ -29219,7 +29472,7 @@ export interface operations {
29219
29472
  };
29220
29473
  };
29221
29474
  };
29222
- "ops.company_documents.download": {
29475
+ "ops.company_documents.create": {
29223
29476
  parameters: {
29224
29477
  query?: never;
29225
29478
  header?: {
@@ -29235,12 +29488,30 @@ export interface operations {
29235
29488
  content: {
29236
29489
  /**
29237
29490
  * @example {
29238
- * "document_id": 1
29491
+ * "kind": "certificate_of_insurance",
29492
+ * "title": "COI 2027",
29493
+ * "file": "700f09e1-62f2-4c3b-83fd-47384a44e9b4",
29494
+ * "expires_at": "2027-10-01",
29495
+ * "broker_shareable": true
29239
29496
  * }
29240
29497
  */
29241
29498
  "application/json": {
29242
- /** @description The company document. */
29243
- document_id: number;
29499
+ /** @description Document kind, from the workspace's company document kinds */
29500
+ kind: string | null;
29501
+ /** @description Title, max 255 */
29502
+ title: string | null;
29503
+ /** @description The document file */
29504
+ file: string | null;
29505
+ /** @description Expiry date, YYYY-MM-DD */
29506
+ expires_at?: string | null;
29507
+ /** @description Notes, max 2000 */
29508
+ notes?: string | null;
29509
+ /** @description Brokers may see it in the carrier packet */
29510
+ broker_shareable?: boolean | string | number | null;
29511
+ /** @description The open document request this upload answers, if any */
29512
+ request_id?: number | string | null;
29513
+ /** @description The insurance policy this upload proves, if any */
29514
+ policy_id?: number | string | null;
29244
29515
  };
29245
29516
  };
29246
29517
  };
@@ -29254,32 +29525,32 @@ export interface operations {
29254
29525
  /**
29255
29526
  * @example {
29256
29527
  * "result": {
29257
- * "id": 1,
29258
- * "kind": "certificate_of_insurance",
29259
- * "file_name": "coi.pdf",
29260
- * "mime_type": "application/pdf",
29261
- * "file_url": "http://localhost/api/v1/files/ZXlKcGRpSTZJbnBLVFhKUVZHRXJTVVZzVW1kc1dFZEVhaXR1YjFFOVBTSXNJblpoYkhWbElqb2lMMU5EYURCclpHZHJOVmh0TTBKMFRYaHBjSGxuUmpsQmEyaEtUVzVGVG1VMFdtYzBOblJMTVVOYU9XWndka0pPZEZac2VFZDBjbFZJTUhRelUwbHlZalF2UVdWUllWZFljSHB0SzNOR2RtTkRWMEpsYzJaVk1EZzFNMjVJWVZaSVlpdGxlRkp3Y2s5NE1UZ3piMGN2UkhScVoxaHVSV2R4TWtOdldtWldaMjAxYm5GV2FqWkVXbWxuYkV0VkwxUjVXaTlKY25wc0wwSkhjazk2U1cwNWRGUkxNblpVWTJ0a1lYSnhZbXh4TW1jeGFGaDNVbWRCWVVoaWEySmxNWEF3SWl3aWJXRmpJam9pTW1Kak5UTmxOR0l6TXpRNE1ETmhZek15TVRSbU5tRXhNalJtWWpRek1HVXpORFl5WWpVMFptUTVNREk0WW1ObU5qYzFOVEZsWVRsallqTTRZek0xTWlJc0luUmhaeUk2SWlKOQ?expires=1792077000&signature=9858079ca66b009c657d531861697194c13f131d814144b4b6bf553d2e3ba0ff",
29262
- * "expires_at": "2026-10-15T15:10:00Z"
29528
+ * "message": "Document uploaded.",
29529
+ * "document_id": 2,
29530
+ * "kind_label": "Certificate of insurance",
29531
+ * "review_url": "http://localhost/admin/compliance/review/documents/company/2",
29532
+ * "ai_queued": true,
29533
+ * "sides": 1,
29534
+ * "linked_to_policy": false
29263
29535
  * }
29264
29536
  * }
29265
29537
  */
29266
29538
  "application/json": {
29267
29539
  result: {
29268
- /** @description The document id */
29269
- id: number;
29270
- /** @description Document kind */
29271
- kind: string;
29272
- /** @description The file name as uploaded */
29273
- file_name: string;
29274
- /** @description File type */
29275
- mime_type: string;
29276
- /** @description Signed download link */
29277
- file_url: string;
29278
- /**
29279
- * Format: date-time
29280
- * @description When the link stops working
29281
- */
29282
- expires_at: string;
29540
+ /** @description What happened, in the operator's words */
29541
+ message: string;
29542
+ /** @description The new document */
29543
+ document_id: number;
29544
+ /** @description The document kind as people say it */
29545
+ kind_label: string;
29546
+ /** @description Where to review what AI read from it, for people who review documents */
29547
+ review_url?: string | null;
29548
+ /** @description AI is reading the document */
29549
+ ai_queued: boolean;
29550
+ /** @description Files on the document (two for a two-sided card) */
29551
+ sides: number;
29552
+ /** @description The upload was linked to an insurance policy */
29553
+ linked_to_policy: boolean;
29283
29554
  };
29284
29555
  };
29285
29556
  };
@@ -29350,7 +29621,7 @@ export interface operations {
29350
29621
  };
29351
29622
  };
29352
29623
  };
29353
- "ops.compensation_plans.add_missing_expected": {
29624
+ "ops.company_documents.download": {
29354
29625
  parameters: {
29355
29626
  query?: never;
29356
29627
  header?: {
@@ -29366,16 +29637,12 @@ export interface operations {
29366
29637
  content: {
29367
29638
  /**
29368
29639
  * @example {
29369
- * "plan_id": 5
29640
+ * "document_id": 1
29370
29641
  * }
29371
29642
  */
29372
29643
  "application/json": {
29373
- /** @description The pay plan template id (compensation_plans.list) */
29374
- plan_id: number;
29375
- /** @description Add only this pay rule type */
29376
- component_type?: string | null;
29377
- /** @description Accepted for older forms; plan versions carry dates */
29378
- effective_from?: string | null;
29644
+ /** @description The company document. */
29645
+ document_id: number;
29379
29646
  };
29380
29647
  };
29381
29648
  };
@@ -29389,20 +29656,32 @@ export interface operations {
29389
29656
  /**
29390
29657
  * @example {
29391
29658
  * "result": {
29392
- * "id": 5,
29393
- * "message": "Missing expected pay added.",
29394
- * "created_count": 1
29659
+ * "id": 1,
29660
+ * "kind": "certificate_of_insurance",
29661
+ * "file_name": "coi.pdf",
29662
+ * "mime_type": "application/pdf",
29663
+ * "file_url": "http://localhost/api/v1/files/ZXlKcGRpSTZJbnBLVFhKUVZHRXJTVVZzVW1kc1dFZEVhaXR1YjFFOVBTSXNJblpoYkhWbElqb2lMMU5EYURCclpHZHJOVmh0TTBKMFRYaHBjSGxuUmpsQmEyaEtUVzVGVG1VMFdtYzBOblJMTVVOYU9XWndka0pPZEZac2VFZDBjbFZJTUhRelUwbHlZalF2UVdWUllWZFljSHB0SzNOR2RtTkRWMEpsYzJaVk1EZzFNMjVJWVZaSVlpdGxlRkp3Y2s5NE1UZ3piMGN2UkhScVoxaHVSV2R4TWtOdldtWldaMjAxYm5GV2FqWkVXbWxuYkV0VkwxUjVXaTlKY25wc0wwSkhjazk2U1cwNWRGUkxNblpVWTJ0a1lYSnhZbXh4TW1jeGFGaDNVbWRCWVVoaWEySmxNWEF3SWl3aWJXRmpJam9pTW1Kak5UTmxOR0l6TXpRNE1ETmhZek15TVRSbU5tRXhNalJtWWpRek1HVXpORFl5WWpVMFptUTVNREk0WW1ObU5qYzFOVEZsWVRsallqTTRZek0xTWlJc0luUmhaeUk2SWlKOQ?expires=1792077000&signature=9858079ca66b009c657d531861697194c13f131d814144b4b6bf553d2e3ba0ff",
29664
+ * "expires_at": "2026-10-15T15:10:00Z"
29395
29665
  * }
29396
29666
  * }
29397
29667
  */
29398
29668
  "application/json": {
29399
29669
  result: {
29400
- /** @description The pay plan id */
29401
- id?: number | null;
29402
- /** @description What happened, in the operator's words */
29403
- message: string;
29404
- /** @description How many pay items were added */
29405
- created_count: number;
29670
+ /** @description The document id */
29671
+ id: number;
29672
+ /** @description Document kind */
29673
+ kind: string;
29674
+ /** @description The file name as uploaded */
29675
+ file_name: string;
29676
+ /** @description File type */
29677
+ mime_type: string;
29678
+ /** @description Signed download link */
29679
+ file_url: string;
29680
+ /**
29681
+ * Format: date-time
29682
+ * @description When the link stops working
29683
+ */
29684
+ expires_at: string;
29406
29685
  };
29407
29686
  };
29408
29687
  };
@@ -29473,7 +29752,7 @@ export interface operations {
29473
29752
  };
29474
29753
  };
29475
29754
  };
29476
- "ops.compensation_plans.apply_standard_setup": {
29755
+ "ops.compensation_plans.add_missing_expected": {
29477
29756
  parameters: {
29478
29757
  query?: never;
29479
29758
  header?: {
@@ -29489,18 +29768,16 @@ export interface operations {
29489
29768
  content: {
29490
29769
  /**
29491
29770
  * @example {
29492
- * "plan_id": 5,
29493
- * "component_types": [
29494
- * "mileage_pay",
29495
- * "minimum_load_pay"
29496
- * ]
29771
+ * "plan_id": 5
29497
29772
  * }
29498
29773
  */
29499
29774
  "application/json": {
29500
29775
  /** @description The pay plan template id (compensation_plans.list) */
29501
29776
  plan_id: number;
29502
- /** @description Pay rule types to add, at least one */
29503
- component_types: (string | number)[] | null;
29777
+ /** @description Add only this pay rule type */
29778
+ component_type?: string | null;
29779
+ /** @description Accepted for older forms; plan versions carry dates */
29780
+ effective_from?: string | null;
29504
29781
  };
29505
29782
  };
29506
29783
  };
@@ -29515,8 +29792,8 @@ export interface operations {
29515
29792
  * @example {
29516
29793
  * "result": {
29517
29794
  * "id": 5,
29518
- * "message": "Standard setup applied.",
29519
- * "created_count": 2
29795
+ * "message": "Missing expected pay added.",
29796
+ * "created_count": 1
29520
29797
  * }
29521
29798
  * }
29522
29799
  */
@@ -29598,7 +29875,7 @@ export interface operations {
29598
29875
  };
29599
29876
  };
29600
29877
  };
29601
- "ops.compensation_plans.assignments.create": {
29878
+ "ops.compensation_plans.apply_standard_setup": {
29602
29879
  parameters: {
29603
29880
  query?: never;
29604
29881
  header?: {
@@ -29615,21 +29892,17 @@ export interface operations {
29615
29892
  /**
29616
29893
  * @example {
29617
29894
  * "plan_id": 5,
29618
- * "user_ids": [
29619
- * 3
29620
- * ],
29621
- * "effective_from": "2026-07-01"
29895
+ * "component_types": [
29896
+ * "mileage_pay",
29897
+ * "minimum_load_pay"
29898
+ * ]
29622
29899
  * }
29623
29900
  */
29624
29901
  "application/json": {
29625
29902
  /** @description The pay plan template id (compensation_plans.list) */
29626
29903
  plan_id: number;
29627
- /** @description Driver user ids, at least one */
29628
- user_ids: (number | string)[] | null;
29629
- /** @description First day on the plan, YYYY-MM-DD */
29630
- effective_from: string | null;
29631
- /** @description Confirms a move that leaves a coverage gap */
29632
- confirm_assignment_gap?: boolean | string | number | null;
29904
+ /** @description Pay rule types to add, at least one */
29905
+ component_types: (string | number)[] | null;
29633
29906
  };
29634
29907
  };
29635
29908
  };
@@ -29644,8 +29917,8 @@ export interface operations {
29644
29917
  * @example {
29645
29918
  * "result": {
29646
29919
  * "id": 5,
29647
- * "message": "Driver assignment saved.",
29648
- * "assigned_count": 1
29920
+ * "message": "Standard setup applied.",
29921
+ * "created_count": 2
29649
29922
  * }
29650
29923
  * }
29651
29924
  */
@@ -29655,8 +29928,8 @@ export interface operations {
29655
29928
  id?: number | null;
29656
29929
  /** @description What happened, in the operator's words */
29657
29930
  message: string;
29658
- /** @description How many drivers were assigned */
29659
- assigned_count: number;
29931
+ /** @description How many pay items were added */
29932
+ created_count: number;
29660
29933
  };
29661
29934
  };
29662
29935
  };
@@ -29727,7 +30000,7 @@ export interface operations {
29727
30000
  };
29728
30001
  };
29729
30002
  };
29730
- "ops.compensation_plans.components.create": {
30003
+ "ops.compensation_plans.assignments.create": {
29731
30004
  parameters: {
29732
30005
  query?: never;
29733
30006
  header?: {
@@ -29743,22 +30016,22 @@ export interface operations {
29743
30016
  content: {
29744
30017
  /**
29745
30018
  * @example {
29746
- * "plan_id": 1,
29747
- * "component_type": "tonu_pay",
29748
- * "configuration": {
29749
- * "amount": 150
29750
- * }
30019
+ * "plan_id": 5,
30020
+ * "user_ids": [
30021
+ * 3
30022
+ * ],
30023
+ * "effective_from": "2026-07-01"
29751
30024
  * }
29752
30025
  */
29753
30026
  "application/json": {
29754
30027
  /** @description The pay plan template id (compensation_plans.list) */
29755
30028
  plan_id: number;
29756
- /** @description Pay rule type: mileage_pay, minimum_load_pay, stop_pay, detention_pay, layover_pay, tonu_pay, flat_load_pay, revenue_percentage_pay, maintenance_shuttle_pay */
29757
- component_type: string | null;
29758
- /** @description Rates for the pay rule type: mileage pay takes rate_per_mile with basis and pay_empty_miles, or mileage_mode with loaded_rate_per_mile and empty_rate_per_mile; stop pay structure, included_stops and amount_per_stop; flat pays amount; revenue percentage percent and revenue_basis; detention structure with amount or free_hours and rate_per_hour; layover structure with amount, amount_per_day or first_day_amount and additional_day_amount */
29759
- configuration?: {
29760
- [key: string]: unknown;
29761
- } | unknown[] | null;
30029
+ /** @description Driver user ids, at least one */
30030
+ user_ids: (number | string)[] | null;
30031
+ /** @description First day on the plan, YYYY-MM-DD */
30032
+ effective_from: string | null;
30033
+ /** @description Confirms a move that leaves a coverage gap */
30034
+ confirm_assignment_gap?: boolean | string | number | null;
29762
30035
  };
29763
30036
  };
29764
30037
  };
@@ -29772,17 +30045,20 @@ export interface operations {
29772
30045
  /**
29773
30046
  * @example {
29774
30047
  * "result": {
29775
- * "id": 3,
29776
- * "message": "Pay item saved."
30048
+ * "id": 5,
30049
+ * "message": "Driver assignment saved.",
30050
+ * "assigned_count": 1
29777
30051
  * }
29778
30052
  * }
29779
30053
  */
29780
30054
  "application/json": {
29781
30055
  result: {
29782
- /** @description The pay rule id */
30056
+ /** @description The pay plan id */
29783
30057
  id?: number | null;
29784
30058
  /** @description What happened, in the operator's words */
29785
30059
  message: string;
30060
+ /** @description How many drivers were assigned */
30061
+ assigned_count: number;
29786
30062
  };
29787
30063
  };
29788
30064
  };
@@ -29853,7 +30129,7 @@ export interface operations {
29853
30129
  };
29854
30130
  };
29855
30131
  };
29856
- "ops.compensation_plans.components.update": {
30132
+ "ops.compensation_plans.components.create": {
29857
30133
  parameters: {
29858
30134
  query?: never;
29859
30135
  header?: {
@@ -29870,20 +30146,15 @@ export interface operations {
29870
30146
  /**
29871
30147
  * @example {
29872
30148
  * "plan_id": 1,
29873
- * "component_id": 1,
29874
- * "component_type": "mileage_pay",
30149
+ * "component_type": "tonu_pay",
29875
30150
  * "configuration": {
29876
- * "rate_per_mile": 0.7,
29877
- * "basis": "total",
29878
- * "pay_empty_miles": true
30151
+ * "amount": 150
29879
30152
  * }
29880
30153
  * }
29881
30154
  */
29882
30155
  "application/json": {
29883
30156
  /** @description The pay plan template id (compensation_plans.list) */
29884
30157
  plan_id: number;
29885
- /** @description The pay rule (pay item) id on this plan */
29886
- component_id: number;
29887
30158
  /** @description Pay rule type: mileage_pay, minimum_load_pay, stop_pay, detention_pay, layover_pay, tonu_pay, flat_load_pay, revenue_percentage_pay, maintenance_shuttle_pay */
29888
30159
  component_type: string | null;
29889
30160
  /** @description Rates for the pay rule type: mileage pay takes rate_per_mile with basis and pay_empty_miles, or mileage_mode with loaded_rate_per_mile and empty_rate_per_mile; stop pay structure, included_stops and amount_per_stop; flat pays amount; revenue percentage percent and revenue_basis; detention structure with amount or free_hours and rate_per_hour; layover structure with amount, amount_per_day or first_day_amount and additional_day_amount */
@@ -29903,8 +30174,8 @@ export interface operations {
29903
30174
  /**
29904
30175
  * @example {
29905
30176
  * "result": {
29906
- * "id": 1,
29907
- * "message": "Pay rule updated."
30177
+ * "id": 3,
30178
+ * "message": "Pay item saved."
29908
30179
  * }
29909
30180
  * }
29910
30181
  */
@@ -29984,7 +30255,7 @@ export interface operations {
29984
30255
  };
29985
30256
  };
29986
30257
  };
29987
- "ops.compensation_plans.create": {
30258
+ "ops.compensation_plans.components.update": {
29988
30259
  parameters: {
29989
30260
  query?: never;
29990
30261
  header?: {
@@ -30000,18 +30271,27 @@ export interface operations {
30000
30271
  content: {
30001
30272
  /**
30002
30273
  * @example {
30003
- * "name": "Team CPM",
30004
- * "tax_classification": "w2",
30005
- * "compensation_strategy": "mileage"
30274
+ * "plan_id": 1,
30275
+ * "component_id": 1,
30276
+ * "component_type": "mileage_pay",
30277
+ * "configuration": {
30278
+ * "rate_per_mile": 0.7,
30279
+ * "basis": "total",
30280
+ * "pay_empty_miles": true
30281
+ * }
30006
30282
  * }
30007
30283
  */
30008
30284
  "application/json": {
30009
- /** @description Plan name, unique in the workspace (max 255) */
30010
- name: string | null;
30011
- /** @description Tax classification: 1099, w2 */
30012
- tax_classification: string | null;
30013
- /** @description Pay method: mileage, revenue_percentage, flat_rate, hybrid, salary, custom */
30014
- compensation_strategy: string | null;
30285
+ /** @description The pay plan template id (compensation_plans.list) */
30286
+ plan_id: number;
30287
+ /** @description The pay rule (pay item) id on this plan */
30288
+ component_id: number;
30289
+ /** @description Pay rule type: mileage_pay, minimum_load_pay, stop_pay, detention_pay, layover_pay, tonu_pay, flat_load_pay, revenue_percentage_pay, maintenance_shuttle_pay */
30290
+ component_type: string | null;
30291
+ /** @description Rates for the pay rule type: mileage pay takes rate_per_mile with basis and pay_empty_miles, or mileage_mode with loaded_rate_per_mile and empty_rate_per_mile; stop pay structure, included_stops and amount_per_stop; flat pays amount; revenue percentage percent and revenue_basis; detention structure with amount or free_hours and rate_per_hour; layover structure with amount, amount_per_day or first_day_amount and additional_day_amount */
30292
+ configuration?: {
30293
+ [key: string]: unknown;
30294
+ } | unknown[] | null;
30015
30295
  };
30016
30296
  };
30017
30297
  };
@@ -30025,14 +30305,14 @@ export interface operations {
30025
30305
  /**
30026
30306
  * @example {
30027
30307
  * "result": {
30028
- * "id": 11,
30029
- * "message": "Pay plan template saved."
30308
+ * "id": 1,
30309
+ * "message": "Pay rule updated."
30030
30310
  * }
30031
30311
  * }
30032
30312
  */
30033
30313
  "application/json": {
30034
30314
  result: {
30035
- /** @description The pay plan id */
30315
+ /** @description The pay rule id */
30036
30316
  id?: number | null;
30037
30317
  /** @description What happened, in the operator's words */
30038
30318
  message: string;
@@ -30106,7 +30386,7 @@ export interface operations {
30106
30386
  };
30107
30387
  };
30108
30388
  };
30109
- "ops.compensation_plans.duplicate": {
30389
+ "ops.compensation_plans.create": {
30110
30390
  parameters: {
30111
30391
  query?: never;
30112
30392
  header?: {
@@ -30122,12 +30402,18 @@ export interface operations {
30122
30402
  content: {
30123
30403
  /**
30124
30404
  * @example {
30125
- * "plan_id": 1
30405
+ * "name": "Team CPM",
30406
+ * "tax_classification": "w2",
30407
+ * "compensation_strategy": "mileage"
30126
30408
  * }
30127
30409
  */
30128
30410
  "application/json": {
30129
- /** @description The pay plan template id (compensation_plans.list) */
30130
- plan_id: number;
30411
+ /** @description Plan name, unique in the workspace (max 255) */
30412
+ name: string | null;
30413
+ /** @description Tax classification: 1099, w2 */
30414
+ tax_classification: string | null;
30415
+ /** @description Pay method: mileage, revenue_percentage, flat_rate, hybrid, salary, custom */
30416
+ compensation_strategy: string | null;
30131
30417
  };
30132
30418
  };
30133
30419
  };
@@ -30142,13 +30428,13 @@ export interface operations {
30142
30428
  * @example {
30143
30429
  * "result": {
30144
30430
  * "id": 11,
30145
- * "message": "Plan duplicated. Adjust the pay rates, then set it as a progression target on the original plan."
30431
+ * "message": "Pay plan template saved."
30146
30432
  * }
30147
30433
  * }
30148
30434
  */
30149
30435
  "application/json": {
30150
30436
  result: {
30151
- /** @description The new pay plan id */
30437
+ /** @description The pay plan id */
30152
30438
  id?: number | null;
30153
30439
  /** @description What happened, in the operator's words */
30154
30440
  message: string;
@@ -30222,7 +30508,7 @@ export interface operations {
30222
30508
  };
30223
30509
  };
30224
30510
  };
30225
- "ops.compensation_plans.get": {
30511
+ "ops.compensation_plans.duplicate": {
30226
30512
  parameters: {
30227
30513
  query?: never;
30228
30514
  header?: {
@@ -30257,191 +30543,307 @@ export interface operations {
30257
30543
  /**
30258
30544
  * @example {
30259
30545
  * "result": {
30260
- * "id": 1,
30261
- * "name": "Starter CPM",
30262
- * "tax_classification": "1099",
30263
- * "compensation_strategy": "mileage",
30264
- * "supports_team_pay": false,
30265
- * "versions": [
30266
- * {
30267
- * "id": 1,
30268
- * "plan_id": 1,
30269
- * "effective_from": "2026-01-01",
30270
- * "effective_to": null
30271
- * }
30272
- * ],
30273
- * "pay_items": [
30274
- * {
30275
- * "id": 1,
30276
- * "component_type": "mileage_pay",
30277
- * "configuration": {
30278
- * "rate_per_mile": 0.65,
30279
- * "basis": "total",
30280
- * "pay_empty_miles": true
30281
- * },
30282
- * "locked": false
30283
- * },
30284
- * {
30285
- * "id": 2,
30286
- * "component_type": "stop_pay",
30287
- * "configuration": {
30288
- * "amount_per_stop": 50
30289
- * },
30290
- * "locked": true
30291
- * }
30292
- * ],
30293
- * "stacking_groups": [
30294
- * {
30295
- * "id": 1,
30296
- * "name": "Base load pay",
30297
- * "group_behavior": "contribute",
30298
- * "interaction_mode": "higher_of",
30299
- * "component_types": [
30300
- * "mileage_pay",
30301
- * "minimum_load_pay"
30302
- * ],
30303
- * "locked": false
30304
- * },
30305
- * {
30306
- * "id": 2,
30307
- * "name": "Waiting time",
30308
- * "group_behavior": "contribute",
30309
- * "interaction_mode": "additive",
30310
- * "component_types": [
30311
- * "detention_pay",
30312
- * "layover_pay"
30313
- * ],
30314
- * "locked": true
30315
- * }
30316
- * ],
30317
- * "assignments": [
30318
- * {
30319
- * "id": 1,
30320
- * "driver_user_id": 2,
30321
- * "effective_from": "2026-03-01",
30322
- * "effective_to": null
30323
- * }
30324
- * ],
30325
- * "progression_rule": {
30326
- * "id": 1,
30327
- * "target_plan_id": 3,
30328
- * "trigger_condition": "time_on_plan",
30329
- * "period_count": 4,
30330
- * "period_unit": "weeks",
30331
- * "apply_mode": "require_approval"
30332
- * },
30333
- * "pending_raises": [
30334
- * {
30335
- * "id": 1,
30336
- * "driver_user_id": 2,
30337
- * "target_plan_id": 3,
30338
- * "graduation_date": "2026-03-31"
30339
- * }
30340
- * ]
30546
+ * "id": 11,
30547
+ * "message": "Plan duplicated. Adjust the pay rates, then set it as a progression target on the original plan."
30341
30548
  * }
30342
30549
  * }
30343
30550
  */
30344
30551
  "application/json": {
30345
30552
  result: {
30346
- /** @description The pay plan id */
30347
- id: number;
30348
- /** @description Plan name */
30349
- name: string;
30350
- /** @description w2 or 1099 */
30351
- tax_classification: string;
30352
- /** @description Pay method */
30353
- compensation_strategy: string;
30354
- /** @description Pays team loads by seat */
30355
- supports_team_pay: boolean;
30356
- /** @description Plan versions of the plan family, oldest first */
30357
- versions: {
30358
- /** @description Plan version id */
30359
- id: number;
30360
- /** @description The plan row the version points at */
30361
- plan_id: number;
30362
- /**
30363
- * Format: date
30364
- * @description First day
30365
- */
30366
- effective_from: string;
30367
- /**
30368
- * Format: date
30369
- * @description Last day; empty while it is the latest
30370
- */
30371
- effective_to?: string | null;
30372
- }[];
30373
- /** @description Pay rules (pay items) */
30374
- pay_items: {
30375
- /** @description Pay rule id */
30376
- id: number;
30377
- /** @description Pay rule type */
30378
- component_type: string;
30379
- /** @description Rates as stored, including Team Pay */
30380
- configuration: Record<string, never>;
30381
- /** @description Used in payroll; its rates are frozen */
30382
- locked: boolean;
30383
- }[];
30384
- /** @description Stacking groups in order */
30385
- stacking_groups: {
30386
- /** @description Stacking group id */
30387
- id: number;
30388
- /** @description Group name */
30389
- name: string;
30390
- /** @description How the group sits with the others */
30391
- group_behavior: string;
30392
- /** @description How its pay rules combine */
30393
- interaction_mode: string;
30394
- /** @description Pay rule types in the group */
30395
- component_types: unknown[];
30396
- /** @description Used in payroll; frozen */
30397
- locked: boolean;
30398
- }[];
30399
- /** @description Driver assignments, newest first */
30400
- assignments: {
30401
- /** @description Assignment row id */
30402
- id: number;
30403
- /** @description The driver */
30404
- driver_user_id: number;
30405
- /**
30406
- * Format: date
30407
- * @description First day on the plan
30408
- */
30409
- effective_from: string;
30410
- /**
30411
- * Format: date
30412
- * @description Last day; empty while current
30413
- */
30414
- effective_to?: string | null;
30415
- }[];
30416
- /** @description The active pay progression rule, if any */
30417
- progression_rule?: {
30418
- /** @description Pay progression rule id */
30419
- id: number;
30420
- /** @description The plan drivers move to */
30421
- target_plan_id: number;
30422
- /** @description What starts the clock */
30423
- trigger_condition: string;
30424
- /** @description Periods before the raise */
30425
- period_count: number;
30426
- /** @description Period unit */
30427
- period_unit: string;
30428
- /** @description automatic or require_approval */
30429
- apply_mode: string;
30430
- } | null;
30431
- /** @description Raises waiting for approval */
30432
- pending_raises: {
30433
- /** @description Raise id, for progression_events.approve or dismiss */
30434
- id: number;
30435
- /** @description The driver */
30436
- driver_user_id: number;
30437
- /** @description The plan the driver would move to */
30438
- target_plan_id: number;
30439
- /**
30440
- * Format: date
30441
- * @description When the raise applies
30442
- */
30443
- graduation_date: string;
30444
- }[];
30553
+ /** @description The new pay plan id */
30554
+ id?: number | null;
30555
+ /** @description What happened, in the operator's words */
30556
+ message: string;
30557
+ };
30558
+ };
30559
+ };
30560
+ };
30561
+ 202: components["responses"]["Proposal"];
30562
+ /** @description Refused: credits_exhausted. */
30563
+ 402: {
30564
+ headers: {
30565
+ [name: string]: unknown;
30566
+ };
30567
+ content: {
30568
+ "application/json": components["schemas"]["OperationError"];
30569
+ };
30570
+ };
30571
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
30572
+ 403: {
30573
+ headers: {
30574
+ [name: string]: unknown;
30575
+ };
30576
+ content: {
30577
+ "application/json": components["schemas"]["OperationError"];
30578
+ };
30579
+ };
30580
+ /** @description Refused: not_found. */
30581
+ 404: {
30582
+ headers: {
30583
+ [name: string]: unknown;
30584
+ };
30585
+ content: {
30586
+ "application/json": components["schemas"]["OperationError"];
30587
+ };
30588
+ };
30589
+ /** @description Refused: idempotency_conflict, stale_state. */
30590
+ 409: {
30591
+ headers: {
30592
+ [name: string]: unknown;
30593
+ };
30594
+ content: {
30595
+ "application/json": components["schemas"]["OperationError"];
30596
+ };
30597
+ };
30598
+ /** @description Refused: operation_retired. */
30599
+ 410: {
30600
+ headers: {
30601
+ [name: string]: unknown;
30602
+ };
30603
+ content: {
30604
+ "application/json": components["schemas"]["OperationError"];
30605
+ };
30606
+ };
30607
+ /** @description Refused: invalid_input, domain_rule. */
30608
+ 422: {
30609
+ headers: {
30610
+ [name: string]: unknown;
30611
+ };
30612
+ content: {
30613
+ "application/json": components["schemas"]["OperationError"];
30614
+ };
30615
+ };
30616
+ /** @description Refused: rate_limited. */
30617
+ 429: {
30618
+ headers: {
30619
+ [name: string]: unknown;
30620
+ };
30621
+ content: {
30622
+ "application/json": components["schemas"]["OperationError"];
30623
+ };
30624
+ };
30625
+ };
30626
+ };
30627
+ "ops.compensation_plans.get": {
30628
+ parameters: {
30629
+ query?: never;
30630
+ header?: {
30631
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
30632
+ "Idempotency-Key"?: string;
30633
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
30634
+ "Axivoy-Dry-Run"?: "true" | "false";
30635
+ };
30636
+ path?: never;
30637
+ cookie?: never;
30638
+ };
30639
+ requestBody?: {
30640
+ content: {
30641
+ /**
30642
+ * @example {
30643
+ * "plan_id": 1
30644
+ * }
30645
+ */
30646
+ "application/json": {
30647
+ /** @description The pay plan template id (compensation_plans.list) */
30648
+ plan_id: number;
30649
+ };
30650
+ };
30651
+ };
30652
+ responses: {
30653
+ /** @description The operation ran. */
30654
+ 200: {
30655
+ headers: {
30656
+ [name: string]: unknown;
30657
+ };
30658
+ content: {
30659
+ /**
30660
+ * @example {
30661
+ * "result": {
30662
+ * "id": 1,
30663
+ * "name": "Starter CPM",
30664
+ * "tax_classification": "1099",
30665
+ * "compensation_strategy": "mileage",
30666
+ * "supports_team_pay": false,
30667
+ * "versions": [
30668
+ * {
30669
+ * "id": 1,
30670
+ * "plan_id": 1,
30671
+ * "effective_from": "2026-01-01",
30672
+ * "effective_to": null
30673
+ * }
30674
+ * ],
30675
+ * "pay_items": [
30676
+ * {
30677
+ * "id": 1,
30678
+ * "component_type": "mileage_pay",
30679
+ * "configuration": {
30680
+ * "rate_per_mile": 0.65,
30681
+ * "basis": "total",
30682
+ * "pay_empty_miles": true
30683
+ * },
30684
+ * "locked": false
30685
+ * },
30686
+ * {
30687
+ * "id": 2,
30688
+ * "component_type": "stop_pay",
30689
+ * "configuration": {
30690
+ * "amount_per_stop": 50
30691
+ * },
30692
+ * "locked": true
30693
+ * }
30694
+ * ],
30695
+ * "stacking_groups": [
30696
+ * {
30697
+ * "id": 1,
30698
+ * "name": "Base load pay",
30699
+ * "group_behavior": "contribute",
30700
+ * "interaction_mode": "higher_of",
30701
+ * "component_types": [
30702
+ * "mileage_pay",
30703
+ * "minimum_load_pay"
30704
+ * ],
30705
+ * "locked": false
30706
+ * },
30707
+ * {
30708
+ * "id": 2,
30709
+ * "name": "Waiting time",
30710
+ * "group_behavior": "contribute",
30711
+ * "interaction_mode": "additive",
30712
+ * "component_types": [
30713
+ * "detention_pay",
30714
+ * "layover_pay"
30715
+ * ],
30716
+ * "locked": true
30717
+ * }
30718
+ * ],
30719
+ * "assignments": [
30720
+ * {
30721
+ * "id": 1,
30722
+ * "driver_user_id": 2,
30723
+ * "effective_from": "2026-03-01",
30724
+ * "effective_to": null
30725
+ * }
30726
+ * ],
30727
+ * "progression_rule": {
30728
+ * "id": 1,
30729
+ * "target_plan_id": 3,
30730
+ * "trigger_condition": "time_on_plan",
30731
+ * "period_count": 4,
30732
+ * "period_unit": "weeks",
30733
+ * "apply_mode": "require_approval"
30734
+ * },
30735
+ * "pending_raises": [
30736
+ * {
30737
+ * "id": 1,
30738
+ * "driver_user_id": 2,
30739
+ * "target_plan_id": 3,
30740
+ * "graduation_date": "2026-03-31"
30741
+ * }
30742
+ * ]
30743
+ * }
30744
+ * }
30745
+ */
30746
+ "application/json": {
30747
+ result: {
30748
+ /** @description The pay plan id */
30749
+ id: number;
30750
+ /** @description Plan name */
30751
+ name: string;
30752
+ /** @description w2 or 1099 */
30753
+ tax_classification: string;
30754
+ /** @description Pay method */
30755
+ compensation_strategy: string;
30756
+ /** @description Pays team loads by seat */
30757
+ supports_team_pay: boolean;
30758
+ /** @description Plan versions of the plan family, oldest first */
30759
+ versions: {
30760
+ /** @description Plan version id */
30761
+ id: number;
30762
+ /** @description The plan row the version points at */
30763
+ plan_id: number;
30764
+ /**
30765
+ * Format: date
30766
+ * @description First day
30767
+ */
30768
+ effective_from: string;
30769
+ /**
30770
+ * Format: date
30771
+ * @description Last day; empty while it is the latest
30772
+ */
30773
+ effective_to?: string | null;
30774
+ }[];
30775
+ /** @description Pay rules (pay items) */
30776
+ pay_items: {
30777
+ /** @description Pay rule id */
30778
+ id: number;
30779
+ /** @description Pay rule type */
30780
+ component_type: string;
30781
+ /** @description Rates as stored, including Team Pay */
30782
+ configuration: Record<string, never>;
30783
+ /** @description Used in payroll; its rates are frozen */
30784
+ locked: boolean;
30785
+ }[];
30786
+ /** @description Stacking groups in order */
30787
+ stacking_groups: {
30788
+ /** @description Stacking group id */
30789
+ id: number;
30790
+ /** @description Group name */
30791
+ name: string;
30792
+ /** @description How the group sits with the others */
30793
+ group_behavior: string;
30794
+ /** @description How its pay rules combine */
30795
+ interaction_mode: string;
30796
+ /** @description Pay rule types in the group */
30797
+ component_types: unknown[];
30798
+ /** @description Used in payroll; frozen */
30799
+ locked: boolean;
30800
+ }[];
30801
+ /** @description Driver assignments, newest first */
30802
+ assignments: {
30803
+ /** @description Assignment row id */
30804
+ id: number;
30805
+ /** @description The driver */
30806
+ driver_user_id: number;
30807
+ /**
30808
+ * Format: date
30809
+ * @description First day on the plan
30810
+ */
30811
+ effective_from: string;
30812
+ /**
30813
+ * Format: date
30814
+ * @description Last day; empty while current
30815
+ */
30816
+ effective_to?: string | null;
30817
+ }[];
30818
+ /** @description The active pay progression rule, if any */
30819
+ progression_rule?: {
30820
+ /** @description Pay progression rule id */
30821
+ id: number;
30822
+ /** @description The plan drivers move to */
30823
+ target_plan_id: number;
30824
+ /** @description What starts the clock */
30825
+ trigger_condition: string;
30826
+ /** @description Periods before the raise */
30827
+ period_count: number;
30828
+ /** @description Period unit */
30829
+ period_unit: string;
30830
+ /** @description automatic or require_approval */
30831
+ apply_mode: string;
30832
+ } | null;
30833
+ /** @description Raises waiting for approval */
30834
+ pending_raises: {
30835
+ /** @description Raise id, for progression_events.approve or dismiss */
30836
+ id: number;
30837
+ /** @description The driver */
30838
+ driver_user_id: number;
30839
+ /** @description The plan the driver would move to */
30840
+ target_plan_id: number;
30841
+ /**
30842
+ * Format: date
30843
+ * @description When the raise applies
30844
+ */
30845
+ graduation_date: string;
30846
+ }[];
30445
30847
  };
30446
30848
  };
30447
30849
  };
@@ -66422,7 +66824,11 @@ export interface operations {
66422
66824
  * "at": "2026-10-20T14:00:00Z"
66423
66825
  * }
66424
66826
  * ],
66425
- * "has_older_messages": false
66827
+ * "has_older_messages": false,
66828
+ * "candidate_id": null,
66829
+ * "agents": [],
66830
+ * "send_takes_over": null,
66831
+ * "text_feed": null
66426
66832
  * }
66427
66833
  * }
66428
66834
  */
@@ -68237,6 +68643,192 @@ export interface operations {
68237
68643
  };
68238
68644
  };
68239
68645
  };
68646
+ "ops.inbox.conversations.split_message": {
68647
+ parameters: {
68648
+ query?: never;
68649
+ header?: {
68650
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
68651
+ "Idempotency-Key"?: string;
68652
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
68653
+ "Axivoy-Dry-Run"?: "true" | "false";
68654
+ };
68655
+ path?: never;
68656
+ cookie?: never;
68657
+ };
68658
+ requestBody?: {
68659
+ content: {
68660
+ /**
68661
+ * @example {
68662
+ * "thread_id": 1,
68663
+ * "inbound_message_id": 9
68664
+ * }
68665
+ */
68666
+ "application/json": {
68667
+ /** @description The conversation */
68668
+ thread_id: number;
68669
+ /** @description A received email on the conversation (from inbox.conversations.get) */
68670
+ inbound_message_id: number;
68671
+ };
68672
+ };
68673
+ };
68674
+ responses: {
68675
+ /** @description The operation ran. */
68676
+ 200: {
68677
+ headers: {
68678
+ [name: string]: unknown;
68679
+ };
68680
+ content: {
68681
+ /**
68682
+ * @example {
68683
+ * "result": {
68684
+ * "ok": true,
68685
+ * "message": "Moved the email to its own conversation.",
68686
+ * "conversation": {
68687
+ * "id": 1,
68688
+ * "channel": "email",
68689
+ * "subject": "Invoice INV-9",
68690
+ * "queue_key": "receivables",
68691
+ * "queue_keys": [
68692
+ * "receivables"
68693
+ * ],
68694
+ * "state": "awaiting_reply",
68695
+ * "assigned_user_id": null,
68696
+ * "member_user_ids": [],
68697
+ * "screened_category": null,
68698
+ * "related_type": null,
68699
+ * "related_id": null,
68700
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
68701
+ * "last_inbound_at": "2026-10-20T14:00:00Z",
68702
+ * "last_outbound_at": null,
68703
+ * "closed_at": null
68704
+ * },
68705
+ * "new_thread_id": 9
68706
+ * }
68707
+ * }
68708
+ */
68709
+ "application/json": {
68710
+ result: {
68711
+ /** @description True when the change was made */
68712
+ ok: boolean;
68713
+ /** @description What happened, ready to show a person */
68714
+ message: string;
68715
+ /** @description The conversation as it now stands */
68716
+ conversation: {
68717
+ /** @description Conversation id (thread_id on every conversation operation) */
68718
+ id: number;
68719
+ /** @description email or sms */
68720
+ channel?: string | null;
68721
+ /** @description Subject as the outside party wrote it */
68722
+ subject?: string | null;
68723
+ /** @description Home team */
68724
+ queue_key?: string | null;
68725
+ /** @description Home team first, then the teams it is also in */
68726
+ queue_keys: unknown[];
68727
+ /** @description open, awaiting_reply or closed */
68728
+ state: string;
68729
+ /** @description Owner */
68730
+ assigned_user_id?: number | null;
68731
+ /** @description Owner and everyone it is shared with */
68732
+ member_user_ids: unknown[];
68733
+ /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
68734
+ screened_category?: string | null;
68735
+ /** @description Linked record type, for example load or customer_invoice */
68736
+ related_type?: string | null;
68737
+ /** @description Linked record id */
68738
+ related_id?: number | null;
68739
+ /**
68740
+ * Format: date-time
68741
+ * @description When the outside party started waiting on us
68742
+ */
68743
+ awaiting_reply_since?: string | null;
68744
+ /**
68745
+ * Format: date-time
68746
+ * @description Last message received
68747
+ */
68748
+ last_inbound_at?: string | null;
68749
+ /**
68750
+ * Format: date-time
68751
+ * @description Last message sent
68752
+ */
68753
+ last_outbound_at?: string | null;
68754
+ /**
68755
+ * Format: date-time
68756
+ * @description When it was closed
68757
+ */
68758
+ closed_at?: string | null;
68759
+ };
68760
+ /** @description The new conversation that now holds the email */
68761
+ new_thread_id: number;
68762
+ };
68763
+ };
68764
+ };
68765
+ };
68766
+ 202: components["responses"]["Proposal"];
68767
+ /** @description Refused: credits_exhausted. */
68768
+ 402: {
68769
+ headers: {
68770
+ [name: string]: unknown;
68771
+ };
68772
+ content: {
68773
+ "application/json": components["schemas"]["OperationError"];
68774
+ };
68775
+ };
68776
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
68777
+ 403: {
68778
+ headers: {
68779
+ [name: string]: unknown;
68780
+ };
68781
+ content: {
68782
+ "application/json": components["schemas"]["OperationError"];
68783
+ };
68784
+ };
68785
+ /** @description Refused: not_found. */
68786
+ 404: {
68787
+ headers: {
68788
+ [name: string]: unknown;
68789
+ };
68790
+ content: {
68791
+ "application/json": components["schemas"]["OperationError"];
68792
+ };
68793
+ };
68794
+ /** @description Refused: idempotency_conflict, stale_state. */
68795
+ 409: {
68796
+ headers: {
68797
+ [name: string]: unknown;
68798
+ };
68799
+ content: {
68800
+ "application/json": components["schemas"]["OperationError"];
68801
+ };
68802
+ };
68803
+ /** @description Refused: operation_retired. */
68804
+ 410: {
68805
+ headers: {
68806
+ [name: string]: unknown;
68807
+ };
68808
+ content: {
68809
+ "application/json": components["schemas"]["OperationError"];
68810
+ };
68811
+ };
68812
+ /** @description Refused: invalid_input, domain_rule. */
68813
+ 422: {
68814
+ headers: {
68815
+ [name: string]: unknown;
68816
+ };
68817
+ content: {
68818
+ "application/json": components["schemas"]["OperationError"];
68819
+ };
68820
+ };
68821
+ /** @description Refused: rate_limited. */
68822
+ 429: {
68823
+ headers: {
68824
+ [name: string]: unknown;
68825
+ };
68826
+ content: {
68827
+ "application/json": components["schemas"]["OperationError"];
68828
+ };
68829
+ };
68830
+ };
68831
+ };
68240
68832
  "ops.inbox.conversations.transfer_queue": {
68241
68833
  parameters: {
68242
68834
  query?: never;
@@ -85243,7 +85835,7 @@ export interface operations {
85243
85835
  };
85244
85836
  };
85245
85837
  };
85246
- "ops.loads.trip_stops.schedule.update": {
85838
+ "ops.loads.trip_stops.save": {
85247
85839
  parameters: {
85248
85840
  query?: never;
85249
85841
  header?: {
@@ -85260,28 +85852,104 @@ export interface operations {
85260
85852
  /**
85261
85853
  * @example {
85262
85854
  * "load_id": 1,
85263
- * "stop_id": 1,
85264
- * "scheduling_mode": "fcfs",
85265
- * "window_begin_at": "2026-10-20T06:00",
85266
- * "window_end_at": "2026-10-20T14:00"
85855
+ * "route_structure_version": 0,
85856
+ * "insert_after_stop_id": 1,
85857
+ * "facility": {
85858
+ * "facility_mode": "link",
85859
+ * "location_id": 1
85860
+ * },
85861
+ * "schedule": {
85862
+ * "scheduling_mode": "appointment",
85863
+ * "appointment_at": "2026-10-21T09:00"
85864
+ * },
85865
+ * "references": {
85866
+ * "reference_values": {
85867
+ * "pickup_number": "PU-456"
85868
+ * }
85869
+ * }
85267
85870
  * }
85268
85871
  */
85269
85872
  "application/json": {
85270
85873
  /** @description Load id */
85271
85874
  load_id: number;
85272
- /** @description Stop id on a trip segment of the load */
85273
- stop_id: number;
85875
+ /** @description Stop to save; leave out to add a new stop */
85876
+ stop_id?: number | null;
85877
+ /** @description Route version the change was made against; required when adding a stop or changing its type */
85878
+ route_structure_version?: number | null;
85879
+ /** @description Trip segment for a new stop; defaults to the main trip */
85880
+ trip_id?: number | null;
85881
+ /** @description Add the new stop right after this stop */
85882
+ insert_after_stop_id?: number | null;
85883
+ /** @description Add the new stop right before this stop; with neither, it goes after the last upcoming stop */
85884
+ insert_before_stop_id?: number | null;
85274
85885
  /**
85275
- * @description appointment for a set time, fcfs for a window
85276
- * @enum {string}
85886
+ * @description Stop type; a new stop defaults to delivery
85887
+ * @enum {string|null}
85277
85888
  */
85278
- scheduling_mode: "appointment" | "fcfs";
85279
- /** @description Appointment time, facility local (appointment mode) */
85280
- appointment_at?: string | null;
85281
- /** @description Window start, facility local (fcfs mode) */
85282
- window_begin_at?: string | null;
85283
- /** @description Window end, facility local (fcfs mode) */
85284
- window_end_at?: string | null;
85889
+ stop_type?: "pickup" | "delivery" | "waypoint" | null;
85890
+ /** @description The site: the inputs of loads.trip_stops.facility.update */
85891
+ facility?: {
85892
+ /**
85893
+ * @description link a saved site or create a new one; defaults to link when location_id is given
85894
+ * @enum {string|null}
85895
+ */
85896
+ facility_mode?: "link" | "new" | null;
85897
+ /** @description Saved customer site id (link mode) */
85898
+ location_id?: number | null;
85899
+ /** @description Company the new site belongs to (new mode) */
85900
+ parent_organization_id?: string | null;
85901
+ /** @description Confirm creating a new company for the site (new mode) */
85902
+ confirm_mint_parent?: boolean;
85903
+ /** @description The new site (new mode) */
85904
+ new_site?: {
85905
+ /** @description Facility name */
85906
+ company_name?: string | null;
85907
+ /** @description Street address */
85908
+ address_line1?: string | null;
85909
+ /** @description Suite or unit */
85910
+ address_line2?: string | null;
85911
+ /** @description City */
85912
+ city?: string | null;
85913
+ /** @description State */
85914
+ state?: string | null;
85915
+ /** @description ZIP or postal code */
85916
+ postal_code?: string | null;
85917
+ /** @description Existing company id for the site */
85918
+ organization_id?: number | null;
85919
+ } | null;
85920
+ } | null;
85921
+ /** @description scheduling_mode, appointment_at, window_begin_at, window_end_at, facility local */
85922
+ schedule?: {
85923
+ /**
85924
+ * @description appointment for a set time, fcfs for a window
85925
+ * @enum {string}
85926
+ */
85927
+ scheduling_mode: "appointment" | "fcfs";
85928
+ /** @description Appointment time, facility local (appointment mode) */
85929
+ appointment_at?: string | null;
85930
+ /** @description Window start, facility local (fcfs mode) */
85931
+ window_begin_at?: string | null;
85932
+ /** @description Window end, facility local (fcfs mode) */
85933
+ window_end_at?: string | null;
85934
+ } | null;
85935
+ /** @description reference_values and reference_labels, as in loads.trip_stops.references.update */
85936
+ references?: {
85937
+ /** @description Reference numbers keyed by reference type (or existing row id), each up to 128 characters */
85938
+ reference_values?: Record<string, never>;
85939
+ /** @description Custom labels keyed the same way as reference_values */
85940
+ reference_labels?: Record<string, never>;
85941
+ } | null;
85942
+ /** @description eta_at, arrived_at, departed_at, facility local */
85943
+ times?: {
85944
+ /** @description ETA, facility local; blank leaves it as it is */
85945
+ eta_at?: string | null;
85946
+ /** @description Arrival time, facility local; blank leaves it as it is */
85947
+ arrived_at?: string | null;
85948
+ /** @description Departure time, facility local; blank leaves it as it is */
85949
+ departed_at?: string | null;
85950
+ } | null;
85951
+ /** @description Save even when stop times would be out of order */
85952
+ acknowledge_schedule_conflict?: boolean;
85285
85953
  };
85286
85954
  };
85287
85955
  };
@@ -85298,8 +85966,13 @@ export interface operations {
85298
85966
  * "load_id": 1,
85299
85967
  * "load_number": "AX-API-0001",
85300
85968
  * "operational_status": "open",
85301
- * "updated_at": "2026-10-19T06:53:25Z",
85302
- * "stop_id": 1
85969
+ * "updated_at": "2026-10-29T10:02:40Z",
85970
+ * "stop_id": 3,
85971
+ * "created": true,
85972
+ * "location_id": 1,
85973
+ * "route_structure_version": 1,
85974
+ * "schedule_conflicts": [],
85975
+ * "warnings": []
85303
85976
  * }
85304
85977
  * }
85305
85978
  */
@@ -85316,8 +85989,28 @@ export interface operations {
85316
85989
  * @description When the load row last changed
85317
85990
  */
85318
85991
  updated_at?: string | null;
85319
- /** @description Stop id */
85992
+ /** @description The saved stop */
85320
85993
  stop_id: number;
85994
+ /** @description True when the save added the stop */
85995
+ created: boolean;
85996
+ /** @description Customer site the stop is linked to after the save */
85997
+ location_id?: number | null;
85998
+ /** @description Route version after the save */
85999
+ route_structure_version: number;
86000
+ /** @description Acknowledged stop times now out of order */
86001
+ schedule_conflicts: {
86002
+ /** @description Earlier stop */
86003
+ before_stop_id: number;
86004
+ /** @description Later stop scheduled before it */
86005
+ after_stop_id: number;
86006
+ /** @description What is out of order */
86007
+ message: string;
86008
+ }[];
86009
+ /** @description Things still missing to complete the stop, such as documents */
86010
+ warnings: {
86011
+ /** @description Warning text */
86012
+ message: string;
86013
+ }[];
85321
86014
  };
85322
86015
  };
85323
86016
  };
@@ -85388,7 +86081,7 @@ export interface operations {
85388
86081
  };
85389
86082
  };
85390
86083
  };
85391
- "ops.loads.trip_stops.schedule_actuals.update": {
86084
+ "ops.loads.trip_stops.schedule.update": {
85392
86085
  parameters: {
85393
86086
  query?: never;
85394
86087
  header?: {
@@ -85406,9 +86099,9 @@ export interface operations {
85406
86099
  * @example {
85407
86100
  * "load_id": 1,
85408
86101
  * "stop_id": 1,
85409
- * "scheduling_mode": "appointment",
85410
- * "appointment_at": "2026-10-15T08:00",
85411
- * "arrived_at": "2026-10-15T08:10"
86102
+ * "scheduling_mode": "fcfs",
86103
+ * "window_begin_at": "2026-10-20T06:00",
86104
+ * "window_end_at": "2026-10-20T14:00"
85412
86105
  * }
85413
86106
  */
85414
86107
  "application/json": {
@@ -85427,12 +86120,6 @@ export interface operations {
85427
86120
  window_begin_at?: string | null;
85428
86121
  /** @description Window end, facility local (fcfs mode) */
85429
86122
  window_end_at?: string | null;
85430
- /** @description ETA, facility local */
85431
- eta_at?: string | null;
85432
- /** @description Arrival time, facility local */
85433
- arrived_at?: string | null;
85434
- /** @description Departure time, facility local */
85435
- departed_at?: string | null;
85436
86123
  };
85437
86124
  };
85438
86125
  };
@@ -85449,9 +86136,8 @@ export interface operations {
85449
86136
  * "load_id": 1,
85450
86137
  * "load_number": "AX-API-0001",
85451
86138
  * "operational_status": "open",
85452
- * "updated_at": "2026-10-19T06:53:24Z",
85453
- * "stop_id": 1,
85454
- * "warnings": []
86139
+ * "updated_at": "2026-10-19T06:53:25Z",
86140
+ * "stop_id": 1
85455
86141
  * }
85456
86142
  * }
85457
86143
  */
@@ -85470,11 +86156,163 @@ export interface operations {
85470
86156
  updated_at?: string | null;
85471
86157
  /** @description Stop id */
85472
86158
  stop_id: number;
85473
- /** @description Things still missing to complete the stop, such as documents */
85474
- warnings: {
85475
- /** @description Warning text */
85476
- message: string;
85477
- }[];
86159
+ };
86160
+ };
86161
+ };
86162
+ };
86163
+ 202: components["responses"]["Proposal"];
86164
+ /** @description Refused: credits_exhausted. */
86165
+ 402: {
86166
+ headers: {
86167
+ [name: string]: unknown;
86168
+ };
86169
+ content: {
86170
+ "application/json": components["schemas"]["OperationError"];
86171
+ };
86172
+ };
86173
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
86174
+ 403: {
86175
+ headers: {
86176
+ [name: string]: unknown;
86177
+ };
86178
+ content: {
86179
+ "application/json": components["schemas"]["OperationError"];
86180
+ };
86181
+ };
86182
+ /** @description Refused: not_found. */
86183
+ 404: {
86184
+ headers: {
86185
+ [name: string]: unknown;
86186
+ };
86187
+ content: {
86188
+ "application/json": components["schemas"]["OperationError"];
86189
+ };
86190
+ };
86191
+ /** @description Refused: idempotency_conflict, stale_state. */
86192
+ 409: {
86193
+ headers: {
86194
+ [name: string]: unknown;
86195
+ };
86196
+ content: {
86197
+ "application/json": components["schemas"]["OperationError"];
86198
+ };
86199
+ };
86200
+ /** @description Refused: operation_retired. */
86201
+ 410: {
86202
+ headers: {
86203
+ [name: string]: unknown;
86204
+ };
86205
+ content: {
86206
+ "application/json": components["schemas"]["OperationError"];
86207
+ };
86208
+ };
86209
+ /** @description Refused: invalid_input, domain_rule. */
86210
+ 422: {
86211
+ headers: {
86212
+ [name: string]: unknown;
86213
+ };
86214
+ content: {
86215
+ "application/json": components["schemas"]["OperationError"];
86216
+ };
86217
+ };
86218
+ /** @description Refused: rate_limited. */
86219
+ 429: {
86220
+ headers: {
86221
+ [name: string]: unknown;
86222
+ };
86223
+ content: {
86224
+ "application/json": components["schemas"]["OperationError"];
86225
+ };
86226
+ };
86227
+ };
86228
+ };
86229
+ "ops.loads.trip_stops.schedule_actuals.update": {
86230
+ parameters: {
86231
+ query?: never;
86232
+ header?: {
86233
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
86234
+ "Idempotency-Key"?: string;
86235
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
86236
+ "Axivoy-Dry-Run"?: "true" | "false";
86237
+ };
86238
+ path?: never;
86239
+ cookie?: never;
86240
+ };
86241
+ requestBody?: {
86242
+ content: {
86243
+ /**
86244
+ * @example {
86245
+ * "load_id": 1,
86246
+ * "stop_id": 1,
86247
+ * "scheduling_mode": "appointment",
86248
+ * "appointment_at": "2026-10-15T08:00",
86249
+ * "arrived_at": "2026-10-15T08:10"
86250
+ * }
86251
+ */
86252
+ "application/json": {
86253
+ /** @description Load id */
86254
+ load_id: number;
86255
+ /** @description Stop id on a trip segment of the load */
86256
+ stop_id: number;
86257
+ /**
86258
+ * @description appointment for a set time, fcfs for a window
86259
+ * @enum {string}
86260
+ */
86261
+ scheduling_mode: "appointment" | "fcfs";
86262
+ /** @description Appointment time, facility local (appointment mode) */
86263
+ appointment_at?: string | null;
86264
+ /** @description Window start, facility local (fcfs mode) */
86265
+ window_begin_at?: string | null;
86266
+ /** @description Window end, facility local (fcfs mode) */
86267
+ window_end_at?: string | null;
86268
+ /** @description ETA, facility local */
86269
+ eta_at?: string | null;
86270
+ /** @description Arrival time, facility local */
86271
+ arrived_at?: string | null;
86272
+ /** @description Departure time, facility local */
86273
+ departed_at?: string | null;
86274
+ };
86275
+ };
86276
+ };
86277
+ responses: {
86278
+ /** @description The operation ran. */
86279
+ 200: {
86280
+ headers: {
86281
+ [name: string]: unknown;
86282
+ };
86283
+ content: {
86284
+ /**
86285
+ * @example {
86286
+ * "result": {
86287
+ * "load_id": 1,
86288
+ * "load_number": "AX-API-0001",
86289
+ * "operational_status": "open",
86290
+ * "updated_at": "2026-10-19T06:53:24Z",
86291
+ * "stop_id": 1,
86292
+ * "warnings": []
86293
+ * }
86294
+ * }
86295
+ */
86296
+ "application/json": {
86297
+ result: {
86298
+ /** @description Load id */
86299
+ load_id: number;
86300
+ /** @description Load number shown to people */
86301
+ load_number?: string | null;
86302
+ /** @description Execution status after the change */
86303
+ operational_status?: string | null;
86304
+ /**
86305
+ * Format: date-time
86306
+ * @description When the load row last changed
86307
+ */
86308
+ updated_at?: string | null;
86309
+ /** @description Stop id */
86310
+ stop_id: number;
86311
+ /** @description Things still missing to complete the stop, such as documents */
86312
+ warnings: {
86313
+ /** @description Warning text */
86314
+ message: string;
86315
+ }[];
85478
86316
  };
85479
86317
  };
85480
86318
  };
@@ -93485,6 +94323,8 @@ export interface operations {
93485
94323
  same_visit_work_order_ids?: number[] | null;
93486
94324
  /** @description Repairs on other units that travel with a picked open repair */
93487
94325
  same_visit_companion_ids?: number[] | null;
94326
+ /** @description The due services this report counts toward (state ids from maintenance.repairs.due_service_matches). Leave it out to count every match; an empty list counts none */
94327
+ counts_for_state_ids?: number[] | null;
93488
94328
  };
93489
94329
  };
93490
94330
  };
@@ -93506,7 +94346,9 @@ export interface operations {
93506
94346
  * "message": "Reported.",
93507
94347
  * "warnings": [],
93508
94348
  * "shop_picked": false,
93509
- * "paperwork_failed": false
94349
+ * "paperwork_failed": false,
94350
+ * "counts_for": [],
94351
+ * "routed_from": null
93510
94352
  * }
93511
94353
  * }
93512
94354
  */
@@ -93532,6 +94374,19 @@ export interface operations {
93532
94374
  shop_picked: boolean;
93533
94375
  /** @description The repair was reported but the shop order did not go out; message says why */
93534
94376
  paperwork_failed: boolean;
94377
+ /** @description The due services this repair counts toward */
94378
+ counts_for: {
94379
+ /** @description Due state id of the service counted */
94380
+ state_id: number;
94381
+ /** @description PM schedule */
94382
+ schedule_id: number;
94383
+ /** @description Schedule name */
94384
+ title: string;
94385
+ /** @description The unit number the service is on */
94386
+ unit_label: string;
94387
+ }[];
94388
+ /** @description The unit picked, when the repair was filed on the reefer unit installed on it */
94389
+ routed_from?: string | null;
93535
94390
  };
93536
94391
  };
93537
94392
  };
@@ -93602,7 +94457,7 @@ export interface operations {
93602
94457
  };
93603
94458
  };
93604
94459
  };
93605
- "ops.maintenance.repairs.mark_paid": {
94460
+ "ops.maintenance.repairs.due_service_matches": {
93606
94461
  parameters: {
93607
94462
  query?: never;
93608
94463
  header?: {
@@ -93618,20 +94473,27 @@ export interface operations {
93618
94473
  content: {
93619
94474
  /**
93620
94475
  * @example {
93621
- * "work_order_id": 7,
93622
- * "paid_on": "2026-09-30",
93623
- * "paid_reference": "Check 1188"
94476
+ * "unit_type": "truck",
94477
+ * "unit_id": 1,
94478
+ * "task_ids": [
94479
+ * 2
94480
+ * ]
93624
94481
  * }
93625
94482
  */
93626
94483
  "application/json": {
93627
- /** @description The repair (work order) id */
93628
- work_order_id: number;
93629
- /** @description The day it was paid (YYYY-MM-DD); blank is today */
93630
- paid_on?: string | null;
93631
- /** @description Check number or payment reference */
93632
- paid_reference?: string | null;
93633
- /** @description Orders of the other repairs on the same trip to mark paid too */
93634
- orders?: number[] | null;
94484
+ /**
94485
+ * @description truck, trailer or a reefer unit (equipment_component)
94486
+ * @enum {string}
94487
+ */
94488
+ unit_type: "truck" | "trailer" | "equipment_component";
94489
+ /** @description The unit the problem was reported on */
94490
+ unit_id: number;
94491
+ /** @description The picked jobs (up to 3) */
94492
+ task_ids?: number[] | null;
94493
+ /** @description Jobs picked by code only (up to 3) */
94494
+ maintenance_codes?: string[] | null;
94495
+ /** @description The repair being edited, so the services it already counts still show */
94496
+ work_order_id?: number | null;
93635
94497
  };
93636
94498
  };
93637
94499
  };
@@ -93645,43 +94507,64 @@ export interface operations {
93645
94507
  /**
93646
94508
  * @example {
93647
94509
  * "result": {
93648
- * "work_order": {
93649
- * "id": 7,
93650
- * "number": "WO-65007",
93651
- * "status": "completed"
93652
- * },
93653
- * "message": "Paid. This repair is now under Done.",
93654
- * "warnings": [],
93655
- * "paid_orders": [
93656
- * {
93657
- * "id": 3
93658
- * }
93659
- * ]
94510
+ * "matches": [],
94511
+ * "file_on": null,
94512
+ * "warnings": []
93660
94513
  * }
93661
94514
  * }
93662
94515
  */
93663
94516
  "application/json": {
93664
94517
  result: {
93665
- /** @description The repair after the change */
93666
- work_order: {
93667
- /** @description Work order id */
93668
- id: number;
93669
- /** @description Work order number as people see it (WO-1042) */
93670
- number: string;
93671
- /** @description Work order status after the change */
94518
+ /** @description Due services on the unit (or its installed reefer unit) that the picked jobs would count toward */
94519
+ matches: {
94520
+ /** @description Pass in counts_for_state_ids to count it */
94521
+ state_id: number;
94522
+ /** @description PM schedule */
94523
+ schedule_id: number;
94524
+ /** @description Schedule name */
94525
+ title: string;
94526
+ /** @description The unit the service is on */
94527
+ unit: {
94528
+ /** @description truck, trailer or equipment_component (a reefer unit) */
94529
+ type: string;
94530
+ /** @description The unit id */
94531
+ id: number;
94532
+ /** @description The unit number */
94533
+ label: string;
94534
+ };
94535
+ /** @description The service is on the reefer unit installed on the unit asked about */
94536
+ on_installed_unit: boolean;
94537
+ /** @description Which picked job the service would count for */
94538
+ claimed_by: {
94539
+ /** @description The picked job that matches the service; null when a bare code does */
94540
+ task_id?: number | null;
94541
+ /** @description The picked code that matches the service; null when a job does */
94542
+ maintenance_code?: string | null;
94543
+ };
94544
+ /** @description ok, due_soon, overdue, meter_unknown or never_serviced */
93672
94545
  status: string;
93673
- };
93674
- /** @description What happened, in the operator's words */
93675
- message: string;
93676
- /** @description What did not go through; empty when everything did */
93677
- warnings: {
93678
- /** @description One thing that did not go through */
93679
- message: string;
94546
+ /** @description The due state in words */
94547
+ status_label: string;
94548
+ /** @description Status tone for the due state */
94549
+ tone: string;
94550
+ /** @description How far from due (for example Due in 53 hr); blank when nothing is measurable */
94551
+ due_line: string;
93680
94552
  }[];
93681
- /** @description The orders marked paid */
93682
- paid_orders: {
93683
- /** @description Purchase order id */
94553
+ /** @description The reefer unit the repair is filed on when every job is that unit's service; null otherwise */
94554
+ file_on?: {
94555
+ /** @description equipment_component (a reefer unit) */
94556
+ type: string;
94557
+ /** @description The reefer unit id */
93684
94558
  id: number;
94559
+ /** @description The reefer unit number */
94560
+ label: string;
94561
+ /** @description The reefer unit number and the unit it is installed on, as one label */
94562
+ full_label: string;
94563
+ } | null;
94564
+ /** @description Reefer unit services that would not count on this unit */
94565
+ warnings: {
94566
+ /** @description Why a reefer unit service would not count, as a sentence */
94567
+ message: string;
93685
94568
  }[];
93686
94569
  };
93687
94570
  };
@@ -93753,7 +94636,7 @@ export interface operations {
93753
94636
  };
93754
94637
  };
93755
94638
  };
93756
- "ops.maintenance.repairs.report.update": {
94639
+ "ops.maintenance.repairs.mark_paid": {
93757
94640
  parameters: {
93758
94641
  query?: never;
93759
94642
  header?: {
@@ -93769,37 +94652,20 @@ export interface operations {
93769
94652
  content: {
93770
94653
  /**
93771
94654
  * @example {
93772
- * "work_order_id": 3,
93773
- * "problem_note": "Coolant leak, worse in the morning.",
93774
- * "emergency": true,
93775
- * "tasks": [
93776
- * {
93777
- * "task_id": 2,
93778
- * "source": "manual"
93779
- * }
93780
- * ]
94655
+ * "work_order_id": 7,
94656
+ * "paid_on": "2026-09-30",
94657
+ * "paid_reference": "Check 1188"
93781
94658
  * }
93782
94659
  */
93783
94660
  "application/json": {
93784
94661
  /** @description The repair (work order) id */
93785
94662
  work_order_id: number;
93786
- /** @description What is wrong, in your words */
93787
- problem_note: string | null;
93788
- /** @description The unit cannot run */
93789
- emergency?: boolean | null;
93790
- /** @description The whole job list, in order; each is a job or a code, never both */
93791
- tasks?: {
93792
- /** @description A job from the task catalog */
93793
- task_id?: number | null;
93794
- /** @description A bare maintenance code instead of a job */
93795
- maintenance_code?: string | null;
93796
- /** @description Free text on a diagnose line */
93797
- qualifier?: string | null;
93798
- /** @description How the job was picked: manual or suggested */
93799
- source?: string | null;
93800
- /** @description The suggestion confidence, 0 to 1 */
93801
- confidence?: number | null;
93802
- }[] | null;
94663
+ /** @description The day it was paid (YYYY-MM-DD); blank is today */
94664
+ paid_on?: string | null;
94665
+ /** @description Check number or payment reference */
94666
+ paid_reference?: string | null;
94667
+ /** @description Orders of the other repairs on the same trip to mark paid too */
94668
+ orders?: number[] | null;
93803
94669
  };
93804
94670
  };
93805
94671
  };
@@ -93814,13 +94680,184 @@ export interface operations {
93814
94680
  * @example {
93815
94681
  * "result": {
93816
94682
  * "work_order": {
93817
- * "id": 3,
93818
- * "number": "WO-65003",
93819
- * "status": "open"
94683
+ * "id": 7,
94684
+ * "number": "WO-65007",
94685
+ * "status": "completed"
93820
94686
  * },
93821
- * "message": "Saved.",
94687
+ * "message": "Paid. This repair is now under Done.",
93822
94688
  * "warnings": [],
93823
- * "order_reissued": false
94689
+ * "paid_orders": [
94690
+ * {
94691
+ * "id": 3
94692
+ * }
94693
+ * ]
94694
+ * }
94695
+ * }
94696
+ */
94697
+ "application/json": {
94698
+ result: {
94699
+ /** @description The repair after the change */
94700
+ work_order: {
94701
+ /** @description Work order id */
94702
+ id: number;
94703
+ /** @description Work order number as people see it (WO-1042) */
94704
+ number: string;
94705
+ /** @description Work order status after the change */
94706
+ status: string;
94707
+ };
94708
+ /** @description What happened, in the operator's words */
94709
+ message: string;
94710
+ /** @description What did not go through; empty when everything did */
94711
+ warnings: {
94712
+ /** @description One thing that did not go through */
94713
+ message: string;
94714
+ }[];
94715
+ /** @description The orders marked paid */
94716
+ paid_orders: {
94717
+ /** @description Purchase order id */
94718
+ id: number;
94719
+ }[];
94720
+ };
94721
+ };
94722
+ };
94723
+ };
94724
+ 202: components["responses"]["Proposal"];
94725
+ /** @description Refused: credits_exhausted. */
94726
+ 402: {
94727
+ headers: {
94728
+ [name: string]: unknown;
94729
+ };
94730
+ content: {
94731
+ "application/json": components["schemas"]["OperationError"];
94732
+ };
94733
+ };
94734
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
94735
+ 403: {
94736
+ headers: {
94737
+ [name: string]: unknown;
94738
+ };
94739
+ content: {
94740
+ "application/json": components["schemas"]["OperationError"];
94741
+ };
94742
+ };
94743
+ /** @description Refused: not_found. */
94744
+ 404: {
94745
+ headers: {
94746
+ [name: string]: unknown;
94747
+ };
94748
+ content: {
94749
+ "application/json": components["schemas"]["OperationError"];
94750
+ };
94751
+ };
94752
+ /** @description Refused: idempotency_conflict, stale_state. */
94753
+ 409: {
94754
+ headers: {
94755
+ [name: string]: unknown;
94756
+ };
94757
+ content: {
94758
+ "application/json": components["schemas"]["OperationError"];
94759
+ };
94760
+ };
94761
+ /** @description Refused: operation_retired. */
94762
+ 410: {
94763
+ headers: {
94764
+ [name: string]: unknown;
94765
+ };
94766
+ content: {
94767
+ "application/json": components["schemas"]["OperationError"];
94768
+ };
94769
+ };
94770
+ /** @description Refused: invalid_input, domain_rule. */
94771
+ 422: {
94772
+ headers: {
94773
+ [name: string]: unknown;
94774
+ };
94775
+ content: {
94776
+ "application/json": components["schemas"]["OperationError"];
94777
+ };
94778
+ };
94779
+ /** @description Refused: rate_limited. */
94780
+ 429: {
94781
+ headers: {
94782
+ [name: string]: unknown;
94783
+ };
94784
+ content: {
94785
+ "application/json": components["schemas"]["OperationError"];
94786
+ };
94787
+ };
94788
+ };
94789
+ };
94790
+ "ops.maintenance.repairs.report.update": {
94791
+ parameters: {
94792
+ query?: never;
94793
+ header?: {
94794
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
94795
+ "Idempotency-Key"?: string;
94796
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
94797
+ "Axivoy-Dry-Run"?: "true" | "false";
94798
+ };
94799
+ path?: never;
94800
+ cookie?: never;
94801
+ };
94802
+ requestBody?: {
94803
+ content: {
94804
+ /**
94805
+ * @example {
94806
+ * "work_order_id": 3,
94807
+ * "problem_note": "Coolant leak, worse in the morning.",
94808
+ * "emergency": true,
94809
+ * "tasks": [
94810
+ * {
94811
+ * "task_id": 2,
94812
+ * "source": "manual"
94813
+ * }
94814
+ * ]
94815
+ * }
94816
+ */
94817
+ "application/json": {
94818
+ /** @description The repair (work order) id */
94819
+ work_order_id: number;
94820
+ /** @description The due services this report counts toward (state ids from maintenance.repairs.due_service_matches). Leave it out to count every match; an empty list counts none */
94821
+ counts_for_state_ids?: number[] | null;
94822
+ /** @description What is wrong, in your words */
94823
+ problem_note: string | null;
94824
+ /** @description The unit cannot run */
94825
+ emergency?: boolean | null;
94826
+ /** @description The whole job list, in order; each is a job or a code, never both */
94827
+ tasks?: {
94828
+ /** @description A job from the task catalog */
94829
+ task_id?: number | null;
94830
+ /** @description A bare maintenance code instead of a job */
94831
+ maintenance_code?: string | null;
94832
+ /** @description Free text on a diagnose line */
94833
+ qualifier?: string | null;
94834
+ /** @description How the job was picked: manual or suggested */
94835
+ source?: string | null;
94836
+ /** @description The suggestion confidence, 0 to 1 */
94837
+ confidence?: number | null;
94838
+ }[] | null;
94839
+ };
94840
+ };
94841
+ };
94842
+ responses: {
94843
+ /** @description The operation ran. */
94844
+ 200: {
94845
+ headers: {
94846
+ [name: string]: unknown;
94847
+ };
94848
+ content: {
94849
+ /**
94850
+ * @example {
94851
+ * "result": {
94852
+ * "work_order": {
94853
+ * "id": 3,
94854
+ * "number": "WO-65003",
94855
+ * "status": "open"
94856
+ * },
94857
+ * "message": "Saved.",
94858
+ * "warnings": [],
94859
+ * "order_reissued": false,
94860
+ * "counts_for": []
93824
94861
  * }
93825
94862
  * }
93826
94863
  */
@@ -93844,6 +94881,17 @@ export interface operations {
93844
94881
  }[];
93845
94882
  /** @description The shop got a new order for the changed jobs */
93846
94883
  order_reissued: boolean;
94884
+ /** @description The due services this repair counts toward after the save */
94885
+ counts_for: {
94886
+ /** @description Due state id of the service counted */
94887
+ state_id: number;
94888
+ /** @description PM schedule */
94889
+ schedule_id: number;
94890
+ /** @description Schedule name */
94891
+ title: string;
94892
+ /** @description The unit number the service is on */
94893
+ unit_label: string;
94894
+ }[];
93847
94895
  };
93848
94896
  };
93849
94897
  };
@@ -94263,6 +95311,8 @@ export interface operations {
94263
95311
  "application/json": {
94264
95312
  /** @description The repair (work order) id */
94265
95313
  work_order_id: number;
95314
+ /** @description The due services this report counts toward (state ids from maintenance.repairs.due_service_matches). Leave it out to count every match; an empty list counts none */
95315
+ counts_for_state_ids?: number[] | null;
94266
95316
  /** @description truck or trailer */
94267
95317
  unit_type: string | null;
94268
95318
  /** @description The truck or trailer going along */
@@ -94306,7 +95356,9 @@ export interface operations {
94306
95356
  * "id": 11,
94307
95357
  * "number": "WO-00001"
94308
95358
  * },
94309
- * "paperwork_failed": false
95359
+ * "paperwork_failed": false,
95360
+ * "counts_for": [],
95361
+ * "routed_from": null
94310
95362
  * }
94311
95363
  * }
94312
95364
  */
@@ -94337,6 +95389,19 @@ export interface operations {
94337
95389
  };
94338
95390
  /** @description The unit is going along but its order did not go out; message says why */
94339
95391
  paperwork_failed: boolean;
95392
+ /** @description The due services this repair counts toward */
95393
+ counts_for: {
95394
+ /** @description Due state id of the service counted */
95395
+ state_id: number;
95396
+ /** @description PM schedule */
95397
+ schedule_id: number;
95398
+ /** @description Schedule name */
95399
+ title: string;
95400
+ /** @description The unit number the service is on */
95401
+ unit_label: string;
95402
+ }[];
95403
+ /** @description The unit picked, when the repair was filed on the reefer unit installed on it */
95404
+ routed_from?: string | null;
94340
95405
  };
94341
95406
  };
94342
95407
  };
@@ -94407,7 +95472,7 @@ export interface operations {
94407
95472
  };
94408
95473
  };
94409
95474
  };
94410
- "ops.maintenance.repairs.unit.update": {
95475
+ "ops.maintenance.repairs.unit.move": {
94411
95476
  parameters: {
94412
95477
  query?: never;
94413
95478
  header?: {
@@ -94421,23 +95486,17 @@ export interface operations {
94421
95486
  };
94422
95487
  requestBody?: {
94423
95488
  content: {
94424
- /**
94425
- * @example {
94426
- * "work_order_id": 3,
94427
- * "unit_type": "truck",
94428
- * "unit_id": 2,
94429
- * "note": "Wrong truck"
94430
- * }
94431
- */
94432
95489
  "application/json": {
94433
95490
  /** @description The repair (work order) id */
94434
95491
  work_order_id: number;
94435
- /** @description truck or trailer */
95492
+ /** @description trailer or a reefer unit (equipment_component) */
94436
95493
  unit_type: string | null;
94437
- /** @description The truck or trailer id */
95494
+ /** @description The trailer, or the reefer unit installed on it when the repair was fixed */
94438
95495
  unit_id: number | string | null;
94439
- /** @description Why it moved */
94440
- note?: string | null;
95496
+ /** @description Reefer hours at the repair when it has none; blank uses the latest reading within 48 hours before it was fixed */
95497
+ engine_hours?: number | string | null;
95498
+ /** @description Scheduled services on the new unit to count it for */
95499
+ count_for_schedule_ids?: number[] | null;
94441
95500
  };
94442
95501
  };
94443
95502
  };
@@ -94448,31 +95507,35 @@ export interface operations {
94448
95507
  [name: string]: unknown;
94449
95508
  };
94450
95509
  content: {
94451
- /**
94452
- * @example {
94453
- * "result": {
94454
- * "work_order": {
94455
- * "id": 3,
94456
- * "number": "WO-65003",
94457
- * "status": "open"
94458
- * },
94459
- * "message": "Moved to 1044.",
94460
- * "warnings": [],
94461
- * "order_reissued": false
94462
- * }
94463
- * }
94464
- */
94465
95510
  "application/json": {
94466
95511
  result: {
94467
- /** @description The repair after the change */
95512
+ /** @description The repair after the move */
94468
95513
  work_order: {
94469
95514
  /** @description Work order id */
94470
95515
  id: number;
94471
95516
  /** @description Work order number as people see it (WO-1042) */
94472
95517
  number: string;
94473
- /** @description Work order status after the change */
95518
+ /** @description Work order status after the move */
94474
95519
  status: string;
95520
+ /** @description The unit the repair is on now */
95521
+ unit_label: string;
94475
95522
  };
95523
+ /** @description The unit the repair was on */
95524
+ moved_from: string;
95525
+ /** @description Scheduled service ids the repair now counts for */
95526
+ counted: unknown[];
95527
+ /** @description The hours the repair carries on the new unit; null when it carries none */
95528
+ hours_filled?: {
95529
+ /** @description The hours written to the repair */
95530
+ engine_hours: number;
95531
+ /** @description Where the reading came from: manual when given, else the meter log source (samsara_daily, work_order, receipt or shop_arrival) */
95532
+ source: string;
95533
+ /**
95534
+ * Format: date-time
95535
+ * @description When the reading was taken
95536
+ */
95537
+ as_of: string;
95538
+ } | null;
94476
95539
  /** @description What happened, in the operator's words */
94477
95540
  message: string;
94478
95541
  /** @description What did not go through; empty when everything did */
@@ -94480,8 +95543,6 @@ export interface operations {
94480
95543
  /** @description One thing that did not go through */
94481
95544
  message: string;
94482
95545
  }[];
94483
- /** @description The shop got a new order for the new unit */
94484
- order_reissued: boolean;
94485
95546
  };
94486
95547
  };
94487
95548
  };
@@ -94552,7 +95613,7 @@ export interface operations {
94552
95613
  };
94553
95614
  };
94554
95615
  };
94555
- "ops.maintenance.repairs.visits.create": {
95616
+ "ops.maintenance.repairs.unit.update": {
94556
95617
  parameters: {
94557
95618
  query?: never;
94558
95619
  header?: {
@@ -94568,42 +95629,21 @@ export interface operations {
94568
95629
  content: {
94569
95630
  /**
94570
95631
  * @example {
94571
- * "work_order_id": 4,
94572
- * "organization_id": 2,
94573
- * "when": "now",
94574
- * "email_shop": false,
94575
- * "outcome_note": "Joe could not fit us in."
95632
+ * "work_order_id": 3,
95633
+ * "unit_type": "truck",
95634
+ * "unit_id": 2,
95635
+ * "note": "Wrong truck"
94576
95636
  * }
94577
95637
  */
94578
95638
  "application/json": {
94579
95639
  /** @description The repair (work order) id */
94580
95640
  work_order_id: number;
94581
- /** @description shop (the unit goes in) or on_site (they come to it) */
94582
- service_location?: string | null;
94583
- /** @description The shop (partner) id */
94584
- organization_id: number | string | null;
94585
- /** @description The shop location, when the shop has more than one */
94586
- organization_location_id?: number | string | null;
94587
- /** @description now, appointment or window */
94588
- when?: string | null;
94589
- /** @description Appointment or window start, on the shop's clock (YYYY-MM-DDTHH:MM) */
94590
- scheduled_for?: string | null;
94591
- /** @description Window end, on the shop's clock (YYYY-MM-DDTHH:MM) */
94592
- scheduled_until?: string | null;
94593
- /** @description The driver taking the unit in */
94594
- assigned_driver_user_id?: number | null;
94595
- /** @description Rough cost, in dollars */
94596
- expected_amount?: number | null;
94597
- /** @description Where the rough cost came from */
94598
- expected_amount_source?: string | null;
94599
- /** @description Low end of the rough cost range */
94600
- expected_amount_low?: number | null;
94601
- /** @description High end of the rough cost range */
94602
- expected_amount_high?: number | null;
94603
- /** @description Email the order to the shop */
94604
- email_shop?: boolean | null;
94605
- /** @description Why the change, in a sentence */
94606
- outcome_note?: string | null;
95641
+ /** @description truck or trailer */
95642
+ unit_type: string | null;
95643
+ /** @description The truck or trailer id */
95644
+ unit_id: number | string | null;
95645
+ /** @description Why it moved */
95646
+ note?: string | null;
94607
95647
  };
94608
95648
  };
94609
95649
  };
@@ -94618,13 +95658,179 @@ export interface operations {
94618
95658
  * @example {
94619
95659
  * "result": {
94620
95660
  * "work_order": {
94621
- * "id": 4,
94622
- * "number": "WO-65004",
94623
- * "status": "scheduled"
95661
+ * "id": 3,
95662
+ * "number": "WO-65003",
95663
+ * "status": "open"
94624
95664
  * },
94625
- * "message": "Truck #1043 is now going to Rush Truck Center. Joe's Diesel's order was canceled.",
95665
+ * "message": "Moved to 1044.",
94626
95666
  * "warnings": [],
94627
- * "shop_changed": true
95667
+ * "order_reissued": false
95668
+ * }
95669
+ * }
95670
+ */
95671
+ "application/json": {
95672
+ result: {
95673
+ /** @description The repair after the change */
95674
+ work_order: {
95675
+ /** @description Work order id */
95676
+ id: number;
95677
+ /** @description Work order number as people see it (WO-1042) */
95678
+ number: string;
95679
+ /** @description Work order status after the change */
95680
+ status: string;
95681
+ };
95682
+ /** @description What happened, in the operator's words */
95683
+ message: string;
95684
+ /** @description What did not go through; empty when everything did */
95685
+ warnings: {
95686
+ /** @description One thing that did not go through */
95687
+ message: string;
95688
+ }[];
95689
+ /** @description The shop got a new order for the new unit */
95690
+ order_reissued: boolean;
95691
+ };
95692
+ };
95693
+ };
95694
+ };
95695
+ 202: components["responses"]["Proposal"];
95696
+ /** @description Refused: credits_exhausted. */
95697
+ 402: {
95698
+ headers: {
95699
+ [name: string]: unknown;
95700
+ };
95701
+ content: {
95702
+ "application/json": components["schemas"]["OperationError"];
95703
+ };
95704
+ };
95705
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
95706
+ 403: {
95707
+ headers: {
95708
+ [name: string]: unknown;
95709
+ };
95710
+ content: {
95711
+ "application/json": components["schemas"]["OperationError"];
95712
+ };
95713
+ };
95714
+ /** @description Refused: not_found. */
95715
+ 404: {
95716
+ headers: {
95717
+ [name: string]: unknown;
95718
+ };
95719
+ content: {
95720
+ "application/json": components["schemas"]["OperationError"];
95721
+ };
95722
+ };
95723
+ /** @description Refused: idempotency_conflict, stale_state. */
95724
+ 409: {
95725
+ headers: {
95726
+ [name: string]: unknown;
95727
+ };
95728
+ content: {
95729
+ "application/json": components["schemas"]["OperationError"];
95730
+ };
95731
+ };
95732
+ /** @description Refused: operation_retired. */
95733
+ 410: {
95734
+ headers: {
95735
+ [name: string]: unknown;
95736
+ };
95737
+ content: {
95738
+ "application/json": components["schemas"]["OperationError"];
95739
+ };
95740
+ };
95741
+ /** @description Refused: invalid_input, domain_rule. */
95742
+ 422: {
95743
+ headers: {
95744
+ [name: string]: unknown;
95745
+ };
95746
+ content: {
95747
+ "application/json": components["schemas"]["OperationError"];
95748
+ };
95749
+ };
95750
+ /** @description Refused: rate_limited. */
95751
+ 429: {
95752
+ headers: {
95753
+ [name: string]: unknown;
95754
+ };
95755
+ content: {
95756
+ "application/json": components["schemas"]["OperationError"];
95757
+ };
95758
+ };
95759
+ };
95760
+ };
95761
+ "ops.maintenance.repairs.visits.create": {
95762
+ parameters: {
95763
+ query?: never;
95764
+ header?: {
95765
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
95766
+ "Idempotency-Key"?: string;
95767
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
95768
+ "Axivoy-Dry-Run"?: "true" | "false";
95769
+ };
95770
+ path?: never;
95771
+ cookie?: never;
95772
+ };
95773
+ requestBody?: {
95774
+ content: {
95775
+ /**
95776
+ * @example {
95777
+ * "work_order_id": 4,
95778
+ * "organization_id": 2,
95779
+ * "when": "now",
95780
+ * "email_shop": false,
95781
+ * "outcome_note": "Joe could not fit us in."
95782
+ * }
95783
+ */
95784
+ "application/json": {
95785
+ /** @description The repair (work order) id */
95786
+ work_order_id: number;
95787
+ /** @description shop (the unit goes in) or on_site (they come to it) */
95788
+ service_location?: string | null;
95789
+ /** @description The shop (partner) id */
95790
+ organization_id: number | string | null;
95791
+ /** @description The shop location, when the shop has more than one */
95792
+ organization_location_id?: number | string | null;
95793
+ /** @description now, appointment or window */
95794
+ when?: string | null;
95795
+ /** @description Appointment or window start, on the shop's clock (YYYY-MM-DDTHH:MM) */
95796
+ scheduled_for?: string | null;
95797
+ /** @description Window end, on the shop's clock (YYYY-MM-DDTHH:MM) */
95798
+ scheduled_until?: string | null;
95799
+ /** @description The driver taking the unit in */
95800
+ assigned_driver_user_id?: number | null;
95801
+ /** @description Rough cost, in dollars */
95802
+ expected_amount?: number | null;
95803
+ /** @description Where the rough cost came from */
95804
+ expected_amount_source?: string | null;
95805
+ /** @description Low end of the rough cost range */
95806
+ expected_amount_low?: number | null;
95807
+ /** @description High end of the rough cost range */
95808
+ expected_amount_high?: number | null;
95809
+ /** @description Email the order to the shop */
95810
+ email_shop?: boolean | null;
95811
+ /** @description Why the change, in a sentence */
95812
+ outcome_note?: string | null;
95813
+ };
95814
+ };
95815
+ };
95816
+ responses: {
95817
+ /** @description The operation ran. */
95818
+ 200: {
95819
+ headers: {
95820
+ [name: string]: unknown;
95821
+ };
95822
+ content: {
95823
+ /**
95824
+ * @example {
95825
+ * "result": {
95826
+ * "work_order": {
95827
+ * "id": 4,
95828
+ * "number": "WO-65004",
95829
+ * "status": "scheduled"
95830
+ * },
95831
+ * "message": "Truck #1043 is now going to Rush Truck Center. Joe's Diesel's order was canceled.",
95832
+ * "warnings": [],
95833
+ * "shop_changed": true
94628
95834
  * }
94629
95835
  * }
94630
95836
  */
@@ -95661,6 +96867,8 @@ export interface operations {
95661
96867
  schedule_ids: number[] | null;
95662
96868
  /** @description Odometer at the repair, in miles, when the repair has none */
95663
96869
  odometer_miles?: number | string | null;
96870
+ /** @description Engine or reefer hours at the repair, when the repair has none. Blank on a reefer unit uses the meter log reading from up to 48 hours before it was fixed. */
96871
+ engine_hours?: number | string | null;
95664
96872
  };
95665
96873
  };
95666
96874
  };
@@ -96952,6 +98160,18 @@ export interface operations {
96952
98160
  trip?: Record<string, never> | null;
96953
98161
  trip_propagation?: Record<string, never> | null;
96954
98162
  };
98163
+ /** @description Reefer hours taken from the meter log because none were given: the repair counts toward a service with an hours interval and a reading was on file in the 48 hours before it finished. Null when nothing was filled. */
98164
+ meter_filled?: {
98165
+ /** @description The reefer hours written to the repair */
98166
+ engine_hours: number;
98167
+ /** @description Where the reading came from: samsara_daily, manual, work_order, receipt or shop_arrival */
98168
+ source: string;
98169
+ /**
98170
+ * Format: date-time
98171
+ * @description When the reading was taken
98172
+ */
98173
+ as_of: string;
98174
+ } | null;
96955
98175
  };
96956
98176
  };
96957
98177
  };
@@ -101819,6 +103039,18 @@ export interface operations {
101819
103039
  }[];
101820
103040
  /** @description How many other repairs on the trip were marked fixed */
101821
103041
  siblings_completed: number;
103042
+ /** @description Reefer hours taken from the meter log because none were given: the repair counts toward a service with an hours interval and a reading was on file in the 48 hours before it finished. Null when nothing was filled. */
103043
+ meter_filled?: {
103044
+ /** @description The reefer hours written to the repair */
103045
+ engine_hours: number;
103046
+ /** @description Where the reading came from: samsara_daily, manual, work_order, receipt or shop_arrival */
103047
+ source: string;
103048
+ /**
103049
+ * Format: date-time
103050
+ * @description When the reading was taken
103051
+ */
103052
+ as_of: string;
103053
+ } | null;
101822
103054
  };
101823
103055
  };
101824
103056
  };
@@ -116306,7 +117538,7 @@ export interface operations {
116306
117538
  run_id: number;
116307
117539
  /** @description The draft ad */
116308
117540
  creative_id: number;
116309
- /** @description Which suggested opening (0 to 11) */
117541
+ /** @description Which suggested idea (0 to 11) */
116310
117542
  hook_index: number | string | null;
116311
117543
  };
116312
117544
  };
@@ -116923,7 +118155,7 @@ export interface operations {
116923
118155
  run_id: number;
116924
118156
  /** @description The draft ad */
116925
118157
  creative_id: number;
116926
- /** @description The part, from 1 */
118158
+ /** @description The part, or the moment in a one-take video, from 1 */
116927
118159
  index: number | string | null;
116928
118160
  /** @description Words on screen (60 characters at most); left out keeps them */
116929
118161
  on_screen_text?: string | null;
@@ -139031,15 +140263,25 @@ export interface operations {
139031
140263
  */
139032
140264
  "application/json": {
139033
140265
  result: {
140266
+ /** @description Whose scorecard the focus is on: driver or dispatcher. */
139034
140267
  audience: string;
139035
- /** Format: date */
140268
+ /**
140269
+ * Format: date
140270
+ * @description Operational Sunday that starts the week.
140271
+ */
139036
140272
  week_start: string;
140273
+ /** @description The week as people read it, such as "Oct 11 to 17, 2026". */
139037
140274
  week_label: string;
139038
140275
  /** @description The score you picked; null once cleared. */
139039
140276
  focus_pick?: {
140277
+ /** @description The score's metric slug. */
139040
140278
  slug: string;
140279
+ /** @description The score's name. */
139041
140280
  name: string;
139042
- /** Format: date-time */
140281
+ /**
140282
+ * Format: date-time
140283
+ * @description When the focus was picked.
140284
+ */
139043
140285
  picked_at: string;
139044
140286
  } | null;
139045
140287
  };
@@ -139816,12 +141058,12 @@ export interface operations {
139816
141058
  pay_period_id?: number | null;
139817
141059
  /**
139818
141060
  * Format: date
139819
- * @description Range start (UTC date); defaults to the first of this month
141061
+ * @description Range start (a company date); defaults to the first of this month
139820
141062
  */
139821
141063
  from?: string | null;
139822
141064
  /**
139823
141065
  * Format: date
139824
- * @description Range end (UTC date); defaults to today
141066
+ * @description Range end (a company date); defaults to today
139825
141067
  */
139826
141068
  to?: string | null;
139827
141069
  };
@@ -139873,12 +141115,12 @@ export interface operations {
139873
141115
  driver_name: string;
139874
141116
  /**
139875
141117
  * Format: date
139876
- * @description Range start (UTC)
141118
+ * @description Range start (a company date)
139877
141119
  */
139878
141120
  from: string;
139879
141121
  /**
139880
141122
  * Format: date
139881
- * @description Range end (UTC)
141123
+ * @description Range end (a company date)
139882
141124
  */
139883
141125
  to: string;
139884
141126
  /** @description Pay ready to settle */
@@ -141088,6 +142330,142 @@ export interface operations {
141088
142330
  };
141089
142331
  };
141090
142332
  };
142333
+ "ops.system.domains.default_address.get": {
142334
+ parameters: {
142335
+ query?: never;
142336
+ header?: {
142337
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
142338
+ "Idempotency-Key"?: string;
142339
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
142340
+ "Axivoy-Dry-Run"?: "true" | "false";
142341
+ };
142342
+ path?: never;
142343
+ cookie?: never;
142344
+ };
142345
+ requestBody?: {
142346
+ content: {
142347
+ /** @example {} */
142348
+ "application/json": Record<string, never>;
142349
+ };
142350
+ };
142351
+ responses: {
142352
+ /** @description The operation ran. */
142353
+ 200: {
142354
+ headers: {
142355
+ [name: string]: unknown;
142356
+ };
142357
+ content: {
142358
+ /**
142359
+ * @example {
142360
+ * "result": {
142361
+ * "domain": "carrier.example.com",
142362
+ * "address": "billing@carrier.example.com",
142363
+ * "state": "confirmed",
142364
+ * "pending_address": null,
142365
+ * "pending_sent_at": null,
142366
+ * "failure_reason": null,
142367
+ * "fallback": null,
142368
+ * "confirmed_via": "grandfathered",
142369
+ * "forwards_to": null,
142370
+ * "forward_target": null
142371
+ * }
142372
+ * }
142373
+ */
142374
+ "application/json": {
142375
+ result: {
142376
+ /** @description The live sending domain */
142377
+ domain: string;
142378
+ /** @description The confirmed default sending address, or null */
142379
+ address?: string | null;
142380
+ /** @description confirmed or untested, else checking, waiting, expired or failed for the address waiting for confirmation */
142381
+ state: string;
142382
+ /** @description The first or changed address waiting for confirmation */
142383
+ pending_address?: string | null;
142384
+ /**
142385
+ * Format: date-time
142386
+ * @description When its test was sent
142387
+ */
142388
+ pending_sent_at?: string | null;
142389
+ /** @description Why the test could not be delivered */
142390
+ failure_reason?: string | null;
142391
+ /** @description What mail uses meanwhile */
142392
+ fallback?: string | null;
142393
+ /** @description forwarding, link or grandfathered */
142394
+ confirmed_via?: string | null;
142395
+ /** @description The team its forwarding reached, or null */
142396
+ forwards_to?: string | null;
142397
+ /** @description The receive address to forward the mailbox to */
142398
+ forward_target?: string | null;
142399
+ };
142400
+ };
142401
+ };
142402
+ };
142403
+ 202: components["responses"]["Proposal"];
142404
+ /** @description Refused: credits_exhausted. */
142405
+ 402: {
142406
+ headers: {
142407
+ [name: string]: unknown;
142408
+ };
142409
+ content: {
142410
+ "application/json": components["schemas"]["OperationError"];
142411
+ };
142412
+ };
142413
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
142414
+ 403: {
142415
+ headers: {
142416
+ [name: string]: unknown;
142417
+ };
142418
+ content: {
142419
+ "application/json": components["schemas"]["OperationError"];
142420
+ };
142421
+ };
142422
+ /** @description Refused: not_found. */
142423
+ 404: {
142424
+ headers: {
142425
+ [name: string]: unknown;
142426
+ };
142427
+ content: {
142428
+ "application/json": components["schemas"]["OperationError"];
142429
+ };
142430
+ };
142431
+ /** @description Refused: idempotency_conflict, stale_state. */
142432
+ 409: {
142433
+ headers: {
142434
+ [name: string]: unknown;
142435
+ };
142436
+ content: {
142437
+ "application/json": components["schemas"]["OperationError"];
142438
+ };
142439
+ };
142440
+ /** @description Refused: operation_retired. */
142441
+ 410: {
142442
+ headers: {
142443
+ [name: string]: unknown;
142444
+ };
142445
+ content: {
142446
+ "application/json": components["schemas"]["OperationError"];
142447
+ };
142448
+ };
142449
+ /** @description Refused: invalid_input, domain_rule. */
142450
+ 422: {
142451
+ headers: {
142452
+ [name: string]: unknown;
142453
+ };
142454
+ content: {
142455
+ "application/json": components["schemas"]["OperationError"];
142456
+ };
142457
+ };
142458
+ /** @description Refused: rate_limited. */
142459
+ 429: {
142460
+ headers: {
142461
+ [name: string]: unknown;
142462
+ };
142463
+ content: {
142464
+ "application/json": components["schemas"]["OperationError"];
142465
+ };
142466
+ };
142467
+ };
142468
+ };
141091
142469
  "ops.system.domains.list": {
141092
142470
  parameters: {
141093
142471
  query?: never;
@@ -141442,7 +142820,15 @@ export interface operations {
141442
142820
  * "active": false,
141443
142821
  * "from_email": "hello@axivoy.test",
141444
142822
  * "from_is_platform_default": true,
141445
- * "delivery_mode": "sandbox"
142823
+ * "delivery_mode": "sandbox",
142824
+ * "sending_domain": {
142825
+ * "domain": null,
142826
+ * "state": "not_set_up"
142827
+ * },
142828
+ * "reply_domain": {
142829
+ * "domain": null,
142830
+ * "state": "not_set_up"
142831
+ * }
141446
142832
  * }
141447
142833
  * }
141448
142834
  */
@@ -143929,17 +145315,17 @@ export interface operations {
143929
145315
  * {
143930
145316
  * "slug": "account_notice_reply_answer",
143931
145317
  * "display_name": "Notices address reply answer",
143932
- * "help_summary": "Answers a reply sent to the notices address once, pointing to the page the notice is about (or the DER for drug and alcohol testing mail), since nobody reads that address.",
145318
+ * "help_summary": "Retired. Replies to notices used to get this automatic answer; notices now come from an address that doesn't take replies, and each one links to the page it's about.",
143933
145319
  * "audience": "operator",
143934
145320
  * "editability": "operator",
143935
- * "status": "active",
145321
+ * "status": "deprecated",
143936
145322
  * "replacement_slug": null,
143937
145323
  * "channel": "email",
143938
145324
  * "inheritance": "inherited",
143939
145325
  * "health_ok": true,
143940
145326
  * "health_errors": [],
143941
- * "can_edit": true,
143942
- * "read_only": false
145327
+ * "can_edit": false,
145328
+ * "read_only": true
143943
145329
  * },
143944
145330
  * {
143945
145331
  * "slug": "password_reset",
@@ -145091,7 +146477,324 @@ export interface operations {
145091
146477
  };
145092
146478
  };
145093
146479
  };
145094
- "ops.system.integrations.communications.templates.update": {
146480
+ "ops.system.integrations.communications.templates.update": {
146481
+ parameters: {
146482
+ query?: never;
146483
+ header?: {
146484
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
146485
+ "Idempotency-Key"?: string;
146486
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
146487
+ "Axivoy-Dry-Run"?: "true" | "false";
146488
+ };
146489
+ path?: never;
146490
+ cookie?: never;
146491
+ };
146492
+ requestBody?: {
146493
+ content: {
146494
+ /**
146495
+ * @example {
146496
+ * "slug": "sync_failure_alert",
146497
+ * "subject_template": "Sync failed: {{run_name}}",
146498
+ * "body_html_template": "<p>{{run_name}} {{trigger}} {{error_message}}</p>",
146499
+ * "is_active": "1",
146500
+ * "channel": "email"
146501
+ * }
146502
+ */
146503
+ "application/json": {
146504
+ /** @description Template slug, for example sync_failure_alert */
146505
+ slug: string;
146506
+ /** @description Subject, with {{tags}} */
146507
+ subject_template?: string | null;
146508
+ /** @description Plain-text body, with {{tags}} */
146509
+ body_text_template?: string | null;
146510
+ /** @description HTML body, with {{tags}}; when set, the text body is derived from it */
146511
+ body_html_template?: string | null;
146512
+ /** @description Whether the customization is in use */
146513
+ is_active?: boolean | string | number | null;
146514
+ /** @description Channel, email by default */
146515
+ channel?: string | null;
146516
+ };
146517
+ };
146518
+ };
146519
+ responses: {
146520
+ /** @description The operation ran. */
146521
+ 200: {
146522
+ headers: {
146523
+ [name: string]: unknown;
146524
+ };
146525
+ content: {
146526
+ /**
146527
+ * @example {
146528
+ * "result": {
146529
+ * "message": "Template customization saved."
146530
+ * }
146531
+ * }
146532
+ */
146533
+ "application/json": {
146534
+ result: {
146535
+ /** @description What happened, in the operator's words */
146536
+ message: string;
146537
+ };
146538
+ };
146539
+ };
146540
+ };
146541
+ 202: components["responses"]["Proposal"];
146542
+ /** @description Refused: credits_exhausted. */
146543
+ 402: {
146544
+ headers: {
146545
+ [name: string]: unknown;
146546
+ };
146547
+ content: {
146548
+ "application/json": components["schemas"]["OperationError"];
146549
+ };
146550
+ };
146551
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
146552
+ 403: {
146553
+ headers: {
146554
+ [name: string]: unknown;
146555
+ };
146556
+ content: {
146557
+ "application/json": components["schemas"]["OperationError"];
146558
+ };
146559
+ };
146560
+ /** @description Refused: not_found. */
146561
+ 404: {
146562
+ headers: {
146563
+ [name: string]: unknown;
146564
+ };
146565
+ content: {
146566
+ "application/json": components["schemas"]["OperationError"];
146567
+ };
146568
+ };
146569
+ /** @description Refused: idempotency_conflict, stale_state. */
146570
+ 409: {
146571
+ headers: {
146572
+ [name: string]: unknown;
146573
+ };
146574
+ content: {
146575
+ "application/json": components["schemas"]["OperationError"];
146576
+ };
146577
+ };
146578
+ /** @description Refused: operation_retired. */
146579
+ 410: {
146580
+ headers: {
146581
+ [name: string]: unknown;
146582
+ };
146583
+ content: {
146584
+ "application/json": components["schemas"]["OperationError"];
146585
+ };
146586
+ };
146587
+ /** @description Refused: invalid_input, domain_rule. */
146588
+ 422: {
146589
+ headers: {
146590
+ [name: string]: unknown;
146591
+ };
146592
+ content: {
146593
+ "application/json": components["schemas"]["OperationError"];
146594
+ };
146595
+ };
146596
+ /** @description Refused: rate_limited. */
146597
+ 429: {
146598
+ headers: {
146599
+ [name: string]: unknown;
146600
+ };
146601
+ content: {
146602
+ "application/json": components["schemas"]["OperationError"];
146603
+ };
146604
+ };
146605
+ };
146606
+ };
146607
+ "ops.system.integrations.sms_registration.get": {
146608
+ parameters: {
146609
+ query?: never;
146610
+ header?: {
146611
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
146612
+ "Idempotency-Key"?: string;
146613
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
146614
+ "Axivoy-Dry-Run"?: "true" | "false";
146615
+ };
146616
+ path?: never;
146617
+ cookie?: never;
146618
+ };
146619
+ requestBody?: {
146620
+ content: {
146621
+ /** @example {} */
146622
+ "application/json": Record<string, never>;
146623
+ };
146624
+ };
146625
+ responses: {
146626
+ /** @description The operation ran. */
146627
+ 200: {
146628
+ headers: {
146629
+ [name: string]: unknown;
146630
+ };
146631
+ content: {
146632
+ /**
146633
+ * @example {
146634
+ * "result": {
146635
+ * "registered": true,
146636
+ * "mode": "automated",
146637
+ * "status": "brand_pending",
146638
+ * "status_label": "Brand review pending",
146639
+ * "sending_number": null,
146640
+ * "requested_number": null,
146641
+ * "number_needed": false,
146642
+ * "submitted_at": "2026-10-25T01:30:45Z",
146643
+ * "approved_at": null,
146644
+ * "rejection_reason": null,
146645
+ * "steps": [
146646
+ * {
146647
+ * "key": "draft",
146648
+ * "label": "Draft",
146649
+ * "state": "done"
146650
+ * },
146651
+ * {
146652
+ * "key": "profile_submitted",
146653
+ * "label": "Business profile submitted",
146654
+ * "state": "done"
146655
+ * },
146656
+ * {
146657
+ * "key": "brand_pending",
146658
+ * "label": "Brand review pending",
146659
+ * "state": "current"
146660
+ * },
146661
+ * {
146662
+ * "key": "brand_approved",
146663
+ * "label": "Brand approved",
146664
+ * "state": "pending"
146665
+ * },
146666
+ * {
146667
+ * "key": "campaign_pending",
146668
+ * "label": "Campaign review pending",
146669
+ * "state": "pending"
146670
+ * },
146671
+ * {
146672
+ * "key": "campaign_verified",
146673
+ * "label": "Campaign verified",
146674
+ * "state": "pending"
146675
+ * },
146676
+ * {
146677
+ * "key": "number_active",
146678
+ * "label": "Number provisioned",
146679
+ * "state": "pending"
146680
+ * },
146681
+ * {
146682
+ * "key": "active",
146683
+ * "label": "Active",
146684
+ * "state": "pending"
146685
+ * }
146686
+ * ]
146687
+ * }
146688
+ * }
146689
+ */
146690
+ "application/json": {
146691
+ result: {
146692
+ /** @description Whether a registration exists (in progress or approved) */
146693
+ registered: boolean;
146694
+ /** @description automated (Axivoy registered it) or external (the company brought a registered number) */
146695
+ mode?: string | null;
146696
+ /** @description Registration status key */
146697
+ status?: string | null;
146698
+ /** @description The status in the operator's words */
146699
+ status_label?: string | null;
146700
+ /** @description The number texts are sent from (E.164) */
146701
+ sending_number?: string | null;
146702
+ /** @description The company number texting will use once carriers approve (E.164) */
146703
+ requested_number?: string | null;
146704
+ /** @description Whether carriers approved the company and Axivoy is waiting for it to choose a number to text from */
146705
+ number_needed: boolean;
146706
+ /**
146707
+ * Format: date-time
146708
+ * @description When it was sent to carriers
146709
+ */
146710
+ submitted_at?: string | null;
146711
+ /**
146712
+ * Format: date-time
146713
+ * @description When carriers approved it
146714
+ */
146715
+ approved_at?: string | null;
146716
+ /** @description The carrier's reason when a step was rejected */
146717
+ rejection_reason?: string | null;
146718
+ /** @description Each registration step in order */
146719
+ steps: {
146720
+ /** @description Step key */
146721
+ key: string;
146722
+ /** @description Step name */
146723
+ label: string;
146724
+ /** @description done, current, failed or pending */
146725
+ state: string;
146726
+ }[];
146727
+ };
146728
+ };
146729
+ };
146730
+ };
146731
+ 202: components["responses"]["Proposal"];
146732
+ /** @description Refused: credits_exhausted. */
146733
+ 402: {
146734
+ headers: {
146735
+ [name: string]: unknown;
146736
+ };
146737
+ content: {
146738
+ "application/json": components["schemas"]["OperationError"];
146739
+ };
146740
+ };
146741
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
146742
+ 403: {
146743
+ headers: {
146744
+ [name: string]: unknown;
146745
+ };
146746
+ content: {
146747
+ "application/json": components["schemas"]["OperationError"];
146748
+ };
146749
+ };
146750
+ /** @description Refused: not_found. */
146751
+ 404: {
146752
+ headers: {
146753
+ [name: string]: unknown;
146754
+ };
146755
+ content: {
146756
+ "application/json": components["schemas"]["OperationError"];
146757
+ };
146758
+ };
146759
+ /** @description Refused: idempotency_conflict, stale_state. */
146760
+ 409: {
146761
+ headers: {
146762
+ [name: string]: unknown;
146763
+ };
146764
+ content: {
146765
+ "application/json": components["schemas"]["OperationError"];
146766
+ };
146767
+ };
146768
+ /** @description Refused: operation_retired. */
146769
+ 410: {
146770
+ headers: {
146771
+ [name: string]: unknown;
146772
+ };
146773
+ content: {
146774
+ "application/json": components["schemas"]["OperationError"];
146775
+ };
146776
+ };
146777
+ /** @description Refused: invalid_input, domain_rule. */
146778
+ 422: {
146779
+ headers: {
146780
+ [name: string]: unknown;
146781
+ };
146782
+ content: {
146783
+ "application/json": components["schemas"]["OperationError"];
146784
+ };
146785
+ };
146786
+ /** @description Refused: rate_limited. */
146787
+ 429: {
146788
+ headers: {
146789
+ [name: string]: unknown;
146790
+ };
146791
+ content: {
146792
+ "application/json": components["schemas"]["OperationError"];
146793
+ };
146794
+ };
146795
+ };
146796
+ };
146797
+ "ops.system.settings.company_clock.preview": {
145095
146798
  parameters: {
145096
146799
  query?: never;
145097
146800
  header?: {
@@ -145107,135 +146810,18 @@ export interface operations {
145107
146810
  content: {
145108
146811
  /**
145109
146812
  * @example {
145110
- * "slug": "sync_failure_alert",
145111
- * "subject_template": "Sync failed: {{run_name}}",
145112
- * "body_html_template": "<p>{{run_name}} {{trigger}} {{error_message}}</p>",
145113
- * "is_active": "1",
145114
- * "channel": "email"
146813
+ * "timezone": "America/Chicago",
146814
+ * "starts_on": "2026-11-01"
145115
146815
  * }
145116
146816
  */
145117
146817
  "application/json": {
145118
- /** @description Template slug, for example sync_failure_alert */
145119
- slug: string;
145120
- /** @description Subject, with {{tags}} */
145121
- subject_template?: string | null;
145122
- /** @description Plain-text body, with {{tags}} */
145123
- body_text_template?: string | null;
145124
- /** @description HTML body, with {{tags}}; when set, the text body is derived from it */
145125
- body_html_template?: string | null;
145126
- /** @description Whether the customization is in use */
145127
- is_active?: boolean | string | number | null;
145128
- /** @description Channel, email by default */
145129
- channel?: string | null;
145130
- };
145131
- };
145132
- };
145133
- responses: {
145134
- /** @description The operation ran. */
145135
- 200: {
145136
- headers: {
145137
- [name: string]: unknown;
145138
- };
145139
- content: {
145140
- /**
145141
- * @example {
145142
- * "result": {
145143
- * "message": "Template customization saved."
145144
- * }
145145
- * }
145146
- */
145147
- "application/json": {
145148
- result: {
145149
- /** @description What happened, in the operator's words */
145150
- message: string;
145151
- };
145152
- };
145153
- };
145154
- };
145155
- 202: components["responses"]["Proposal"];
145156
- /** @description Refused: credits_exhausted. */
145157
- 402: {
145158
- headers: {
145159
- [name: string]: unknown;
145160
- };
145161
- content: {
145162
- "application/json": components["schemas"]["OperationError"];
145163
- };
145164
- };
145165
- /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
145166
- 403: {
145167
- headers: {
145168
- [name: string]: unknown;
145169
- };
145170
- content: {
145171
- "application/json": components["schemas"]["OperationError"];
145172
- };
145173
- };
145174
- /** @description Refused: not_found. */
145175
- 404: {
145176
- headers: {
145177
- [name: string]: unknown;
145178
- };
145179
- content: {
145180
- "application/json": components["schemas"]["OperationError"];
145181
- };
145182
- };
145183
- /** @description Refused: idempotency_conflict, stale_state. */
145184
- 409: {
145185
- headers: {
145186
- [name: string]: unknown;
145187
- };
145188
- content: {
145189
- "application/json": components["schemas"]["OperationError"];
145190
- };
145191
- };
145192
- /** @description Refused: operation_retired. */
145193
- 410: {
145194
- headers: {
145195
- [name: string]: unknown;
145196
- };
145197
- content: {
145198
- "application/json": components["schemas"]["OperationError"];
145199
- };
145200
- };
145201
- /** @description Refused: invalid_input, domain_rule. */
145202
- 422: {
145203
- headers: {
145204
- [name: string]: unknown;
145205
- };
145206
- content: {
145207
- "application/json": components["schemas"]["OperationError"];
145208
- };
145209
- };
145210
- /** @description Refused: rate_limited. */
145211
- 429: {
145212
- headers: {
145213
- [name: string]: unknown;
145214
- };
145215
- content: {
145216
- "application/json": components["schemas"]["OperationError"];
146818
+ /** @description IANA zone id, for example America/Chicago */
146819
+ timezone: string;
146820
+ /** @description A Sunday after today (Y-m-d), or beginning when nothing has been counted yet; days count in the new zone from its midnight on this date */
146821
+ starts_on: string;
145217
146822
  };
145218
146823
  };
145219
146824
  };
145220
- };
145221
- "ops.system.integrations.sms_registration.get": {
145222
- parameters: {
145223
- query?: never;
145224
- header?: {
145225
- /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
145226
- "Idempotency-Key"?: string;
145227
- /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
145228
- "Axivoy-Dry-Run"?: "true" | "false";
145229
- };
145230
- path?: never;
145231
- cookie?: never;
145232
- };
145233
- requestBody?: {
145234
- content: {
145235
- /** @example {} */
145236
- "application/json": Record<string, never>;
145237
- };
145238
- };
145239
146825
  responses: {
145240
146826
  /** @description The operation ran. */
145241
146827
  200: {
@@ -145246,98 +146832,101 @@ export interface operations {
145246
146832
  /**
145247
146833
  * @example {
145248
146834
  * "result": {
145249
- * "registered": true,
145250
- * "mode": "automated",
145251
- * "status": "brand_pending",
145252
- * "status_label": "Brand review pending",
145253
- * "sending_number": null,
145254
- * "requested_number": null,
145255
- * "number_needed": false,
145256
- * "submitted_at": "2026-10-25T01:30:45Z",
145257
- * "approved_at": null,
145258
- * "rejection_reason": null,
145259
- * "steps": [
145260
- * {
145261
- * "key": "draft",
145262
- * "label": "Draft",
145263
- * "state": "done"
145264
- * },
145265
- * {
145266
- * "key": "profile_submitted",
145267
- * "label": "Business profile submitted",
145268
- * "state": "done"
145269
- * },
145270
- * {
145271
- * "key": "brand_pending",
145272
- * "label": "Brand review pending",
145273
- * "state": "current"
145274
- * },
145275
- * {
145276
- * "key": "brand_approved",
145277
- * "label": "Brand approved",
145278
- * "state": "pending"
145279
- * },
145280
- * {
145281
- * "key": "campaign_pending",
145282
- * "label": "Campaign review pending",
145283
- * "state": "pending"
145284
- * },
145285
- * {
145286
- * "key": "campaign_verified",
145287
- * "label": "Campaign verified",
145288
- * "state": "pending"
145289
- * },
145290
- * {
145291
- * "key": "number_active",
145292
- * "label": "Number provisioned",
145293
- * "state": "pending"
145294
- * },
145295
- * {
145296
- * "key": "active",
145297
- * "label": "Active",
145298
- * "state": "pending"
145299
- * }
145300
- * ]
146835
+ * "timezone": "America/Chicago",
146836
+ * "previous_timezone": "UTC",
146837
+ * "starts_on": "2026-11-01",
146838
+ * "starts_at": "2026-11-01T05:00:00Z",
146839
+ * "previous_day": "2026-10-31",
146840
+ * "previous_day_change_minutes": 300,
146841
+ * "pay_period": null,
146842
+ * "scorecard_week": null,
146843
+ * "warnings": [],
146844
+ * "affected_loads": [],
146845
+ * "refusal": null,
146846
+ * "message": "Sunday, Nov 1 starts at 12:00 AM Central Time. Saturday, Oct 31 runs 5 hours longer, until midnight Central Time."
145301
146847
  * }
145302
146848
  * }
145303
146849
  */
145304
146850
  "application/json": {
145305
146851
  result: {
145306
- /** @description Whether a registration exists (in progress or approved) */
145307
- registered: boolean;
145308
- /** @description automated (Axivoy registered it) or external (the company brought a registered number) */
145309
- mode?: string | null;
145310
- /** @description Registration status key */
145311
- status?: string | null;
145312
- /** @description The status in the operator's words */
145313
- status_label?: string | null;
145314
- /** @description The number texts are sent from (E.164) */
145315
- sending_number?: string | null;
145316
- /** @description The company number texting will use once carriers approve (E.164) */
145317
- requested_number?: string | null;
145318
- /** @description Whether carriers approved the company and Axivoy is waiting for it to choose a number to text from */
145319
- number_needed: boolean;
146852
+ /** @description The zone days would count in (IANA) */
146853
+ timezone: string;
146854
+ /** @description The zone days count in now on that date (IANA) */
146855
+ previous_timezone: string;
145320
146856
  /**
145321
- * Format: date-time
145322
- * @description When it was sent to carriers
146857
+ * Format: date
146858
+ * @description The Sunday the switch starts; null from the beginning
145323
146859
  */
145324
- submitted_at?: string | null;
146860
+ starts_on?: string | null;
145325
146861
  /**
145326
146862
  * Format: date-time
145327
- * @description When carriers approved it
146863
+ * @description That Sunday's midnight in the new zone; null from the beginning
145328
146864
  */
145329
- approved_at?: string | null;
145330
- /** @description The carrier's reason when a step was rejected */
145331
- rejection_reason?: string | null;
145332
- /** @description Each registration step in order */
145333
- steps: {
145334
- /** @description Step key */
145335
- key: string;
145336
- /** @description Step name */
145337
- label: string;
145338
- /** @description done, current, failed or pending */
145339
- state: string;
146865
+ starts_at?: string | null;
146866
+ /**
146867
+ * Format: date
146868
+ * @description The Saturday before the start, which runs longer or shorter; null from the beginning
146869
+ */
146870
+ previous_day?: string | null;
146871
+ /** @description How many minutes longer (positive) or shorter (negative) that Saturday runs */
146872
+ previous_day_change_minutes: number;
146873
+ /** @description The pay period that holds the Saturday; null when none is set up */
146874
+ pay_period?: {
146875
+ /** @description The pay period */
146876
+ id: number;
146877
+ /**
146878
+ * Format: date
146879
+ * @description First day
146880
+ */
146881
+ start_date: string;
146882
+ /**
146883
+ * Format: date
146884
+ * @description Last day
146885
+ */
146886
+ end_date: string;
146887
+ /** @description Whether a payroll run for it is calculated or later */
146888
+ processed: boolean;
146889
+ } | null;
146890
+ /** @description The scorecard week that holds the Saturday; null when the workspace has no scorecards yet */
146891
+ scorecard_week?: {
146892
+ /**
146893
+ * Format: date
146894
+ * @description The Sunday the week starts
146895
+ */
146896
+ start_date: string;
146897
+ /**
146898
+ * Format: date
146899
+ * @description The Saturday it ends
146900
+ */
146901
+ end_date: string;
146902
+ /** @description Whether the week is locked */
146903
+ locked: boolean;
146904
+ } | null;
146905
+ /** @description What to know before switching; none block it */
146906
+ warnings: unknown[];
146907
+ /** @description Loads not delivered yet that are due to deliver in the moved hours, when that pay period is already processed */
146908
+ affected_loads: {
146909
+ /** @description The load */
146910
+ load_id: number;
146911
+ /** @description The load number */
146912
+ load_number: string;
146913
+ /** @description The driver on the trip */
146914
+ driver_name?: string | null;
146915
+ /**
146916
+ * Format: date-time
146917
+ * @description When the delivery is due
146918
+ */
146919
+ delivery_at: string;
145340
146920
  }[];
146921
+ /** @description Why the switch would be refused; null when it may switch */
146922
+ refusal?: {
146923
+ /** @description not_a_sunday, not_after_today, already_counts, already_counted, switch_waiting, pay_line_moves or scorecard_week_locked */
146924
+ reason: string;
146925
+ /** @description Why, in the operator's words */
146926
+ message: string;
146927
+ } | null;
146928
+ /** @description What the switch would do, in the operator's words */
146929
+ message: string;
145341
146930
  };
145342
146931
  };
145343
146932
  };
@@ -155182,6 +156771,15 @@ export interface operations {
155182
156771
  };
155183
156772
  requestBody?: {
155184
156773
  content: {
156774
+ /**
156775
+ * @example {
156776
+ * "team_keys": [
156777
+ * "safety",
156778
+ * "dispatch",
156779
+ * "claims"
156780
+ * ]
156781
+ * }
156782
+ */
155185
156783
  "application/json": {
155186
156784
  /** @description Active team keys in the order callers hear them (0 to 8; from communication_teams.list) */
155187
156785
  team_keys: string[] | null;
@@ -155195,6 +156793,31 @@ export interface operations {
155195
156793
  [name: string]: unknown;
155196
156794
  };
155197
156795
  content: {
156796
+ /**
156797
+ * @example {
156798
+ * "result": {
156799
+ * "options": [
156800
+ * {
156801
+ * "digit": 1,
156802
+ * "team_key": "safety",
156803
+ * "name": "Safety & compliance"
156804
+ * },
156805
+ * {
156806
+ * "digit": 2,
156807
+ * "team_key": "dispatch",
156808
+ * "name": "Dispatch"
156809
+ * },
156810
+ * {
156811
+ * "digit": 3,
156812
+ * "team_key": "claims",
156813
+ * "name": "Claims"
156814
+ * }
156815
+ * ],
156816
+ * "prompt": "For safety and compliance, press 1. For dispatch, press 2. For claims, press 3. To repeat these options, press 9.",
156817
+ * "message": "Main phone menu saved."
156818
+ * }
156819
+ * }
156820
+ */
155198
156821
  "application/json": {
155199
156822
  result: {
155200
156823
  /** @description The menu in the order callers hear it */
@@ -158035,6 +159658,12 @@ export interface operations {
158035
159658
  };
158036
159659
  requestBody?: {
158037
159660
  content: {
159661
+ /**
159662
+ * @example {
159663
+ * "number_id": 1,
159664
+ * "team_key": "safety"
159665
+ * }
159666
+ */
158038
159667
  "application/json": {
158039
159668
  /** @description A number the company holds, active, with texts on or receive only (from voice.numbers.list) */
158040
159669
  number_id: number;
@@ -158050,6 +159679,15 @@ export interface operations {
158050
159679
  [name: string]: unknown;
158051
159680
  };
158052
159681
  content: {
159682
+ /**
159683
+ * @example {
159684
+ * "result": {
159685
+ * "number_id": 1,
159686
+ * "team_key": "safety",
159687
+ * "message": "Texts to (713) 555-0142 now go to Safety & compliance."
159688
+ * }
159689
+ * }
159690
+ */
158053
159691
  "application/json": {
158054
159692
  result: {
158055
159693
  /** @description The phone number */