@axivoy/api 2.13.0 → 2.24.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.
@@ -6493,6 +6493,28 @@ export interface paths {
6493
6493
  patch?: never;
6494
6494
  trace?: never;
6495
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
+ };
6496
6518
  "/ops/inbox.conversations.transfer_queue": {
6497
6519
  parameters: {
6498
6520
  query?: never;
@@ -8627,6 +8649,28 @@ export interface paths {
8627
8649
  patch?: never;
8628
8650
  trace?: never;
8629
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
+ };
8630
8674
  "/ops/loads.trip_stops.schedule.update": {
8631
8675
  parameters: {
8632
8676
  query?: never;
@@ -9903,6 +9947,28 @@ export interface paths {
9903
9947
  patch?: never;
9904
9948
  trace?: never;
9905
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
+ };
9906
9972
  "/ops/maintenance.repairs.mark_paid": {
9907
9973
  parameters: {
9908
9974
  query?: never;
@@ -10013,6 +10079,28 @@ export interface paths {
10013
10079
  patch?: never;
10014
10080
  trace?: never;
10015
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
+ };
10016
10104
  "/ops/maintenance.repairs.unit.update": {
10017
10105
  parameters: {
10018
10106
  query?: never;
@@ -12873,6 +12961,28 @@ export interface paths {
12873
12961
  patch?: never;
12874
12962
  trace?: never;
12875
12963
  };
12964
+ "/ops/recruiting.advertising.advertise.creatives.add_video": {
12965
+ parameters: {
12966
+ query?: never;
12967
+ header?: never;
12968
+ path?: never;
12969
+ cookie?: never;
12970
+ };
12971
+ get?: never;
12972
+ put?: never;
12973
+ /**
12974
+ * Add another video to a campaign draft
12975
+ * @description Writes one more video for a campaign draft that is waiting for approval, from a description of the video when one is given.
12976
+ *
12977
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
12978
+ */
12979
+ post: operations["ops.recruiting.advertising.advertise.creatives.add_video"];
12980
+ delete?: never;
12981
+ options?: never;
12982
+ head?: never;
12983
+ patch?: never;
12984
+ trace?: never;
12985
+ };
12876
12986
  "/ops/recruiting.advertising.advertise.creatives.approve_script": {
12877
12987
  parameters: {
12878
12988
  query?: never;
@@ -12927,8 +13037,8 @@ export interface paths {
12927
13037
  get?: never;
12928
13038
  put?: never;
12929
13039
  /**
12930
- * Choose a different opening for a draft video
12931
- * @description Switches a draft video to another of its suggested openings and rewrites the script for it.
13040
+ * Choose a different idea for a draft video
13041
+ * @description Switches a draft video to another of its suggested ideas and rewrites the script for it.
12932
13042
  *
12933
13043
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
12934
13044
  */
@@ -13027,6 +13137,28 @@ export interface paths {
13027
13137
  patch?: never;
13028
13138
  trace?: never;
13029
13139
  };
13140
+ "/ops/recruiting.advertising.advertise.creatives.retry_script": {
13141
+ parameters: {
13142
+ query?: never;
13143
+ header?: never;
13144
+ path?: never;
13145
+ cookie?: never;
13146
+ };
13147
+ get?: never;
13148
+ put?: never;
13149
+ /**
13150
+ * Try writing a failed video script again
13151
+ * @description Writes the openings and script again for a draft video whose script could not be written.
13152
+ *
13153
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
13154
+ */
13155
+ post: operations["ops.recruiting.advertising.advertise.creatives.retry_script"];
13156
+ delete?: never;
13157
+ options?: never;
13158
+ head?: never;
13159
+ patch?: never;
13160
+ trace?: never;
13161
+ };
13030
13162
  "/ops/recruiting.advertising.advertise.creatives.storyboard": {
13031
13163
  parameters: {
13032
13164
  query?: never;
@@ -16657,6 +16789,28 @@ export interface paths {
16657
16789
  patch?: never;
16658
16790
  trace?: never;
16659
16791
  };
16792
+ "/ops/system.settings.company_clock.preview": {
16793
+ parameters: {
16794
+ query?: never;
16795
+ header?: never;
16796
+ path?: never;
16797
+ cookie?: never;
16798
+ };
16799
+ get?: never;
16800
+ put?: never;
16801
+ /**
16802
+ * Preview a company timezone switch
16803
+ * @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.
16804
+ *
16805
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
16806
+ */
16807
+ post: operations["ops.system.settings.company_clock.preview"];
16808
+ delete?: never;
16809
+ options?: never;
16810
+ head?: never;
16811
+ patch?: never;
16812
+ trace?: never;
16813
+ };
16660
16814
  "/ops/system.settings.planned_mileage.list": {
16661
16815
  parameters: {
16662
16816
  query?: never;
@@ -21368,9 +21522,9 @@ export interface operations {
21368
21522
  * @enum {string}
21369
21523
  */
21370
21524
  scope?: "live" | "recent";
21371
- /** @description recent scope only: start of the departure window (YYYY-MM-DD, UTC). Default 14 days ago. */
21525
+ /** @description recent scope only: start of the departure window (YYYY-MM-DD, a company date). Default 14 days ago. */
21372
21526
  date_from?: string;
21373
- /** @description recent scope only: end of the departure window (YYYY-MM-DD, UTC, inclusive). Default today. */
21527
+ /** @description recent scope only: end of the departure window (YYYY-MM-DD, a company date, inclusive). Default today. */
21374
21528
  date_to?: string;
21375
21529
  /** @description Customer name or part of it (case-insensitive). */
21376
21530
  customer?: string;
@@ -21537,9 +21691,9 @@ export interface operations {
21537
21691
  "application/json": {
21538
21692
  /** @description One driver's user id (users.id). Omit to list drivers by what they are doing on date_from. */
21539
21693
  driver_user_id?: number;
21540
- /** @description Start of the window, or the day to look at when listing drivers (YYYY-MM-DD, UTC). Default today. */
21694
+ /** @description Start of the window, or the day to look at when listing drivers (YYYY-MM-DD, a company date). Default today. */
21541
21695
  date_from?: string;
21542
- /** @description End of the window (YYYY-MM-DD, UTC, inclusive). Default 14 days after date_from. Ignored when listing drivers. */
21696
+ /** @description End of the window (YYYY-MM-DD, a company date, inclusive). Default 14 days after date_from. Ignored when listing drivers. */
21543
21697
  date_to?: string;
21544
21698
  /**
21545
21699
  * @description List filter: only drivers whose segment on date_from has this type (otr, home, exception) or who have no segment that day (unscheduled).
@@ -21720,9 +21874,9 @@ export interface operations {
21720
21874
  customer?: string;
21721
21875
  /** @description The driver's user id (users.id) from an earlier result. */
21722
21876
  driver_user_id?: number;
21723
- /** @description Start of the window (YYYY-MM-DD, UTC). Matches loads whose scheduled pickup or delivery falls in the window. */
21877
+ /** @description Start of the window (YYYY-MM-DD, a company date). Matches loads whose scheduled pickup or delivery falls in the window. */
21724
21878
  date_from?: string;
21725
- /** @description End of the window (YYYY-MM-DD, UTC, inclusive). */
21879
+ /** @description End of the window (YYYY-MM-DD, a company date, inclusive). */
21726
21880
  date_to?: string;
21727
21881
  /** @description Rows to return (default and maximum 25). */
21728
21882
  limit?: number;
@@ -22349,9 +22503,9 @@ export interface operations {
22349
22503
  * @enum {string}
22350
22504
  */
22351
22505
  subject?: "driver" | "dispatcher";
22352
- /** @description Start of the delivered-at window (YYYY-MM-DD, UTC). Default 7 days ago. */
22506
+ /** @description Start of the delivered-at window (YYYY-MM-DD, a company date). Default 7 days ago. */
22353
22507
  date_from?: string;
22354
- /** @description End of the window (YYYY-MM-DD, UTC, inclusive). Default yesterday. */
22508
+ /** @description End of the window (YYYY-MM-DD, a company date, inclusive). Default yesterday. */
22355
22509
  date_to?: string;
22356
22510
  /**
22357
22511
  * @description Order rows by the first measure: desc (default, highest first) or asc.
@@ -26949,115 +27103,6 @@ export interface operations {
26949
27103
  };
26950
27104
  };
26951
27105
  "ops.communication_teams.archive": {
26952
- parameters: {
26953
- query?: never;
26954
- header?: {
26955
- /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
26956
- "Idempotency-Key"?: string;
26957
- /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
26958
- "Axivoy-Dry-Run"?: "true" | "false";
26959
- };
26960
- path?: never;
26961
- cookie?: never;
26962
- };
26963
- requestBody?: {
26964
- content: {
26965
- "application/json": {
26966
- /** @description A custom team, or a built-in team other than Dispatch whose module is off */
26967
- team_key: string;
26968
- /** @description The active team that takes its conversations and mail; required when it has conversations */
26969
- move_conversations_to?: string;
26970
- };
26971
- };
26972
- };
26973
- responses: {
26974
- /** @description The operation ran. */
26975
- 200: {
26976
- headers: {
26977
- [name: string]: unknown;
26978
- };
26979
- content: {
26980
- "application/json": {
26981
- result: {
26982
- /** @description The team */
26983
- team_key: string;
26984
- /** @description archived for a custom team, available for a removed built-in team */
26985
- state: string;
26986
- /** @description Conversations queued to move to the chosen team */
26987
- moved_conversations: number;
26988
- /** @description What happened, in the operator's words */
26989
- message: string;
26990
- };
26991
- };
26992
- };
26993
- };
26994
- 202: components["responses"]["Proposal"];
26995
- /** @description Refused: credits_exhausted. */
26996
- 402: {
26997
- headers: {
26998
- [name: string]: unknown;
26999
- };
27000
- content: {
27001
- "application/json": components["schemas"]["OperationError"];
27002
- };
27003
- };
27004
- /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
27005
- 403: {
27006
- headers: {
27007
- [name: string]: unknown;
27008
- };
27009
- content: {
27010
- "application/json": components["schemas"]["OperationError"];
27011
- };
27012
- };
27013
- /** @description Refused: not_found. */
27014
- 404: {
27015
- headers: {
27016
- [name: string]: unknown;
27017
- };
27018
- content: {
27019
- "application/json": components["schemas"]["OperationError"];
27020
- };
27021
- };
27022
- /** @description Refused: idempotency_conflict, stale_state. */
27023
- 409: {
27024
- headers: {
27025
- [name: string]: unknown;
27026
- };
27027
- content: {
27028
- "application/json": components["schemas"]["OperationError"];
27029
- };
27030
- };
27031
- /** @description Refused: operation_retired. */
27032
- 410: {
27033
- headers: {
27034
- [name: string]: unknown;
27035
- };
27036
- content: {
27037
- "application/json": components["schemas"]["OperationError"];
27038
- };
27039
- };
27040
- /** @description Refused: invalid_input, domain_rule. */
27041
- 422: {
27042
- headers: {
27043
- [name: string]: unknown;
27044
- };
27045
- content: {
27046
- "application/json": components["schemas"]["OperationError"];
27047
- };
27048
- };
27049
- /** @description Refused: rate_limited. */
27050
- 429: {
27051
- headers: {
27052
- [name: string]: unknown;
27053
- };
27054
- content: {
27055
- "application/json": components["schemas"]["OperationError"];
27056
- };
27057
- };
27058
- };
27059
- };
27060
- "ops.communication_teams.calls.update": {
27061
27106
  parameters: {
27062
27107
  query?: never;
27063
27108
  header?: {
@@ -27073,33 +27118,14 @@ export interface operations {
27073
27118
  content: {
27074
27119
  /**
27075
27120
  * @example {
27076
- * "team_key": "safety",
27077
- * "answered_by": "ring_group",
27078
- * "ring_group_id": 1,
27079
- * "after_hours": "ring",
27080
- * "voicemail_greeting": "Safety is out. Leave a message.",
27081
- * "menu_phrase": "For safety"
27121
+ * "team_key": "claims"
27082
27122
  * }
27083
27123
  */
27084
27124
  "application/json": {
27085
- /** @description The team (from communication_teams.list) */
27125
+ /** @description A custom team, or a built-in team other than Dispatch whose module is off */
27086
27126
  team_key: string;
27087
- /**
27088
- * @description members rings the team's people with Calls on; ring_group rings ring_group_id
27089
- * @enum {string}
27090
- */
27091
- answered_by?: "members" | "ring_group";
27092
- /** @description The company's ring group; required when answered_by is ring_group */
27093
- ring_group_id?: number | null;
27094
- /**
27095
- * @description ring or voicemail when the company is closed
27096
- * @enum {string}
27097
- */
27098
- after_hours?: "ring" | "voicemail";
27099
- /** @description What callers hear before the tone; empty uses the default */
27100
- voicemail_greeting?: string | null;
27101
- /** @description What the main phone menu says before "press {digit}", for example "For billing and payments" */
27102
- menu_phrase?: string | null;
27127
+ /** @description The active team that takes its conversations and mail; required when it has conversations */
27128
+ move_conversations_to?: string;
27103
27129
  };
27104
27130
  };
27105
27131
  };
@@ -27113,13 +27139,10 @@ export interface operations {
27113
27139
  /**
27114
27140
  * @example {
27115
27141
  * "result": {
27116
- * "team_key": "safety",
27117
- * "readiness": {
27118
- * "state": "ready",
27119
- * "label": "Ready",
27120
- * "tone": "success"
27121
- * },
27122
- * "message": "Safety & compliance saved."
27142
+ * "team_key": "claims",
27143
+ * "state": "archived",
27144
+ * "moved_conversations": 0,
27145
+ * "message": "Claims archived."
27123
27146
  * }
27124
27147
  * }
27125
27148
  */
@@ -27127,8 +27150,154 @@ export interface operations {
27127
27150
  result: {
27128
27151
  /** @description The team */
27129
27152
  team_key: string;
27130
- /** @description {state, label, tone} after the change */
27131
- readiness: Record<string, never>;
27153
+ /** @description archived for a custom team, available for a removed built-in team */
27154
+ state: string;
27155
+ /** @description Conversations queued to move to the chosen team */
27156
+ moved_conversations: number;
27157
+ /** @description What happened, in the operator's words */
27158
+ message: string;
27159
+ };
27160
+ };
27161
+ };
27162
+ };
27163
+ 202: components["responses"]["Proposal"];
27164
+ /** @description Refused: credits_exhausted. */
27165
+ 402: {
27166
+ headers: {
27167
+ [name: string]: unknown;
27168
+ };
27169
+ content: {
27170
+ "application/json": components["schemas"]["OperationError"];
27171
+ };
27172
+ };
27173
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
27174
+ 403: {
27175
+ headers: {
27176
+ [name: string]: unknown;
27177
+ };
27178
+ content: {
27179
+ "application/json": components["schemas"]["OperationError"];
27180
+ };
27181
+ };
27182
+ /** @description Refused: not_found. */
27183
+ 404: {
27184
+ headers: {
27185
+ [name: string]: unknown;
27186
+ };
27187
+ content: {
27188
+ "application/json": components["schemas"]["OperationError"];
27189
+ };
27190
+ };
27191
+ /** @description Refused: idempotency_conflict, stale_state. */
27192
+ 409: {
27193
+ headers: {
27194
+ [name: string]: unknown;
27195
+ };
27196
+ content: {
27197
+ "application/json": components["schemas"]["OperationError"];
27198
+ };
27199
+ };
27200
+ /** @description Refused: operation_retired. */
27201
+ 410: {
27202
+ headers: {
27203
+ [name: string]: unknown;
27204
+ };
27205
+ content: {
27206
+ "application/json": components["schemas"]["OperationError"];
27207
+ };
27208
+ };
27209
+ /** @description Refused: invalid_input, domain_rule. */
27210
+ 422: {
27211
+ headers: {
27212
+ [name: string]: unknown;
27213
+ };
27214
+ content: {
27215
+ "application/json": components["schemas"]["OperationError"];
27216
+ };
27217
+ };
27218
+ /** @description Refused: rate_limited. */
27219
+ 429: {
27220
+ headers: {
27221
+ [name: string]: unknown;
27222
+ };
27223
+ content: {
27224
+ "application/json": components["schemas"]["OperationError"];
27225
+ };
27226
+ };
27227
+ };
27228
+ };
27229
+ "ops.communication_teams.calls.update": {
27230
+ parameters: {
27231
+ query?: never;
27232
+ header?: {
27233
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
27234
+ "Idempotency-Key"?: string;
27235
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
27236
+ "Axivoy-Dry-Run"?: "true" | "false";
27237
+ };
27238
+ path?: never;
27239
+ cookie?: never;
27240
+ };
27241
+ requestBody?: {
27242
+ content: {
27243
+ /**
27244
+ * @example {
27245
+ * "team_key": "safety",
27246
+ * "answered_by": "ring_group",
27247
+ * "ring_group_id": 1,
27248
+ * "after_hours": "ring",
27249
+ * "voicemail_greeting": "Safety is out. Leave a message.",
27250
+ * "menu_phrase": "For safety"
27251
+ * }
27252
+ */
27253
+ "application/json": {
27254
+ /** @description The team (from communication_teams.list) */
27255
+ team_key: string;
27256
+ /**
27257
+ * @description members rings the team's people with Calls on; ring_group rings ring_group_id
27258
+ * @enum {string}
27259
+ */
27260
+ answered_by?: "members" | "ring_group";
27261
+ /** @description The company's ring group; required when answered_by is ring_group */
27262
+ ring_group_id?: number | null;
27263
+ /**
27264
+ * @description ring or voicemail when the company is closed
27265
+ * @enum {string}
27266
+ */
27267
+ after_hours?: "ring" | "voicemail";
27268
+ /** @description What callers hear before the tone; empty uses the default */
27269
+ voicemail_greeting?: string | null;
27270
+ /** @description What the main phone menu says before "press {digit}", for example "For billing and payments" */
27271
+ menu_phrase?: string | null;
27272
+ };
27273
+ };
27274
+ };
27275
+ responses: {
27276
+ /** @description The operation ran. */
27277
+ 200: {
27278
+ headers: {
27279
+ [name: string]: unknown;
27280
+ };
27281
+ content: {
27282
+ /**
27283
+ * @example {
27284
+ * "result": {
27285
+ * "team_key": "safety",
27286
+ * "readiness": {
27287
+ * "state": "ready",
27288
+ * "label": "Ready",
27289
+ * "tone": "success"
27290
+ * },
27291
+ * "message": "Safety & compliance saved."
27292
+ * }
27293
+ * }
27294
+ */
27295
+ "application/json": {
27296
+ result: {
27297
+ /** @description The team */
27298
+ team_key: string;
27299
+ /** @description {state, label, tone} after the change */
27300
+ readiness: Record<string, never>;
27132
27301
  /** @description What happened, in the operator's words */
27133
27302
  message: string;
27134
27303
  };
@@ -27215,6 +27384,12 @@ export interface operations {
27215
27384
  };
27216
27385
  requestBody?: {
27217
27386
  content: {
27387
+ /**
27388
+ * @example {
27389
+ * "name": " Brokerage desk ",
27390
+ * "email_local_part": "Brokerage"
27391
+ * }
27392
+ */
27218
27393
  "application/json": {
27219
27394
  /** @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 */
27220
27395
  name?: string;
@@ -27232,6 +27407,15 @@ export interface operations {
27232
27407
  [name: string]: unknown;
27233
27408
  };
27234
27409
  content: {
27410
+ /**
27411
+ * @example {
27412
+ * "result": {
27413
+ * "team_key": "brokerage_desk",
27414
+ * "email_address": null,
27415
+ * "message": "Brokerage desk created. Add its people next."
27416
+ * }
27417
+ * }
27418
+ */
27235
27419
  "application/json": {
27236
27420
  result: {
27237
27421
  /** @description The new team (or the built-in team added) */
@@ -27324,6 +27508,11 @@ export interface operations {
27324
27508
  };
27325
27509
  requestBody?: {
27326
27510
  content: {
27511
+ /**
27512
+ * @example {
27513
+ * "team_key": "receivables"
27514
+ * }
27515
+ */
27327
27516
  "application/json": {
27328
27517
  /** @description An active team key (from communication_teams.list); Recruiting is refused because candidates' texts already go there */
27329
27518
  team_key: string;
@@ -27337,6 +27526,15 @@ export interface operations {
27337
27526
  [name: string]: unknown;
27338
27527
  };
27339
27528
  content: {
27529
+ /**
27530
+ * @example {
27531
+ * "result": {
27532
+ * "team_key": "receivables",
27533
+ * "previous_team_key": "dispatch",
27534
+ * "message": "New texts to numbers not set to a team, and calls that reach no team, now go to Receivables."
27535
+ * }
27536
+ * }
27537
+ */
27340
27538
  "application/json": {
27341
27539
  result: {
27342
27540
  /** @description The default team now */
@@ -28440,6 +28638,15 @@ export interface operations {
28440
28638
  };
28441
28639
  requestBody?: {
28442
28640
  content: {
28641
+ /**
28642
+ * @example {
28643
+ * "team_key": "safety",
28644
+ * "number_id": 1,
28645
+ * "calls": true,
28646
+ * "texts": true,
28647
+ * "confirm_move": true
28648
+ * }
28649
+ */
28443
28650
  "application/json": {
28444
28651
  /** @description An active team (from communication_teams.list) */
28445
28652
  team_key: string;
@@ -28461,6 +28668,18 @@ export interface operations {
28461
28668
  [name: string]: unknown;
28462
28669
  };
28463
28670
  content: {
28671
+ /**
28672
+ * @example {
28673
+ * "result": {
28674
+ * "number_id": 1,
28675
+ * "team_key": "safety",
28676
+ * "calls": true,
28677
+ * "texts": true,
28678
+ * "moved_from": "Texts to (713) 555-0142 go to Dispatch today.",
28679
+ * "message": "Calls to (713) 555-0142 now ring Safety & compliance. Texts to (713) 555-0142 now come to Safety & compliance."
28680
+ * }
28681
+ * }
28682
+ */
28464
28683
  "application/json": {
28465
28684
  result: {
28466
28685
  /** @description The phone number */
@@ -28910,6 +29129,11 @@ export interface operations {
28910
29129
  };
28911
29130
  requestBody?: {
28912
29131
  content: {
29132
+ /**
29133
+ * @example {
29134
+ * "team_key": "dispatch"
29135
+ * }
29136
+ */
28913
29137
  "application/json": {
28914
29138
  /** @description The team (from communication_teams.list) */
28915
29139
  team_key: string;
@@ -28923,6 +29147,15 @@ export interface operations {
28923
29147
  [name: string]: unknown;
28924
29148
  };
28925
29149
  content: {
29150
+ /**
29151
+ * @example {
29152
+ * "result": {
29153
+ * "identity_id": 1,
29154
+ * "forwarding_test_sent_at": "2026-10-29T19:28:52Z",
29155
+ * "message": "We sent a test to ops@carrier.example.com."
29156
+ * }
29157
+ * }
29158
+ */
28926
29159
  "application/json": {
28927
29160
  result: {
28928
29161
  /** @description The team's own address */
@@ -66635,7 +66868,11 @@ export interface operations {
66635
66868
  * "at": "2026-10-20T14:00:00Z"
66636
66869
  * }
66637
66870
  * ],
66638
- * "has_older_messages": false
66871
+ * "has_older_messages": false,
66872
+ * "candidate_id": null,
66873
+ * "agents": [],
66874
+ * "send_takes_over": null,
66875
+ * "text_feed": null
66639
66876
  * }
66640
66877
  * }
66641
66878
  */
@@ -68450,6 +68687,192 @@ export interface operations {
68450
68687
  };
68451
68688
  };
68452
68689
  };
68690
+ "ops.inbox.conversations.split_message": {
68691
+ parameters: {
68692
+ query?: never;
68693
+ header?: {
68694
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
68695
+ "Idempotency-Key"?: string;
68696
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
68697
+ "Axivoy-Dry-Run"?: "true" | "false";
68698
+ };
68699
+ path?: never;
68700
+ cookie?: never;
68701
+ };
68702
+ requestBody?: {
68703
+ content: {
68704
+ /**
68705
+ * @example {
68706
+ * "thread_id": 1,
68707
+ * "inbound_message_id": 9
68708
+ * }
68709
+ */
68710
+ "application/json": {
68711
+ /** @description The conversation */
68712
+ thread_id: number;
68713
+ /** @description A received email on the conversation (from inbox.conversations.get) */
68714
+ inbound_message_id: number;
68715
+ };
68716
+ };
68717
+ };
68718
+ responses: {
68719
+ /** @description The operation ran. */
68720
+ 200: {
68721
+ headers: {
68722
+ [name: string]: unknown;
68723
+ };
68724
+ content: {
68725
+ /**
68726
+ * @example {
68727
+ * "result": {
68728
+ * "ok": true,
68729
+ * "message": "Moved the email to its own conversation.",
68730
+ * "conversation": {
68731
+ * "id": 1,
68732
+ * "channel": "email",
68733
+ * "subject": "Invoice INV-9",
68734
+ * "queue_key": "receivables",
68735
+ * "queue_keys": [
68736
+ * "receivables"
68737
+ * ],
68738
+ * "state": "awaiting_reply",
68739
+ * "assigned_user_id": null,
68740
+ * "member_user_ids": [],
68741
+ * "screened_category": null,
68742
+ * "related_type": null,
68743
+ * "related_id": null,
68744
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
68745
+ * "last_inbound_at": "2026-10-20T14:00:00Z",
68746
+ * "last_outbound_at": null,
68747
+ * "closed_at": null
68748
+ * },
68749
+ * "new_thread_id": 9
68750
+ * }
68751
+ * }
68752
+ */
68753
+ "application/json": {
68754
+ result: {
68755
+ /** @description True when the change was made */
68756
+ ok: boolean;
68757
+ /** @description What happened, ready to show a person */
68758
+ message: string;
68759
+ /** @description The conversation as it now stands */
68760
+ conversation: {
68761
+ /** @description Conversation id (thread_id on every conversation operation) */
68762
+ id: number;
68763
+ /** @description email or sms */
68764
+ channel?: string | null;
68765
+ /** @description Subject as the outside party wrote it */
68766
+ subject?: string | null;
68767
+ /** @description Home team */
68768
+ queue_key?: string | null;
68769
+ /** @description Home team first, then the teams it is also in */
68770
+ queue_keys: unknown[];
68771
+ /** @description open, awaiting_reply or closed */
68772
+ state: string;
68773
+ /** @description Owner */
68774
+ assigned_user_id?: number | null;
68775
+ /** @description Owner and everyone it is shared with */
68776
+ member_user_ids: unknown[];
68777
+ /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
68778
+ screened_category?: string | null;
68779
+ /** @description Linked record type, for example load or customer_invoice */
68780
+ related_type?: string | null;
68781
+ /** @description Linked record id */
68782
+ related_id?: number | null;
68783
+ /**
68784
+ * Format: date-time
68785
+ * @description When the outside party started waiting on us
68786
+ */
68787
+ awaiting_reply_since?: string | null;
68788
+ /**
68789
+ * Format: date-time
68790
+ * @description Last message received
68791
+ */
68792
+ last_inbound_at?: string | null;
68793
+ /**
68794
+ * Format: date-time
68795
+ * @description Last message sent
68796
+ */
68797
+ last_outbound_at?: string | null;
68798
+ /**
68799
+ * Format: date-time
68800
+ * @description When it was closed
68801
+ */
68802
+ closed_at?: string | null;
68803
+ };
68804
+ /** @description The new conversation that now holds the email */
68805
+ new_thread_id: number;
68806
+ };
68807
+ };
68808
+ };
68809
+ };
68810
+ 202: components["responses"]["Proposal"];
68811
+ /** @description Refused: credits_exhausted. */
68812
+ 402: {
68813
+ headers: {
68814
+ [name: string]: unknown;
68815
+ };
68816
+ content: {
68817
+ "application/json": components["schemas"]["OperationError"];
68818
+ };
68819
+ };
68820
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
68821
+ 403: {
68822
+ headers: {
68823
+ [name: string]: unknown;
68824
+ };
68825
+ content: {
68826
+ "application/json": components["schemas"]["OperationError"];
68827
+ };
68828
+ };
68829
+ /** @description Refused: not_found. */
68830
+ 404: {
68831
+ headers: {
68832
+ [name: string]: unknown;
68833
+ };
68834
+ content: {
68835
+ "application/json": components["schemas"]["OperationError"];
68836
+ };
68837
+ };
68838
+ /** @description Refused: idempotency_conflict, stale_state. */
68839
+ 409: {
68840
+ headers: {
68841
+ [name: string]: unknown;
68842
+ };
68843
+ content: {
68844
+ "application/json": components["schemas"]["OperationError"];
68845
+ };
68846
+ };
68847
+ /** @description Refused: operation_retired. */
68848
+ 410: {
68849
+ headers: {
68850
+ [name: string]: unknown;
68851
+ };
68852
+ content: {
68853
+ "application/json": components["schemas"]["OperationError"];
68854
+ };
68855
+ };
68856
+ /** @description Refused: invalid_input, domain_rule. */
68857
+ 422: {
68858
+ headers: {
68859
+ [name: string]: unknown;
68860
+ };
68861
+ content: {
68862
+ "application/json": components["schemas"]["OperationError"];
68863
+ };
68864
+ };
68865
+ /** @description Refused: rate_limited. */
68866
+ 429: {
68867
+ headers: {
68868
+ [name: string]: unknown;
68869
+ };
68870
+ content: {
68871
+ "application/json": components["schemas"]["OperationError"];
68872
+ };
68873
+ };
68874
+ };
68875
+ };
68453
68876
  "ops.inbox.conversations.transfer_queue": {
68454
68877
  parameters: {
68455
68878
  query?: never;
@@ -85133,7 +85556,145 @@ export interface operations {
85133
85556
  };
85134
85557
  };
85135
85558
  };
85136
- "ops.loads.trip_stops.references.update": {
85559
+ "ops.loads.trip_stops.references.update": {
85560
+ parameters: {
85561
+ query?: never;
85562
+ header?: {
85563
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
85564
+ "Idempotency-Key"?: string;
85565
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
85566
+ "Axivoy-Dry-Run"?: "true" | "false";
85567
+ };
85568
+ path?: never;
85569
+ cookie?: never;
85570
+ };
85571
+ requestBody?: {
85572
+ content: {
85573
+ /**
85574
+ * @example {
85575
+ * "load_id": 1,
85576
+ * "stop_id": 1,
85577
+ * "reference_values": {
85578
+ * "pickup_number": "PU-123"
85579
+ * }
85580
+ * }
85581
+ */
85582
+ "application/json": {
85583
+ /** @description Load id */
85584
+ load_id: number;
85585
+ /** @description Stop id on a trip segment of the load */
85586
+ stop_id: number;
85587
+ /** @description Reference numbers keyed by reference type (or existing row id), each up to 128 characters */
85588
+ reference_values?: Record<string, never>;
85589
+ /** @description Custom labels keyed the same way as reference_values */
85590
+ reference_labels?: Record<string, never>;
85591
+ };
85592
+ };
85593
+ };
85594
+ responses: {
85595
+ /** @description The operation ran. */
85596
+ 200: {
85597
+ headers: {
85598
+ [name: string]: unknown;
85599
+ };
85600
+ content: {
85601
+ /**
85602
+ * @example {
85603
+ * "result": {
85604
+ * "load_id": 1,
85605
+ * "load_number": "AX-API-0001",
85606
+ * "operational_status": "open",
85607
+ * "updated_at": "2026-10-19T06:53:21Z",
85608
+ * "stop_id": 1
85609
+ * }
85610
+ * }
85611
+ */
85612
+ "application/json": {
85613
+ result: {
85614
+ /** @description Load id */
85615
+ load_id: number;
85616
+ /** @description Load number shown to people */
85617
+ load_number?: string | null;
85618
+ /** @description Execution status after the change */
85619
+ operational_status?: string | null;
85620
+ /**
85621
+ * Format: date-time
85622
+ * @description When the load row last changed
85623
+ */
85624
+ updated_at?: string | null;
85625
+ /** @description Stop id */
85626
+ stop_id: number;
85627
+ };
85628
+ };
85629
+ };
85630
+ };
85631
+ 202: components["responses"]["Proposal"];
85632
+ /** @description Refused: credits_exhausted. */
85633
+ 402: {
85634
+ headers: {
85635
+ [name: string]: unknown;
85636
+ };
85637
+ content: {
85638
+ "application/json": components["schemas"]["OperationError"];
85639
+ };
85640
+ };
85641
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
85642
+ 403: {
85643
+ headers: {
85644
+ [name: string]: unknown;
85645
+ };
85646
+ content: {
85647
+ "application/json": components["schemas"]["OperationError"];
85648
+ };
85649
+ };
85650
+ /** @description Refused: not_found. */
85651
+ 404: {
85652
+ headers: {
85653
+ [name: string]: unknown;
85654
+ };
85655
+ content: {
85656
+ "application/json": components["schemas"]["OperationError"];
85657
+ };
85658
+ };
85659
+ /** @description Refused: idempotency_conflict, stale_state. */
85660
+ 409: {
85661
+ headers: {
85662
+ [name: string]: unknown;
85663
+ };
85664
+ content: {
85665
+ "application/json": components["schemas"]["OperationError"];
85666
+ };
85667
+ };
85668
+ /** @description Refused: operation_retired. */
85669
+ 410: {
85670
+ headers: {
85671
+ [name: string]: unknown;
85672
+ };
85673
+ content: {
85674
+ "application/json": components["schemas"]["OperationError"];
85675
+ };
85676
+ };
85677
+ /** @description Refused: invalid_input, domain_rule. */
85678
+ 422: {
85679
+ headers: {
85680
+ [name: string]: unknown;
85681
+ };
85682
+ content: {
85683
+ "application/json": components["schemas"]["OperationError"];
85684
+ };
85685
+ };
85686
+ /** @description Refused: rate_limited. */
85687
+ 429: {
85688
+ headers: {
85689
+ [name: string]: unknown;
85690
+ };
85691
+ content: {
85692
+ "application/json": components["schemas"]["OperationError"];
85693
+ };
85694
+ };
85695
+ };
85696
+ };
85697
+ "ops.loads.trip_stops.reorder": {
85137
85698
  parameters: {
85138
85699
  query?: never;
85139
85700
  header?: {
@@ -85150,21 +85711,29 @@ export interface operations {
85150
85711
  /**
85151
85712
  * @example {
85152
85713
  * "load_id": 1,
85153
- * "stop_id": 1,
85154
- * "reference_values": {
85155
- * "pickup_number": "PU-123"
85156
- * }
85714
+ * "route_structure_version": 0,
85715
+ * "ordered_stop_ids": [
85716
+ * 2,
85717
+ * 1
85718
+ * ]
85157
85719
  * }
85158
85720
  */
85159
85721
  "application/json": {
85160
85722
  /** @description Load id */
85161
85723
  load_id: number;
85162
- /** @description Stop id on a trip segment of the load */
85163
- stop_id: number;
85164
- /** @description Reference numbers keyed by reference type (or existing row id), each up to 128 characters */
85165
- reference_values?: Record<string, never>;
85166
- /** @description Custom labels keyed the same way as reference_values */
85167
- reference_labels?: Record<string, never>;
85724
+ /** @description Route version the change was made against, from the last read or write */
85725
+ route_structure_version: number;
85726
+ /** @description Save even when stop times would be out of order */
85727
+ acknowledge_schedule_conflict?: boolean;
85728
+ /** @description Every active stop id, in the new order */
85729
+ ordered_stop_ids: number[];
85730
+ /** @description Stops that move to another trip segment */
85731
+ segment_assignments?: {
85732
+ /** @description Stop id */
85733
+ stop_id: number;
85734
+ /** @description Trip segment the stop moves to */
85735
+ trip_id: number;
85736
+ }[] | null;
85168
85737
  };
85169
85738
  };
85170
85739
  };
@@ -85182,7 +85751,22 @@ export interface operations {
85182
85751
  * "load_number": "AX-API-0001",
85183
85752
  * "operational_status": "open",
85184
85753
  * "updated_at": "2026-10-19T06:53:21Z",
85185
- * "stop_id": 1
85754
+ * "route_structure_version": 1,
85755
+ * "schedule_conflicts": [],
85756
+ * "affected_trip_ids": [
85757
+ * {
85758
+ * "trip_id": 1
85759
+ * }
85760
+ * ],
85761
+ * "created_stop_ids": [],
85762
+ * "changed_stop_ids": [
85763
+ * {
85764
+ * "stop_id": 2
85765
+ * },
85766
+ * {
85767
+ * "stop_id": 1
85768
+ * }
85769
+ * ]
85186
85770
  * }
85187
85771
  * }
85188
85772
  */
@@ -85199,8 +85783,32 @@ export interface operations {
85199
85783
  * @description When the load row last changed
85200
85784
  */
85201
85785
  updated_at?: string | null;
85202
- /** @description Stop id */
85203
- stop_id: number;
85786
+ /** @description Route version after the change */
85787
+ route_structure_version: number;
85788
+ /** @description Stop times now out of order */
85789
+ schedule_conflicts: {
85790
+ /** @description Earlier stop */
85791
+ before_stop_id: number;
85792
+ /** @description Later stop scheduled before it */
85793
+ after_stop_id: number;
85794
+ /** @description What is out of order */
85795
+ message: string;
85796
+ }[];
85797
+ /** @description Trip segments the change touched */
85798
+ affected_trip_ids: {
85799
+ /** @description Trip segment id */
85800
+ trip_id: number;
85801
+ }[];
85802
+ /** @description Stops added */
85803
+ created_stop_ids: {
85804
+ /** @description Stop id */
85805
+ stop_id: number;
85806
+ }[];
85807
+ /** @description Stops changed */
85808
+ changed_stop_ids: {
85809
+ /** @description Stop id */
85810
+ stop_id: number;
85811
+ }[];
85204
85812
  };
85205
85813
  };
85206
85814
  };
@@ -85271,7 +85879,7 @@ export interface operations {
85271
85879
  };
85272
85880
  };
85273
85881
  };
85274
- "ops.loads.trip_stops.reorder": {
85882
+ "ops.loads.trip_stops.save": {
85275
85883
  parameters: {
85276
85884
  query?: never;
85277
85885
  header?: {
@@ -85289,28 +85897,103 @@ export interface operations {
85289
85897
  * @example {
85290
85898
  * "load_id": 1,
85291
85899
  * "route_structure_version": 0,
85292
- * "ordered_stop_ids": [
85293
- * 2,
85294
- * 1
85295
- * ]
85900
+ * "insert_after_stop_id": 1,
85901
+ * "facility": {
85902
+ * "facility_mode": "link",
85903
+ * "location_id": 1
85904
+ * },
85905
+ * "schedule": {
85906
+ * "scheduling_mode": "appointment",
85907
+ * "appointment_at": "2026-10-21T09:00"
85908
+ * },
85909
+ * "references": {
85910
+ * "reference_values": {
85911
+ * "pickup_number": "PU-456"
85912
+ * }
85913
+ * }
85296
85914
  * }
85297
85915
  */
85298
85916
  "application/json": {
85299
85917
  /** @description Load id */
85300
85918
  load_id: number;
85301
- /** @description Route version the change was made against, from the last read or write */
85302
- route_structure_version: number;
85919
+ /** @description Stop to save; leave out to add a new stop */
85920
+ stop_id?: number | null;
85921
+ /** @description Route version the change was made against; required when adding a stop or changing its type */
85922
+ route_structure_version?: number | null;
85923
+ /** @description Trip segment for a new stop; defaults to the main trip */
85924
+ trip_id?: number | null;
85925
+ /** @description Add the new stop right after this stop */
85926
+ insert_after_stop_id?: number | null;
85927
+ /** @description Add the new stop right before this stop; with neither, it goes after the last upcoming stop */
85928
+ insert_before_stop_id?: number | null;
85929
+ /**
85930
+ * @description Stop type; a new stop defaults to delivery
85931
+ * @enum {string|null}
85932
+ */
85933
+ stop_type?: "pickup" | "delivery" | "waypoint" | null;
85934
+ /** @description The site: the inputs of loads.trip_stops.facility.update */
85935
+ facility?: {
85936
+ /**
85937
+ * @description link a saved site or create a new one; defaults to link when location_id is given
85938
+ * @enum {string|null}
85939
+ */
85940
+ facility_mode?: "link" | "new" | null;
85941
+ /** @description Saved customer site id (link mode) */
85942
+ location_id?: number | null;
85943
+ /** @description Company the new site belongs to (new mode) */
85944
+ parent_organization_id?: string | null;
85945
+ /** @description Confirm creating a new company for the site (new mode) */
85946
+ confirm_mint_parent?: boolean;
85947
+ /** @description The new site (new mode) */
85948
+ new_site?: {
85949
+ /** @description Facility name */
85950
+ company_name?: string | null;
85951
+ /** @description Street address */
85952
+ address_line1?: string | null;
85953
+ /** @description Suite or unit */
85954
+ address_line2?: string | null;
85955
+ /** @description City */
85956
+ city?: string | null;
85957
+ /** @description State */
85958
+ state?: string | null;
85959
+ /** @description ZIP or postal code */
85960
+ postal_code?: string | null;
85961
+ /** @description Existing company id for the site */
85962
+ organization_id?: number | null;
85963
+ } | null;
85964
+ } | null;
85965
+ /** @description scheduling_mode, appointment_at, window_begin_at, window_end_at, facility local */
85966
+ schedule?: {
85967
+ /**
85968
+ * @description appointment for a set time, fcfs for a window
85969
+ * @enum {string}
85970
+ */
85971
+ scheduling_mode: "appointment" | "fcfs";
85972
+ /** @description Appointment time, facility local (appointment mode) */
85973
+ appointment_at?: string | null;
85974
+ /** @description Window start, facility local (fcfs mode) */
85975
+ window_begin_at?: string | null;
85976
+ /** @description Window end, facility local (fcfs mode) */
85977
+ window_end_at?: string | null;
85978
+ } | null;
85979
+ /** @description reference_values and reference_labels, as in loads.trip_stops.references.update */
85980
+ references?: {
85981
+ /** @description Reference numbers keyed by reference type (or existing row id), each up to 128 characters */
85982
+ reference_values?: Record<string, never>;
85983
+ /** @description Custom labels keyed the same way as reference_values */
85984
+ reference_labels?: Record<string, never>;
85985
+ } | null;
85986
+ /** @description eta_at, arrived_at, departed_at, facility local */
85987
+ times?: {
85988
+ /** @description ETA, facility local; blank leaves it as it is */
85989
+ eta_at?: string | null;
85990
+ /** @description Arrival time, facility local; blank leaves it as it is */
85991
+ arrived_at?: string | null;
85992
+ /** @description Departure time, facility local; blank leaves it as it is */
85993
+ departed_at?: string | null;
85994
+ } | null;
85303
85995
  /** @description Save even when stop times would be out of order */
85304
85996
  acknowledge_schedule_conflict?: boolean;
85305
- /** @description Every active stop id, in the new order */
85306
- ordered_stop_ids: number[];
85307
- /** @description Stops that move to another trip segment */
85308
- segment_assignments?: {
85309
- /** @description Stop id */
85310
- stop_id: number;
85311
- /** @description Trip segment the stop moves to */
85312
- trip_id: number;
85313
- }[] | null;
85314
85997
  };
85315
85998
  };
85316
85999
  };
@@ -85327,23 +86010,13 @@ export interface operations {
85327
86010
  * "load_id": 1,
85328
86011
  * "load_number": "AX-API-0001",
85329
86012
  * "operational_status": "open",
85330
- * "updated_at": "2026-10-19T06:53:21Z",
86013
+ * "updated_at": "2026-10-29T10:02:40Z",
86014
+ * "stop_id": 3,
86015
+ * "created": true,
86016
+ * "location_id": 1,
85331
86017
  * "route_structure_version": 1,
85332
86018
  * "schedule_conflicts": [],
85333
- * "affected_trip_ids": [
85334
- * {
85335
- * "trip_id": 1
85336
- * }
85337
- * ],
85338
- * "created_stop_ids": [],
85339
- * "changed_stop_ids": [
85340
- * {
85341
- * "stop_id": 2
85342
- * },
85343
- * {
85344
- * "stop_id": 1
85345
- * }
85346
- * ]
86019
+ * "warnings": []
85347
86020
  * }
85348
86021
  * }
85349
86022
  */
@@ -85360,9 +86033,15 @@ export interface operations {
85360
86033
  * @description When the load row last changed
85361
86034
  */
85362
86035
  updated_at?: string | null;
85363
- /** @description Route version after the change */
86036
+ /** @description The saved stop */
86037
+ stop_id: number;
86038
+ /** @description True when the save added the stop */
86039
+ created: boolean;
86040
+ /** @description Customer site the stop is linked to after the save */
86041
+ location_id?: number | null;
86042
+ /** @description Route version after the save */
85364
86043
  route_structure_version: number;
85365
- /** @description Stop times now out of order */
86044
+ /** @description Acknowledged stop times now out of order */
85366
86045
  schedule_conflicts: {
85367
86046
  /** @description Earlier stop */
85368
86047
  before_stop_id: number;
@@ -85371,20 +86050,10 @@ export interface operations {
85371
86050
  /** @description What is out of order */
85372
86051
  message: string;
85373
86052
  }[];
85374
- /** @description Trip segments the change touched */
85375
- affected_trip_ids: {
85376
- /** @description Trip segment id */
85377
- trip_id: number;
85378
- }[];
85379
- /** @description Stops added */
85380
- created_stop_ids: {
85381
- /** @description Stop id */
85382
- stop_id: number;
85383
- }[];
85384
- /** @description Stops changed */
85385
- changed_stop_ids: {
85386
- /** @description Stop id */
85387
- stop_id: number;
86053
+ /** @description Things still missing to complete the stop, such as documents */
86054
+ warnings: {
86055
+ /** @description Warning text */
86056
+ message: string;
85388
86057
  }[];
85389
86058
  };
85390
86059
  };
@@ -92688,7 +93357,138 @@ export interface operations {
92688
93357
  };
92689
93358
  };
92690
93359
  };
92691
- "ops.maintenance.reconciliations.reattach": {
93360
+ "ops.maintenance.reconciliations.reattach": {
93361
+ parameters: {
93362
+ query?: never;
93363
+ header?: {
93364
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
93365
+ "Idempotency-Key"?: string;
93366
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
93367
+ "Axivoy-Dry-Run"?: "true" | "false";
93368
+ };
93369
+ path?: never;
93370
+ cookie?: never;
93371
+ };
93372
+ requestBody?: {
93373
+ content: {
93374
+ /**
93375
+ * @example {
93376
+ * "reconciliation_id": 1,
93377
+ * "purchase_order_id": 2
93378
+ * }
93379
+ */
93380
+ "application/json": {
93381
+ /** @description The bill review (reconciliation) id */
93382
+ reconciliation_id: number;
93383
+ /** @description The purchase order the bill belongs to */
93384
+ purchase_order_id: number | string | null;
93385
+ };
93386
+ };
93387
+ };
93388
+ responses: {
93389
+ /** @description The operation ran. */
93390
+ 200: {
93391
+ headers: {
93392
+ [name: string]: unknown;
93393
+ };
93394
+ content: {
93395
+ /**
93396
+ * @example {
93397
+ * "result": {
93398
+ * "id": 2,
93399
+ * "message": "Bill attached to PO-184694. Review it below.",
93400
+ * "pending": true,
93401
+ * "resolution": null,
93402
+ * "purchase_order_id": 2,
93403
+ * "work_order_id": 1
93404
+ * }
93405
+ * }
93406
+ */
93407
+ "application/json": {
93408
+ result: {
93409
+ /** @description The bill review id */
93410
+ id?: number | null;
93411
+ /** @description What happened, in the operator's words */
93412
+ message: string;
93413
+ /** @description The bill still needs an answer */
93414
+ pending: boolean;
93415
+ /** @description How the bill was settled, once it is */
93416
+ resolution?: string | null;
93417
+ /** @description The purchase order the bill is on now */
93418
+ purchase_order_id?: number | null;
93419
+ /** @description The repair the bill is for */
93420
+ work_order_id?: number | null;
93421
+ };
93422
+ };
93423
+ };
93424
+ };
93425
+ 202: components["responses"]["Proposal"];
93426
+ /** @description Refused: credits_exhausted. */
93427
+ 402: {
93428
+ headers: {
93429
+ [name: string]: unknown;
93430
+ };
93431
+ content: {
93432
+ "application/json": components["schemas"]["OperationError"];
93433
+ };
93434
+ };
93435
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
93436
+ 403: {
93437
+ headers: {
93438
+ [name: string]: unknown;
93439
+ };
93440
+ content: {
93441
+ "application/json": components["schemas"]["OperationError"];
93442
+ };
93443
+ };
93444
+ /** @description Refused: not_found. */
93445
+ 404: {
93446
+ headers: {
93447
+ [name: string]: unknown;
93448
+ };
93449
+ content: {
93450
+ "application/json": components["schemas"]["OperationError"];
93451
+ };
93452
+ };
93453
+ /** @description Refused: idempotency_conflict, stale_state. */
93454
+ 409: {
93455
+ headers: {
93456
+ [name: string]: unknown;
93457
+ };
93458
+ content: {
93459
+ "application/json": components["schemas"]["OperationError"];
93460
+ };
93461
+ };
93462
+ /** @description Refused: operation_retired. */
93463
+ 410: {
93464
+ headers: {
93465
+ [name: string]: unknown;
93466
+ };
93467
+ content: {
93468
+ "application/json": components["schemas"]["OperationError"];
93469
+ };
93470
+ };
93471
+ /** @description Refused: invalid_input, domain_rule. */
93472
+ 422: {
93473
+ headers: {
93474
+ [name: string]: unknown;
93475
+ };
93476
+ content: {
93477
+ "application/json": components["schemas"]["OperationError"];
93478
+ };
93479
+ };
93480
+ /** @description Refused: rate_limited. */
93481
+ 429: {
93482
+ headers: {
93483
+ [name: string]: unknown;
93484
+ };
93485
+ content: {
93486
+ "application/json": components["schemas"]["OperationError"];
93487
+ };
93488
+ };
93489
+ };
93490
+ };
93491
+ "ops.maintenance.reconciliations.receive_close": {
92692
93492
  parameters: {
92693
93493
  query?: never;
92694
93494
  header?: {
@@ -92704,15 +93504,12 @@ export interface operations {
92704
93504
  content: {
92705
93505
  /**
92706
93506
  * @example {
92707
- * "reconciliation_id": 1,
92708
- * "purchase_order_id": 2
93507
+ * "reconciliation_id": 1
92709
93508
  * }
92710
93509
  */
92711
93510
  "application/json": {
92712
93511
  /** @description The bill review (reconciliation) id */
92713
93512
  reconciliation_id: number;
92714
- /** @description The purchase order the bill belongs to */
92715
- purchase_order_id: number | string | null;
92716
93513
  };
92717
93514
  };
92718
93515
  };
@@ -92726,12 +93523,12 @@ export interface operations {
92726
93523
  /**
92727
93524
  * @example {
92728
93525
  * "result": {
92729
- * "id": 2,
92730
- * "message": "Bill attached to PO-184694. Review it below.",
92731
- * "pending": true,
92732
- * "resolution": null,
92733
- * "purchase_order_id": 2,
92734
- * "work_order_id": 1
93526
+ * "id": 1,
93527
+ * "message": "Done. The bill is closed out at what they charged.",
93528
+ * "pending": false,
93529
+ * "resolution": "closed",
93530
+ * "purchase_order_id": 5,
93531
+ * "work_order_id": 5
92735
93532
  * }
92736
93533
  * }
92737
93534
  */
@@ -92819,7 +93616,7 @@ export interface operations {
92819
93616
  };
92820
93617
  };
92821
93618
  };
92822
- "ops.maintenance.reconciliations.receive_close": {
93619
+ "ops.maintenance.reconciliations.second_ok": {
92823
93620
  parameters: {
92824
93621
  query?: never;
92825
93622
  header?: {
@@ -92855,7 +93652,7 @@ export interface operations {
92855
93652
  * @example {
92856
93653
  * "result": {
92857
93654
  * "id": 1,
92858
- * "message": "Done. The bill is closed out at what they charged.",
93655
+ * "message": "Done. You gave the second OK. The bill can be paid now.",
92859
93656
  * "pending": false,
92860
93657
  * "resolution": "closed",
92861
93658
  * "purchase_order_id": 5,
@@ -92947,7 +93744,7 @@ export interface operations {
92947
93744
  };
92948
93745
  };
92949
93746
  };
92950
- "ops.maintenance.reconciliations.second_ok": {
93747
+ "ops.maintenance.reconciliations.split": {
92951
93748
  parameters: {
92952
93749
  query?: never;
92953
93750
  header?: {
@@ -92963,12 +93760,24 @@ export interface operations {
92963
93760
  content: {
92964
93761
  /**
92965
93762
  * @example {
92966
- * "reconciliation_id": 1
93763
+ * "reconciliation_id": 1,
93764
+ * "allocations": {
93765
+ * "1": 2,
93766
+ * "2": 2,
93767
+ * "3": 1,
93768
+ * "4": 1
93769
+ * }
92967
93770
  * }
92968
93771
  */
92969
93772
  "application/json": {
92970
93773
  /** @description The bill review (reconciliation) id */
92971
93774
  reconciliation_id: number;
93775
+ /** @description Per bill line id: a work order id, or {work order id: amount} */
93776
+ allocations: {
93777
+ [key: string]: number | string | {
93778
+ [key: string]: number | string | null;
93779
+ };
93780
+ } | unknown[] | null;
92972
93781
  };
92973
93782
  };
92974
93783
  };
@@ -92983,11 +93792,11 @@ export interface operations {
92983
93792
  * @example {
92984
93793
  * "result": {
92985
93794
  * "id": 1,
92986
- * "message": "Done. You gave the second OK. The bill can be paid now.",
93795
+ * "message": "Split: T-1043 $425.00, TR-55 $275.00",
92987
93796
  * "pending": false,
92988
- * "resolution": "closed",
92989
- * "purchase_order_id": 5,
92990
- * "work_order_id": 5
93797
+ * "resolution": "accepted",
93798
+ * "purchase_order_id": 3,
93799
+ * "work_order_id": 1
92991
93800
  * }
92992
93801
  * }
92993
93802
  */
@@ -93075,7 +93884,7 @@ export interface operations {
93075
93884
  };
93076
93885
  };
93077
93886
  };
93078
- "ops.maintenance.reconciliations.split": {
93887
+ "ops.maintenance.repair_trips.orders.pdf": {
93079
93888
  parameters: {
93080
93889
  query?: never;
93081
93890
  header?: {
@@ -93091,24 +93900,12 @@ export interface operations {
93091
93900
  content: {
93092
93901
  /**
93093
93902
  * @example {
93094
- * "reconciliation_id": 1,
93095
- * "allocations": {
93096
- * "1": 2,
93097
- * "2": 2,
93098
- * "3": 1,
93099
- * "4": 1
93100
- * }
93903
+ * "repair_trip_id": 1
93101
93904
  * }
93102
93905
  */
93103
93906
  "application/json": {
93104
- /** @description The bill review (reconciliation) id */
93105
- reconciliation_id: number;
93106
- /** @description Per bill line id: a work order id, or {work order id: amount} */
93107
- allocations: {
93108
- [key: string]: number | string | {
93109
- [key: string]: number | string | null;
93110
- };
93111
- } | unknown[] | null;
93907
+ /** @description The repair trip id */
93908
+ repair_trip_id: number;
93112
93909
  };
93113
93910
  };
93114
93911
  };
@@ -93122,29 +93919,23 @@ export interface operations {
93122
93919
  /**
93123
93920
  * @example {
93124
93921
  * "result": {
93125
- * "id": 1,
93126
- * "message": "Split: T-1043 $425.00, TR-55 $275.00",
93127
- * "pending": false,
93128
- * "resolution": "accepted",
93129
- * "purchase_order_id": 3,
93130
- * "work_order_id": 1
93922
+ * "file_url": "http://localhost/api/v1/files/ZXlKcGRpSTZJa0pyUVVaeFdrdHFUbm9yUldnMlIySkNUbXhQVEZFOVBTSXNJblpoYkhWbElqb2lUUzlsWlRaaU5qSTVjRGhSYjI5dVRXcFhNekpCTW1oRlNHSktTbUZ5YW5JMmJrTnlWVGhTWkRsdlFqaDJURmhDU1RaQmRtMWxTRXR0V0d3MVJEbGpXakpXV1N0dFNsWk1ORk5vZDI1NFFUWkJUekp0TTNCNFlWUnBNek15Wm1vNE5rSjZkWFJTYW05amVYWXhVMXBuZFhsaVJHcHJWV3BsUkU5V2VtdHRjM2RhVkdWNU16VTBNR3RqT0doWFRtRkllVXRGTTBsU1NFOXZNV2RGVDNGRVoxZEhkM2hQUXl0V05sQnJkbTlwU0VSUVJuQXdWbXhrWTJObmMxVnlZV2xCSWl3aWJXRmpJam9pTWpnek5UUTJabVJqTW1RMk9UQTVNREptWVRRMU1ETTRNRFZqTlRjNFpqazNNVEV3TmpjeFptVm1ZV0ZqT0dKbFlqYzFOemd6TTJSaFl6UmtPVFZqTlNJc0luUmhaeUk2SWlKOQ?expires=1790867400&signature=52f3bcec57421d2cfd5d718b526d571533cb48b32f59cfa163ea5444163acc5c",
93923
+ * "expires_at": "2026-10-01T15:10:00Z",
93924
+ * "pages": 1
93131
93925
  * }
93132
93926
  * }
93133
93927
  */
93134
93928
  "application/json": {
93135
93929
  result: {
93136
- /** @description The bill review id */
93137
- id?: number | null;
93138
- /** @description What happened, in the operator's words */
93139
- message: string;
93140
- /** @description The bill still needs an answer */
93141
- pending: boolean;
93142
- /** @description How the bill was settled, once it is */
93143
- resolution?: string | null;
93144
- /** @description The purchase order the bill is on now */
93145
- purchase_order_id?: number | null;
93146
- /** @description The repair the bill is for */
93147
- work_order_id?: number | null;
93930
+ /** @description Short-lived download link */
93931
+ file_url: string;
93932
+ /**
93933
+ * Format: date-time
93934
+ * @description When the link stops working
93935
+ */
93936
+ expires_at: string;
93937
+ /** @description How many pages the PDF has */
93938
+ pages: number;
93148
93939
  };
93149
93940
  };
93150
93941
  };
@@ -93215,7 +94006,7 @@ export interface operations {
93215
94006
  };
93216
94007
  };
93217
94008
  };
93218
- "ops.maintenance.repair_trips.orders.pdf": {
94009
+ "ops.maintenance.repairs.attention.dismiss": {
93219
94010
  parameters: {
93220
94011
  query?: never;
93221
94012
  header?: {
@@ -93231,12 +94022,18 @@ export interface operations {
93231
94022
  content: {
93232
94023
  /**
93233
94024
  * @example {
93234
- * "repair_trip_id": 1
94025
+ * "work_order_id": 3,
94026
+ * "rule": "no_shop"
93235
94027
  * }
93236
94028
  */
93237
94029
  "application/json": {
93238
- /** @description The repair trip id */
93239
- repair_trip_id: number;
94030
+ /** @description The repair (work order) id */
94031
+ work_order_id: number;
94032
+ /**
94033
+ * @description The Needs you rule to snooze, as the repair shows it
94034
+ * @enum {string|null}
94035
+ */
94036
+ rule: "no_shop" | "at_shop_no_bill" | "back_no_bill" | "unpaid" | "late_back" | null;
93240
94037
  };
93241
94038
  };
93242
94039
  };
@@ -93250,23 +94047,40 @@ export interface operations {
93250
94047
  /**
93251
94048
  * @example {
93252
94049
  * "result": {
93253
- * "file_url": "http://localhost/api/v1/files/ZXlKcGRpSTZJa0pyUVVaeFdrdHFUbm9yUldnMlIySkNUbXhQVEZFOVBTSXNJblpoYkhWbElqb2lUUzlsWlRaaU5qSTVjRGhSYjI5dVRXcFhNekpCTW1oRlNHSktTbUZ5YW5JMmJrTnlWVGhTWkRsdlFqaDJURmhDU1RaQmRtMWxTRXR0V0d3MVJEbGpXakpXV1N0dFNsWk1ORk5vZDI1NFFUWkJUekp0TTNCNFlWUnBNek15Wm1vNE5rSjZkWFJTYW05amVYWXhVMXBuZFhsaVJHcHJWV3BsUkU5V2VtdHRjM2RhVkdWNU16VTBNR3RqT0doWFRtRkllVXRGTTBsU1NFOXZNV2RGVDNGRVoxZEhkM2hQUXl0V05sQnJkbTlwU0VSUVJuQXdWbXhrWTJObmMxVnlZV2xCSWl3aWJXRmpJam9pTWpnek5UUTJabVJqTW1RMk9UQTVNREptWVRRMU1ETTRNRFZqTlRjNFpqazNNVEV3TmpjeFptVm1ZV0ZqT0dKbFlqYzFOemd6TTJSaFl6UmtPVFZqTlNJc0luUmhaeUk2SWlKOQ?expires=1790867400&signature=52f3bcec57421d2cfd5d718b526d571533cb48b32f59cfa163ea5444163acc5c",
93254
- * "expires_at": "2026-10-01T15:10:00Z",
93255
- * "pages": 1
94050
+ * "work_order": {
94051
+ * "id": 3,
94052
+ * "number": "WO-65003",
94053
+ * "status": "open"
94054
+ * },
94055
+ * "message": "Snoozed until Oct 8.",
94056
+ * "warnings": [],
94057
+ * "snoozed_until": "2026-10-08T15:00:00+00:00"
93256
94058
  * }
93257
94059
  * }
93258
94060
  */
93259
94061
  "application/json": {
93260
94062
  result: {
93261
- /** @description Short-lived download link */
93262
- file_url: string;
94063
+ /** @description The repair after the change */
94064
+ work_order: {
94065
+ /** @description Work order id */
94066
+ id: number;
94067
+ /** @description Work order number as people see it (WO-1042) */
94068
+ number: string;
94069
+ /** @description Work order status after the change */
94070
+ status: string;
94071
+ };
94072
+ /** @description What happened, in the operator's words */
94073
+ message: string;
94074
+ /** @description What did not go through; empty when everything did */
94075
+ warnings: {
94076
+ /** @description One thing that did not go through */
94077
+ message: string;
94078
+ }[];
93263
94079
  /**
93264
94080
  * Format: date-time
93265
- * @description When the link stops working
94081
+ * @description When the item can show again
93266
94082
  */
93267
- expires_at: string;
93268
- /** @description How many pages the PDF has */
93269
- pages: number;
94083
+ snoozed_until?: string | null;
93270
94084
  };
93271
94085
  };
93272
94086
  };
@@ -93337,7 +94151,7 @@ export interface operations {
93337
94151
  };
93338
94152
  };
93339
94153
  };
93340
- "ops.maintenance.repairs.attention.dismiss": {
94154
+ "ops.maintenance.repairs.close_bill": {
93341
94155
  parameters: {
93342
94156
  query?: never;
93343
94157
  header?: {
@@ -93353,18 +94167,15 @@ export interface operations {
93353
94167
  content: {
93354
94168
  /**
93355
94169
  * @example {
93356
- * "work_order_id": 3,
93357
- * "rule": "no_shop"
94170
+ * "work_order_id": 8,
94171
+ * "actual_total": 1310.38
93358
94172
  * }
93359
94173
  */
93360
94174
  "application/json": {
93361
94175
  /** @description The repair (work order) id */
93362
94176
  work_order_id: number;
93363
- /**
93364
- * @description The Needs you rule to snooze, as the repair shows it
93365
- * @enum {string|null}
93366
- */
93367
- rule: "no_shop" | "at_shop_no_bill" | "back_no_bill" | "unpaid" | "late_back" | null;
94177
+ /** @description What the shop charged, in dollars */
94178
+ actual_total: number | null;
93368
94179
  };
93369
94180
  };
93370
94181
  };
@@ -93379,13 +94190,12 @@ export interface operations {
93379
94190
  * @example {
93380
94191
  * "result": {
93381
94192
  * "work_order": {
93382
- * "id": 3,
93383
- * "number": "WO-65003",
93384
- * "status": "open"
94193
+ * "id": 8,
94194
+ * "number": "WO-65008",
94195
+ * "status": "completed"
93385
94196
  * },
93386
- * "message": "Snoozed until Oct 8.",
93387
- * "warnings": [],
93388
- * "snoozed_until": "2026-10-08T15:00:00+00:00"
94197
+ * "message": "Bill closed out at $1,310.38. Mark it paid once you pay.",
94198
+ * "warnings": []
93389
94199
  * }
93390
94200
  * }
93391
94201
  */
@@ -93407,11 +94217,6 @@ export interface operations {
93407
94217
  /** @description One thing that did not go through */
93408
94218
  message: string;
93409
94219
  }[];
93410
- /**
93411
- * Format: date-time
93412
- * @description When the item can show again
93413
- */
93414
- snoozed_until?: string | null;
93415
94220
  };
93416
94221
  };
93417
94222
  };
@@ -93482,7 +94287,7 @@ export interface operations {
93482
94287
  };
93483
94288
  };
93484
94289
  };
93485
- "ops.maintenance.repairs.close_bill": {
94290
+ "ops.maintenance.repairs.create": {
93486
94291
  parameters: {
93487
94292
  query?: never;
93488
94293
  header?: {
@@ -93498,15 +94303,72 @@ export interface operations {
93498
94303
  content: {
93499
94304
  /**
93500
94305
  * @example {
93501
- * "work_order_id": 8,
93502
- * "actual_total": 1310.38
94306
+ * "unit_type": "truck",
94307
+ * "unit_id": 2,
94308
+ * "problem_note": "Windshield cracked across the driver side.",
94309
+ * "going_along": "only"
93503
94310
  * }
93504
94311
  */
93505
94312
  "application/json": {
93506
- /** @description The repair (work order) id */
93507
- work_order_id: number;
93508
- /** @description What the shop charged, in dollars */
93509
- actual_total: number | null;
94313
+ /** @description truck or trailer */
94314
+ unit_type: string | null;
94315
+ /** @description The truck or trailer id */
94316
+ unit_id: number | string | null;
94317
+ /** @description What is wrong, in your words */
94318
+ problem_note?: string | null;
94319
+ /** @description What it sounds like, when known */
94320
+ suspected_cause?: string | null;
94321
+ /** @description Where the suspected cause came from: suggested or edited */
94322
+ suspected_cause_source?: string | null;
94323
+ /** @description The unit cannot run */
94324
+ emergency?: boolean | null;
94325
+ /** @description The jobs, in order; each is a job or a code, never both */
94326
+ tasks?: {
94327
+ /** @description A job from the task catalog */
94328
+ task_id?: number | null;
94329
+ /** @description A bare maintenance code instead of a job */
94330
+ maintenance_code?: string | null;
94331
+ /** @description Free text on a diagnose line */
94332
+ qualifier?: string | null;
94333
+ /** @description How the job was picked: manual or suggested */
94334
+ source?: string | null;
94335
+ /** @description The suggestion confidence, 0 to 1 */
94336
+ confidence?: number | null;
94337
+ }[] | null;
94338
+ /** @description The due service this report starts from */
94339
+ schedule_asset_state_id?: number | null;
94340
+ /** @description Who noticed: me or driver; blank infers it */
94341
+ reported_by?: string | null;
94342
+ /** @description shop (the unit goes in) or on_site (they come to it) */
94343
+ service_location?: string | null;
94344
+ /** @description The shop (partner) id; blank picks the shop next */
94345
+ organization_id?: number | string | null;
94346
+ /** @description The shop location, when the shop has more than one */
94347
+ organization_location_id?: number | string | null;
94348
+ /** @description now, appointment or window */
94349
+ when?: string | null;
94350
+ /** @description Appointment or window start, on the shop's clock (YYYY-MM-DDTHH:MM) */
94351
+ scheduled_for?: string | null;
94352
+ /** @description Window end, on the shop's clock (YYYY-MM-DDTHH:MM) */
94353
+ scheduled_until?: string | null;
94354
+ /** @description The driver taking the unit in */
94355
+ assigned_driver_user_id?: number | null;
94356
+ /** @description Rough cost, in dollars */
94357
+ expected_amount?: number | null;
94358
+ /** @description Where the rough cost came from */
94359
+ expected_amount_source?: string | null;
94360
+ /** @description Email the order to the shop */
94361
+ email_shop?: boolean | null;
94362
+ /** @description only (just this unit) or with (other units go along) */
94363
+ going_along: string | null;
94364
+ /** @description Scheduled services on the unit to do on the same visit (state ids) */
94365
+ same_visit_schedule_ids?: number[] | null;
94366
+ /** @description Open repairs on the unit to do on the same visit */
94367
+ same_visit_work_order_ids?: number[] | null;
94368
+ /** @description Repairs on other units that travel with a picked open repair */
94369
+ same_visit_companion_ids?: number[] | null;
94370
+ /** @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 */
94371
+ counts_for_state_ids?: number[] | null;
93510
94372
  };
93511
94373
  };
93512
94374
  };
@@ -93521,12 +94383,16 @@ export interface operations {
93521
94383
  * @example {
93522
94384
  * "result": {
93523
94385
  * "work_order": {
93524
- * "id": 8,
93525
- * "number": "WO-65008",
93526
- * "status": "completed"
94386
+ * "id": 11,
94387
+ * "number": "WO-00001",
94388
+ * "status": "open"
93527
94389
  * },
93528
- * "message": "Bill closed out at $1,310.38. Mark it paid once you pay.",
93529
- * "warnings": []
94390
+ * "message": "Reported.",
94391
+ * "warnings": [],
94392
+ * "shop_picked": false,
94393
+ * "paperwork_failed": false,
94394
+ * "counts_for": [],
94395
+ * "routed_from": null
93530
94396
  * }
93531
94397
  * }
93532
94398
  */
@@ -93548,6 +94414,23 @@ export interface operations {
93548
94414
  /** @description One thing that did not go through */
93549
94415
  message: string;
93550
94416
  }[];
94417
+ /** @description Whether a shop was picked; without one the shop is picked next */
94418
+ shop_picked: boolean;
94419
+ /** @description The repair was reported but the shop order did not go out; message says why */
94420
+ paperwork_failed: boolean;
94421
+ /** @description The due services this repair counts toward */
94422
+ counts_for: {
94423
+ /** @description Due state id of the service counted */
94424
+ state_id: number;
94425
+ /** @description PM schedule */
94426
+ schedule_id: number;
94427
+ /** @description Schedule name */
94428
+ title: string;
94429
+ /** @description The unit number the service is on */
94430
+ unit_label: string;
94431
+ }[];
94432
+ /** @description The unit picked, when the repair was filed on the reefer unit installed on it */
94433
+ routed_from?: string | null;
93551
94434
  };
93552
94435
  };
93553
94436
  };
@@ -93618,7 +94501,7 @@ export interface operations {
93618
94501
  };
93619
94502
  };
93620
94503
  };
93621
- "ops.maintenance.repairs.create": {
94504
+ "ops.maintenance.repairs.due_service_matches": {
93622
94505
  parameters: {
93623
94506
  query?: never;
93624
94507
  header?: {
@@ -93635,69 +94518,26 @@ export interface operations {
93635
94518
  /**
93636
94519
  * @example {
93637
94520
  * "unit_type": "truck",
93638
- * "unit_id": 2,
93639
- * "problem_note": "Windshield cracked across the driver side.",
93640
- * "going_along": "only"
94521
+ * "unit_id": 1,
94522
+ * "task_ids": [
94523
+ * 2
94524
+ * ]
93641
94525
  * }
93642
94526
  */
93643
94527
  "application/json": {
93644
- /** @description truck or trailer */
93645
- unit_type: string | null;
93646
- /** @description The truck or trailer id */
93647
- unit_id: number | string | null;
93648
- /** @description What is wrong, in your words */
93649
- problem_note?: string | null;
93650
- /** @description What it sounds like, when known */
93651
- suspected_cause?: string | null;
93652
- /** @description Where the suspected cause came from: suggested or edited */
93653
- suspected_cause_source?: string | null;
93654
- /** @description The unit cannot run */
93655
- emergency?: boolean | null;
93656
- /** @description The jobs, in order; each is a job or a code, never both */
93657
- tasks?: {
93658
- /** @description A job from the task catalog */
93659
- task_id?: number | null;
93660
- /** @description A bare maintenance code instead of a job */
93661
- maintenance_code?: string | null;
93662
- /** @description Free text on a diagnose line */
93663
- qualifier?: string | null;
93664
- /** @description How the job was picked: manual or suggested */
93665
- source?: string | null;
93666
- /** @description The suggestion confidence, 0 to 1 */
93667
- confidence?: number | null;
93668
- }[] | null;
93669
- /** @description The due service this report starts from */
93670
- schedule_asset_state_id?: number | null;
93671
- /** @description Who noticed: me or driver; blank infers it */
93672
- reported_by?: string | null;
93673
- /** @description shop (the unit goes in) or on_site (they come to it) */
93674
- service_location?: string | null;
93675
- /** @description The shop (partner) id; blank picks the shop next */
93676
- organization_id?: number | string | null;
93677
- /** @description The shop location, when the shop has more than one */
93678
- organization_location_id?: number | string | null;
93679
- /** @description now, appointment or window */
93680
- when?: string | null;
93681
- /** @description Appointment or window start, on the shop's clock (YYYY-MM-DDTHH:MM) */
93682
- scheduled_for?: string | null;
93683
- /** @description Window end, on the shop's clock (YYYY-MM-DDTHH:MM) */
93684
- scheduled_until?: string | null;
93685
- /** @description The driver taking the unit in */
93686
- assigned_driver_user_id?: number | null;
93687
- /** @description Rough cost, in dollars */
93688
- expected_amount?: number | null;
93689
- /** @description Where the rough cost came from */
93690
- expected_amount_source?: string | null;
93691
- /** @description Email the order to the shop */
93692
- email_shop?: boolean | null;
93693
- /** @description only (just this unit) or with (other units go along) */
93694
- going_along: string | null;
93695
- /** @description Scheduled services on the unit to do on the same visit (state ids) */
93696
- same_visit_schedule_ids?: number[] | null;
93697
- /** @description Open repairs on the unit to do on the same visit */
93698
- same_visit_work_order_ids?: number[] | null;
93699
- /** @description Repairs on other units that travel with a picked open repair */
93700
- same_visit_companion_ids?: number[] | null;
94528
+ /**
94529
+ * @description truck, trailer or a reefer unit (equipment_component)
94530
+ * @enum {string}
94531
+ */
94532
+ unit_type: "truck" | "trailer" | "equipment_component";
94533
+ /** @description The unit the problem was reported on */
94534
+ unit_id: number;
94535
+ /** @description The picked jobs (up to 3) */
94536
+ task_ids?: number[] | null;
94537
+ /** @description Jobs picked by code only (up to 3) */
94538
+ maintenance_codes?: string[] | null;
94539
+ /** @description The repair being edited, so the services it already counts still show */
94540
+ work_order_id?: number | null;
93701
94541
  };
93702
94542
  };
93703
94543
  };
@@ -93711,40 +94551,65 @@ export interface operations {
93711
94551
  /**
93712
94552
  * @example {
93713
94553
  * "result": {
93714
- * "work_order": {
93715
- * "id": 11,
93716
- * "number": "WO-00001",
93717
- * "status": "open"
93718
- * },
93719
- * "message": "Reported.",
93720
- * "warnings": [],
93721
- * "shop_picked": false,
93722
- * "paperwork_failed": false
94554
+ * "matches": [],
94555
+ * "file_on": null,
94556
+ * "warnings": []
93723
94557
  * }
93724
94558
  * }
93725
94559
  */
93726
94560
  "application/json": {
93727
94561
  result: {
93728
- /** @description The repair after the change */
93729
- work_order: {
93730
- /** @description Work order id */
93731
- id: number;
93732
- /** @description Work order number as people see it (WO-1042) */
93733
- number: string;
93734
- /** @description Work order status after the change */
94562
+ /** @description Due services on the unit (or its installed reefer unit) that the picked jobs would count toward */
94563
+ matches: {
94564
+ /** @description Pass in counts_for_state_ids to count it */
94565
+ state_id: number;
94566
+ /** @description PM schedule */
94567
+ schedule_id: number;
94568
+ /** @description Schedule name */
94569
+ title: string;
94570
+ /** @description The unit the service is on */
94571
+ unit: {
94572
+ /** @description truck, trailer or equipment_component (a reefer unit) */
94573
+ type: string;
94574
+ /** @description The unit id */
94575
+ id: number;
94576
+ /** @description The unit number */
94577
+ label: string;
94578
+ };
94579
+ /** @description The service is on the reefer unit installed on the unit asked about */
94580
+ on_installed_unit: boolean;
94581
+ /** @description Which picked job the service would count for */
94582
+ claimed_by: {
94583
+ /** @description The picked job that matches the service; null when a bare code does */
94584
+ task_id?: number | null;
94585
+ /** @description The picked code that matches the service; null when a job does */
94586
+ maintenance_code?: string | null;
94587
+ };
94588
+ /** @description ok, due_soon, overdue, meter_unknown or never_serviced */
93735
94589
  status: string;
93736
- };
93737
- /** @description What happened, in the operator's words */
93738
- message: string;
93739
- /** @description What did not go through; empty when everything did */
94590
+ /** @description The due state in words */
94591
+ status_label: string;
94592
+ /** @description Status tone for the due state */
94593
+ tone: string;
94594
+ /** @description How far from due (for example Due in 53 hr); blank when nothing is measurable */
94595
+ due_line: string;
94596
+ }[];
94597
+ /** @description The reefer unit the repair is filed on when every job is that unit's service; null otherwise */
94598
+ file_on?: {
94599
+ /** @description equipment_component (a reefer unit) */
94600
+ type: string;
94601
+ /** @description The reefer unit id */
94602
+ id: number;
94603
+ /** @description The reefer unit number */
94604
+ label: string;
94605
+ /** @description The reefer unit number and the unit it is installed on, as one label */
94606
+ full_label: string;
94607
+ } | null;
94608
+ /** @description Reefer unit services that would not count on this unit */
93740
94609
  warnings: {
93741
- /** @description One thing that did not go through */
94610
+ /** @description Why a reefer unit service would not count, as a sentence */
93742
94611
  message: string;
93743
94612
  }[];
93744
- /** @description Whether a shop was picked; without one the shop is picked next */
93745
- shop_picked: boolean;
93746
- /** @description The repair was reported but the shop order did not go out; message says why */
93747
- paperwork_failed: boolean;
93748
94613
  };
93749
94614
  };
93750
94615
  };
@@ -93996,6 +94861,8 @@ export interface operations {
93996
94861
  "application/json": {
93997
94862
  /** @description The repair (work order) id */
93998
94863
  work_order_id: number;
94864
+ /** @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 */
94865
+ counts_for_state_ids?: number[] | null;
93999
94866
  /** @description What is wrong, in your words */
94000
94867
  problem_note: string | null;
94001
94868
  /** @description The unit cannot run */
@@ -94033,7 +94900,8 @@ export interface operations {
94033
94900
  * },
94034
94901
  * "message": "Saved.",
94035
94902
  * "warnings": [],
94036
- * "order_reissued": false
94903
+ * "order_reissued": false,
94904
+ * "counts_for": []
94037
94905
  * }
94038
94906
  * }
94039
94907
  */
@@ -94057,6 +94925,17 @@ export interface operations {
94057
94925
  }[];
94058
94926
  /** @description The shop got a new order for the changed jobs */
94059
94927
  order_reissued: boolean;
94928
+ /** @description The due services this repair counts toward after the save */
94929
+ counts_for: {
94930
+ /** @description Due state id of the service counted */
94931
+ state_id: number;
94932
+ /** @description PM schedule */
94933
+ schedule_id: number;
94934
+ /** @description Schedule name */
94935
+ title: string;
94936
+ /** @description The unit number the service is on */
94937
+ unit_label: string;
94938
+ }[];
94060
94939
  };
94061
94940
  };
94062
94941
  };
@@ -94476,6 +95355,8 @@ export interface operations {
94476
95355
  "application/json": {
94477
95356
  /** @description The repair (work order) id */
94478
95357
  work_order_id: number;
95358
+ /** @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 */
95359
+ counts_for_state_ids?: number[] | null;
94479
95360
  /** @description truck or trailer */
94480
95361
  unit_type: string | null;
94481
95362
  /** @description The truck or trailer going along */
@@ -94519,7 +95400,9 @@ export interface operations {
94519
95400
  * "id": 11,
94520
95401
  * "number": "WO-00001"
94521
95402
  * },
94522
- * "paperwork_failed": false
95403
+ * "paperwork_failed": false,
95404
+ * "counts_for": [],
95405
+ * "routed_from": null
94523
95406
  * }
94524
95407
  * }
94525
95408
  */
@@ -94550,6 +95433,160 @@ export interface operations {
94550
95433
  };
94551
95434
  /** @description The unit is going along but its order did not go out; message says why */
94552
95435
  paperwork_failed: boolean;
95436
+ /** @description The due services this repair counts toward */
95437
+ counts_for: {
95438
+ /** @description Due state id of the service counted */
95439
+ state_id: number;
95440
+ /** @description PM schedule */
95441
+ schedule_id: number;
95442
+ /** @description Schedule name */
95443
+ title: string;
95444
+ /** @description The unit number the service is on */
95445
+ unit_label: string;
95446
+ }[];
95447
+ /** @description The unit picked, when the repair was filed on the reefer unit installed on it */
95448
+ routed_from?: string | null;
95449
+ };
95450
+ };
95451
+ };
95452
+ };
95453
+ 202: components["responses"]["Proposal"];
95454
+ /** @description Refused: credits_exhausted. */
95455
+ 402: {
95456
+ headers: {
95457
+ [name: string]: unknown;
95458
+ };
95459
+ content: {
95460
+ "application/json": components["schemas"]["OperationError"];
95461
+ };
95462
+ };
95463
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
95464
+ 403: {
95465
+ headers: {
95466
+ [name: string]: unknown;
95467
+ };
95468
+ content: {
95469
+ "application/json": components["schemas"]["OperationError"];
95470
+ };
95471
+ };
95472
+ /** @description Refused: not_found. */
95473
+ 404: {
95474
+ headers: {
95475
+ [name: string]: unknown;
95476
+ };
95477
+ content: {
95478
+ "application/json": components["schemas"]["OperationError"];
95479
+ };
95480
+ };
95481
+ /** @description Refused: idempotency_conflict, stale_state. */
95482
+ 409: {
95483
+ headers: {
95484
+ [name: string]: unknown;
95485
+ };
95486
+ content: {
95487
+ "application/json": components["schemas"]["OperationError"];
95488
+ };
95489
+ };
95490
+ /** @description Refused: operation_retired. */
95491
+ 410: {
95492
+ headers: {
95493
+ [name: string]: unknown;
95494
+ };
95495
+ content: {
95496
+ "application/json": components["schemas"]["OperationError"];
95497
+ };
95498
+ };
95499
+ /** @description Refused: invalid_input, domain_rule. */
95500
+ 422: {
95501
+ headers: {
95502
+ [name: string]: unknown;
95503
+ };
95504
+ content: {
95505
+ "application/json": components["schemas"]["OperationError"];
95506
+ };
95507
+ };
95508
+ /** @description Refused: rate_limited. */
95509
+ 429: {
95510
+ headers: {
95511
+ [name: string]: unknown;
95512
+ };
95513
+ content: {
95514
+ "application/json": components["schemas"]["OperationError"];
95515
+ };
95516
+ };
95517
+ };
95518
+ };
95519
+ "ops.maintenance.repairs.unit.move": {
95520
+ parameters: {
95521
+ query?: never;
95522
+ header?: {
95523
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
95524
+ "Idempotency-Key"?: string;
95525
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
95526
+ "Axivoy-Dry-Run"?: "true" | "false";
95527
+ };
95528
+ path?: never;
95529
+ cookie?: never;
95530
+ };
95531
+ requestBody?: {
95532
+ content: {
95533
+ "application/json": {
95534
+ /** @description The repair (work order) id */
95535
+ work_order_id: number;
95536
+ /** @description trailer or a reefer unit (equipment_component) */
95537
+ unit_type: string | null;
95538
+ /** @description The trailer, or the reefer unit installed on it when the repair was fixed */
95539
+ unit_id: number | string | null;
95540
+ /** @description Reefer hours at the repair when it has none; blank uses the latest reading within 48 hours before it was fixed */
95541
+ engine_hours?: number | string | null;
95542
+ /** @description Scheduled services on the new unit to count it for */
95543
+ count_for_schedule_ids?: number[] | null;
95544
+ };
95545
+ };
95546
+ };
95547
+ responses: {
95548
+ /** @description The operation ran. */
95549
+ 200: {
95550
+ headers: {
95551
+ [name: string]: unknown;
95552
+ };
95553
+ content: {
95554
+ "application/json": {
95555
+ result: {
95556
+ /** @description The repair after the move */
95557
+ work_order: {
95558
+ /** @description Work order id */
95559
+ id: number;
95560
+ /** @description Work order number as people see it (WO-1042) */
95561
+ number: string;
95562
+ /** @description Work order status after the move */
95563
+ status: string;
95564
+ /** @description The unit the repair is on now */
95565
+ unit_label: string;
95566
+ };
95567
+ /** @description The unit the repair was on */
95568
+ moved_from: string;
95569
+ /** @description Scheduled service ids the repair now counts for */
95570
+ counted: unknown[];
95571
+ /** @description The hours the repair carries on the new unit; null when it carries none */
95572
+ hours_filled?: {
95573
+ /** @description The hours written to the repair */
95574
+ engine_hours: number;
95575
+ /** @description Where the reading came from: manual when given, else the meter log source (samsara_daily, work_order, receipt or shop_arrival) */
95576
+ source: string;
95577
+ /**
95578
+ * Format: date-time
95579
+ * @description When the reading was taken
95580
+ */
95581
+ as_of: string;
95582
+ } | null;
95583
+ /** @description What happened, in the operator's words */
95584
+ message: string;
95585
+ /** @description What did not go through; empty when everything did */
95586
+ warnings: {
95587
+ /** @description One thing that did not go through */
95588
+ message: string;
95589
+ }[];
94553
95590
  };
94554
95591
  };
94555
95592
  };
@@ -95874,6 +96911,8 @@ export interface operations {
95874
96911
  schedule_ids: number[] | null;
95875
96912
  /** @description Odometer at the repair, in miles, when the repair has none */
95876
96913
  odometer_miles?: number | string | null;
96914
+ /** @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. */
96915
+ engine_hours?: number | string | null;
95877
96916
  };
95878
96917
  };
95879
96918
  };
@@ -97165,6 +98204,18 @@ export interface operations {
97165
98204
  trip?: Record<string, never> | null;
97166
98205
  trip_propagation?: Record<string, never> | null;
97167
98206
  };
98207
+ /** @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. */
98208
+ meter_filled?: {
98209
+ /** @description The reefer hours written to the repair */
98210
+ engine_hours: number;
98211
+ /** @description Where the reading came from: samsara_daily, manual, work_order, receipt or shop_arrival */
98212
+ source: string;
98213
+ /**
98214
+ * Format: date-time
98215
+ * @description When the reading was taken
98216
+ */
98217
+ as_of: string;
98218
+ } | null;
97168
98219
  };
97169
98220
  };
97170
98221
  };
@@ -102032,6 +103083,18 @@ export interface operations {
102032
103083
  }[];
102033
103084
  /** @description How many other repairs on the trip were marked fixed */
102034
103085
  siblings_completed: number;
103086
+ /** @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. */
103087
+ meter_filled?: {
103088
+ /** @description The reefer hours written to the repair */
103089
+ engine_hours: number;
103090
+ /** @description Where the reading came from: samsara_daily, manual, work_order, receipt or shop_arrival */
103091
+ source: string;
103092
+ /**
103093
+ * Format: date-time
103094
+ * @description When the reading was taken
103095
+ */
103096
+ as_of: string;
103097
+ } | null;
102035
103098
  };
102036
103099
  };
102037
103100
  };
@@ -115478,7 +116541,275 @@ export interface operations {
115478
116541
  };
115479
116542
  };
115480
116543
  };
115481
- "ops.places.unit_anchor_options": {
116544
+ "ops.places.unit_anchor_options": {
116545
+ parameters: {
116546
+ query?: never;
116547
+ header?: {
116548
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
116549
+ "Idempotency-Key"?: string;
116550
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
116551
+ "Axivoy-Dry-Run"?: "true" | "false";
116552
+ };
116553
+ path?: never;
116554
+ cookie?: never;
116555
+ };
116556
+ requestBody?: {
116557
+ content: {
116558
+ /**
116559
+ * @example {
116560
+ * "unit_type": "truck",
116561
+ * "unit_id": 3
116562
+ * }
116563
+ */
116564
+ "application/json": {
116565
+ /**
116566
+ * @description truck or trailer.
116567
+ * @enum {string}
116568
+ */
116569
+ unit_type: "truck" | "trailer";
116570
+ /** @description The truck or trailer id (trucks.id / trailers.id). */
116571
+ unit_id: number;
116572
+ };
116573
+ };
116574
+ };
116575
+ responses: {
116576
+ /** @description The operation ran. */
116577
+ 200: {
116578
+ headers: {
116579
+ [name: string]: unknown;
116580
+ };
116581
+ content: {
116582
+ /**
116583
+ * @example {
116584
+ * "result": {
116585
+ * "unit_type": "truck",
116586
+ * "unit_id": 3,
116587
+ * "options": [],
116588
+ * "count": 0
116589
+ * }
116590
+ * }
116591
+ */
116592
+ "application/json": {
116593
+ result: {
116594
+ /** @description truck or trailer */
116595
+ unit_type: string;
116596
+ /** @description The unit asked about */
116597
+ unit_id: number;
116598
+ /** @description The points to search near */
116599
+ options: {
116600
+ /** @description current, upcoming_stop, yard, typed or route */
116601
+ kind: string;
116602
+ /** @description Pass back with kind as anchor_kind + anchor_ref */
116603
+ ref: string;
116604
+ /** @description Latitude */
116605
+ lat: number;
116606
+ /** @description Longitude */
116607
+ lng: number;
116608
+ /**
116609
+ * Format: date-time
116610
+ * @description The fix time for current, the planned arrival for a stop
116611
+ */
116612
+ at?: string | null;
116613
+ /** @description How the point reads to people */
116614
+ label: string;
116615
+ /** @description The fix is older than an hour */
116616
+ stale: boolean;
116617
+ }[];
116618
+ /** @description How many options */
116619
+ count: number;
116620
+ };
116621
+ };
116622
+ };
116623
+ };
116624
+ 202: components["responses"]["Proposal"];
116625
+ /** @description Refused: credits_exhausted. */
116626
+ 402: {
116627
+ headers: {
116628
+ [name: string]: unknown;
116629
+ };
116630
+ content: {
116631
+ "application/json": components["schemas"]["OperationError"];
116632
+ };
116633
+ };
116634
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
116635
+ 403: {
116636
+ headers: {
116637
+ [name: string]: unknown;
116638
+ };
116639
+ content: {
116640
+ "application/json": components["schemas"]["OperationError"];
116641
+ };
116642
+ };
116643
+ /** @description Refused: not_found. */
116644
+ 404: {
116645
+ headers: {
116646
+ [name: string]: unknown;
116647
+ };
116648
+ content: {
116649
+ "application/json": components["schemas"]["OperationError"];
116650
+ };
116651
+ };
116652
+ /** @description Refused: idempotency_conflict, stale_state. */
116653
+ 409: {
116654
+ headers: {
116655
+ [name: string]: unknown;
116656
+ };
116657
+ content: {
116658
+ "application/json": components["schemas"]["OperationError"];
116659
+ };
116660
+ };
116661
+ /** @description Refused: operation_retired. */
116662
+ 410: {
116663
+ headers: {
116664
+ [name: string]: unknown;
116665
+ };
116666
+ content: {
116667
+ "application/json": components["schemas"]["OperationError"];
116668
+ };
116669
+ };
116670
+ /** @description Refused: invalid_input, domain_rule. */
116671
+ 422: {
116672
+ headers: {
116673
+ [name: string]: unknown;
116674
+ };
116675
+ content: {
116676
+ "application/json": components["schemas"]["OperationError"];
116677
+ };
116678
+ };
116679
+ /** @description Refused: rate_limited. */
116680
+ 429: {
116681
+ headers: {
116682
+ [name: string]: unknown;
116683
+ };
116684
+ content: {
116685
+ "application/json": components["schemas"]["OperationError"];
116686
+ };
116687
+ };
116688
+ };
116689
+ };
116690
+ "ops.recruiting.advertising.ad_sets.budget": {
116691
+ parameters: {
116692
+ query?: never;
116693
+ header?: {
116694
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
116695
+ "Idempotency-Key"?: string;
116696
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
116697
+ "Axivoy-Dry-Run"?: "true" | "false";
116698
+ };
116699
+ path?: never;
116700
+ cookie?: never;
116701
+ };
116702
+ requestBody?: {
116703
+ content: {
116704
+ /**
116705
+ * @example {
116706
+ * "ad_set_id": 1,
116707
+ * "amount": 300
116708
+ * }
116709
+ */
116710
+ "application/json": {
116711
+ /** @description The ad group */
116712
+ ad_set_id: number;
116713
+ /** @description Dollars a month (1 to 1,000,000); null shares the campaign budget again */
116714
+ amount?: number | string | null;
116715
+ };
116716
+ };
116717
+ };
116718
+ responses: {
116719
+ /** @description The operation ran. */
116720
+ 200: {
116721
+ headers: {
116722
+ [name: string]: unknown;
116723
+ };
116724
+ content: {
116725
+ /**
116726
+ * @example {
116727
+ * "result": {
116728
+ * "message": "Ad group budget saved.",
116729
+ * "ad_set_id": 1,
116730
+ * "campaign_id": 1
116731
+ * }
116732
+ * }
116733
+ */
116734
+ "application/json": {
116735
+ result: {
116736
+ /** @description What happened, in the operator's words */
116737
+ message: string;
116738
+ /** @description The ad group */
116739
+ ad_set_id: number;
116740
+ /** @description The campaign it belongs to */
116741
+ campaign_id: number;
116742
+ };
116743
+ };
116744
+ };
116745
+ };
116746
+ 202: components["responses"]["Proposal"];
116747
+ /** @description Refused: credits_exhausted. */
116748
+ 402: {
116749
+ headers: {
116750
+ [name: string]: unknown;
116751
+ };
116752
+ content: {
116753
+ "application/json": components["schemas"]["OperationError"];
116754
+ };
116755
+ };
116756
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
116757
+ 403: {
116758
+ headers: {
116759
+ [name: string]: unknown;
116760
+ };
116761
+ content: {
116762
+ "application/json": components["schemas"]["OperationError"];
116763
+ };
116764
+ };
116765
+ /** @description Refused: not_found. */
116766
+ 404: {
116767
+ headers: {
116768
+ [name: string]: unknown;
116769
+ };
116770
+ content: {
116771
+ "application/json": components["schemas"]["OperationError"];
116772
+ };
116773
+ };
116774
+ /** @description Refused: idempotency_conflict, stale_state. */
116775
+ 409: {
116776
+ headers: {
116777
+ [name: string]: unknown;
116778
+ };
116779
+ content: {
116780
+ "application/json": components["schemas"]["OperationError"];
116781
+ };
116782
+ };
116783
+ /** @description Refused: operation_retired. */
116784
+ 410: {
116785
+ headers: {
116786
+ [name: string]: unknown;
116787
+ };
116788
+ content: {
116789
+ "application/json": components["schemas"]["OperationError"];
116790
+ };
116791
+ };
116792
+ /** @description Refused: invalid_input, domain_rule. */
116793
+ 422: {
116794
+ headers: {
116795
+ [name: string]: unknown;
116796
+ };
116797
+ content: {
116798
+ "application/json": components["schemas"]["OperationError"];
116799
+ };
116800
+ };
116801
+ /** @description Refused: rate_limited. */
116802
+ 429: {
116803
+ headers: {
116804
+ [name: string]: unknown;
116805
+ };
116806
+ content: {
116807
+ "application/json": components["schemas"]["OperationError"];
116808
+ };
116809
+ };
116810
+ };
116811
+ };
116812
+ "ops.recruiting.advertising.ad_sets.pause": {
115482
116813
  parameters: {
115483
116814
  query?: never;
115484
116815
  header?: {
@@ -115494,18 +116825,12 @@ export interface operations {
115494
116825
  content: {
115495
116826
  /**
115496
116827
  * @example {
115497
- * "unit_type": "truck",
115498
- * "unit_id": 3
116828
+ * "ad_set_id": 1
115499
116829
  * }
115500
116830
  */
115501
116831
  "application/json": {
115502
- /**
115503
- * @description truck or trailer.
115504
- * @enum {string}
115505
- */
115506
- unit_type: "truck" | "trailer";
115507
- /** @description The truck or trailer id (trucks.id / trailers.id). */
115508
- unit_id: number;
116832
+ /** @description The ad group */
116833
+ ad_set_id: number;
115509
116834
  };
115510
116835
  };
115511
116836
  };
@@ -115519,41 +116844,20 @@ export interface operations {
115519
116844
  /**
115520
116845
  * @example {
115521
116846
  * "result": {
115522
- * "unit_type": "truck",
115523
- * "unit_id": 3,
115524
- * "options": [],
115525
- * "count": 0
116847
+ * "message": "Ad group paused.",
116848
+ * "ad_set_id": 1,
116849
+ * "campaign_id": 1
115526
116850
  * }
115527
116851
  * }
115528
116852
  */
115529
116853
  "application/json": {
115530
116854
  result: {
115531
- /** @description truck or trailer */
115532
- unit_type: string;
115533
- /** @description The unit asked about */
115534
- unit_id: number;
115535
- /** @description The points to search near */
115536
- options: {
115537
- /** @description current, upcoming_stop, yard, typed or route */
115538
- kind: string;
115539
- /** @description Pass back with kind as anchor_kind + anchor_ref */
115540
- ref: string;
115541
- /** @description Latitude */
115542
- lat: number;
115543
- /** @description Longitude */
115544
- lng: number;
115545
- /**
115546
- * Format: date-time
115547
- * @description The fix time for current, the planned arrival for a stop
115548
- */
115549
- at?: string | null;
115550
- /** @description How the point reads to people */
115551
- label: string;
115552
- /** @description The fix is older than an hour */
115553
- stale: boolean;
115554
- }[];
115555
- /** @description How many options */
115556
- count: number;
116855
+ /** @description What happened, in the operator's words */
116856
+ message: string;
116857
+ /** @description The ad group */
116858
+ ad_set_id: number;
116859
+ /** @description The campaign it belongs to */
116860
+ campaign_id: number;
115557
116861
  };
115558
116862
  };
115559
116863
  };
@@ -115624,7 +116928,7 @@ export interface operations {
115624
116928
  };
115625
116929
  };
115626
116930
  };
115627
- "ops.recruiting.advertising.ad_sets.budget": {
116931
+ "ops.recruiting.advertising.ad_sets.resume": {
115628
116932
  parameters: {
115629
116933
  query?: never;
115630
116934
  header?: {
@@ -115640,15 +116944,12 @@ export interface operations {
115640
116944
  content: {
115641
116945
  /**
115642
116946
  * @example {
115643
- * "ad_set_id": 1,
115644
- * "amount": 300
116947
+ * "ad_set_id": 1
115645
116948
  * }
115646
116949
  */
115647
116950
  "application/json": {
115648
116951
  /** @description The ad group */
115649
116952
  ad_set_id: number;
115650
- /** @description Dollars a month (1 to 1,000,000); null shares the campaign budget again */
115651
- amount?: number | string | null;
115652
116953
  };
115653
116954
  };
115654
116955
  };
@@ -115662,7 +116963,7 @@ export interface operations {
115662
116963
  /**
115663
116964
  * @example {
115664
116965
  * "result": {
115665
- * "message": "Ad group budget saved.",
116966
+ * "message": "Ad group resumed.",
115666
116967
  * "ad_set_id": 1,
115667
116968
  * "campaign_id": 1
115668
116969
  * }
@@ -115746,7 +117047,7 @@ export interface operations {
115746
117047
  };
115747
117048
  };
115748
117049
  };
115749
- "ops.recruiting.advertising.ad_sets.pause": {
117050
+ "ops.recruiting.advertising.advertise.approve": {
115750
117051
  parameters: {
115751
117052
  query?: never;
115752
117053
  header?: {
@@ -115762,12 +117063,12 @@ export interface operations {
115762
117063
  content: {
115763
117064
  /**
115764
117065
  * @example {
115765
- * "ad_set_id": 1
117066
+ * "run_id": 1
115766
117067
  * }
115767
117068
  */
115768
117069
  "application/json": {
115769
- /** @description The ad group */
115770
- ad_set_id: number;
117070
+ /** @description The campaign draft (composer run) */
117071
+ run_id: number;
115771
117072
  };
115772
117073
  };
115773
117074
  };
@@ -115781,9 +117082,9 @@ export interface operations {
115781
117082
  /**
115782
117083
  * @example {
115783
117084
  * "result": {
115784
- * "message": "Ad group paused.",
115785
- * "ad_set_id": 1,
115786
- * "campaign_id": 1
117085
+ * "message": "Approved — your ads are launching.",
117086
+ * "run_id": 1,
117087
+ * "campaign_id": 2
115787
117088
  * }
115788
117089
  * }
115789
117090
  */
@@ -115791,10 +117092,10 @@ export interface operations {
115791
117092
  result: {
115792
117093
  /** @description What happened, in the operator's words */
115793
117094
  message: string;
115794
- /** @description The ad group */
115795
- ad_set_id: number;
115796
- /** @description The campaign it belongs to */
115797
- campaign_id: number;
117095
+ /** @description The campaign draft */
117096
+ run_id: number;
117097
+ /** @description The launched campaign */
117098
+ campaign_id?: number | null;
115798
117099
  };
115799
117100
  };
115800
117101
  };
@@ -115865,7 +117166,7 @@ export interface operations {
115865
117166
  };
115866
117167
  };
115867
117168
  };
115868
- "ops.recruiting.advertising.ad_sets.resume": {
117169
+ "ops.recruiting.advertising.advertise.create": {
115869
117170
  parameters: {
115870
117171
  query?: never;
115871
117172
  header?: {
@@ -115881,12 +117182,36 @@ export interface operations {
115881
117182
  content: {
115882
117183
  /**
115883
117184
  * @example {
115884
- * "ad_set_id": 1
117185
+ * "job_posting_id": 1,
117186
+ * "amount": 600,
117187
+ * "radius_miles": 50,
117188
+ * "location_query": "Dallas, TX",
117189
+ * "duration_days": 30
115885
117190
  * }
115886
117191
  */
115887
117192
  "application/json": {
115888
- /** @description The ad group */
115889
- ad_set_id: number;
117193
+ /** @description The job posting to advertise */
117194
+ job_posting_id: number | string | null;
117195
+ /** @description Whole dollars a month (1 to 1,000,000) */
117196
+ amount: number | string | null;
117197
+ /** @description Miles around the location (1 to 500) */
117198
+ radius_miles: number | string | null;
117199
+ /** @description City, ZIP or address to center the ads on */
117200
+ location_query: string | null;
117201
+ /** @description 30, 60 or 90 days */
117202
+ duration_days?: number | string | null;
117203
+ /** @description Campaign name (140 characters at most) */
117204
+ campaign_name?: string | null;
117205
+ /** @description Where the ads run: meta_ads, tiktok_ads, both */
117206
+ platforms?: string | null;
117207
+ /** @description Kinds of ads: images, video, both */
117208
+ ad_kinds?: string | null;
117209
+ /** @description Photo ads per ad group */
117210
+ photo_ads_per_group?: number | string | null;
117211
+ /** @description Videos per ad group */
117212
+ videos_per_group?: number | string | null;
117213
+ /** @description Video length: 6, 10, 15, 20, 30 seconds */
117214
+ video_length_seconds?: number | string | null;
115890
117215
  };
115891
117216
  };
115892
117217
  };
@@ -115900,9 +117225,8 @@ export interface operations {
115900
117225
  /**
115901
117226
  * @example {
115902
117227
  * "result": {
115903
- * "message": "Ad group resumed.",
115904
- * "ad_set_id": 1,
115905
- * "campaign_id": 1
117228
+ * "message": "Axivoy is drafting your ads.",
117229
+ * "run_id": 2
115906
117230
  * }
115907
117231
  * }
115908
117232
  */
@@ -115910,10 +117234,8 @@ export interface operations {
115910
117234
  result: {
115911
117235
  /** @description What happened, in the operator's words */
115912
117236
  message: string;
115913
- /** @description The ad group */
115914
- ad_set_id: number;
115915
- /** @description The campaign it belongs to */
115916
- campaign_id: number;
117237
+ /** @description The campaign draft */
117238
+ run_id: number;
115917
117239
  };
115918
117240
  };
115919
117241
  };
@@ -115984,7 +117306,7 @@ export interface operations {
115984
117306
  };
115985
117307
  };
115986
117308
  };
115987
- "ops.recruiting.advertising.advertise.approve": {
117309
+ "ops.recruiting.advertising.advertise.creatives.add_video": {
115988
117310
  parameters: {
115989
117311
  query?: never;
115990
117312
  header?: {
@@ -115998,14 +117320,11 @@ export interface operations {
115998
117320
  };
115999
117321
  requestBody?: {
116000
117322
  content: {
116001
- /**
116002
- * @example {
116003
- * "run_id": 1
116004
- * }
116005
- */
116006
117323
  "application/json": {
116007
117324
  /** @description The campaign draft (composer run) */
116008
117325
  run_id: number;
117326
+ /** @description What the video should show, in plain words (500 characters at most); empty lets the writer pick the idea */
117327
+ description?: string | null;
116009
117328
  };
116010
117329
  };
116011
117330
  };
@@ -116016,23 +117335,14 @@ export interface operations {
116016
117335
  [name: string]: unknown;
116017
117336
  };
116018
117337
  content: {
116019
- /**
116020
- * @example {
116021
- * "result": {
116022
- * "message": "Approved — your ads are launching.",
116023
- * "run_id": 1,
116024
- * "campaign_id": 2
116025
- * }
116026
- * }
116027
- */
116028
117338
  "application/json": {
116029
117339
  result: {
116030
117340
  /** @description What happened, in the operator's words */
116031
117341
  message: string;
116032
117342
  /** @description The campaign draft */
116033
117343
  run_id: number;
116034
- /** @description The launched campaign */
116035
- campaign_id?: number | null;
117344
+ /** @description The new video draft */
117345
+ creative_id?: number | null;
116036
117346
  };
116037
117347
  };
116038
117348
  };
@@ -116103,7 +117413,7 @@ export interface operations {
116103
117413
  };
116104
117414
  };
116105
117415
  };
116106
- "ops.recruiting.advertising.advertise.create": {
117416
+ "ops.recruiting.advertising.advertise.creatives.approve_script": {
116107
117417
  parameters: {
116108
117418
  query?: never;
116109
117419
  header?: {
@@ -116119,36 +117429,15 @@ export interface operations {
116119
117429
  content: {
116120
117430
  /**
116121
117431
  * @example {
116122
- * "job_posting_id": 1,
116123
- * "amount": 600,
116124
- * "radius_miles": 50,
116125
- * "location_query": "Dallas, TX",
116126
- * "duration_days": 30
117432
+ * "run_id": 2,
117433
+ * "creative_id": 8
116127
117434
  * }
116128
117435
  */
116129
117436
  "application/json": {
116130
- /** @description The job posting to advertise */
116131
- job_posting_id: number | string | null;
116132
- /** @description Whole dollars a month (1 to 1,000,000) */
116133
- amount: number | string | null;
116134
- /** @description Miles around the location (1 to 500) */
116135
- radius_miles: number | string | null;
116136
- /** @description City, ZIP or address to center the ads on */
116137
- location_query: string | null;
116138
- /** @description 30, 60 or 90 days */
116139
- duration_days?: number | string | null;
116140
- /** @description Campaign name (140 characters at most) */
116141
- campaign_name?: string | null;
116142
- /** @description Where the ads run: meta_ads, tiktok_ads, both */
116143
- platforms?: string | null;
116144
- /** @description Kinds of ads: images, video, both */
116145
- ad_kinds?: string | null;
116146
- /** @description Photo ads per ad group */
116147
- photo_ads_per_group?: number | string | null;
116148
- /** @description Videos per ad group */
116149
- videos_per_group?: number | string | null;
116150
- /** @description Video length: 6, 10, 15, 20, 30 seconds */
116151
- video_length_seconds?: number | string | null;
117437
+ /** @description The campaign draft (composer run) */
117438
+ run_id: number;
117439
+ /** @description The draft ad */
117440
+ creative_id: number;
116152
117441
  };
116153
117442
  };
116154
117443
  };
@@ -116162,8 +117451,9 @@ export interface operations {
116162
117451
  /**
116163
117452
  * @example {
116164
117453
  * "result": {
116165
- * "message": "Axivoy is drafting your ads.",
116166
- * "run_id": 2
117454
+ * "message": "Making your video. This usually takes a few minutes.",
117455
+ * "run_id": 2,
117456
+ * "creative_id": 8
116167
117457
  * }
116168
117458
  * }
116169
117459
  */
@@ -116173,6 +117463,8 @@ export interface operations {
116173
117463
  message: string;
116174
117464
  /** @description The campaign draft */
116175
117465
  run_id: number;
117466
+ /** @description The draft ad */
117467
+ creative_id: number;
116176
117468
  };
116177
117469
  };
116178
117470
  };
@@ -116243,7 +117535,7 @@ export interface operations {
116243
117535
  };
116244
117536
  };
116245
117537
  };
116246
- "ops.recruiting.advertising.advertise.creatives.approve_script": {
117538
+ "ops.recruiting.advertising.advertise.creatives.b_roll": {
116247
117539
  parameters: {
116248
117540
  query?: never;
116249
117541
  header?: {
@@ -116260,7 +117552,9 @@ export interface operations {
116260
117552
  /**
116261
117553
  * @example {
116262
117554
  * "run_id": 2,
116263
- * "creative_id": 8
117555
+ * "creative_id": 8,
117556
+ * "part_index": 1,
117557
+ * "choice": "generated"
116264
117558
  * }
116265
117559
  */
116266
117560
  "application/json": {
@@ -116268,6 +117562,10 @@ export interface operations {
116268
117562
  run_id: number;
116269
117563
  /** @description The draft ad */
116270
117564
  creative_id: number;
117565
+ /** @description The part, from 1 */
117566
+ part_index: number | string | null;
117567
+ /** @description own or generated */
117568
+ choice: string | null;
116271
117569
  };
116272
117570
  };
116273
117571
  };
@@ -116281,7 +117579,7 @@ export interface operations {
116281
117579
  /**
116282
117580
  * @example {
116283
117581
  * "result": {
116284
- * "message": "Making your video. This usually takes a few minutes.",
117582
+ * "message": "Putting the generated shot back into part 1. This takes a minute.",
116285
117583
  * "run_id": 2,
116286
117584
  * "creative_id": 8
116287
117585
  * }
@@ -116365,7 +117663,7 @@ export interface operations {
116365
117663
  };
116366
117664
  };
116367
117665
  };
116368
- "ops.recruiting.advertising.advertise.creatives.b_roll": {
117666
+ "ops.recruiting.advertising.advertise.creatives.choose_hook": {
116369
117667
  parameters: {
116370
117668
  query?: never;
116371
117669
  header?: {
@@ -116383,8 +117681,7 @@ export interface operations {
116383
117681
  * @example {
116384
117682
  * "run_id": 2,
116385
117683
  * "creative_id": 8,
116386
- * "part_index": 1,
116387
- * "choice": "generated"
117684
+ * "hook_index": 2
116388
117685
  * }
116389
117686
  */
116390
117687
  "application/json": {
@@ -116392,10 +117689,8 @@ export interface operations {
116392
117689
  run_id: number;
116393
117690
  /** @description The draft ad */
116394
117691
  creative_id: number;
116395
- /** @description The part, from 1 */
116396
- part_index: number | string | null;
116397
- /** @description own or generated */
116398
- choice: string | null;
117692
+ /** @description Which suggested idea (0 to 11) */
117693
+ hook_index: number | string | null;
116399
117694
  };
116400
117695
  };
116401
117696
  };
@@ -116409,7 +117704,7 @@ export interface operations {
116409
117704
  /**
116410
117705
  * @example {
116411
117706
  * "result": {
116412
- * "message": "Putting the generated shot back into part 1. This takes a minute.",
117707
+ * "message": "Writing a new script with that opening.",
116413
117708
  * "run_id": 2,
116414
117709
  * "creative_id": 8
116415
117710
  * }
@@ -116493,7 +117788,7 @@ export interface operations {
116493
117788
  };
116494
117789
  };
116495
117790
  };
116496
- "ops.recruiting.advertising.advertise.creatives.choose_hook": {
117791
+ "ops.recruiting.advertising.advertise.creatives.redo_part": {
116497
117792
  parameters: {
116498
117793
  query?: never;
116499
117794
  header?: {
@@ -116511,7 +117806,7 @@ export interface operations {
116511
117806
  * @example {
116512
117807
  * "run_id": 2,
116513
117808
  * "creative_id": 8,
116514
- * "hook_index": 2
117809
+ * "part_index": 2
116515
117810
  * }
116516
117811
  */
116517
117812
  "application/json": {
@@ -116519,8 +117814,8 @@ export interface operations {
116519
117814
  run_id: number;
116520
117815
  /** @description The draft ad */
116521
117816
  creative_id: number;
116522
- /** @description Which suggested opening (0 to 11) */
116523
- hook_index: number | string | null;
117817
+ /** @description The part, from 1 */
117818
+ part_index: number | string | null;
116524
117819
  };
116525
117820
  };
116526
117821
  };
@@ -116534,7 +117829,7 @@ export interface operations {
116534
117829
  /**
116535
117830
  * @example {
116536
117831
  * "result": {
116537
- * "message": "Writing a new script with that opening.",
117832
+ * "message": "Redoing part 2. This usually takes a few minutes.",
116538
117833
  * "run_id": 2,
116539
117834
  * "creative_id": 8
116540
117835
  * }
@@ -116618,7 +117913,7 @@ export interface operations {
116618
117913
  };
116619
117914
  };
116620
117915
  };
116621
- "ops.recruiting.advertising.advertise.creatives.redo_part": {
117916
+ "ops.recruiting.advertising.advertise.creatives.regenerate": {
116622
117917
  parameters: {
116623
117918
  query?: never;
116624
117919
  header?: {
@@ -116634,9 +117929,8 @@ export interface operations {
116634
117929
  content: {
116635
117930
  /**
116636
117931
  * @example {
116637
- * "run_id": 2,
116638
- * "creative_id": 8,
116639
- * "part_index": 2
117932
+ * "run_id": 1,
117933
+ * "creative_id": 5
116640
117934
  * }
116641
117935
  */
116642
117936
  "application/json": {
@@ -116644,8 +117938,6 @@ export interface operations {
116644
117938
  run_id: number;
116645
117939
  /** @description The draft ad */
116646
117940
  creative_id: number;
116647
- /** @description The part, from 1 */
116648
- part_index: number | string | null;
116649
117941
  };
116650
117942
  };
116651
117943
  };
@@ -116659,9 +117951,9 @@ export interface operations {
116659
117951
  /**
116660
117952
  * @example {
116661
117953
  * "result": {
116662
- * "message": "Redoing part 2. This usually takes a few minutes.",
116663
- * "run_id": 2,
116664
- * "creative_id": 8
117954
+ * "message": "Making a new photo for this ad.",
117955
+ * "run_id": 1,
117956
+ * "creative_id": 5
116665
117957
  * }
116666
117958
  * }
116667
117959
  */
@@ -116743,7 +118035,7 @@ export interface operations {
116743
118035
  };
116744
118036
  };
116745
118037
  };
116746
- "ops.recruiting.advertising.advertise.creatives.regenerate": {
118038
+ "ops.recruiting.advertising.advertise.creatives.remove": {
116747
118039
  parameters: {
116748
118040
  query?: never;
116749
118041
  header?: {
@@ -116781,7 +118073,7 @@ export interface operations {
116781
118073
  /**
116782
118074
  * @example {
116783
118075
  * "result": {
116784
- * "message": "Making a new photo for this ad.",
118076
+ * "message": "Ad removed — it will not launch.",
116785
118077
  * "run_id": 1,
116786
118078
  * "creative_id": 5
116787
118079
  * }
@@ -116865,7 +118157,7 @@ export interface operations {
116865
118157
  };
116866
118158
  };
116867
118159
  };
116868
- "ops.recruiting.advertising.advertise.creatives.remove": {
118160
+ "ops.recruiting.advertising.advertise.creatives.retry_render": {
116869
118161
  parameters: {
116870
118162
  query?: never;
116871
118163
  header?: {
@@ -116881,8 +118173,8 @@ export interface operations {
116881
118173
  content: {
116882
118174
  /**
116883
118175
  * @example {
116884
- * "run_id": 1,
116885
- * "creative_id": 5
118176
+ * "run_id": 2,
118177
+ * "creative_id": 8
116886
118178
  * }
116887
118179
  */
116888
118180
  "application/json": {
@@ -116903,9 +118195,9 @@ export interface operations {
116903
118195
  /**
116904
118196
  * @example {
116905
118197
  * "result": {
116906
- * "message": "Ad removed — it will not launch.",
116907
- * "run_id": 1,
116908
- * "creative_id": 5
118198
+ * "message": "Making your video again. This usually takes a few minutes.",
118199
+ * "run_id": 2,
118200
+ * "creative_id": 8
116909
118201
  * }
116910
118202
  * }
116911
118203
  */
@@ -116987,7 +118279,7 @@ export interface operations {
116987
118279
  };
116988
118280
  };
116989
118281
  };
116990
- "ops.recruiting.advertising.advertise.creatives.retry_render": {
118282
+ "ops.recruiting.advertising.advertise.creatives.retry_script": {
116991
118283
  parameters: {
116992
118284
  query?: never;
116993
118285
  header?: {
@@ -117025,7 +118317,7 @@ export interface operations {
117025
118317
  /**
117026
118318
  * @example {
117027
118319
  * "result": {
117028
- * "message": "Making your video again. This usually takes a few minutes.",
118320
+ * "message": "Writing the script again. This usually takes a few minutes.",
117029
118321
  * "run_id": 2,
117030
118322
  * "creative_id": 8
117031
118323
  * }
@@ -117136,7 +118428,7 @@ export interface operations {
117136
118428
  run_id: number;
117137
118429
  /** @description The draft ad */
117138
118430
  creative_id: number;
117139
- /** @description The part, from 1 */
118431
+ /** @description The part, or the moment in a one-take video, from 1 */
117140
118432
  index: number | string | null;
117141
118433
  /** @description Words on screen (60 characters at most); left out keeps them */
117142
118434
  on_screen_text?: string | null;
@@ -139244,15 +140536,25 @@ export interface operations {
139244
140536
  */
139245
140537
  "application/json": {
139246
140538
  result: {
140539
+ /** @description Whose scorecard the focus is on: driver or dispatcher. */
139247
140540
  audience: string;
139248
- /** Format: date */
140541
+ /**
140542
+ * Format: date
140543
+ * @description Operational Sunday that starts the week.
140544
+ */
139249
140545
  week_start: string;
140546
+ /** @description The week as people read it, such as "Oct 11 to 17, 2026". */
139250
140547
  week_label: string;
139251
140548
  /** @description The score you picked; null once cleared. */
139252
140549
  focus_pick?: {
140550
+ /** @description The score's metric slug. */
139253
140551
  slug: string;
140552
+ /** @description The score's name. */
139254
140553
  name: string;
139255
- /** Format: date-time */
140554
+ /**
140555
+ * Format: date-time
140556
+ * @description When the focus was picked.
140557
+ */
139256
140558
  picked_at: string;
139257
140559
  } | null;
139258
140560
  };
@@ -140029,12 +141331,12 @@ export interface operations {
140029
141331
  pay_period_id?: number | null;
140030
141332
  /**
140031
141333
  * Format: date
140032
- * @description Range start (UTC date); defaults to the first of this month
141334
+ * @description Range start (a company date); defaults to the first of this month
140033
141335
  */
140034
141336
  from?: string | null;
140035
141337
  /**
140036
141338
  * Format: date
140037
- * @description Range end (UTC date); defaults to today
141339
+ * @description Range end (a company date); defaults to today
140038
141340
  */
140039
141341
  to?: string | null;
140040
141342
  };
@@ -140086,12 +141388,12 @@ export interface operations {
140086
141388
  driver_name: string;
140087
141389
  /**
140088
141390
  * Format: date
140089
- * @description Range start (UTC)
141391
+ * @description Range start (a company date)
140090
141392
  */
140091
141393
  from: string;
140092
141394
  /**
140093
141395
  * Format: date
140094
- * @description Range end (UTC)
141396
+ * @description Range end (a company date)
140095
141397
  */
140096
141398
  to: string;
140097
141399
  /** @description Pay ready to settle */
@@ -141791,7 +143093,15 @@ export interface operations {
141791
143093
  * "active": false,
141792
143094
  * "from_email": "hello@axivoy.test",
141793
143095
  * "from_is_platform_default": true,
141794
- * "delivery_mode": "sandbox"
143096
+ * "delivery_mode": "sandbox",
143097
+ * "sending_domain": {
143098
+ * "domain": null,
143099
+ * "state": "not_set_up"
143100
+ * },
143101
+ * "reply_domain": {
143102
+ * "domain": null,
143103
+ * "state": "not_set_up"
143104
+ * }
141795
143105
  * }
141796
143106
  * }
141797
143107
  */
@@ -145440,7 +146750,324 @@ export interface operations {
145440
146750
  };
145441
146751
  };
145442
146752
  };
145443
- "ops.system.integrations.communications.templates.update": {
146753
+ "ops.system.integrations.communications.templates.update": {
146754
+ parameters: {
146755
+ query?: never;
146756
+ header?: {
146757
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
146758
+ "Idempotency-Key"?: string;
146759
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
146760
+ "Axivoy-Dry-Run"?: "true" | "false";
146761
+ };
146762
+ path?: never;
146763
+ cookie?: never;
146764
+ };
146765
+ requestBody?: {
146766
+ content: {
146767
+ /**
146768
+ * @example {
146769
+ * "slug": "sync_failure_alert",
146770
+ * "subject_template": "Sync failed: {{run_name}}",
146771
+ * "body_html_template": "<p>{{run_name}} {{trigger}} {{error_message}}</p>",
146772
+ * "is_active": "1",
146773
+ * "channel": "email"
146774
+ * }
146775
+ */
146776
+ "application/json": {
146777
+ /** @description Template slug, for example sync_failure_alert */
146778
+ slug: string;
146779
+ /** @description Subject, with {{tags}} */
146780
+ subject_template?: string | null;
146781
+ /** @description Plain-text body, with {{tags}} */
146782
+ body_text_template?: string | null;
146783
+ /** @description HTML body, with {{tags}}; when set, the text body is derived from it */
146784
+ body_html_template?: string | null;
146785
+ /** @description Whether the customization is in use */
146786
+ is_active?: boolean | string | number | null;
146787
+ /** @description Channel, email by default */
146788
+ channel?: string | null;
146789
+ };
146790
+ };
146791
+ };
146792
+ responses: {
146793
+ /** @description The operation ran. */
146794
+ 200: {
146795
+ headers: {
146796
+ [name: string]: unknown;
146797
+ };
146798
+ content: {
146799
+ /**
146800
+ * @example {
146801
+ * "result": {
146802
+ * "message": "Template customization saved."
146803
+ * }
146804
+ * }
146805
+ */
146806
+ "application/json": {
146807
+ result: {
146808
+ /** @description What happened, in the operator's words */
146809
+ message: string;
146810
+ };
146811
+ };
146812
+ };
146813
+ };
146814
+ 202: components["responses"]["Proposal"];
146815
+ /** @description Refused: credits_exhausted. */
146816
+ 402: {
146817
+ headers: {
146818
+ [name: string]: unknown;
146819
+ };
146820
+ content: {
146821
+ "application/json": components["schemas"]["OperationError"];
146822
+ };
146823
+ };
146824
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
146825
+ 403: {
146826
+ headers: {
146827
+ [name: string]: unknown;
146828
+ };
146829
+ content: {
146830
+ "application/json": components["schemas"]["OperationError"];
146831
+ };
146832
+ };
146833
+ /** @description Refused: not_found. */
146834
+ 404: {
146835
+ headers: {
146836
+ [name: string]: unknown;
146837
+ };
146838
+ content: {
146839
+ "application/json": components["schemas"]["OperationError"];
146840
+ };
146841
+ };
146842
+ /** @description Refused: idempotency_conflict, stale_state. */
146843
+ 409: {
146844
+ headers: {
146845
+ [name: string]: unknown;
146846
+ };
146847
+ content: {
146848
+ "application/json": components["schemas"]["OperationError"];
146849
+ };
146850
+ };
146851
+ /** @description Refused: operation_retired. */
146852
+ 410: {
146853
+ headers: {
146854
+ [name: string]: unknown;
146855
+ };
146856
+ content: {
146857
+ "application/json": components["schemas"]["OperationError"];
146858
+ };
146859
+ };
146860
+ /** @description Refused: invalid_input, domain_rule. */
146861
+ 422: {
146862
+ headers: {
146863
+ [name: string]: unknown;
146864
+ };
146865
+ content: {
146866
+ "application/json": components["schemas"]["OperationError"];
146867
+ };
146868
+ };
146869
+ /** @description Refused: rate_limited. */
146870
+ 429: {
146871
+ headers: {
146872
+ [name: string]: unknown;
146873
+ };
146874
+ content: {
146875
+ "application/json": components["schemas"]["OperationError"];
146876
+ };
146877
+ };
146878
+ };
146879
+ };
146880
+ "ops.system.integrations.sms_registration.get": {
146881
+ parameters: {
146882
+ query?: never;
146883
+ header?: {
146884
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
146885
+ "Idempotency-Key"?: string;
146886
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
146887
+ "Axivoy-Dry-Run"?: "true" | "false";
146888
+ };
146889
+ path?: never;
146890
+ cookie?: never;
146891
+ };
146892
+ requestBody?: {
146893
+ content: {
146894
+ /** @example {} */
146895
+ "application/json": Record<string, never>;
146896
+ };
146897
+ };
146898
+ responses: {
146899
+ /** @description The operation ran. */
146900
+ 200: {
146901
+ headers: {
146902
+ [name: string]: unknown;
146903
+ };
146904
+ content: {
146905
+ /**
146906
+ * @example {
146907
+ * "result": {
146908
+ * "registered": true,
146909
+ * "mode": "automated",
146910
+ * "status": "brand_pending",
146911
+ * "status_label": "Brand review pending",
146912
+ * "sending_number": null,
146913
+ * "requested_number": null,
146914
+ * "number_needed": false,
146915
+ * "submitted_at": "2026-10-25T01:30:45Z",
146916
+ * "approved_at": null,
146917
+ * "rejection_reason": null,
146918
+ * "steps": [
146919
+ * {
146920
+ * "key": "draft",
146921
+ * "label": "Draft",
146922
+ * "state": "done"
146923
+ * },
146924
+ * {
146925
+ * "key": "profile_submitted",
146926
+ * "label": "Business profile submitted",
146927
+ * "state": "done"
146928
+ * },
146929
+ * {
146930
+ * "key": "brand_pending",
146931
+ * "label": "Brand review pending",
146932
+ * "state": "current"
146933
+ * },
146934
+ * {
146935
+ * "key": "brand_approved",
146936
+ * "label": "Brand approved",
146937
+ * "state": "pending"
146938
+ * },
146939
+ * {
146940
+ * "key": "campaign_pending",
146941
+ * "label": "Campaign review pending",
146942
+ * "state": "pending"
146943
+ * },
146944
+ * {
146945
+ * "key": "campaign_verified",
146946
+ * "label": "Campaign verified",
146947
+ * "state": "pending"
146948
+ * },
146949
+ * {
146950
+ * "key": "number_active",
146951
+ * "label": "Number provisioned",
146952
+ * "state": "pending"
146953
+ * },
146954
+ * {
146955
+ * "key": "active",
146956
+ * "label": "Active",
146957
+ * "state": "pending"
146958
+ * }
146959
+ * ]
146960
+ * }
146961
+ * }
146962
+ */
146963
+ "application/json": {
146964
+ result: {
146965
+ /** @description Whether a registration exists (in progress or approved) */
146966
+ registered: boolean;
146967
+ /** @description automated (Axivoy registered it) or external (the company brought a registered number) */
146968
+ mode?: string | null;
146969
+ /** @description Registration status key */
146970
+ status?: string | null;
146971
+ /** @description The status in the operator's words */
146972
+ status_label?: string | null;
146973
+ /** @description The number texts are sent from (E.164) */
146974
+ sending_number?: string | null;
146975
+ /** @description The company number texting will use once carriers approve (E.164) */
146976
+ requested_number?: string | null;
146977
+ /** @description Whether carriers approved the company and Axivoy is waiting for it to choose a number to text from */
146978
+ number_needed: boolean;
146979
+ /**
146980
+ * Format: date-time
146981
+ * @description When it was sent to carriers
146982
+ */
146983
+ submitted_at?: string | null;
146984
+ /**
146985
+ * Format: date-time
146986
+ * @description When carriers approved it
146987
+ */
146988
+ approved_at?: string | null;
146989
+ /** @description The carrier's reason when a step was rejected */
146990
+ rejection_reason?: string | null;
146991
+ /** @description Each registration step in order */
146992
+ steps: {
146993
+ /** @description Step key */
146994
+ key: string;
146995
+ /** @description Step name */
146996
+ label: string;
146997
+ /** @description done, current, failed or pending */
146998
+ state: string;
146999
+ }[];
147000
+ };
147001
+ };
147002
+ };
147003
+ };
147004
+ 202: components["responses"]["Proposal"];
147005
+ /** @description Refused: credits_exhausted. */
147006
+ 402: {
147007
+ headers: {
147008
+ [name: string]: unknown;
147009
+ };
147010
+ content: {
147011
+ "application/json": components["schemas"]["OperationError"];
147012
+ };
147013
+ };
147014
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
147015
+ 403: {
147016
+ headers: {
147017
+ [name: string]: unknown;
147018
+ };
147019
+ content: {
147020
+ "application/json": components["schemas"]["OperationError"];
147021
+ };
147022
+ };
147023
+ /** @description Refused: not_found. */
147024
+ 404: {
147025
+ headers: {
147026
+ [name: string]: unknown;
147027
+ };
147028
+ content: {
147029
+ "application/json": components["schemas"]["OperationError"];
147030
+ };
147031
+ };
147032
+ /** @description Refused: idempotency_conflict, stale_state. */
147033
+ 409: {
147034
+ headers: {
147035
+ [name: string]: unknown;
147036
+ };
147037
+ content: {
147038
+ "application/json": components["schemas"]["OperationError"];
147039
+ };
147040
+ };
147041
+ /** @description Refused: operation_retired. */
147042
+ 410: {
147043
+ headers: {
147044
+ [name: string]: unknown;
147045
+ };
147046
+ content: {
147047
+ "application/json": components["schemas"]["OperationError"];
147048
+ };
147049
+ };
147050
+ /** @description Refused: invalid_input, domain_rule. */
147051
+ 422: {
147052
+ headers: {
147053
+ [name: string]: unknown;
147054
+ };
147055
+ content: {
147056
+ "application/json": components["schemas"]["OperationError"];
147057
+ };
147058
+ };
147059
+ /** @description Refused: rate_limited. */
147060
+ 429: {
147061
+ headers: {
147062
+ [name: string]: unknown;
147063
+ };
147064
+ content: {
147065
+ "application/json": components["schemas"]["OperationError"];
147066
+ };
147067
+ };
147068
+ };
147069
+ };
147070
+ "ops.system.settings.company_clock.preview": {
145444
147071
  parameters: {
145445
147072
  query?: never;
145446
147073
  header?: {
@@ -145456,135 +147083,18 @@ export interface operations {
145456
147083
  content: {
145457
147084
  /**
145458
147085
  * @example {
145459
- * "slug": "sync_failure_alert",
145460
- * "subject_template": "Sync failed: {{run_name}}",
145461
- * "body_html_template": "<p>{{run_name}} {{trigger}} {{error_message}}</p>",
145462
- * "is_active": "1",
145463
- * "channel": "email"
147086
+ * "timezone": "America/Chicago",
147087
+ * "starts_on": "2026-11-01"
145464
147088
  * }
145465
147089
  */
145466
147090
  "application/json": {
145467
- /** @description Template slug, for example sync_failure_alert */
145468
- slug: string;
145469
- /** @description Subject, with {{tags}} */
145470
- subject_template?: string | null;
145471
- /** @description Plain-text body, with {{tags}} */
145472
- body_text_template?: string | null;
145473
- /** @description HTML body, with {{tags}}; when set, the text body is derived from it */
145474
- body_html_template?: string | null;
145475
- /** @description Whether the customization is in use */
145476
- is_active?: boolean | string | number | null;
145477
- /** @description Channel, email by default */
145478
- channel?: string | null;
145479
- };
145480
- };
145481
- };
145482
- responses: {
145483
- /** @description The operation ran. */
145484
- 200: {
145485
- headers: {
145486
- [name: string]: unknown;
145487
- };
145488
- content: {
145489
- /**
145490
- * @example {
145491
- * "result": {
145492
- * "message": "Template customization saved."
145493
- * }
145494
- * }
145495
- */
145496
- "application/json": {
145497
- result: {
145498
- /** @description What happened, in the operator's words */
145499
- message: string;
145500
- };
145501
- };
145502
- };
145503
- };
145504
- 202: components["responses"]["Proposal"];
145505
- /** @description Refused: credits_exhausted. */
145506
- 402: {
145507
- headers: {
145508
- [name: string]: unknown;
145509
- };
145510
- content: {
145511
- "application/json": components["schemas"]["OperationError"];
145512
- };
145513
- };
145514
- /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
145515
- 403: {
145516
- headers: {
145517
- [name: string]: unknown;
145518
- };
145519
- content: {
145520
- "application/json": components["schemas"]["OperationError"];
145521
- };
145522
- };
145523
- /** @description Refused: not_found. */
145524
- 404: {
145525
- headers: {
145526
- [name: string]: unknown;
145527
- };
145528
- content: {
145529
- "application/json": components["schemas"]["OperationError"];
145530
- };
145531
- };
145532
- /** @description Refused: idempotency_conflict, stale_state. */
145533
- 409: {
145534
- headers: {
145535
- [name: string]: unknown;
145536
- };
145537
- content: {
145538
- "application/json": components["schemas"]["OperationError"];
145539
- };
145540
- };
145541
- /** @description Refused: operation_retired. */
145542
- 410: {
145543
- headers: {
145544
- [name: string]: unknown;
145545
- };
145546
- content: {
145547
- "application/json": components["schemas"]["OperationError"];
145548
- };
145549
- };
145550
- /** @description Refused: invalid_input, domain_rule. */
145551
- 422: {
145552
- headers: {
145553
- [name: string]: unknown;
145554
- };
145555
- content: {
145556
- "application/json": components["schemas"]["OperationError"];
145557
- };
145558
- };
145559
- /** @description Refused: rate_limited. */
145560
- 429: {
145561
- headers: {
145562
- [name: string]: unknown;
145563
- };
145564
- content: {
145565
- "application/json": components["schemas"]["OperationError"];
147091
+ /** @description IANA zone id, for example America/Chicago */
147092
+ timezone: string;
147093
+ /** @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 */
147094
+ starts_on: string;
145566
147095
  };
145567
147096
  };
145568
147097
  };
145569
- };
145570
- "ops.system.integrations.sms_registration.get": {
145571
- parameters: {
145572
- query?: never;
145573
- header?: {
145574
- /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
145575
- "Idempotency-Key"?: string;
145576
- /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
145577
- "Axivoy-Dry-Run"?: "true" | "false";
145578
- };
145579
- path?: never;
145580
- cookie?: never;
145581
- };
145582
- requestBody?: {
145583
- content: {
145584
- /** @example {} */
145585
- "application/json": Record<string, never>;
145586
- };
145587
- };
145588
147098
  responses: {
145589
147099
  /** @description The operation ran. */
145590
147100
  200: {
@@ -145595,98 +147105,101 @@ export interface operations {
145595
147105
  /**
145596
147106
  * @example {
145597
147107
  * "result": {
145598
- * "registered": true,
145599
- * "mode": "automated",
145600
- * "status": "brand_pending",
145601
- * "status_label": "Brand review pending",
145602
- * "sending_number": null,
145603
- * "requested_number": null,
145604
- * "number_needed": false,
145605
- * "submitted_at": "2026-10-25T01:30:45Z",
145606
- * "approved_at": null,
145607
- * "rejection_reason": null,
145608
- * "steps": [
145609
- * {
145610
- * "key": "draft",
145611
- * "label": "Draft",
145612
- * "state": "done"
145613
- * },
145614
- * {
145615
- * "key": "profile_submitted",
145616
- * "label": "Business profile submitted",
145617
- * "state": "done"
145618
- * },
145619
- * {
145620
- * "key": "brand_pending",
145621
- * "label": "Brand review pending",
145622
- * "state": "current"
145623
- * },
145624
- * {
145625
- * "key": "brand_approved",
145626
- * "label": "Brand approved",
145627
- * "state": "pending"
145628
- * },
145629
- * {
145630
- * "key": "campaign_pending",
145631
- * "label": "Campaign review pending",
145632
- * "state": "pending"
145633
- * },
145634
- * {
145635
- * "key": "campaign_verified",
145636
- * "label": "Campaign verified",
145637
- * "state": "pending"
145638
- * },
145639
- * {
145640
- * "key": "number_active",
145641
- * "label": "Number provisioned",
145642
- * "state": "pending"
145643
- * },
145644
- * {
145645
- * "key": "active",
145646
- * "label": "Active",
145647
- * "state": "pending"
145648
- * }
145649
- * ]
147108
+ * "timezone": "America/Chicago",
147109
+ * "previous_timezone": "UTC",
147110
+ * "starts_on": "2026-11-01",
147111
+ * "starts_at": "2026-11-01T05:00:00Z",
147112
+ * "previous_day": "2026-10-31",
147113
+ * "previous_day_change_minutes": 300,
147114
+ * "pay_period": null,
147115
+ * "scorecard_week": null,
147116
+ * "warnings": [],
147117
+ * "affected_loads": [],
147118
+ * "refusal": null,
147119
+ * "message": "Sunday, Nov 1 starts at 12:00 AM Central Time. Saturday, Oct 31 runs 5 hours longer, until midnight Central Time."
145650
147120
  * }
145651
147121
  * }
145652
147122
  */
145653
147123
  "application/json": {
145654
147124
  result: {
145655
- /** @description Whether a registration exists (in progress or approved) */
145656
- registered: boolean;
145657
- /** @description automated (Axivoy registered it) or external (the company brought a registered number) */
145658
- mode?: string | null;
145659
- /** @description Registration status key */
145660
- status?: string | null;
145661
- /** @description The status in the operator's words */
145662
- status_label?: string | null;
145663
- /** @description The number texts are sent from (E.164) */
145664
- sending_number?: string | null;
145665
- /** @description The company number texting will use once carriers approve (E.164) */
145666
- requested_number?: string | null;
145667
- /** @description Whether carriers approved the company and Axivoy is waiting for it to choose a number to text from */
145668
- number_needed: boolean;
147125
+ /** @description The zone days would count in (IANA) */
147126
+ timezone: string;
147127
+ /** @description The zone days count in now on that date (IANA) */
147128
+ previous_timezone: string;
145669
147129
  /**
145670
- * Format: date-time
145671
- * @description When it was sent to carriers
147130
+ * Format: date
147131
+ * @description The Sunday the switch starts; null from the beginning
145672
147132
  */
145673
- submitted_at?: string | null;
147133
+ starts_on?: string | null;
145674
147134
  /**
145675
147135
  * Format: date-time
145676
- * @description When carriers approved it
147136
+ * @description That Sunday's midnight in the new zone; null from the beginning
145677
147137
  */
145678
- approved_at?: string | null;
145679
- /** @description The carrier's reason when a step was rejected */
145680
- rejection_reason?: string | null;
145681
- /** @description Each registration step in order */
145682
- steps: {
145683
- /** @description Step key */
145684
- key: string;
145685
- /** @description Step name */
145686
- label: string;
145687
- /** @description done, current, failed or pending */
145688
- state: string;
147138
+ starts_at?: string | null;
147139
+ /**
147140
+ * Format: date
147141
+ * @description The Saturday before the start, which runs longer or shorter; null from the beginning
147142
+ */
147143
+ previous_day?: string | null;
147144
+ /** @description How many minutes longer (positive) or shorter (negative) that Saturday runs */
147145
+ previous_day_change_minutes: number;
147146
+ /** @description The pay period that holds the Saturday; null when none is set up */
147147
+ pay_period?: {
147148
+ /** @description The pay period */
147149
+ id: number;
147150
+ /**
147151
+ * Format: date
147152
+ * @description First day
147153
+ */
147154
+ start_date: string;
147155
+ /**
147156
+ * Format: date
147157
+ * @description Last day
147158
+ */
147159
+ end_date: string;
147160
+ /** @description Whether a payroll run for it is calculated or later */
147161
+ processed: boolean;
147162
+ } | null;
147163
+ /** @description The scorecard week that holds the Saturday; null when the workspace has no scorecards yet */
147164
+ scorecard_week?: {
147165
+ /**
147166
+ * Format: date
147167
+ * @description The Sunday the week starts
147168
+ */
147169
+ start_date: string;
147170
+ /**
147171
+ * Format: date
147172
+ * @description The Saturday it ends
147173
+ */
147174
+ end_date: string;
147175
+ /** @description Whether the week is locked */
147176
+ locked: boolean;
147177
+ } | null;
147178
+ /** @description What to know before switching; none block it */
147179
+ warnings: unknown[];
147180
+ /** @description Loads not delivered yet that are due to deliver in the moved hours, when that pay period is already processed */
147181
+ affected_loads: {
147182
+ /** @description The load */
147183
+ load_id: number;
147184
+ /** @description The load number */
147185
+ load_number: string;
147186
+ /** @description The driver on the trip */
147187
+ driver_name?: string | null;
147188
+ /**
147189
+ * Format: date-time
147190
+ * @description When the delivery is due
147191
+ */
147192
+ delivery_at: string;
145689
147193
  }[];
147194
+ /** @description Why the switch would be refused; null when it may switch */
147195
+ refusal?: {
147196
+ /** @description not_a_sunday, not_after_today, already_counts, already_counted, switch_waiting, pay_line_moves or scorecard_week_locked */
147197
+ reason: string;
147198
+ /** @description Why, in the operator's words */
147199
+ message: string;
147200
+ } | null;
147201
+ /** @description What the switch would do, in the operator's words */
147202
+ message: string;
145690
147203
  };
145691
147204
  };
145692
147205
  };
@@ -155531,6 +157044,15 @@ export interface operations {
155531
157044
  };
155532
157045
  requestBody?: {
155533
157046
  content: {
157047
+ /**
157048
+ * @example {
157049
+ * "team_keys": [
157050
+ * "safety",
157051
+ * "dispatch",
157052
+ * "claims"
157053
+ * ]
157054
+ * }
157055
+ */
155534
157056
  "application/json": {
155535
157057
  /** @description Active team keys in the order callers hear them (0 to 8; from communication_teams.list) */
155536
157058
  team_keys: string[] | null;
@@ -155544,6 +157066,31 @@ export interface operations {
155544
157066
  [name: string]: unknown;
155545
157067
  };
155546
157068
  content: {
157069
+ /**
157070
+ * @example {
157071
+ * "result": {
157072
+ * "options": [
157073
+ * {
157074
+ * "digit": 1,
157075
+ * "team_key": "safety",
157076
+ * "name": "Safety & compliance"
157077
+ * },
157078
+ * {
157079
+ * "digit": 2,
157080
+ * "team_key": "dispatch",
157081
+ * "name": "Dispatch"
157082
+ * },
157083
+ * {
157084
+ * "digit": 3,
157085
+ * "team_key": "claims",
157086
+ * "name": "Claims"
157087
+ * }
157088
+ * ],
157089
+ * "prompt": "For safety and compliance, press 1. For dispatch, press 2. For claims, press 3. To repeat these options, press 9.",
157090
+ * "message": "Main phone menu saved."
157091
+ * }
157092
+ * }
157093
+ */
155547
157094
  "application/json": {
155548
157095
  result: {
155549
157096
  /** @description The menu in the order callers hear it */
@@ -158384,6 +159931,12 @@ export interface operations {
158384
159931
  };
158385
159932
  requestBody?: {
158386
159933
  content: {
159934
+ /**
159935
+ * @example {
159936
+ * "number_id": 1,
159937
+ * "team_key": "safety"
159938
+ * }
159939
+ */
158387
159940
  "application/json": {
158388
159941
  /** @description A number the company holds, active, with texts on or receive only (from voice.numbers.list) */
158389
159942
  number_id: number;
@@ -158399,6 +159952,15 @@ export interface operations {
158399
159952
  [name: string]: unknown;
158400
159953
  };
158401
159954
  content: {
159955
+ /**
159956
+ * @example {
159957
+ * "result": {
159958
+ * "number_id": 1,
159959
+ * "team_key": "safety",
159960
+ * "message": "Texts to (713) 555-0142 now go to Safety & compliance."
159961
+ * }
159962
+ * }
159963
+ */
158402
159964
  "application/json": {
158403
159965
  result: {
158404
159966
  /** @description The phone number */