@axivoy/api 1.65.0 → 1.74.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.
@@ -1301,6 +1301,28 @@ export interface paths {
1301
1301
  patch?: never;
1302
1302
  trace?: never;
1303
1303
  };
1304
+ "/ops/compensation_plans.pay_outlook": {
1305
+ parameters: {
1306
+ query?: never;
1307
+ header?: never;
1308
+ path?: never;
1309
+ cookie?: never;
1310
+ };
1311
+ get?: never;
1312
+ put?: never;
1313
+ /**
1314
+ * My pay steps and next raise
1315
+ * @description A driver's current pay plan and its rates, the next pay step payroll will apply automatically (new rates, start date, time served toward it and, for a per-mile raise, about how much more a week at the driver's usual miles), up to three later steps, and recent raises. Default you.
1316
+ *
1317
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1318
+ */
1319
+ post: operations["ops.compensation_plans.pay_outlook"];
1320
+ delete?: never;
1321
+ options?: never;
1322
+ head?: never;
1323
+ patch?: never;
1324
+ trace?: never;
1325
+ };
1304
1326
  "/ops/compensation_plans.progression_events.approve": {
1305
1327
  parameters: {
1306
1328
  query?: never;
@@ -1510,7 +1532,7 @@ export interface paths {
1510
1532
  put?: never;
1511
1533
  /**
1512
1534
  * Get a pay statement
1513
- * @description One finalized compensation statement: period, settlement detail, pay stub and net pay. Set include_pdf for a download link.
1535
+ * @description One finalized compensation statement: period, settlement detail, pay stub, net pay and a breakdown of where the gross pay went. Set include_pdf for a download link.
1514
1536
  *
1515
1537
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
1516
1538
  */
@@ -5778,7 +5800,7 @@ export interface paths {
5778
5800
  put?: never;
5779
5801
  /**
5780
5802
  * Attach a conversation to a load
5781
- * @description Put a conversation on a load. Uses its latest received message unless inbound_message_id names one.
5803
+ * @description Put a conversation on a load. Uses its latest received message unless inbound_message_id names one. Copies every file of that email to the load unless copy_attachment_ids names the files to copy (call inbox.conversations.load_file_preview first).
5782
5804
  *
5783
5805
  * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
5784
5806
  */
@@ -5833,6 +5855,28 @@ export interface paths {
5833
5855
  patch?: never;
5834
5856
  trace?: never;
5835
5857
  };
5858
+ "/ops/inbox.conversations.change_load": {
5859
+ parameters: {
5860
+ query?: never;
5861
+ header?: never;
5862
+ path?: never;
5863
+ cookie?: never;
5864
+ };
5865
+ get?: never;
5866
+ put?: never;
5867
+ /**
5868
+ * Move a conversation to a different load
5869
+ * @description Moves a conversation from a load it was attached to by mistake to the right one, in one step. Copies only the email files you choose to the new load (none is allowed); files left on the old load are listed so they can be removed. Call inbox.conversations.load_file_preview first to see the files, and say which ones you will copy.
5870
+ *
5871
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
5872
+ */
5873
+ post: operations["ops.inbox.conversations.change_load"];
5874
+ delete?: never;
5875
+ options?: never;
5876
+ head?: never;
5877
+ patch?: never;
5878
+ trace?: never;
5879
+ };
5836
5880
  "/ops/inbox.conversations.claim": {
5837
5881
  parameters: {
5838
5882
  query?: never;
@@ -5877,6 +5921,28 @@ export interface paths {
5877
5921
  patch?: never;
5878
5922
  trace?: never;
5879
5923
  };
5924
+ "/ops/inbox.conversations.detach_load": {
5925
+ parameters: {
5926
+ query?: never;
5927
+ header?: never;
5928
+ path?: never;
5929
+ cookie?: never;
5930
+ };
5931
+ get?: never;
5932
+ put?: never;
5933
+ /**
5934
+ * Remove a load from a conversation
5935
+ * @description Takes a load off a conversation that was attached to it by mistake. When no load is left, the conversation can be attached again. Files the email copied to that load stay there and are listed so they can be removed.
5936
+ *
5937
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
5938
+ */
5939
+ post: operations["ops.inbox.conversations.detach_load"];
5940
+ delete?: never;
5941
+ options?: never;
5942
+ head?: never;
5943
+ patch?: never;
5944
+ trace?: never;
5945
+ };
5880
5946
  "/ops/inbox.conversations.get": {
5881
5947
  parameters: {
5882
5948
  query?: never;
@@ -5899,6 +5965,28 @@ export interface paths {
5899
5965
  patch?: never;
5900
5966
  trace?: never;
5901
5967
  };
5968
+ "/ops/inbox.conversations.load_file_preview": {
5969
+ parameters: {
5970
+ query?: never;
5971
+ header?: never;
5972
+ path?: never;
5973
+ cookie?: never;
5974
+ };
5975
+ get?: never;
5976
+ put?: never;
5977
+ /**
5978
+ * See which email files would be copied to a load
5979
+ * @description Lists the files in a conversation's received emails before attaching it to a load or moving it to another: which email each came from, the kind it would be filed as, whether it can be copied, and where copies already sit. Nothing is copied.
5980
+ *
5981
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
5982
+ */
5983
+ post: operations["ops.inbox.conversations.load_file_preview"];
5984
+ delete?: never;
5985
+ options?: never;
5986
+ head?: never;
5987
+ patch?: never;
5988
+ trace?: never;
5989
+ };
5902
5990
  "/ops/inbox.conversations.load_search": {
5903
5991
  parameters: {
5904
5992
  query?: never;
@@ -15623,6 +15711,28 @@ export interface paths {
15623
15711
  patch?: never;
15624
15712
  trace?: never;
15625
15713
  };
15714
+ "/ops/scorecards.bonus_history": {
15715
+ parameters: {
15716
+ query?: never;
15717
+ header?: never;
15718
+ path?: never;
15719
+ cookie?: never;
15720
+ };
15721
+ get?: never;
15722
+ put?: never;
15723
+ /**
15724
+ * Bonus history
15725
+ * @description The scorecard bonuses a driver or dispatcher earned in recent final weeks: each week's total and, per bonus, the amount and whether it is waiting for payroll, on a pay statement, not paid, or paid outside Axivoy payroll (dispatcher bonuses). Default you, your portal's scorecard and the 8 most recent weeks with bonus results.
15726
+ *
15727
+ * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
15728
+ */
15729
+ post: operations["ops.scorecards.bonus_history"];
15730
+ delete?: never;
15731
+ options?: never;
15732
+ head?: never;
15733
+ patch?: never;
15734
+ trace?: never;
15735
+ };
15626
15736
  "/ops/scorecards.bonus_previews": {
15627
15737
  parameters: {
15628
15738
  query?: never;
@@ -15634,7 +15744,7 @@ export interface paths {
15634
15744
  put?: never;
15635
15745
  /**
15636
15746
  * Preview scorecard bonuses
15637
- * @description What each bonus scheme would pay a driver for the week as it stands, with the reason. A preview, not pay.
15747
+ * @description What each bonus scheme would pay a driver or dispatcher for the week as it stands: its standing, the targets it checks, how it pays, and the week's total. A preview, not pay; "earned" only for a final week's persisted payout.
15638
15748
  *
15639
15749
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
15640
15750
  */
@@ -15645,6 +15755,28 @@ export interface paths {
15645
15755
  patch?: never;
15646
15756
  trace?: never;
15647
15757
  };
15758
+ "/ops/scorecards.focus.set": {
15759
+ parameters: {
15760
+ query?: never;
15761
+ header?: never;
15762
+ path?: never;
15763
+ cookie?: never;
15764
+ };
15765
+ get?: never;
15766
+ put?: never;
15767
+ /**
15768
+ * Set my scorecard focus
15769
+ * @description Pick one score on your own scorecard to focus on for the current open week, or clear it. The picked score shows first in What to work on, and the week reports how it went. Self only; only the current open week.
15770
+ *
15771
+ * Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
15772
+ */
15773
+ post: operations["ops.scorecards.focus.set"];
15774
+ delete?: never;
15775
+ options?: never;
15776
+ head?: never;
15777
+ patch?: never;
15778
+ trace?: never;
15779
+ };
15648
15780
  "/ops/scorecards.get": {
15649
15781
  parameters: {
15650
15782
  query?: never;
@@ -15655,8 +15787,8 @@ export interface paths {
15655
15787
  get?: never;
15656
15788
  put?: never;
15657
15789
  /**
15658
- * Get a driver scorecard
15659
- * @description A driver weekly scorecard: each metric with its value, band and prior week value. Default you and the current week.
15790
+ * Get a scorecard
15791
+ * @description A driver's or dispatcher's weekly scorecard: each metric with its value, score level, change, tip, bonus targets and next step, plus the week's state, what to work on, wins and the person's weekly focus pick. Never amounts. Default you, your portal's scorecard and the most recent week with scores.
15660
15792
  *
15661
15793
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
15662
15794
  */
@@ -15678,7 +15810,7 @@ export interface paths {
15678
15810
  put?: never;
15679
15811
  /**
15680
15812
  * Get scorecard trends
15681
- * @description Weekly trend series behind a driver scorecard, for one metric slug or all of them.
15813
+ * @description Weekly trend series behind a driver or dispatcher scorecard, for one metric slug or all of them, with each week's value in words, bonus target lines and the best week in the last 8.
15682
15814
  *
15683
15815
  * Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
15684
15816
  */
@@ -28673,6 +28805,335 @@ export interface operations {
28673
28805
  };
28674
28806
  };
28675
28807
  };
28808
+ "ops.compensation_plans.pay_outlook": {
28809
+ parameters: {
28810
+ query?: never;
28811
+ header?: {
28812
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
28813
+ "Idempotency-Key"?: string;
28814
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
28815
+ "Axivoy-Dry-Run"?: "true" | "false";
28816
+ };
28817
+ path?: never;
28818
+ cookie?: never;
28819
+ };
28820
+ requestBody?: {
28821
+ content: {
28822
+ /** @example {} */
28823
+ "application/json": {
28824
+ /** @description Another driver; default you. */
28825
+ user_id?: number | null;
28826
+ };
28827
+ };
28828
+ };
28829
+ responses: {
28830
+ /** @description The operation ran. */
28831
+ 200: {
28832
+ headers: {
28833
+ [name: string]: unknown;
28834
+ };
28835
+ content: {
28836
+ /**
28837
+ * @example {
28838
+ * "result": {
28839
+ * "current_plan": {
28840
+ * "name": "Solo Driver II",
28841
+ * "since": "2026-05-19",
28842
+ * "since_label": "May 19",
28843
+ * "rates": [
28844
+ * {
28845
+ * "label": "Miles",
28846
+ * "text": "55¢ a mile"
28847
+ * },
28848
+ * {
28849
+ * "label": "Stops",
28850
+ * "text": "$25 a stop after the first"
28851
+ * },
28852
+ * {
28853
+ * "label": "Detention",
28854
+ * "text": "$20 an hour after 2 hours"
28855
+ * },
28856
+ * {
28857
+ * "label": "Layover",
28858
+ * "text": "$100 a day"
28859
+ * }
28860
+ * ]
28861
+ * },
28862
+ * "next_step": {
28863
+ * "kind": "raise",
28864
+ * "plan_name": "Solo Driver III",
28865
+ * "starts_on": "2026-11-03",
28866
+ * "starts_on_label": "Nov 3",
28867
+ * "days_until": 13,
28868
+ * "headline": "Your raise to 60¢ a mile starts Nov 3",
28869
+ * "figure_text": "60¢ a mile",
28870
+ * "tile_text": "Raise to 60¢ a mile Nov 3",
28871
+ * "effective_note": "Loads you deliver on or after Nov 3 pay the new rates.",
28872
+ * "progress": {
28873
+ * "elapsed": 22,
28874
+ * "total": 24,
28875
+ * "unit": "weeks",
28876
+ * "text": "22 of 24 weeks",
28877
+ * "anchor_text": "Counted from May 19, the day you started on Solo Driver II. After 24 weeks on that plan, you move to Solo Driver III."
28878
+ * },
28879
+ * "changes": [
28880
+ * {
28881
+ * "label": "Miles",
28882
+ * "direction": "up",
28883
+ * "from_text": "55¢ a mile",
28884
+ * "to_text": "60¢ a mile",
28885
+ * "delta_text": "5¢ more a mile"
28886
+ * },
28887
+ * {
28888
+ * "label": "Layover",
28889
+ * "direction": "up",
28890
+ * "from_text": "$100 a day",
28891
+ * "to_text": "$125 a day",
28892
+ * "delta_text": "$25 more a day"
28893
+ * }
28894
+ * ],
28895
+ * "estimate": {
28896
+ * "amount": 121,
28897
+ * "text": "About $120 more a week at your usual miles",
28898
+ * "calculation_text": "2,410 paid miles a week × 5¢ more a mile ≈ $121",
28899
+ * "basis_text": "Based on your paid miles over the last 9 weeks"
28900
+ * }
28901
+ * },
28902
+ * "later_steps": [
28903
+ * {
28904
+ * "kind": "raise",
28905
+ * "plan_name": "Solo Driver IV",
28906
+ * "starts_on": "2027-05-04",
28907
+ * "starts_on_label": "May 4, 2027",
28908
+ * "headline": "Raise to 63¢ a mile on May 4, 2027",
28909
+ * "figure_text": "63¢ a mile"
28910
+ * }
28911
+ * ],
28912
+ * "recent_raise": null,
28913
+ * "history": [
28914
+ * {
28915
+ * "event_id": 1,
28916
+ * "kind": "raise",
28917
+ * "plan_name": "Solo Driver II",
28918
+ * "started_on": "2026-05-19",
28919
+ * "started_on_label": "May 19",
28920
+ * "summary_text": "Raise to 55¢ a mile, up from 50¢ a mile"
28921
+ * }
28922
+ * ],
28923
+ * "team_note": null
28924
+ * }
28925
+ * }
28926
+ */
28927
+ "application/json": {
28928
+ result: {
28929
+ /** @description The pay plan the driver is on today; null when the driver has no pay plan. */
28930
+ current_plan?: {
28931
+ /** @description Name of the pay plan the driver is on today. */
28932
+ name: string;
28933
+ /**
28934
+ * Format: date
28935
+ * @description Date the driver started on this plan.
28936
+ */
28937
+ since?: string | null;
28938
+ /** @description That date as people read it, such as "May 19". */
28939
+ since_label?: string | null;
28940
+ /** @description The plan's rates, base pay first; empty when the plan cannot be resolved today. */
28941
+ rates: {
28942
+ /** @description What the rate pays for, such as "Miles" or "Stops". */
28943
+ label: string;
28944
+ /** @description The rate in plain words, such as "55¢ a mile" or "$25 a stop after the first". */
28945
+ text: string;
28946
+ }[];
28947
+ } | null;
28948
+ /** @description The next pay step payroll will apply automatically; null when none is coming. */
28949
+ next_step?: {
28950
+ /** @description raise when at least one rate goes up or is added and none goes down, ends or changes; otherwise change. */
28951
+ kind: string;
28952
+ /** @description Name of the plan the driver moves to. */
28953
+ plan_name: string;
28954
+ /**
28955
+ * Format: date
28956
+ * @description Date the new plan starts; loads delivered on or after it pay the new rates.
28957
+ */
28958
+ starts_on: string;
28959
+ /** @description That date as people read it, such as "Nov 3". */
28960
+ starts_on_label: string;
28961
+ /** @description Days from the driver's today to the start date; 0 when it starts today. */
28962
+ days_until: number;
28963
+ /** @description One sentence for the step, such as "Your raise to 60¢ a mile starts Nov 3" or "Your pay plan changes to Regional Dedicated on Nov 3". */
28964
+ headline: string;
28965
+ /** @description The new rate that stands for the step, base pay first, such as "60¢ a mile"; null when no rate is known. */
28966
+ figure_text?: string | null;
28967
+ /** @description Short form for a dashboard tile, such as "Raise to 60¢ a mile Nov 3" or "Plan changes Nov 3". */
28968
+ tile_text: string;
28969
+ /** @description When the new rates apply, or "Your rates stay the same." when nothing changes. */
28970
+ effective_note: string;
28971
+ /** @description Time served toward the step; null when the count has no start date. */
28972
+ progress?: {
28973
+ /** @description Whole periods served so far, capped at total. */
28974
+ elapsed: number;
28975
+ /** @description Periods the rule requires. */
28976
+ total: number;
28977
+ /** @description Period unit: days, weeks or months. */
28978
+ unit: string;
28979
+ /** @description Progress in words, such as "18 of 24 weeks". */
28980
+ text: string;
28981
+ /** @description What the time is counted from and what happens at the end. */
28982
+ anchor_text?: string | null;
28983
+ } | null;
28984
+ /** @description Rates that differ between today and the new plan; a change lists rates that go down or end first. Empty when the rates are the same or cannot be resolved. */
28985
+ changes: {
28986
+ /** @description What the rate pays for, such as "Miles". */
28987
+ label: string;
28988
+ /** @description up, down, new (added), ends (removed) or changed (paid a different way). */
28989
+ direction: string;
28990
+ /** @description The rate today; null for a new rate. */
28991
+ from_text?: string | null;
28992
+ /** @description The rate on the new plan; null for a rate that ends. */
28993
+ to_text?: string | null;
28994
+ /** @description The difference, such as "5¢ more a mile", "New" or "Ends"; null when several parts of the rate change. */
28995
+ delta_text?: string | null;
28996
+ }[];
28997
+ /** @description About how much more a week a per-mile raise pays at the driver's usual paid miles; null for other steps or with under four weeks of finalized pay. */
28998
+ estimate?: {
28999
+ /** @description Estimated extra pay a week, in whole dollars. */
29000
+ amount: number;
29001
+ /** @description The estimate in words, rounded, such as "About $120 more a week at your usual miles". */
29002
+ text: string;
29003
+ /** @description How it was worked out, such as "2,410 paid miles a week × 5¢ more a mile ≈ $121". */
29004
+ calculation_text: string;
29005
+ /** @description Which pay it is based on, such as "Based on your paid miles over the last 12 weeks". */
29006
+ basis_text: string;
29007
+ } | null;
29008
+ } | null;
29009
+ /** @description Up to three automatic steps after the next one, in order; stops at a step that needs office approval. */
29010
+ later_steps: {
29011
+ /** @description raise or change, as for next_step. */
29012
+ kind: string;
29013
+ /** @description Name of the plan the driver moves to. */
29014
+ plan_name: string;
29015
+ /**
29016
+ * Format: date
29017
+ * @description Projected start date.
29018
+ */
29019
+ starts_on: string;
29020
+ /** @description That date as people read it, such as "May 4, 2027". */
29021
+ starts_on_label: string;
29022
+ /** @description One sentence for the step, such as "Raise to 63¢ a mile on May 4, 2027". */
29023
+ headline: string;
29024
+ /** @description The new rate that stands for the step; null when no rate is known. */
29025
+ figure_text?: string | null;
29026
+ }[];
29027
+ /** @description The newest pay step, when it was a raise that started in the last 30 days; else null. */
29028
+ recent_raise?: {
29029
+ /** @description Pay progression event id. */
29030
+ event_id: number;
29031
+ /** @description Name of the plan the raise moved the driver to. */
29032
+ plan_name: string;
29033
+ /**
29034
+ * Format: date
29035
+ * @description Date the raise started.
29036
+ */
29037
+ started_on: string;
29038
+ /** @description That date as people read it, such as "Oct 20". */
29039
+ started_on_label: string;
29040
+ /** @description Such as "Your raise started Oct 20". */
29041
+ headline: string;
29042
+ /** @description The new rate, such as "60¢ a mile". */
29043
+ figure_text?: string | null;
29044
+ /** @description The old rate, such as "Up from 55¢ a mile"; null for a rate that is new. */
29045
+ from_figure_text?: string | null;
29046
+ } | null;
29047
+ /** @description Up to five pay steps already applied, newest first. */
29048
+ history: {
29049
+ /** @description Pay progression event id. */
29050
+ event_id: number;
29051
+ /** @description raise or change. */
29052
+ kind: string;
29053
+ /** @description Name of the plan the step moved the driver to. */
29054
+ plan_name: string;
29055
+ /**
29056
+ * Format: date
29057
+ * @description Date the step started.
29058
+ */
29059
+ started_on: string;
29060
+ /** @description That date as people read it. */
29061
+ started_on_label: string;
29062
+ /** @description Such as "Raise to 55¢ a mile, up from 50¢ a mile" or "Pay plan changed to Regional Dedicated". */
29063
+ summary_text: string;
29064
+ }[];
29065
+ /** @description A note when the driver's plans pay team loads differently; null otherwise. */
29066
+ team_note?: string | null;
29067
+ };
29068
+ };
29069
+ };
29070
+ };
29071
+ 202: components["responses"]["Proposal"];
29072
+ /** @description Refused: credits_exhausted. */
29073
+ 402: {
29074
+ headers: {
29075
+ [name: string]: unknown;
29076
+ };
29077
+ content: {
29078
+ "application/json": components["schemas"]["OperationError"];
29079
+ };
29080
+ };
29081
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
29082
+ 403: {
29083
+ headers: {
29084
+ [name: string]: unknown;
29085
+ };
29086
+ content: {
29087
+ "application/json": components["schemas"]["OperationError"];
29088
+ };
29089
+ };
29090
+ /** @description Refused: not_found. */
29091
+ 404: {
29092
+ headers: {
29093
+ [name: string]: unknown;
29094
+ };
29095
+ content: {
29096
+ "application/json": components["schemas"]["OperationError"];
29097
+ };
29098
+ };
29099
+ /** @description Refused: idempotency_conflict, stale_state. */
29100
+ 409: {
29101
+ headers: {
29102
+ [name: string]: unknown;
29103
+ };
29104
+ content: {
29105
+ "application/json": components["schemas"]["OperationError"];
29106
+ };
29107
+ };
29108
+ /** @description Refused: operation_retired. */
29109
+ 410: {
29110
+ headers: {
29111
+ [name: string]: unknown;
29112
+ };
29113
+ content: {
29114
+ "application/json": components["schemas"]["OperationError"];
29115
+ };
29116
+ };
29117
+ /** @description Refused: invalid_input, domain_rule. */
29118
+ 422: {
29119
+ headers: {
29120
+ [name: string]: unknown;
29121
+ };
29122
+ content: {
29123
+ "application/json": components["schemas"]["OperationError"];
29124
+ };
29125
+ };
29126
+ /** @description Refused: rate_limited. */
29127
+ 429: {
29128
+ headers: {
29129
+ [name: string]: unknown;
29130
+ };
29131
+ content: {
29132
+ "application/json": components["schemas"]["OperationError"];
29133
+ };
29134
+ };
29135
+ };
29136
+ };
28676
29137
  "ops.compensation_plans.progression_events.approve": {
28677
29138
  parameters: {
28678
29139
  query?: never;
@@ -30147,7 +30608,7 @@ export interface operations {
30147
30608
  * "period_end": "2026-06-30",
30148
30609
  * "pay_date": null
30149
30610
  * },
30150
- * "finalized_at": "2026-10-19T02:34:32+00:00",
30611
+ * "finalized_at": "2026-10-25T21:01:10+00:00",
30151
30612
  * "section_order": [
30152
30613
  * "letterhead",
30153
30614
  * "meta",
@@ -30432,6 +30893,12 @@ export interface operations {
30432
30893
  * ]
30433
30894
  * },
30434
30895
  * "has_net_pay_detail": true,
30896
+ * "breakdown": {
30897
+ * "gross_pay": "500.00",
30898
+ * "taxes": "50.00",
30899
+ * "deductions": "10.00",
30900
+ * "net_pay": "440.00"
30901
+ * },
30435
30902
  * "pdf_url": null,
30436
30903
  * "pdf_expires_at": null
30437
30904
  * }
@@ -30463,6 +30930,17 @@ export interface operations {
30463
30930
  pay_stub: Record<string, never>;
30464
30931
  net_pay_footer: Record<string, never>;
30465
30932
  has_net_pay_detail: boolean;
30933
+ /** @description Where the gross pay went, as numbers for a graphic; each amount matches its driver summary row. */
30934
+ breakdown: {
30935
+ /** @description Gross pay, the same amount as the Gross Pay summary row. */
30936
+ gross_pay?: string | null;
30937
+ /** @description Total taxes taken out; null without net pay detail. */
30938
+ taxes?: string | null;
30939
+ /** @description Total deductions taken out; null without net pay detail. */
30940
+ deductions?: string | null;
30941
+ /** @description Net pay; null without net pay detail. */
30942
+ net_pay?: string | null;
30943
+ };
30466
30944
  pdf_url?: string | null;
30467
30945
  /** Format: date-time */
30468
30946
  pdf_expires_at?: string | null;
@@ -62130,7 +62608,8 @@ export interface operations {
62130
62608
  /**
62131
62609
  * @example {
62132
62610
  * "thread_id": 1,
62133
- * "load_id": 1
62611
+ * "load_id": 1,
62612
+ * "copy_attachment_ids": []
62134
62613
  * }
62135
62614
  */
62136
62615
  "application/json": {
@@ -62142,6 +62621,8 @@ export interface operations {
62142
62621
  inbound_message_id?: number | null;
62143
62622
  /** @description More teams that should see it */
62144
62623
  also_in_queue_keys?: string[] | null;
62624
+ /** @description Files from this conversation's emails to copy to the load (from inbox.conversations.load_file_preview); leave out to copy every file of the attached email; an empty list copies nothing; an inline, quarantined or not-allowed file, or one from another conversation, refuses the whole call */
62625
+ copy_attachment_ids?: number[] | null;
62145
62626
  };
62146
62627
  };
62147
62628
  };
@@ -62177,7 +62658,9 @@ export interface operations {
62177
62658
  * "last_outbound_at": null,
62178
62659
  * "closed_at": null
62179
62660
  * },
62180
- * "inbound_message_id": 1
62661
+ * "inbound_message_id": 1,
62662
+ * "copied": [],
62663
+ * "skipped": []
62181
62664
  * }
62182
62665
  * }
62183
62666
  */
@@ -62234,6 +62717,22 @@ export interface operations {
62234
62717
  };
62235
62718
  /** @description The message that was attached */
62236
62719
  inbound_message_id: number;
62720
+ /** @description Files copied to the load */
62721
+ copied: {
62722
+ /** @description The email file */
62723
+ inbound_attachment_id: number;
62724
+ /** @description Its new copy on the load */
62725
+ load_document_id: number;
62726
+ /** @description File name as the sender wrote it */
62727
+ filename: string;
62728
+ }[];
62729
+ /** @description Files not copied */
62730
+ skipped: {
62731
+ /** @description The email file */
62732
+ inbound_attachment_id: number;
62733
+ /** @description already_on_load, duplicate_content (the same file is already there), copy_failed, or when copying every file, why the file is not saved to loads (type_not_allowed, image_below_min_size, promotion_disabled, quarantined) */
62734
+ reason: string;
62735
+ }[];
62237
62736
  };
62238
62737
  };
62239
62738
  };
@@ -62678,7 +63177,7 @@ export interface operations {
62678
63177
  };
62679
63178
  };
62680
63179
  };
62681
- "ops.inbox.conversations.claim": {
63180
+ "ops.inbox.conversations.change_load": {
62682
63181
  parameters: {
62683
63182
  query?: never;
62684
63183
  header?: {
@@ -62694,12 +63193,23 @@ export interface operations {
62694
63193
  content: {
62695
63194
  /**
62696
63195
  * @example {
62697
- * "thread_id": 1
63196
+ * "thread_id": 8,
63197
+ * "from_load_id": 1,
63198
+ * "to_load_id": 2,
63199
+ * "copy_attachment_ids": [
63200
+ * 1
63201
+ * ]
62698
63202
  * }
62699
63203
  */
62700
63204
  "application/json": {
62701
63205
  /** @description The conversation */
62702
63206
  thread_id: number;
63207
+ /** @description The wrong load, on the conversation (from inbox.conversations.get); links made by remittance advice are refused */
63208
+ from_load_id: number;
63209
+ /** @description The right load (from inbox.conversations.load_search); one you can view, not already on the conversation */
63210
+ to_load_id: number;
63211
+ /** @description Files from this conversation's emails to copy to the new load (from inbox.conversations.load_file_preview); an empty list copies nothing; an inline, quarantined or not-allowed file, or one from another conversation, refuses the whole call */
63212
+ copy_attachment_ids: number[] | null;
62703
63213
  };
62704
63214
  };
62705
63215
  };
@@ -62714,30 +63224,37 @@ export interface operations {
62714
63224
  * @example {
62715
63225
  * "result": {
62716
63226
  * "ok": true,
62717
- * "message": "Conversation claimed.",
63227
+ * "message": "Moved to LD-5H-2002. 1 file copied.",
62718
63228
  * "conversation": {
62719
- * "id": 1,
63229
+ * "id": 8,
62720
63230
  * "channel": "email",
62721
- * "subject": "Invoice INV-9",
63231
+ * "subject": "POD for LD-5H-2002",
62722
63232
  * "queue_key": "receivables",
62723
63233
  * "queue_keys": [
62724
63234
  * "receivables"
62725
63235
  * ],
62726
63236
  * "state": "awaiting_reply",
62727
- * "assigned_user_id": 1,
62728
- * "member_user_ids": [
62729
- * 1
62730
- * ],
63237
+ * "assigned_user_id": null,
63238
+ * "member_user_ids": [],
62731
63239
  * "screened_category": null,
62732
- * "related_type": null,
62733
- * "related_id": null,
63240
+ * "related_type": "load",
63241
+ * "related_id": 2,
62734
63242
  * "awaiting_reply_since": "2026-10-20T14:00:00Z",
62735
63243
  * "last_inbound_at": "2026-10-20T14:00:00Z",
62736
63244
  * "last_outbound_at": null,
62737
63245
  * "closed_at": null
62738
63246
  * },
62739
- * "claimed": true,
62740
- * "assigned_user_id": 1
63247
+ * "from_load_id": 1,
63248
+ * "to_load_id": 2,
63249
+ * "copied": [
63250
+ * {
63251
+ * "inbound_attachment_id": 1,
63252
+ * "load_document_id": 1,
63253
+ * "filename": "pod.pdf"
63254
+ * }
63255
+ * ],
63256
+ * "skipped": [],
63257
+ * "left_documents": []
62741
63258
  * }
62742
63259
  * }
62743
63260
  */
@@ -62792,10 +63309,39 @@ export interface operations {
62792
63309
  */
62793
63310
  closed_at?: string | null;
62794
63311
  };
62795
- /** @description False when someone else already owns it */
62796
- claimed: boolean;
62797
- /** @description Owner after the claim */
62798
- assigned_user_id?: number | null;
63312
+ /** @description The load it moved away from */
63313
+ from_load_id: number;
63314
+ /** @description The load it is on now */
63315
+ to_load_id: number;
63316
+ /** @description Files copied to the new load */
63317
+ copied: {
63318
+ /** @description The email file */
63319
+ inbound_attachment_id: number;
63320
+ /** @description Its new copy on to_load_id */
63321
+ load_document_id: number;
63322
+ /** @description File name as the sender wrote it */
63323
+ filename: string;
63324
+ }[];
63325
+ /** @description Chosen files not copied */
63326
+ skipped: {
63327
+ /** @description The email file */
63328
+ inbound_attachment_id: number;
63329
+ /** @description already_on_load, duplicate_content (the same file is already there) or copy_failed */
63330
+ reason: string;
63331
+ }[];
63332
+ /** @description Files from this conversation still on the old load; nothing was deleted */
63333
+ left_documents: {
63334
+ /** @description Load document id; remove it with loads.documents.delete */
63335
+ id: number;
63336
+ /** @description The load it is still on */
63337
+ load_id: number;
63338
+ /** @description Kind it was filed as (rate_confirmation, pod, bol, invoice, other, ...) */
63339
+ document_kind: string;
63340
+ /** @description Details read from this file were applied to that load (stops, rate); check the load */
63341
+ applied_to_load: boolean;
63342
+ /** @description Document title, from the file name */
63343
+ title: string;
63344
+ }[];
62799
63345
  };
62800
63346
  };
62801
63347
  };
@@ -62866,7 +63412,7 @@ export interface operations {
62866
63412
  };
62867
63413
  };
62868
63414
  };
62869
- "ops.inbox.conversations.close": {
63415
+ "ops.inbox.conversations.claim": {
62870
63416
  parameters: {
62871
63417
  query?: never;
62872
63418
  header?: {
@@ -62902,7 +63448,7 @@ export interface operations {
62902
63448
  * @example {
62903
63449
  * "result": {
62904
63450
  * "ok": true,
62905
- * "message": "Conversation closed. Find it under Closed.",
63451
+ * "message": "Conversation claimed.",
62906
63452
  * "conversation": {
62907
63453
  * "id": 1,
62908
63454
  * "channel": "email",
@@ -62911,17 +63457,21 @@ export interface operations {
62911
63457
  * "queue_keys": [
62912
63458
  * "receivables"
62913
63459
  * ],
62914
- * "state": "closed",
62915
- * "assigned_user_id": null,
62916
- * "member_user_ids": [],
63460
+ * "state": "awaiting_reply",
63461
+ * "assigned_user_id": 1,
63462
+ * "member_user_ids": [
63463
+ * 1
63464
+ * ],
62917
63465
  * "screened_category": null,
62918
63466
  * "related_type": null,
62919
63467
  * "related_id": null,
62920
- * "awaiting_reply_since": null,
63468
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
62921
63469
  * "last_inbound_at": "2026-10-20T14:00:00Z",
62922
63470
  * "last_outbound_at": null,
62923
- * "closed_at": "2026-10-20T15:00:00Z"
62924
- * }
63471
+ * "closed_at": null
63472
+ * },
63473
+ * "claimed": true,
63474
+ * "assigned_user_id": 1
62925
63475
  * }
62926
63476
  * }
62927
63477
  */
@@ -62976,6 +63526,10 @@ export interface operations {
62976
63526
  */
62977
63527
  closed_at?: string | null;
62978
63528
  };
63529
+ /** @description False when someone else already owns it */
63530
+ claimed: boolean;
63531
+ /** @description Owner after the claim */
63532
+ assigned_user_id?: number | null;
62979
63533
  };
62980
63534
  };
62981
63535
  };
@@ -63046,7 +63600,7 @@ export interface operations {
63046
63600
  };
63047
63601
  };
63048
63602
  };
63049
- "ops.inbox.conversations.get": {
63603
+ "ops.inbox.conversations.close": {
63050
63604
  parameters: {
63051
63605
  query?: never;
63052
63606
  header?: {
@@ -63081,6 +63635,8 @@ export interface operations {
63081
63635
  /**
63082
63636
  * @example {
63083
63637
  * "result": {
63638
+ * "ok": true,
63639
+ * "message": "Conversation closed. Find it under Closed.",
63084
63640
  * "conversation": {
63085
63641
  * "id": 1,
63086
63642
  * "channel": "email",
@@ -63089,35 +63645,27 @@ export interface operations {
63089
63645
  * "queue_keys": [
63090
63646
  * "receivables"
63091
63647
  * ],
63092
- * "state": "awaiting_reply",
63648
+ * "state": "closed",
63093
63649
  * "assigned_user_id": null,
63094
63650
  * "member_user_ids": [],
63095
63651
  * "screened_category": null,
63096
63652
  * "related_type": null,
63097
63653
  * "related_id": null,
63098
- * "awaiting_reply_since": "2026-10-20T14:00:00Z",
63654
+ * "awaiting_reply_since": null,
63099
63655
  * "last_inbound_at": "2026-10-20T14:00:00Z",
63100
63656
  * "last_outbound_at": null,
63101
- * "closed_at": null
63102
- * },
63103
- * "messages": [
63104
- * {
63105
- * "id": 1,
63106
- * "direction": "inbound",
63107
- * "from": "ap@broker.example",
63108
- * "subject": "Invoice INV-9",
63109
- * "body": "Thanks for the invoice.",
63110
- * "status": null,
63111
- * "at": "2026-10-20T14:00:00Z"
63112
- * }
63113
- * ],
63114
- * "has_older_messages": false
63657
+ * "closed_at": "2026-10-20T15:00:00Z"
63658
+ * }
63115
63659
  * }
63116
63660
  * }
63117
63661
  */
63118
63662
  "application/json": {
63119
63663
  result: {
63120
- /** @description The conversation */
63664
+ /** @description True when the change was made */
63665
+ ok: boolean;
63666
+ /** @description What happened, ready to show a person */
63667
+ message: string;
63668
+ /** @description The conversation as it now stands */
63121
63669
  conversation: {
63122
63670
  /** @description Conversation id (thread_id on every conversation operation) */
63123
63671
  id: number;
@@ -63162,160 +63710,6 @@ export interface operations {
63162
63710
  */
63163
63711
  closed_at?: string | null;
63164
63712
  };
63165
- /** @description Latest messages, oldest first */
63166
- messages: {
63167
- /** @description Message id within its direction (reply_to_message_id) */
63168
- id: number;
63169
- /** @description inbound or outbound */
63170
- direction: string;
63171
- /** @description Sender address or phone (received messages) */
63172
- from?: string | null;
63173
- /** @description Subject as written */
63174
- subject?: string | null;
63175
- /** @description Plain text body as written */
63176
- body?: string | null;
63177
- /** @description Delivery status (sent messages) */
63178
- status?: string | null;
63179
- /**
63180
- * Format: date-time
63181
- * @description When it was received or sent
63182
- */
63183
- at?: string | null;
63184
- }[];
63185
- /** @description True when older messages were left out */
63186
- has_older_messages: boolean;
63187
- };
63188
- };
63189
- };
63190
- };
63191
- 202: components["responses"]["Proposal"];
63192
- /** @description Refused: credits_exhausted. */
63193
- 402: {
63194
- headers: {
63195
- [name: string]: unknown;
63196
- };
63197
- content: {
63198
- "application/json": components["schemas"]["OperationError"];
63199
- };
63200
- };
63201
- /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
63202
- 403: {
63203
- headers: {
63204
- [name: string]: unknown;
63205
- };
63206
- content: {
63207
- "application/json": components["schemas"]["OperationError"];
63208
- };
63209
- };
63210
- /** @description Refused: not_found. */
63211
- 404: {
63212
- headers: {
63213
- [name: string]: unknown;
63214
- };
63215
- content: {
63216
- "application/json": components["schemas"]["OperationError"];
63217
- };
63218
- };
63219
- /** @description Refused: idempotency_conflict, stale_state. */
63220
- 409: {
63221
- headers: {
63222
- [name: string]: unknown;
63223
- };
63224
- content: {
63225
- "application/json": components["schemas"]["OperationError"];
63226
- };
63227
- };
63228
- /** @description Refused: operation_retired. */
63229
- 410: {
63230
- headers: {
63231
- [name: string]: unknown;
63232
- };
63233
- content: {
63234
- "application/json": components["schemas"]["OperationError"];
63235
- };
63236
- };
63237
- /** @description Refused: invalid_input, domain_rule. */
63238
- 422: {
63239
- headers: {
63240
- [name: string]: unknown;
63241
- };
63242
- content: {
63243
- "application/json": components["schemas"]["OperationError"];
63244
- };
63245
- };
63246
- /** @description Refused: rate_limited. */
63247
- 429: {
63248
- headers: {
63249
- [name: string]: unknown;
63250
- };
63251
- content: {
63252
- "application/json": components["schemas"]["OperationError"];
63253
- };
63254
- };
63255
- };
63256
- };
63257
- "ops.inbox.conversations.load_search": {
63258
- parameters: {
63259
- query?: never;
63260
- header?: {
63261
- /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
63262
- "Idempotency-Key"?: string;
63263
- /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
63264
- "Axivoy-Dry-Run"?: "true" | "false";
63265
- };
63266
- path?: never;
63267
- cookie?: never;
63268
- };
63269
- requestBody?: {
63270
- content: {
63271
- /**
63272
- * @example {
63273
- * "thread_id": 1,
63274
- * "q": "LD-4G"
63275
- * }
63276
- */
63277
- "application/json": {
63278
- /** @description The conversation */
63279
- thread_id: number;
63280
- /** @description At least two characters */
63281
- q?: string | null;
63282
- };
63283
- };
63284
- };
63285
- responses: {
63286
- /** @description The operation ran. */
63287
- 200: {
63288
- headers: {
63289
- [name: string]: unknown;
63290
- };
63291
- content: {
63292
- /**
63293
- * @example {
63294
- * "result": {
63295
- * "matches": [
63296
- * {
63297
- * "id": 1,
63298
- * "load_number": "LD-4G-1001",
63299
- * "customer_name": "Acme Logistics",
63300
- * "order_number": null
63301
- * }
63302
- * ]
63303
- * }
63304
- * }
63305
- */
63306
- "application/json": {
63307
- result: {
63308
- /** @description Loads you can see that match */
63309
- matches: {
63310
- /** @description Pass as load_id to inbox.conversations.attach_load */
63311
- id: number;
63312
- /** @description Load number */
63313
- load_number: string;
63314
- /** @description Customer */
63315
- customer_name?: string | null;
63316
- /** @description Customer order or reference number */
63317
- order_number?: string | null;
63318
- }[];
63319
63713
  };
63320
63714
  };
63321
63715
  };
@@ -63386,7 +63780,7 @@ export interface operations {
63386
63780
  };
63387
63781
  };
63388
63782
  };
63389
- "ops.inbox.conversations.queues.create": {
63783
+ "ops.inbox.conversations.detach_load": {
63390
63784
  parameters: {
63391
63785
  query?: never;
63392
63786
  header?: {
@@ -63402,15 +63796,15 @@ export interface operations {
63402
63796
  content: {
63403
63797
  /**
63404
63798
  * @example {
63405
- * "thread_id": 1,
63406
- * "queue_key": "dispatch"
63799
+ * "thread_id": 8,
63800
+ * "load_id": 1
63407
63801
  * }
63408
63802
  */
63409
63803
  "application/json": {
63410
63804
  /** @description The conversation */
63411
63805
  thread_id: number;
63412
- /** @description The team to add */
63413
- queue_key?: string;
63806
+ /** @description A load on the conversation (from inbox.conversations.get); links made by remittance advice are refused */
63807
+ load_id: number;
63414
63808
  };
63415
63809
  };
63416
63810
  };
@@ -63425,15 +63819,14 @@ export interface operations {
63425
63819
  * @example {
63426
63820
  * "result": {
63427
63821
  * "ok": true,
63428
- * "message": "Team added.",
63822
+ * "message": "LD-4G-1001 removed. You can attach this conversation again.",
63429
63823
  * "conversation": {
63430
- * "id": 1,
63824
+ * "id": 8,
63431
63825
  * "channel": "email",
63432
- * "subject": "Invoice INV-9",
63826
+ * "subject": "POD for LD-5H-2002",
63433
63827
  * "queue_key": "receivables",
63434
63828
  * "queue_keys": [
63435
- * "receivables",
63436
- * "dispatch"
63829
+ * "receivables"
63437
63830
  * ],
63438
63831
  * "state": "awaiting_reply",
63439
63832
  * "assigned_user_id": null,
@@ -63445,7 +63838,10 @@ export interface operations {
63445
63838
  * "last_inbound_at": "2026-10-20T14:00:00Z",
63446
63839
  * "last_outbound_at": null,
63447
63840
  * "closed_at": null
63448
- * }
63841
+ * },
63842
+ * "removed_load_id": 1,
63843
+ * "reopened": true,
63844
+ * "left_documents": []
63449
63845
  * }
63450
63846
  * }
63451
63847
  */
@@ -63500,6 +63896,23 @@ export interface operations {
63500
63896
  */
63501
63897
  closed_at?: string | null;
63502
63898
  };
63899
+ /** @description The load taken off */
63900
+ removed_load_id: number;
63901
+ /** @description No load is left on the conversation, so it can be attached again */
63902
+ reopened: boolean;
63903
+ /** @description Files from this conversation still on the removed load; nothing was deleted */
63904
+ left_documents: {
63905
+ /** @description Load document id; remove it with loads.documents.delete */
63906
+ id: number;
63907
+ /** @description The load it is still on */
63908
+ load_id: number;
63909
+ /** @description Kind it was filed as (rate_confirmation, pod, bol, invoice, other, ...) */
63910
+ document_kind: string;
63911
+ /** @description Details read from this file were applied to that load (stops, rate); check the load */
63912
+ applied_to_load: boolean;
63913
+ /** @description Document title, from the file name */
63914
+ title: string;
63915
+ }[];
63503
63916
  };
63504
63917
  };
63505
63918
  };
@@ -63570,7 +63983,7 @@ export interface operations {
63570
63983
  };
63571
63984
  };
63572
63985
  };
63573
- "ops.inbox.conversations.queues.delete": {
63986
+ "ops.inbox.conversations.get": {
63574
63987
  parameters: {
63575
63988
  query?: never;
63576
63989
  header?: {
@@ -63586,15 +63999,12 @@ export interface operations {
63586
63999
  content: {
63587
64000
  /**
63588
64001
  * @example {
63589
- * "thread_id": 3,
63590
- * "queue_key": "dispatch"
64002
+ * "thread_id": 8
63591
64003
  * }
63592
64004
  */
63593
64005
  "application/json": {
63594
64006
  /** @description The conversation */
63595
64007
  thread_id: number;
63596
- /** @description The team to remove */
63597
- queue_key: string;
63598
64008
  };
63599
64009
  };
63600
64010
  };
@@ -63608,12 +64018,10 @@ export interface operations {
63608
64018
  /**
63609
64019
  * @example {
63610
64020
  * "result": {
63611
- * "ok": true,
63612
- * "message": "Team removed.",
63613
64021
  * "conversation": {
63614
- * "id": 3,
64022
+ * "id": 8,
63615
64023
  * "channel": "email",
63616
- * "subject": "Also in dispatch",
64024
+ * "subject": "POD for LD-5H-2002",
63617
64025
  * "queue_key": "receivables",
63618
64026
  * "queue_keys": [
63619
64027
  * "receivables"
@@ -63622,23 +64030,42 @@ export interface operations {
63622
64030
  * "assigned_user_id": null,
63623
64031
  * "member_user_ids": [],
63624
64032
  * "screened_category": null,
63625
- * "related_type": null,
63626
- * "related_id": null,
64033
+ * "related_type": "load",
64034
+ * "related_id": 1,
63627
64035
  * "awaiting_reply_since": "2026-10-20T14:00:00Z",
63628
64036
  * "last_inbound_at": "2026-10-20T14:00:00Z",
63629
64037
  * "last_outbound_at": null,
63630
64038
  * "closed_at": null
63631
- * }
64039
+ * },
64040
+ * "loads": [
64041
+ * {
64042
+ * "id": 1,
64043
+ * "load_number": "LD-4G-1001",
64044
+ * "link_source": "manual",
64045
+ * "operational_status": null,
64046
+ * "load_outcome": "normal",
64047
+ * "status_label": null,
64048
+ * "status_tone": "neutral"
64049
+ * }
64050
+ * ],
64051
+ * "messages": [
64052
+ * {
64053
+ * "id": 8,
64054
+ * "direction": "inbound",
64055
+ * "from": "dispatch@broker.example",
64056
+ * "subject": "POD for LD-5H-2002",
64057
+ * "body": "Thanks for the invoice.",
64058
+ * "status": null,
64059
+ * "at": "2026-10-20T14:00:00Z"
64060
+ * }
64061
+ * ],
64062
+ * "has_older_messages": false
63632
64063
  * }
63633
64064
  * }
63634
64065
  */
63635
64066
  "application/json": {
63636
64067
  result: {
63637
- /** @description True when the change was made */
63638
- ok: boolean;
63639
- /** @description What happened, ready to show a person */
63640
- message: string;
63641
- /** @description The conversation as it now stands */
64068
+ /** @description The conversation */
63642
64069
  conversation: {
63643
64070
  /** @description Conversation id (thread_id on every conversation operation) */
63644
64071
  id: number;
@@ -63683,6 +64110,45 @@ export interface operations {
63683
64110
  */
63684
64111
  closed_at?: string | null;
63685
64112
  };
64113
+ /** @description Loads the conversation is on, primary first */
64114
+ loads: {
64115
+ /** @description Pass as load_id to inbox.conversations.detach_load or from_load_id to inbox.conversations.change_load */
64116
+ id: number;
64117
+ /** @description Load number */
64118
+ load_number: string;
64119
+ /** @description How it was linked: manual, cold_triage_auto, remittance_advice (change it in Customer Payments) or operator_compose; null when only the primary record names it */
64120
+ link_source?: string | null;
64121
+ /** @description Operational milestone slug */
64122
+ operational_status?: string | null;
64123
+ /** @description Outcome slug (normal, cancelled, tonu) */
64124
+ load_outcome?: string | null;
64125
+ /** @description The status to show: TONU or Cancelled when that is the outcome, otherwise the milestone */
64126
+ status_label?: string | null;
64127
+ /** @description StatusTone key for status_label */
64128
+ status_tone: string;
64129
+ }[];
64130
+ /** @description Latest messages, oldest first */
64131
+ messages: {
64132
+ /** @description Message id within its direction (reply_to_message_id) */
64133
+ id: number;
64134
+ /** @description inbound or outbound */
64135
+ direction: string;
64136
+ /** @description Sender address or phone (received messages) */
64137
+ from?: string | null;
64138
+ /** @description Subject as written */
64139
+ subject?: string | null;
64140
+ /** @description Plain text body as written */
64141
+ body?: string | null;
64142
+ /** @description Delivery status (sent messages) */
64143
+ status?: string | null;
64144
+ /**
64145
+ * Format: date-time
64146
+ * @description When it was received or sent
64147
+ */
64148
+ at?: string | null;
64149
+ }[];
64150
+ /** @description True when older messages were left out */
64151
+ has_older_messages: boolean;
63686
64152
  };
63687
64153
  };
63688
64154
  };
@@ -63753,7 +64219,7 @@ export interface operations {
63753
64219
  };
63754
64220
  };
63755
64221
  };
63756
- "ops.inbox.conversations.release": {
64222
+ "ops.inbox.conversations.load_file_preview": {
63757
64223
  parameters: {
63758
64224
  query?: never;
63759
64225
  header?: {
@@ -63769,12 +64235,20 @@ export interface operations {
63769
64235
  content: {
63770
64236
  /**
63771
64237
  * @example {
63772
- * "thread_id": 2
64238
+ * "thread_id": 8,
64239
+ * "to_load_id": 2,
64240
+ * "from_load_id": 1
63773
64241
  * }
63774
64242
  */
63775
64243
  "application/json": {
63776
64244
  /** @description The conversation */
63777
64245
  thread_id: number;
64246
+ /** @description The load the files would be copied to; one you can view */
64247
+ to_load_id: number;
64248
+ /** @description When moving: the load it moves away from; must be on the conversation */
64249
+ from_load_id?: number | null;
64250
+ /** @description When attaching: the received email being attached, from this conversation; default the latest */
64251
+ inbound_message_id?: number | null;
63778
64252
  };
63779
64253
  };
63780
64254
  };
@@ -63788,81 +64262,91 @@ export interface operations {
63788
64262
  /**
63789
64263
  * @example {
63790
64264
  * "result": {
63791
- * "ok": true,
63792
- * "message": "Conversation released.",
63793
- * "conversation": {
64265
+ * "to_load": {
63794
64266
  * "id": 2,
63795
- * "channel": "email",
63796
- * "subject": "Owned",
63797
- * "queue_key": "receivables",
63798
- * "queue_keys": [
63799
- * "receivables"
63800
- * ],
63801
- * "state": "awaiting_reply",
63802
- * "assigned_user_id": null,
63803
- * "member_user_ids": [],
63804
- * "screened_category": null,
63805
- * "related_type": null,
63806
- * "related_id": null,
63807
- * "awaiting_reply_since": "2026-10-20T14:00:00Z",
63808
- * "last_inbound_at": "2026-10-20T14:00:00Z",
63809
- * "last_outbound_at": null,
63810
- * "closed_at": null
63811
- * }
64267
+ * "load_number": "LD-5H-2002"
64268
+ * },
64269
+ * "from_load": {
64270
+ * "id": 1,
64271
+ * "load_number": "LD-4G-1001"
64272
+ * },
64273
+ * "total_files": 1,
64274
+ * "truncated": false,
64275
+ * "files": [
64276
+ * {
64277
+ * "inbound_attachment_id": 1,
64278
+ * "filename": "pod.pdf",
64279
+ * "mime": "application/pdf",
64280
+ * "size_bytes": 19,
64281
+ * "document_kind": "other",
64282
+ * "message_id": 8,
64283
+ * "message_from": "dispatch@broker.example",
64284
+ * "message_subject": "POD for LD-5H-2002",
64285
+ * "message_received_at": "2026-10-20T14:00:00Z",
64286
+ * "copyable": true,
64287
+ * "not_copyable_reason": null,
64288
+ * "on_to_load_document_id": null,
64289
+ * "on_from_load_document_id": null,
64290
+ * "selected_by_default": true
64291
+ * }
64292
+ * ]
63812
64293
  * }
63813
64294
  * }
63814
64295
  */
63815
64296
  "application/json": {
63816
64297
  result: {
63817
- /** @description True when the change was made */
63818
- ok: boolean;
63819
- /** @description What happened, ready to show a person */
63820
- message: string;
63821
- /** @description The conversation as it now stands */
63822
- conversation: {
63823
- /** @description Conversation id (thread_id on every conversation operation) */
64298
+ /** @description Where the files would be copied */
64299
+ to_load: {
64300
+ /** @description Load id */
63824
64301
  id: number;
63825
- /** @description email or sms */
63826
- channel?: string | null;
63827
- /** @description Subject as the outside party wrote it */
63828
- subject?: string | null;
63829
- /** @description Home team */
63830
- queue_key?: string | null;
63831
- /** @description Home team first, then the teams it is also in */
63832
- queue_keys: unknown[];
63833
- /** @description open, awaiting_reply or closed */
63834
- state: string;
63835
- /** @description Owner */
63836
- assigned_user_id?: number | null;
63837
- /** @description Owner and everyone it is shared with */
63838
- member_user_ids: unknown[];
63839
- /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
63840
- screened_category?: string | null;
63841
- /** @description Linked record type, for example load or customer_invoice */
63842
- related_type?: string | null;
63843
- /** @description Linked record id */
63844
- related_id?: number | null;
63845
- /**
63846
- * Format: date-time
63847
- * @description When the outside party started waiting on us
63848
- */
63849
- awaiting_reply_since?: string | null;
63850
- /**
63851
- * Format: date-time
63852
- * @description Last message received
63853
- */
63854
- last_inbound_at?: string | null;
63855
- /**
63856
- * Format: date-time
63857
- * @description Last message sent
63858
- */
63859
- last_outbound_at?: string | null;
64302
+ /** @description Load number */
64303
+ load_number: string;
64304
+ };
64305
+ /** @description The load it moves away from; null when attaching */
64306
+ from_load?: {
64307
+ /** @description Load id */
64308
+ id: number;
64309
+ /** @description Load number */
64310
+ load_number: string;
64311
+ } | null;
64312
+ /** @description Files on the conversation's received emails */
64313
+ total_files: number;
64314
+ /** @description True when more files exist than the 50 listed */
64315
+ truncated: boolean;
64316
+ /** @description The attached or moved emails' files first, then the other emails newest first */
64317
+ files: {
64318
+ /** @description Pass in copy_attachment_ids */
64319
+ inbound_attachment_id: number;
64320
+ /** @description File name as the sender wrote it */
64321
+ filename: string;
64322
+ /** @description File type */
64323
+ mime: string;
64324
+ /** @description Size */
64325
+ size_bytes: number;
64326
+ /** @description Kind it would be filed as on the load (rate_confirmation, pod, bol, invoice, other, ...) */
64327
+ document_kind: string;
64328
+ /** @description The received email it came from */
64329
+ message_id: number;
64330
+ /** @description Sender of that email */
64331
+ message_from?: string | null;
64332
+ /** @description Subject of that email */
64333
+ message_subject?: string | null;
63860
64334
  /**
63861
64335
  * Format: date-time
63862
- * @description When it was closed
63863
- */
63864
- closed_at?: string | null;
63865
- };
64336
+ * @description When that email arrived
64337
+ */
64338
+ message_received_at?: string | null;
64339
+ /** @description Can be copied to a load */
64340
+ copyable: boolean;
64341
+ /** @description type_not_allowed, image_below_min_size, promotion_disabled or quarantined */
64342
+ not_copyable_reason?: string | null;
64343
+ /** @description A copy already on the new load (same file or same content); it would be skipped */
64344
+ on_to_load_document_id?: number | null;
64345
+ /** @description The copy already on the old load */
64346
+ on_from_load_document_id?: number | null;
64347
+ /** @description Picked unless the person changes it: copyable files of the email being attached or moved, not already on the new load */
64348
+ selected_by_default: boolean;
64349
+ }[];
63866
64350
  };
63867
64351
  };
63868
64352
  };
@@ -63933,7 +64417,7 @@ export interface operations {
63933
64417
  };
63934
64418
  };
63935
64419
  };
63936
- "ops.inbox.conversations.reopen": {
64420
+ "ops.inbox.conversations.load_search": {
63937
64421
  parameters: {
63938
64422
  query?: never;
63939
64423
  header?: {
@@ -63949,12 +64433,15 @@ export interface operations {
63949
64433
  content: {
63950
64434
  /**
63951
64435
  * @example {
63952
- * "thread_id": 4
64436
+ * "thread_id": 1,
64437
+ * "q": "LD-4G"
63953
64438
  * }
63954
64439
  */
63955
64440
  "application/json": {
63956
64441
  /** @description The conversation */
63957
64442
  thread_id: number;
64443
+ /** @description At least two characters */
64444
+ q?: string | null;
63958
64445
  };
63959
64446
  };
63960
64447
  };
@@ -63968,81 +64455,45 @@ export interface operations {
63968
64455
  /**
63969
64456
  * @example {
63970
64457
  * "result": {
63971
- * "ok": true,
63972
- * "message": "Conversation reopened.",
63973
- * "conversation": {
63974
- * "id": 4,
63975
- * "channel": "email",
63976
- * "subject": "Closed",
63977
- * "queue_key": "receivables",
63978
- * "queue_keys": [
63979
- * "receivables"
63980
- * ],
63981
- * "state": "awaiting_reply",
63982
- * "assigned_user_id": null,
63983
- * "member_user_ids": [],
63984
- * "screened_category": null,
63985
- * "related_type": null,
63986
- * "related_id": null,
63987
- * "awaiting_reply_since": "2026-10-20T14:00:00Z",
63988
- * "last_inbound_at": "2026-10-20T14:00:00Z",
63989
- * "last_outbound_at": null,
63990
- * "closed_at": null
63991
- * }
64458
+ * "matches": [
64459
+ * {
64460
+ * "id": 1,
64461
+ * "load_number": "LD-4G-1001",
64462
+ * "customer_name": "Acme Logistics",
64463
+ * "order_number": null,
64464
+ * "po_number": "PO-4G-77",
64465
+ * "operational_status": "cancelled",
64466
+ * "load_outcome": "tonu",
64467
+ * "status_label": "TONU",
64468
+ * "status_tone": "warning"
64469
+ * }
64470
+ * ]
63992
64471
  * }
63993
64472
  * }
63994
64473
  */
63995
64474
  "application/json": {
63996
64475
  result: {
63997
- /** @description True when the change was made */
63998
- ok: boolean;
63999
- /** @description What happened, ready to show a person */
64000
- message: string;
64001
- /** @description The conversation as it now stands */
64002
- conversation: {
64003
- /** @description Conversation id (thread_id on every conversation operation) */
64476
+ /** @description Loads you can see that match, newest first; cancelled and TONU loads included */
64477
+ matches: {
64478
+ /** @description Pass as load_id to inbox.conversations.attach_load */
64004
64479
  id: number;
64005
- /** @description email or sms */
64006
- channel?: string | null;
64007
- /** @description Subject as the outside party wrote it */
64008
- subject?: string | null;
64009
- /** @description Home team */
64010
- queue_key?: string | null;
64011
- /** @description Home team first, then the teams it is also in */
64012
- queue_keys: unknown[];
64013
- /** @description open, awaiting_reply or closed */
64014
- state: string;
64015
- /** @description Owner */
64016
- assigned_user_id?: number | null;
64017
- /** @description Owner and everyone it is shared with */
64018
- member_user_ids: unknown[];
64019
- /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
64020
- screened_category?: string | null;
64021
- /** @description Linked record type, for example load or customer_invoice */
64022
- related_type?: string | null;
64023
- /** @description Linked record id */
64024
- related_id?: number | null;
64025
- /**
64026
- * Format: date-time
64027
- * @description When the outside party started waiting on us
64028
- */
64029
- awaiting_reply_since?: string | null;
64030
- /**
64031
- * Format: date-time
64032
- * @description Last message received
64033
- */
64034
- last_inbound_at?: string | null;
64035
- /**
64036
- * Format: date-time
64037
- * @description Last message sent
64038
- */
64039
- last_outbound_at?: string | null;
64040
- /**
64041
- * Format: date-time
64042
- * @description When it was closed
64043
- */
64044
- closed_at?: string | null;
64045
- };
64480
+ /** @description Load number */
64481
+ load_number: string;
64482
+ /** @description Customer */
64483
+ customer_name?: string | null;
64484
+ /** @description Customer order or reference number */
64485
+ order_number?: string | null;
64486
+ /** @description Customer PO number */
64487
+ po_number?: string | null;
64488
+ /** @description Operational milestone slug (draft, open, covered, dispatched, at_pickup, in_transit, at_delivery, delivered, cancelled) */
64489
+ operational_status?: string | null;
64490
+ /** @description Outcome slug (normal, cancelled, tonu) */
64491
+ load_outcome?: string | null;
64492
+ /** @description The status to show: TONU or Cancelled when that is the outcome, otherwise the milestone */
64493
+ status_label?: string | null;
64494
+ /** @description StatusTone key for status_label */
64495
+ status_tone: string;
64496
+ }[];
64046
64497
  };
64047
64498
  };
64048
64499
  };
@@ -64113,7 +64564,7 @@ export interface operations {
64113
64564
  };
64114
64565
  };
64115
64566
  };
64116
- "ops.inbox.conversations.reply_attachments.create": {
64567
+ "ops.inbox.conversations.queues.create": {
64117
64568
  parameters: {
64118
64569
  query?: never;
64119
64570
  header?: {
@@ -64130,14 +64581,14 @@ export interface operations {
64130
64581
  /**
64131
64582
  * @example {
64132
64583
  * "thread_id": 1,
64133
- * "file": "9a13d7e2-177b-4335-a9ae-4437f1c3a9c1"
64584
+ * "queue_key": "dispatch"
64134
64585
  * }
64135
64586
  */
64136
64587
  "application/json": {
64137
64588
  /** @description The conversation */
64138
64589
  thread_id: number;
64139
- /** @description The file */
64140
- file?: string | null;
64590
+ /** @description The team to add */
64591
+ queue_key?: string;
64141
64592
  };
64142
64593
  };
64143
64594
  };
@@ -64152,32 +64603,80 @@ export interface operations {
64152
64603
  * @example {
64153
64604
  * "result": {
64154
64605
  * "ok": true,
64155
- * "attachment": {
64156
- * "kind": "uploaded",
64157
- * "disk": "local",
64158
- * "path": "communications/compose-uploads/40cafa05-598c-4866-8cf4-080ec46cb11d/pod.pdf",
64159
- * "filename": "pod.pdf",
64160
- * "mime": "application/pdf"
64606
+ * "message": "Team added.",
64607
+ * "conversation": {
64608
+ * "id": 1,
64609
+ * "channel": "email",
64610
+ * "subject": "Invoice INV-9",
64611
+ * "queue_key": "receivables",
64612
+ * "queue_keys": [
64613
+ * "receivables",
64614
+ * "dispatch"
64615
+ * ],
64616
+ * "state": "awaiting_reply",
64617
+ * "assigned_user_id": null,
64618
+ * "member_user_ids": [],
64619
+ * "screened_category": null,
64620
+ * "related_type": null,
64621
+ * "related_id": null,
64622
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
64623
+ * "last_inbound_at": "2026-10-20T14:00:00Z",
64624
+ * "last_outbound_at": null,
64625
+ * "closed_at": null
64161
64626
  * }
64162
64627
  * }
64163
64628
  * }
64164
64629
  */
64165
64630
  "application/json": {
64166
64631
  result: {
64167
- /** @description True when the file was stored */
64632
+ /** @description True when the change was made */
64168
64633
  ok: boolean;
64169
- /** @description Pass this as one of the attachments when sending */
64170
- attachment: {
64171
- /** @description Always uploaded */
64172
- kind: string;
64173
- /** @description Storage disk of the staged file */
64174
- disk: string;
64175
- /** @description Staged file path under your workspace upload folder */
64176
- path: string;
64177
- /** @description File name as uploaded */
64178
- filename: string;
64179
- /** @description File type */
64180
- mime: string;
64634
+ /** @description What happened, ready to show a person */
64635
+ message: string;
64636
+ /** @description The conversation as it now stands */
64637
+ conversation: {
64638
+ /** @description Conversation id (thread_id on every conversation operation) */
64639
+ id: number;
64640
+ /** @description email or sms */
64641
+ channel?: string | null;
64642
+ /** @description Subject as the outside party wrote it */
64643
+ subject?: string | null;
64644
+ /** @description Home team */
64645
+ queue_key?: string | null;
64646
+ /** @description Home team first, then the teams it is also in */
64647
+ queue_keys: unknown[];
64648
+ /** @description open, awaiting_reply or closed */
64649
+ state: string;
64650
+ /** @description Owner */
64651
+ assigned_user_id?: number | null;
64652
+ /** @description Owner and everyone it is shared with */
64653
+ member_user_ids: unknown[];
64654
+ /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
64655
+ screened_category?: string | null;
64656
+ /** @description Linked record type, for example load or customer_invoice */
64657
+ related_type?: string | null;
64658
+ /** @description Linked record id */
64659
+ related_id?: number | null;
64660
+ /**
64661
+ * Format: date-time
64662
+ * @description When the outside party started waiting on us
64663
+ */
64664
+ awaiting_reply_since?: string | null;
64665
+ /**
64666
+ * Format: date-time
64667
+ * @description Last message received
64668
+ */
64669
+ last_inbound_at?: string | null;
64670
+ /**
64671
+ * Format: date-time
64672
+ * @description Last message sent
64673
+ */
64674
+ last_outbound_at?: string | null;
64675
+ /**
64676
+ * Format: date-time
64677
+ * @description When it was closed
64678
+ */
64679
+ closed_at?: string | null;
64181
64680
  };
64182
64681
  };
64183
64682
  };
@@ -64249,7 +64748,7 @@ export interface operations {
64249
64748
  };
64250
64749
  };
64251
64750
  };
64252
- "ops.inbox.conversations.screen": {
64751
+ "ops.inbox.conversations.queues.delete": {
64253
64752
  parameters: {
64254
64753
  query?: never;
64255
64754
  header?: {
@@ -64265,15 +64764,15 @@ export interface operations {
64265
64764
  content: {
64266
64765
  /**
64267
64766
  * @example {
64268
- * "thread_id": 1,
64269
- * "category": "spam_suspect"
64767
+ * "thread_id": 3,
64768
+ * "queue_key": "dispatch"
64270
64769
  * }
64271
64770
  */
64272
64771
  "application/json": {
64273
64772
  /** @description The conversation */
64274
64773
  thread_id: number;
64275
- /** @description One of promotions, spam_suspect */
64276
- category?: string | null;
64774
+ /** @description The team to remove */
64775
+ queue_key: string;
64277
64776
  };
64278
64777
  };
64279
64778
  };
@@ -64288,22 +64787,22 @@ export interface operations {
64288
64787
  * @example {
64289
64788
  * "result": {
64290
64789
  * "ok": true,
64291
- * "message": "Conversation screened as spam. Find it under Screened.",
64790
+ * "message": "Team removed.",
64292
64791
  * "conversation": {
64293
- * "id": 1,
64792
+ * "id": 3,
64294
64793
  * "channel": "email",
64295
- * "subject": "Invoice INV-9",
64794
+ * "subject": "Also in dispatch",
64296
64795
  * "queue_key": "receivables",
64297
64796
  * "queue_keys": [
64298
64797
  * "receivables"
64299
64798
  * ],
64300
- * "state": "open",
64799
+ * "state": "awaiting_reply",
64301
64800
  * "assigned_user_id": null,
64302
64801
  * "member_user_ids": [],
64303
- * "screened_category": "spam_suspect",
64802
+ * "screened_category": null,
64304
64803
  * "related_type": null,
64305
64804
  * "related_id": null,
64306
- * "awaiting_reply_since": null,
64805
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
64307
64806
  * "last_inbound_at": "2026-10-20T14:00:00Z",
64308
64807
  * "last_outbound_at": null,
64309
64808
  * "closed_at": null
@@ -64432,7 +64931,7 @@ export interface operations {
64432
64931
  };
64433
64932
  };
64434
64933
  };
64435
- "ops.inbox.conversations.screen_sender": {
64934
+ "ops.inbox.conversations.release": {
64436
64935
  parameters: {
64437
64936
  query?: never;
64438
64937
  header?: {
@@ -64448,14 +64947,12 @@ export interface operations {
64448
64947
  content: {
64449
64948
  /**
64450
64949
  * @example {
64451
- * "thread_id": 5
64950
+ * "thread_id": 2
64452
64951
  * }
64453
64952
  */
64454
64953
  "application/json": {
64455
64954
  /** @description The conversation */
64456
64955
  thread_id: number;
64457
- /** @description One of promotions, spam_suspect; default the conversation's category */
64458
- category?: string | null;
64459
64956
  };
64460
64957
  };
64461
64958
  };
@@ -64470,19 +64967,19 @@ export interface operations {
64470
64967
  * @example {
64471
64968
  * "result": {
64472
64969
  * "ok": true,
64473
- * "message": "Future email from this sender will be screened automatically.",
64970
+ * "message": "Conversation released.",
64474
64971
  * "conversation": {
64475
- * "id": 5,
64972
+ * "id": 2,
64476
64973
  * "channel": "email",
64477
- * "subject": "Weekly deals",
64478
- * "queue_key": "dispatch",
64974
+ * "subject": "Owned",
64975
+ * "queue_key": "receivables",
64479
64976
  * "queue_keys": [
64480
- * "dispatch"
64977
+ * "receivables"
64481
64978
  * ],
64482
64979
  * "state": "awaiting_reply",
64483
64980
  * "assigned_user_id": null,
64484
64981
  * "member_user_ids": [],
64485
- * "screened_category": "promotions",
64982
+ * "screened_category": null,
64486
64983
  * "related_type": null,
64487
64984
  * "related_id": null,
64488
64985
  * "awaiting_reply_since": "2026-10-20T14:00:00Z",
@@ -64614,7 +65111,7 @@ export interface operations {
64614
65111
  };
64615
65112
  };
64616
65113
  };
64617
- "ops.inbox.conversations.transfer_queue": {
65114
+ "ops.inbox.conversations.reopen": {
64618
65115
  parameters: {
64619
65116
  query?: never;
64620
65117
  header?: {
@@ -64630,15 +65127,12 @@ export interface operations {
64630
65127
  content: {
64631
65128
  /**
64632
65129
  * @example {
64633
- * "thread_id": 1,
64634
- * "queue_key": "dispatch"
65130
+ * "thread_id": 4
64635
65131
  * }
64636
65132
  */
64637
65133
  "application/json": {
64638
65134
  /** @description The conversation */
64639
65135
  thread_id: number;
64640
- /** @description The new home team */
64641
- queue_key?: string;
64642
65136
  };
64643
65137
  };
64644
65138
  };
@@ -64653,14 +65147,13 @@ export interface operations {
64653
65147
  * @example {
64654
65148
  * "result": {
64655
65149
  * "ok": true,
64656
- * "message": "Home team updated.",
65150
+ * "message": "Conversation reopened.",
64657
65151
  * "conversation": {
64658
- * "id": 1,
65152
+ * "id": 4,
64659
65153
  * "channel": "email",
64660
- * "subject": "Invoice INV-9",
64661
- * "queue_key": "dispatch",
65154
+ * "subject": "Closed",
65155
+ * "queue_key": "receivables",
64662
65156
  * "queue_keys": [
64663
- * "dispatch",
64664
65157
  * "receivables"
64665
65158
  * ],
64666
65159
  * "state": "awaiting_reply",
@@ -64798,7 +65291,7 @@ export interface operations {
64798
65291
  };
64799
65292
  };
64800
65293
  };
64801
- "ops.inbox.conversations.unscreen": {
65294
+ "ops.inbox.conversations.reply_attachments.create": {
64802
65295
  parameters: {
64803
65296
  query?: never;
64804
65297
  header?: {
@@ -64814,12 +65307,15 @@ export interface operations {
64814
65307
  content: {
64815
65308
  /**
64816
65309
  * @example {
64817
- * "thread_id": 5
65310
+ * "thread_id": 1,
65311
+ * "file": "9a13d7e2-177b-4335-a9ae-4437f1c3a9c1"
64818
65312
  * }
64819
65313
  */
64820
65314
  "application/json": {
64821
65315
  /** @description The conversation */
64822
65316
  thread_id: number;
65317
+ /** @description The file */
65318
+ file?: string | null;
64823
65319
  };
64824
65320
  };
64825
65321
  };
@@ -64834,79 +65330,32 @@ export interface operations {
64834
65330
  * @example {
64835
65331
  * "result": {
64836
65332
  * "ok": true,
64837
- * "message": "Conversation moved back to the Inbox.",
64838
- * "conversation": {
64839
- * "id": 5,
64840
- * "channel": "email",
64841
- * "subject": "Weekly deals",
64842
- * "queue_key": "dispatch",
64843
- * "queue_keys": [
64844
- * "dispatch"
64845
- * ],
64846
- * "state": "awaiting_reply",
64847
- * "assigned_user_id": null,
64848
- * "member_user_ids": [],
64849
- * "screened_category": null,
64850
- * "related_type": null,
64851
- * "related_id": null,
64852
- * "awaiting_reply_since": "2026-10-20T14:00:00Z",
64853
- * "last_inbound_at": "2026-10-20T14:00:00Z",
64854
- * "last_outbound_at": null,
64855
- * "closed_at": null
65333
+ * "attachment": {
65334
+ * "kind": "uploaded",
65335
+ * "disk": "local",
65336
+ * "path": "communications/compose-uploads/40cafa05-598c-4866-8cf4-080ec46cb11d/pod.pdf",
65337
+ * "filename": "pod.pdf",
65338
+ * "mime": "application/pdf"
64856
65339
  * }
64857
65340
  * }
64858
65341
  * }
64859
65342
  */
64860
65343
  "application/json": {
64861
65344
  result: {
64862
- /** @description True when the change was made */
65345
+ /** @description True when the file was stored */
64863
65346
  ok: boolean;
64864
- /** @description What happened, ready to show a person */
64865
- message: string;
64866
- /** @description The conversation as it now stands */
64867
- conversation: {
64868
- /** @description Conversation id (thread_id on every conversation operation) */
64869
- id: number;
64870
- /** @description email or sms */
64871
- channel?: string | null;
64872
- /** @description Subject as the outside party wrote it */
64873
- subject?: string | null;
64874
- /** @description Home team */
64875
- queue_key?: string | null;
64876
- /** @description Home team first, then the teams it is also in */
64877
- queue_keys: unknown[];
64878
- /** @description open, awaiting_reply or closed */
64879
- state: string;
64880
- /** @description Owner */
64881
- assigned_user_id?: number | null;
64882
- /** @description Owner and everyone it is shared with */
64883
- member_user_ids: unknown[];
64884
- /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
64885
- screened_category?: string | null;
64886
- /** @description Linked record type, for example load or customer_invoice */
64887
- related_type?: string | null;
64888
- /** @description Linked record id */
64889
- related_id?: number | null;
64890
- /**
64891
- * Format: date-time
64892
- * @description When the outside party started waiting on us
64893
- */
64894
- awaiting_reply_since?: string | null;
64895
- /**
64896
- * Format: date-time
64897
- * @description Last message received
64898
- */
64899
- last_inbound_at?: string | null;
64900
- /**
64901
- * Format: date-time
64902
- * @description Last message sent
64903
- */
64904
- last_outbound_at?: string | null;
64905
- /**
64906
- * Format: date-time
64907
- * @description When it was closed
64908
- */
64909
- closed_at?: string | null;
65347
+ /** @description Pass this as one of the attachments when sending */
65348
+ attachment: {
65349
+ /** @description Always uploaded */
65350
+ kind: string;
65351
+ /** @description Storage disk of the staged file */
65352
+ disk: string;
65353
+ /** @description Staged file path under your workspace upload folder */
65354
+ path: string;
65355
+ /** @description File name as uploaded */
65356
+ filename: string;
65357
+ /** @description File type */
65358
+ mime: string;
64910
65359
  };
64911
65360
  };
64912
65361
  };
@@ -64978,7 +65427,7 @@ export interface operations {
64978
65427
  };
64979
65428
  };
64980
65429
  };
64981
- "ops.inbox.conversations.unscreen_domain": {
65430
+ "ops.inbox.conversations.screen": {
64982
65431
  parameters: {
64983
65432
  query?: never;
64984
65433
  header?: {
@@ -64994,12 +65443,15 @@ export interface operations {
64994
65443
  content: {
64995
65444
  /**
64996
65445
  * @example {
64997
- * "thread_id": 5
65446
+ * "thread_id": 1,
65447
+ * "category": "spam_suspect"
64998
65448
  * }
64999
65449
  */
65000
65450
  "application/json": {
65001
65451
  /** @description The conversation */
65002
65452
  thread_id: number;
65453
+ /** @description One of promotions, spam_suspect */
65454
+ category?: string | null;
65003
65455
  };
65004
65456
  };
65005
65457
  };
@@ -65014,27 +65466,753 @@ export interface operations {
65014
65466
  * @example {
65015
65467
  * "result": {
65016
65468
  * "ok": true,
65017
- * "message": "Conversation moved back to the Inbox. Everyone at @promo-mailer.example is now trusted.",
65469
+ * "message": "Conversation screened as spam. Find it under Screened.",
65018
65470
  * "conversation": {
65019
- * "id": 5,
65471
+ * "id": 1,
65020
65472
  * "channel": "email",
65021
- * "subject": "Weekly deals",
65022
- * "queue_key": "dispatch",
65473
+ * "subject": "Invoice INV-9",
65474
+ * "queue_key": "receivables",
65023
65475
  * "queue_keys": [
65024
- * "dispatch"
65476
+ * "receivables"
65025
65477
  * ],
65026
- * "state": "awaiting_reply",
65478
+ * "state": "open",
65027
65479
  * "assigned_user_id": null,
65028
65480
  * "member_user_ids": [],
65029
- * "screened_category": null,
65481
+ * "screened_category": "spam_suspect",
65030
65482
  * "related_type": null,
65031
65483
  * "related_id": null,
65032
- * "awaiting_reply_since": "2026-10-20T14:00:00Z",
65484
+ * "awaiting_reply_since": null,
65033
65485
  * "last_inbound_at": "2026-10-20T14:00:00Z",
65034
65486
  * "last_outbound_at": null,
65035
65487
  * "closed_at": null
65036
- * },
65037
- * "domain": "promo-mailer.example"
65488
+ * }
65489
+ * }
65490
+ * }
65491
+ */
65492
+ "application/json": {
65493
+ result: {
65494
+ /** @description True when the change was made */
65495
+ ok: boolean;
65496
+ /** @description What happened, ready to show a person */
65497
+ message: string;
65498
+ /** @description The conversation as it now stands */
65499
+ conversation: {
65500
+ /** @description Conversation id (thread_id on every conversation operation) */
65501
+ id: number;
65502
+ /** @description email or sms */
65503
+ channel?: string | null;
65504
+ /** @description Subject as the outside party wrote it */
65505
+ subject?: string | null;
65506
+ /** @description Home team */
65507
+ queue_key?: string | null;
65508
+ /** @description Home team first, then the teams it is also in */
65509
+ queue_keys: unknown[];
65510
+ /** @description open, awaiting_reply or closed */
65511
+ state: string;
65512
+ /** @description Owner */
65513
+ assigned_user_id?: number | null;
65514
+ /** @description Owner and everyone it is shared with */
65515
+ member_user_ids: unknown[];
65516
+ /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
65517
+ screened_category?: string | null;
65518
+ /** @description Linked record type, for example load or customer_invoice */
65519
+ related_type?: string | null;
65520
+ /** @description Linked record id */
65521
+ related_id?: number | null;
65522
+ /**
65523
+ * Format: date-time
65524
+ * @description When the outside party started waiting on us
65525
+ */
65526
+ awaiting_reply_since?: string | null;
65527
+ /**
65528
+ * Format: date-time
65529
+ * @description Last message received
65530
+ */
65531
+ last_inbound_at?: string | null;
65532
+ /**
65533
+ * Format: date-time
65534
+ * @description Last message sent
65535
+ */
65536
+ last_outbound_at?: string | null;
65537
+ /**
65538
+ * Format: date-time
65539
+ * @description When it was closed
65540
+ */
65541
+ closed_at?: string | null;
65542
+ };
65543
+ };
65544
+ };
65545
+ };
65546
+ };
65547
+ 202: components["responses"]["Proposal"];
65548
+ /** @description Refused: credits_exhausted. */
65549
+ 402: {
65550
+ headers: {
65551
+ [name: string]: unknown;
65552
+ };
65553
+ content: {
65554
+ "application/json": components["schemas"]["OperationError"];
65555
+ };
65556
+ };
65557
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
65558
+ 403: {
65559
+ headers: {
65560
+ [name: string]: unknown;
65561
+ };
65562
+ content: {
65563
+ "application/json": components["schemas"]["OperationError"];
65564
+ };
65565
+ };
65566
+ /** @description Refused: not_found. */
65567
+ 404: {
65568
+ headers: {
65569
+ [name: string]: unknown;
65570
+ };
65571
+ content: {
65572
+ "application/json": components["schemas"]["OperationError"];
65573
+ };
65574
+ };
65575
+ /** @description Refused: idempotency_conflict, stale_state. */
65576
+ 409: {
65577
+ headers: {
65578
+ [name: string]: unknown;
65579
+ };
65580
+ content: {
65581
+ "application/json": components["schemas"]["OperationError"];
65582
+ };
65583
+ };
65584
+ /** @description Refused: operation_retired. */
65585
+ 410: {
65586
+ headers: {
65587
+ [name: string]: unknown;
65588
+ };
65589
+ content: {
65590
+ "application/json": components["schemas"]["OperationError"];
65591
+ };
65592
+ };
65593
+ /** @description Refused: invalid_input, domain_rule. */
65594
+ 422: {
65595
+ headers: {
65596
+ [name: string]: unknown;
65597
+ };
65598
+ content: {
65599
+ "application/json": components["schemas"]["OperationError"];
65600
+ };
65601
+ };
65602
+ /** @description Refused: rate_limited. */
65603
+ 429: {
65604
+ headers: {
65605
+ [name: string]: unknown;
65606
+ };
65607
+ content: {
65608
+ "application/json": components["schemas"]["OperationError"];
65609
+ };
65610
+ };
65611
+ };
65612
+ };
65613
+ "ops.inbox.conversations.screen_sender": {
65614
+ parameters: {
65615
+ query?: never;
65616
+ header?: {
65617
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
65618
+ "Idempotency-Key"?: string;
65619
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
65620
+ "Axivoy-Dry-Run"?: "true" | "false";
65621
+ };
65622
+ path?: never;
65623
+ cookie?: never;
65624
+ };
65625
+ requestBody?: {
65626
+ content: {
65627
+ /**
65628
+ * @example {
65629
+ * "thread_id": 5
65630
+ * }
65631
+ */
65632
+ "application/json": {
65633
+ /** @description The conversation */
65634
+ thread_id: number;
65635
+ /** @description One of promotions, spam_suspect; default the conversation's category */
65636
+ category?: string | null;
65637
+ };
65638
+ };
65639
+ };
65640
+ responses: {
65641
+ /** @description The operation ran. */
65642
+ 200: {
65643
+ headers: {
65644
+ [name: string]: unknown;
65645
+ };
65646
+ content: {
65647
+ /**
65648
+ * @example {
65649
+ * "result": {
65650
+ * "ok": true,
65651
+ * "message": "Future email from this sender will be screened automatically.",
65652
+ * "conversation": {
65653
+ * "id": 5,
65654
+ * "channel": "email",
65655
+ * "subject": "Weekly deals",
65656
+ * "queue_key": "dispatch",
65657
+ * "queue_keys": [
65658
+ * "dispatch"
65659
+ * ],
65660
+ * "state": "awaiting_reply",
65661
+ * "assigned_user_id": null,
65662
+ * "member_user_ids": [],
65663
+ * "screened_category": "promotions",
65664
+ * "related_type": null,
65665
+ * "related_id": null,
65666
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
65667
+ * "last_inbound_at": "2026-10-20T14:00:00Z",
65668
+ * "last_outbound_at": null,
65669
+ * "closed_at": null
65670
+ * }
65671
+ * }
65672
+ * }
65673
+ */
65674
+ "application/json": {
65675
+ result: {
65676
+ /** @description True when the change was made */
65677
+ ok: boolean;
65678
+ /** @description What happened, ready to show a person */
65679
+ message: string;
65680
+ /** @description The conversation as it now stands */
65681
+ conversation: {
65682
+ /** @description Conversation id (thread_id on every conversation operation) */
65683
+ id: number;
65684
+ /** @description email or sms */
65685
+ channel?: string | null;
65686
+ /** @description Subject as the outside party wrote it */
65687
+ subject?: string | null;
65688
+ /** @description Home team */
65689
+ queue_key?: string | null;
65690
+ /** @description Home team first, then the teams it is also in */
65691
+ queue_keys: unknown[];
65692
+ /** @description open, awaiting_reply or closed */
65693
+ state: string;
65694
+ /** @description Owner */
65695
+ assigned_user_id?: number | null;
65696
+ /** @description Owner and everyone it is shared with */
65697
+ member_user_ids: unknown[];
65698
+ /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
65699
+ screened_category?: string | null;
65700
+ /** @description Linked record type, for example load or customer_invoice */
65701
+ related_type?: string | null;
65702
+ /** @description Linked record id */
65703
+ related_id?: number | null;
65704
+ /**
65705
+ * Format: date-time
65706
+ * @description When the outside party started waiting on us
65707
+ */
65708
+ awaiting_reply_since?: string | null;
65709
+ /**
65710
+ * Format: date-time
65711
+ * @description Last message received
65712
+ */
65713
+ last_inbound_at?: string | null;
65714
+ /**
65715
+ * Format: date-time
65716
+ * @description Last message sent
65717
+ */
65718
+ last_outbound_at?: string | null;
65719
+ /**
65720
+ * Format: date-time
65721
+ * @description When it was closed
65722
+ */
65723
+ closed_at?: string | null;
65724
+ };
65725
+ };
65726
+ };
65727
+ };
65728
+ };
65729
+ 202: components["responses"]["Proposal"];
65730
+ /** @description Refused: credits_exhausted. */
65731
+ 402: {
65732
+ headers: {
65733
+ [name: string]: unknown;
65734
+ };
65735
+ content: {
65736
+ "application/json": components["schemas"]["OperationError"];
65737
+ };
65738
+ };
65739
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
65740
+ 403: {
65741
+ headers: {
65742
+ [name: string]: unknown;
65743
+ };
65744
+ content: {
65745
+ "application/json": components["schemas"]["OperationError"];
65746
+ };
65747
+ };
65748
+ /** @description Refused: not_found. */
65749
+ 404: {
65750
+ headers: {
65751
+ [name: string]: unknown;
65752
+ };
65753
+ content: {
65754
+ "application/json": components["schemas"]["OperationError"];
65755
+ };
65756
+ };
65757
+ /** @description Refused: idempotency_conflict, stale_state. */
65758
+ 409: {
65759
+ headers: {
65760
+ [name: string]: unknown;
65761
+ };
65762
+ content: {
65763
+ "application/json": components["schemas"]["OperationError"];
65764
+ };
65765
+ };
65766
+ /** @description Refused: operation_retired. */
65767
+ 410: {
65768
+ headers: {
65769
+ [name: string]: unknown;
65770
+ };
65771
+ content: {
65772
+ "application/json": components["schemas"]["OperationError"];
65773
+ };
65774
+ };
65775
+ /** @description Refused: invalid_input, domain_rule. */
65776
+ 422: {
65777
+ headers: {
65778
+ [name: string]: unknown;
65779
+ };
65780
+ content: {
65781
+ "application/json": components["schemas"]["OperationError"];
65782
+ };
65783
+ };
65784
+ /** @description Refused: rate_limited. */
65785
+ 429: {
65786
+ headers: {
65787
+ [name: string]: unknown;
65788
+ };
65789
+ content: {
65790
+ "application/json": components["schemas"]["OperationError"];
65791
+ };
65792
+ };
65793
+ };
65794
+ };
65795
+ "ops.inbox.conversations.transfer_queue": {
65796
+ parameters: {
65797
+ query?: never;
65798
+ header?: {
65799
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
65800
+ "Idempotency-Key"?: string;
65801
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
65802
+ "Axivoy-Dry-Run"?: "true" | "false";
65803
+ };
65804
+ path?: never;
65805
+ cookie?: never;
65806
+ };
65807
+ requestBody?: {
65808
+ content: {
65809
+ /**
65810
+ * @example {
65811
+ * "thread_id": 1,
65812
+ * "queue_key": "dispatch"
65813
+ * }
65814
+ */
65815
+ "application/json": {
65816
+ /** @description The conversation */
65817
+ thread_id: number;
65818
+ /** @description The new home team */
65819
+ queue_key?: string;
65820
+ };
65821
+ };
65822
+ };
65823
+ responses: {
65824
+ /** @description The operation ran. */
65825
+ 200: {
65826
+ headers: {
65827
+ [name: string]: unknown;
65828
+ };
65829
+ content: {
65830
+ /**
65831
+ * @example {
65832
+ * "result": {
65833
+ * "ok": true,
65834
+ * "message": "Home team updated.",
65835
+ * "conversation": {
65836
+ * "id": 1,
65837
+ * "channel": "email",
65838
+ * "subject": "Invoice INV-9",
65839
+ * "queue_key": "dispatch",
65840
+ * "queue_keys": [
65841
+ * "dispatch",
65842
+ * "receivables"
65843
+ * ],
65844
+ * "state": "awaiting_reply",
65845
+ * "assigned_user_id": null,
65846
+ * "member_user_ids": [],
65847
+ * "screened_category": null,
65848
+ * "related_type": null,
65849
+ * "related_id": null,
65850
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
65851
+ * "last_inbound_at": "2026-10-20T14:00:00Z",
65852
+ * "last_outbound_at": null,
65853
+ * "closed_at": null
65854
+ * }
65855
+ * }
65856
+ * }
65857
+ */
65858
+ "application/json": {
65859
+ result: {
65860
+ /** @description True when the change was made */
65861
+ ok: boolean;
65862
+ /** @description What happened, ready to show a person */
65863
+ message: string;
65864
+ /** @description The conversation as it now stands */
65865
+ conversation: {
65866
+ /** @description Conversation id (thread_id on every conversation operation) */
65867
+ id: number;
65868
+ /** @description email or sms */
65869
+ channel?: string | null;
65870
+ /** @description Subject as the outside party wrote it */
65871
+ subject?: string | null;
65872
+ /** @description Home team */
65873
+ queue_key?: string | null;
65874
+ /** @description Home team first, then the teams it is also in */
65875
+ queue_keys: unknown[];
65876
+ /** @description open, awaiting_reply or closed */
65877
+ state: string;
65878
+ /** @description Owner */
65879
+ assigned_user_id?: number | null;
65880
+ /** @description Owner and everyone it is shared with */
65881
+ member_user_ids: unknown[];
65882
+ /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
65883
+ screened_category?: string | null;
65884
+ /** @description Linked record type, for example load or customer_invoice */
65885
+ related_type?: string | null;
65886
+ /** @description Linked record id */
65887
+ related_id?: number | null;
65888
+ /**
65889
+ * Format: date-time
65890
+ * @description When the outside party started waiting on us
65891
+ */
65892
+ awaiting_reply_since?: string | null;
65893
+ /**
65894
+ * Format: date-time
65895
+ * @description Last message received
65896
+ */
65897
+ last_inbound_at?: string | null;
65898
+ /**
65899
+ * Format: date-time
65900
+ * @description Last message sent
65901
+ */
65902
+ last_outbound_at?: string | null;
65903
+ /**
65904
+ * Format: date-time
65905
+ * @description When it was closed
65906
+ */
65907
+ closed_at?: string | null;
65908
+ };
65909
+ };
65910
+ };
65911
+ };
65912
+ };
65913
+ 202: components["responses"]["Proposal"];
65914
+ /** @description Refused: credits_exhausted. */
65915
+ 402: {
65916
+ headers: {
65917
+ [name: string]: unknown;
65918
+ };
65919
+ content: {
65920
+ "application/json": components["schemas"]["OperationError"];
65921
+ };
65922
+ };
65923
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
65924
+ 403: {
65925
+ headers: {
65926
+ [name: string]: unknown;
65927
+ };
65928
+ content: {
65929
+ "application/json": components["schemas"]["OperationError"];
65930
+ };
65931
+ };
65932
+ /** @description Refused: not_found. */
65933
+ 404: {
65934
+ headers: {
65935
+ [name: string]: unknown;
65936
+ };
65937
+ content: {
65938
+ "application/json": components["schemas"]["OperationError"];
65939
+ };
65940
+ };
65941
+ /** @description Refused: idempotency_conflict, stale_state. */
65942
+ 409: {
65943
+ headers: {
65944
+ [name: string]: unknown;
65945
+ };
65946
+ content: {
65947
+ "application/json": components["schemas"]["OperationError"];
65948
+ };
65949
+ };
65950
+ /** @description Refused: operation_retired. */
65951
+ 410: {
65952
+ headers: {
65953
+ [name: string]: unknown;
65954
+ };
65955
+ content: {
65956
+ "application/json": components["schemas"]["OperationError"];
65957
+ };
65958
+ };
65959
+ /** @description Refused: invalid_input, domain_rule. */
65960
+ 422: {
65961
+ headers: {
65962
+ [name: string]: unknown;
65963
+ };
65964
+ content: {
65965
+ "application/json": components["schemas"]["OperationError"];
65966
+ };
65967
+ };
65968
+ /** @description Refused: rate_limited. */
65969
+ 429: {
65970
+ headers: {
65971
+ [name: string]: unknown;
65972
+ };
65973
+ content: {
65974
+ "application/json": components["schemas"]["OperationError"];
65975
+ };
65976
+ };
65977
+ };
65978
+ };
65979
+ "ops.inbox.conversations.unscreen": {
65980
+ parameters: {
65981
+ query?: never;
65982
+ header?: {
65983
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
65984
+ "Idempotency-Key"?: string;
65985
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
65986
+ "Axivoy-Dry-Run"?: "true" | "false";
65987
+ };
65988
+ path?: never;
65989
+ cookie?: never;
65990
+ };
65991
+ requestBody?: {
65992
+ content: {
65993
+ /**
65994
+ * @example {
65995
+ * "thread_id": 5
65996
+ * }
65997
+ */
65998
+ "application/json": {
65999
+ /** @description The conversation */
66000
+ thread_id: number;
66001
+ };
66002
+ };
66003
+ };
66004
+ responses: {
66005
+ /** @description The operation ran. */
66006
+ 200: {
66007
+ headers: {
66008
+ [name: string]: unknown;
66009
+ };
66010
+ content: {
66011
+ /**
66012
+ * @example {
66013
+ * "result": {
66014
+ * "ok": true,
66015
+ * "message": "Conversation moved back to the Inbox.",
66016
+ * "conversation": {
66017
+ * "id": 5,
66018
+ * "channel": "email",
66019
+ * "subject": "Weekly deals",
66020
+ * "queue_key": "dispatch",
66021
+ * "queue_keys": [
66022
+ * "dispatch"
66023
+ * ],
66024
+ * "state": "awaiting_reply",
66025
+ * "assigned_user_id": null,
66026
+ * "member_user_ids": [],
66027
+ * "screened_category": null,
66028
+ * "related_type": null,
66029
+ * "related_id": null,
66030
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
66031
+ * "last_inbound_at": "2026-10-20T14:00:00Z",
66032
+ * "last_outbound_at": null,
66033
+ * "closed_at": null
66034
+ * }
66035
+ * }
66036
+ * }
66037
+ */
66038
+ "application/json": {
66039
+ result: {
66040
+ /** @description True when the change was made */
66041
+ ok: boolean;
66042
+ /** @description What happened, ready to show a person */
66043
+ message: string;
66044
+ /** @description The conversation as it now stands */
66045
+ conversation: {
66046
+ /** @description Conversation id (thread_id on every conversation operation) */
66047
+ id: number;
66048
+ /** @description email or sms */
66049
+ channel?: string | null;
66050
+ /** @description Subject as the outside party wrote it */
66051
+ subject?: string | null;
66052
+ /** @description Home team */
66053
+ queue_key?: string | null;
66054
+ /** @description Home team first, then the teams it is also in */
66055
+ queue_keys: unknown[];
66056
+ /** @description open, awaiting_reply or closed */
66057
+ state: string;
66058
+ /** @description Owner */
66059
+ assigned_user_id?: number | null;
66060
+ /** @description Owner and everyone it is shared with */
66061
+ member_user_ids: unknown[];
66062
+ /** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
66063
+ screened_category?: string | null;
66064
+ /** @description Linked record type, for example load or customer_invoice */
66065
+ related_type?: string | null;
66066
+ /** @description Linked record id */
66067
+ related_id?: number | null;
66068
+ /**
66069
+ * Format: date-time
66070
+ * @description When the outside party started waiting on us
66071
+ */
66072
+ awaiting_reply_since?: string | null;
66073
+ /**
66074
+ * Format: date-time
66075
+ * @description Last message received
66076
+ */
66077
+ last_inbound_at?: string | null;
66078
+ /**
66079
+ * Format: date-time
66080
+ * @description Last message sent
66081
+ */
66082
+ last_outbound_at?: string | null;
66083
+ /**
66084
+ * Format: date-time
66085
+ * @description When it was closed
66086
+ */
66087
+ closed_at?: string | null;
66088
+ };
66089
+ };
66090
+ };
66091
+ };
66092
+ };
66093
+ 202: components["responses"]["Proposal"];
66094
+ /** @description Refused: credits_exhausted. */
66095
+ 402: {
66096
+ headers: {
66097
+ [name: string]: unknown;
66098
+ };
66099
+ content: {
66100
+ "application/json": components["schemas"]["OperationError"];
66101
+ };
66102
+ };
66103
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
66104
+ 403: {
66105
+ headers: {
66106
+ [name: string]: unknown;
66107
+ };
66108
+ content: {
66109
+ "application/json": components["schemas"]["OperationError"];
66110
+ };
66111
+ };
66112
+ /** @description Refused: not_found. */
66113
+ 404: {
66114
+ headers: {
66115
+ [name: string]: unknown;
66116
+ };
66117
+ content: {
66118
+ "application/json": components["schemas"]["OperationError"];
66119
+ };
66120
+ };
66121
+ /** @description Refused: idempotency_conflict, stale_state. */
66122
+ 409: {
66123
+ headers: {
66124
+ [name: string]: unknown;
66125
+ };
66126
+ content: {
66127
+ "application/json": components["schemas"]["OperationError"];
66128
+ };
66129
+ };
66130
+ /** @description Refused: operation_retired. */
66131
+ 410: {
66132
+ headers: {
66133
+ [name: string]: unknown;
66134
+ };
66135
+ content: {
66136
+ "application/json": components["schemas"]["OperationError"];
66137
+ };
66138
+ };
66139
+ /** @description Refused: invalid_input, domain_rule. */
66140
+ 422: {
66141
+ headers: {
66142
+ [name: string]: unknown;
66143
+ };
66144
+ content: {
66145
+ "application/json": components["schemas"]["OperationError"];
66146
+ };
66147
+ };
66148
+ /** @description Refused: rate_limited. */
66149
+ 429: {
66150
+ headers: {
66151
+ [name: string]: unknown;
66152
+ };
66153
+ content: {
66154
+ "application/json": components["schemas"]["OperationError"];
66155
+ };
66156
+ };
66157
+ };
66158
+ };
66159
+ "ops.inbox.conversations.unscreen_domain": {
66160
+ parameters: {
66161
+ query?: never;
66162
+ header?: {
66163
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
66164
+ "Idempotency-Key"?: string;
66165
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
66166
+ "Axivoy-Dry-Run"?: "true" | "false";
66167
+ };
66168
+ path?: never;
66169
+ cookie?: never;
66170
+ };
66171
+ requestBody?: {
66172
+ content: {
66173
+ /**
66174
+ * @example {
66175
+ * "thread_id": 5
66176
+ * }
66177
+ */
66178
+ "application/json": {
66179
+ /** @description The conversation */
66180
+ thread_id: number;
66181
+ };
66182
+ };
66183
+ };
66184
+ responses: {
66185
+ /** @description The operation ran. */
66186
+ 200: {
66187
+ headers: {
66188
+ [name: string]: unknown;
66189
+ };
66190
+ content: {
66191
+ /**
66192
+ * @example {
66193
+ * "result": {
66194
+ * "ok": true,
66195
+ * "message": "Conversation moved back to the Inbox. Everyone at @promo-mailer.example is now trusted.",
66196
+ * "conversation": {
66197
+ * "id": 5,
66198
+ * "channel": "email",
66199
+ * "subject": "Weekly deals",
66200
+ * "queue_key": "dispatch",
66201
+ * "queue_keys": [
66202
+ * "dispatch"
66203
+ * ],
66204
+ * "state": "awaiting_reply",
66205
+ * "assigned_user_id": null,
66206
+ * "member_user_ids": [],
66207
+ * "screened_category": null,
66208
+ * "related_type": null,
66209
+ * "related_id": null,
66210
+ * "awaiting_reply_since": "2026-10-20T14:00:00Z",
66211
+ * "last_inbound_at": "2026-10-20T14:00:00Z",
66212
+ * "last_outbound_at": null,
66213
+ * "closed_at": null
66214
+ * },
66215
+ * "domain": "promo-mailer.example"
65038
66216
  * }
65039
66217
  * }
65040
66218
  */
@@ -134650,7 +135828,496 @@ export interface operations {
134650
135828
  };
134651
135829
  };
134652
135830
  };
134653
- "ops.scorecard.lock": {
135831
+ "ops.scorecard.lock": {
135832
+ parameters: {
135833
+ query?: never;
135834
+ header?: {
135835
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
135836
+ "Idempotency-Key"?: string;
135837
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
135838
+ "Axivoy-Dry-Run"?: "true" | "false";
135839
+ };
135840
+ path?: never;
135841
+ cookie?: never;
135842
+ };
135843
+ requestBody?: {
135844
+ content: {
135845
+ /**
135846
+ * @example {
135847
+ * "week_start": "2026-06-07"
135848
+ * }
135849
+ */
135850
+ "application/json": {
135851
+ /** @description The week's operational Sunday (Y-m-d, UTC) */
135852
+ week_start: string | null;
135853
+ };
135854
+ };
135855
+ };
135856
+ responses: {
135857
+ /** @description The operation ran. */
135858
+ 200: {
135859
+ headers: {
135860
+ [name: string]: unknown;
135861
+ };
135862
+ content: {
135863
+ /**
135864
+ * @example {
135865
+ * "result": {
135866
+ * "week_start": "2026-06-07",
135867
+ * "iso_year": 2026,
135868
+ * "iso_week": 24,
135869
+ * "message": "Lock requested for week starting 2026-06-07."
135870
+ * }
135871
+ * }
135872
+ */
135873
+ "application/json": {
135874
+ result: {
135875
+ /**
135876
+ * Format: date
135877
+ * @description The week's operational Sunday
135878
+ */
135879
+ week_start: string;
135880
+ /** @description ISO year of the week */
135881
+ iso_year: number;
135882
+ /** @description ISO week number */
135883
+ iso_week: number;
135884
+ /** @description What happened, in the words the page shows */
135885
+ message: string;
135886
+ };
135887
+ };
135888
+ };
135889
+ };
135890
+ 202: components["responses"]["Proposal"];
135891
+ /** @description Refused: credits_exhausted. */
135892
+ 402: {
135893
+ headers: {
135894
+ [name: string]: unknown;
135895
+ };
135896
+ content: {
135897
+ "application/json": components["schemas"]["OperationError"];
135898
+ };
135899
+ };
135900
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
135901
+ 403: {
135902
+ headers: {
135903
+ [name: string]: unknown;
135904
+ };
135905
+ content: {
135906
+ "application/json": components["schemas"]["OperationError"];
135907
+ };
135908
+ };
135909
+ /** @description Refused: not_found. */
135910
+ 404: {
135911
+ headers: {
135912
+ [name: string]: unknown;
135913
+ };
135914
+ content: {
135915
+ "application/json": components["schemas"]["OperationError"];
135916
+ };
135917
+ };
135918
+ /** @description Refused: idempotency_conflict, stale_state. */
135919
+ 409: {
135920
+ headers: {
135921
+ [name: string]: unknown;
135922
+ };
135923
+ content: {
135924
+ "application/json": components["schemas"]["OperationError"];
135925
+ };
135926
+ };
135927
+ /** @description Refused: operation_retired. */
135928
+ 410: {
135929
+ headers: {
135930
+ [name: string]: unknown;
135931
+ };
135932
+ content: {
135933
+ "application/json": components["schemas"]["OperationError"];
135934
+ };
135935
+ };
135936
+ /** @description Refused: invalid_input, domain_rule. */
135937
+ 422: {
135938
+ headers: {
135939
+ [name: string]: unknown;
135940
+ };
135941
+ content: {
135942
+ "application/json": components["schemas"]["OperationError"];
135943
+ };
135944
+ };
135945
+ /** @description Refused: rate_limited. */
135946
+ 429: {
135947
+ headers: {
135948
+ [name: string]: unknown;
135949
+ };
135950
+ content: {
135951
+ "application/json": components["schemas"]["OperationError"];
135952
+ };
135953
+ };
135954
+ };
135955
+ };
135956
+ "ops.scorecard.metric_display_order": {
135957
+ parameters: {
135958
+ query?: never;
135959
+ header?: {
135960
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
135961
+ "Idempotency-Key"?: string;
135962
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
135963
+ "Axivoy-Dry-Run"?: "true" | "false";
135964
+ };
135965
+ path?: never;
135966
+ cookie?: never;
135967
+ };
135968
+ requestBody?: {
135969
+ content: {
135970
+ /**
135971
+ * @example {
135972
+ * "ordered_driver_metric_ids": [
135973
+ * 10
135974
+ * ]
135975
+ * }
135976
+ */
135977
+ "application/json": {
135978
+ /** @description Driver metric ids on the scorecard, in order */
135979
+ ordered_driver_metric_ids?: unknown[] | null;
135980
+ /** @description Dispatcher metric ids, in order */
135981
+ ordered_dispatcher_metric_ids?: unknown[] | null;
135982
+ /** @description Per composite: composite_metric_definition_id and ordered_component_metric_ids */
135983
+ composite_component_orders?: unknown[] | null;
135984
+ };
135985
+ };
135986
+ };
135987
+ responses: {
135988
+ /** @description The operation ran. */
135989
+ 200: {
135990
+ headers: {
135991
+ [name: string]: unknown;
135992
+ };
135993
+ content: {
135994
+ /**
135995
+ * @example {
135996
+ * "result": {
135997
+ * "ok": true
135998
+ * }
135999
+ * }
136000
+ */
136001
+ "application/json": {
136002
+ result: {
136003
+ /** @description Always true */
136004
+ ok: boolean;
136005
+ };
136006
+ };
136007
+ };
136008
+ };
136009
+ 202: components["responses"]["Proposal"];
136010
+ /** @description Refused: credits_exhausted. */
136011
+ 402: {
136012
+ headers: {
136013
+ [name: string]: unknown;
136014
+ };
136015
+ content: {
136016
+ "application/json": components["schemas"]["OperationError"];
136017
+ };
136018
+ };
136019
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
136020
+ 403: {
136021
+ headers: {
136022
+ [name: string]: unknown;
136023
+ };
136024
+ content: {
136025
+ "application/json": components["schemas"]["OperationError"];
136026
+ };
136027
+ };
136028
+ /** @description Refused: not_found. */
136029
+ 404: {
136030
+ headers: {
136031
+ [name: string]: unknown;
136032
+ };
136033
+ content: {
136034
+ "application/json": components["schemas"]["OperationError"];
136035
+ };
136036
+ };
136037
+ /** @description Refused: idempotency_conflict, stale_state. */
136038
+ 409: {
136039
+ headers: {
136040
+ [name: string]: unknown;
136041
+ };
136042
+ content: {
136043
+ "application/json": components["schemas"]["OperationError"];
136044
+ };
136045
+ };
136046
+ /** @description Refused: operation_retired. */
136047
+ 410: {
136048
+ headers: {
136049
+ [name: string]: unknown;
136050
+ };
136051
+ content: {
136052
+ "application/json": components["schemas"]["OperationError"];
136053
+ };
136054
+ };
136055
+ /** @description Refused: invalid_input, domain_rule. */
136056
+ 422: {
136057
+ headers: {
136058
+ [name: string]: unknown;
136059
+ };
136060
+ content: {
136061
+ "application/json": components["schemas"]["OperationError"];
136062
+ };
136063
+ };
136064
+ /** @description Refused: rate_limited. */
136065
+ 429: {
136066
+ headers: {
136067
+ [name: string]: unknown;
136068
+ };
136069
+ content: {
136070
+ "application/json": components["schemas"]["OperationError"];
136071
+ };
136072
+ };
136073
+ };
136074
+ };
136075
+ "ops.scorecards.bonus_history": {
136076
+ parameters: {
136077
+ query?: never;
136078
+ header?: {
136079
+ /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
136080
+ "Idempotency-Key"?: string;
136081
+ /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
136082
+ "Axivoy-Dry-Run"?: "true" | "false";
136083
+ };
136084
+ path?: never;
136085
+ cookie?: never;
136086
+ };
136087
+ requestBody?: {
136088
+ content: {
136089
+ /** @example {} */
136090
+ "application/json": {
136091
+ /** @description Another driver or dispatcher to preview; default you. */
136092
+ user_id?: number | null;
136093
+ /**
136094
+ * @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
136095
+ * @enum {string|null}
136096
+ */
136097
+ audience?: "driver" | "dispatcher" | null;
136098
+ /** @description How many weeks with bonus results, newest first; 1 to 26, default 8. */
136099
+ week_count?: number | null;
136100
+ /**
136101
+ * Format: date
136102
+ * @description Only weeks before this operational Sunday (Y-m-d), for the next page.
136103
+ */
136104
+ before_week_start?: string | null;
136105
+ };
136106
+ };
136107
+ };
136108
+ responses: {
136109
+ /** @description The operation ran. */
136110
+ 200: {
136111
+ headers: {
136112
+ [name: string]: unknown;
136113
+ };
136114
+ content: {
136115
+ /**
136116
+ * @example {
136117
+ * "result": {
136118
+ * "audience": "driver",
136119
+ * "weeks": [
136120
+ * {
136121
+ * "week_start": "2026-10-11",
136122
+ * "iso_year": 2026,
136123
+ * "iso_week": 42,
136124
+ * "week_label": "Oct 11 to 17, 2026",
136125
+ * "total_amount": "40.85",
136126
+ * "bonuses": [
136127
+ * {
136128
+ * "scheme_id": 1,
136129
+ * "scheme_name": "Scorecard bonus",
136130
+ * "amount": "20.85",
136131
+ * "earned": true,
136132
+ * "pay_state": "on_statement",
136133
+ * "payroll_run_id": 1
136134
+ * },
136135
+ * {
136136
+ * "scheme_id": 2,
136137
+ * "scheme_name": "On-time arrival bonus",
136138
+ * "amount": "20.00",
136139
+ * "earned": true,
136140
+ * "pay_state": "pending",
136141
+ * "payroll_run_id": null
136142
+ * }
136143
+ * ]
136144
+ * },
136145
+ * {
136146
+ * "week_start": "2026-10-04",
136147
+ * "iso_year": 2026,
136148
+ * "iso_week": 41,
136149
+ * "week_label": "Oct 4 to 10, 2026",
136150
+ * "total_amount": "0.00",
136151
+ * "bonuses": [
136152
+ * {
136153
+ * "scheme_id": 1,
136154
+ * "scheme_name": "Scorecard bonus",
136155
+ * "amount": "0.00",
136156
+ * "earned": false,
136157
+ * "pay_state": "none",
136158
+ * "payroll_run_id": null
136159
+ * }
136160
+ * ]
136161
+ * },
136162
+ * {
136163
+ * "week_start": "2026-09-27",
136164
+ * "iso_year": 2026,
136165
+ * "iso_week": 40,
136166
+ * "week_label": "Sep 27 to Oct 3, 2026",
136167
+ * "total_amount": "35.00",
136168
+ * "bonuses": [
136169
+ * {
136170
+ * "scheme_id": 2,
136171
+ * "scheme_name": "On-time arrival bonus",
136172
+ * "amount": "20.00",
136173
+ * "earned": true,
136174
+ * "pay_state": "pending",
136175
+ * "payroll_run_id": null
136176
+ * },
136177
+ * {
136178
+ * "scheme_id": 1,
136179
+ * "scheme_name": "Scorecard bonus",
136180
+ * "amount": "15.00",
136181
+ * "earned": true,
136182
+ * "pay_state": "not_paid",
136183
+ * "payroll_run_id": null
136184
+ * }
136185
+ * ]
136186
+ * }
136187
+ * ],
136188
+ * "total_amount": "75.85",
136189
+ * "weeks_earned": 2,
136190
+ * "next_before_week_start": null,
136191
+ * "streak_weeks": 1,
136192
+ * "streak_text": null,
136193
+ * "year_label": "This year",
136194
+ * "year_total_amount": "75.85"
136195
+ * }
136196
+ * }
136197
+ */
136198
+ "application/json": {
136199
+ result: {
136200
+ /** @description Whose scorecard the history is for: driver or dispatcher; null when the person holds neither portal. */
136201
+ audience?: string | null;
136202
+ /** @description Weeks with persisted bonus results, newest first. */
136203
+ weeks: {
136204
+ /**
136205
+ * Format: date
136206
+ * @description Operational Sunday that starts the week.
136207
+ */
136208
+ week_start: string;
136209
+ /** @description ISO year of the week. */
136210
+ iso_year: number;
136211
+ /** @description ISO week number. */
136212
+ iso_week: number;
136213
+ /** @description The week as people read it, such as "Oct 11 to 17, 2026". */
136214
+ week_label: string;
136215
+ /** @description Bonus earned that week, in dollars. */
136216
+ total_amount: string;
136217
+ /** @description Bonus results this week, earned first. */
136218
+ bonuses: {
136219
+ /** @description Bonus scheme id. */
136220
+ scheme_id: number;
136221
+ /** @description Bonus scheme name. */
136222
+ scheme_name: string;
136223
+ /** @description Amount earned, in dollars; 0.00 when not earned. */
136224
+ amount: string;
136225
+ /** @description True when the bonus paid more than $0. */
136226
+ earned: boolean;
136227
+ /** @description pending (waiting for payroll), on_statement (on a pay statement), not_paid (voided), outside_payroll (dispatcher bonuses, paid outside Axivoy payroll) or none (not earned). */
136228
+ pay_state: string;
136229
+ /** @description Payroll run whose compensation statement carries it, when on_statement. */
136230
+ payroll_run_id?: number | null;
136231
+ }[];
136232
+ }[];
136233
+ /** @description Bonus earned across the weeks on this page, in dollars. */
136234
+ total_amount: string;
136235
+ /** @description Weeks on this page with at least one earned bonus. */
136236
+ weeks_earned: number;
136237
+ /**
136238
+ * Format: date
136239
+ * @description Pass as before_week_start for the next page; null at the end.
136240
+ */
136241
+ next_before_week_start?: string | null;
136242
+ /** @description Final weeks in a row with an earned bonus, newest first, up to 26; null after the first page. */
136243
+ streak_weeks?: number | null;
136244
+ /** @description "4 weeks in a row" from two weeks up, "Start a new streak this week" when the latest week broke a streak of two or more, else null. */
136245
+ streak_text?: string | null;
136246
+ /** @description Label for the year total, such as "This year"; null after the first page. */
136247
+ year_label?: string | null;
136248
+ /** @description Bonus earned this ISO year, in dollars; null after the first page. */
136249
+ year_total_amount?: string | null;
136250
+ };
136251
+ };
136252
+ };
136253
+ };
136254
+ 202: components["responses"]["Proposal"];
136255
+ /** @description Refused: credits_exhausted. */
136256
+ 402: {
136257
+ headers: {
136258
+ [name: string]: unknown;
136259
+ };
136260
+ content: {
136261
+ "application/json": components["schemas"]["OperationError"];
136262
+ };
136263
+ };
136264
+ /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
136265
+ 403: {
136266
+ headers: {
136267
+ [name: string]: unknown;
136268
+ };
136269
+ content: {
136270
+ "application/json": components["schemas"]["OperationError"];
136271
+ };
136272
+ };
136273
+ /** @description Refused: not_found. */
136274
+ 404: {
136275
+ headers: {
136276
+ [name: string]: unknown;
136277
+ };
136278
+ content: {
136279
+ "application/json": components["schemas"]["OperationError"];
136280
+ };
136281
+ };
136282
+ /** @description Refused: idempotency_conflict, stale_state. */
136283
+ 409: {
136284
+ headers: {
136285
+ [name: string]: unknown;
136286
+ };
136287
+ content: {
136288
+ "application/json": components["schemas"]["OperationError"];
136289
+ };
136290
+ };
136291
+ /** @description Refused: operation_retired. */
136292
+ 410: {
136293
+ headers: {
136294
+ [name: string]: unknown;
136295
+ };
136296
+ content: {
136297
+ "application/json": components["schemas"]["OperationError"];
136298
+ };
136299
+ };
136300
+ /** @description Refused: invalid_input, domain_rule. */
136301
+ 422: {
136302
+ headers: {
136303
+ [name: string]: unknown;
136304
+ };
136305
+ content: {
136306
+ "application/json": components["schemas"]["OperationError"];
136307
+ };
136308
+ };
136309
+ /** @description Refused: rate_limited. */
136310
+ 429: {
136311
+ headers: {
136312
+ [name: string]: unknown;
136313
+ };
136314
+ content: {
136315
+ "application/json": components["schemas"]["OperationError"];
136316
+ };
136317
+ };
136318
+ };
136319
+ };
136320
+ "ops.scorecards.bonus_previews": {
134654
136321
  parameters: {
134655
136322
  query?: never;
134656
136323
  header?: {
@@ -134666,12 +136333,22 @@ export interface operations {
134666
136333
  content: {
134667
136334
  /**
134668
136335
  * @example {
134669
- * "week_start": "2026-06-07"
136336
+ * "week_start": "2026-04-12"
134670
136337
  * }
134671
136338
  */
134672
136339
  "application/json": {
134673
- /** @description The week's operational Sunday (Y-m-d, UTC) */
134674
- week_start: string | null;
136340
+ /** @description Another driver or dispatcher to preview; default you. */
136341
+ user_id?: number | null;
136342
+ /**
136343
+ * @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
136344
+ * @enum {string|null}
136345
+ */
136346
+ audience?: "driver" | "dispatcher" | null;
136347
+ /**
136348
+ * Format: date
136349
+ * @description Operational Sunday of the week (Y-m-d); default the most recent week with scores.
136350
+ */
136351
+ week_start?: string | null;
134675
136352
  };
134676
136353
  };
134677
136354
  };
@@ -134685,26 +136362,96 @@ export interface operations {
134685
136362
  /**
134686
136363
  * @example {
134687
136364
  * "result": {
134688
- * "week_start": "2026-06-07",
136365
+ * "audience": "driver",
136366
+ * "week_start": "2026-04-12",
134689
136367
  * "iso_year": 2026,
134690
- * "iso_week": 24,
134691
- * "message": "Lock requested for week starting 2026-06-07."
136368
+ * "iso_week": 16,
136369
+ * "context_line": "Aligned to week starting 2026-04-12 (week ending 2026-04-18).",
136370
+ * "has_weekly_snapshot": false,
136371
+ * "week_state": "ended",
136372
+ * "week_state_label": "Not final yet",
136373
+ * "week_state_tone": "info",
136374
+ * "week_label": "Apr 12 to 18, 2026",
136375
+ * "total_amount": "0.00",
136376
+ * "total_label": "$0 expected",
136377
+ * "available_amount": "0.00",
136378
+ * "summary": "No bonus this week",
136379
+ * "previews": []
134692
136380
  * }
134693
136381
  * }
134694
136382
  */
134695
136383
  "application/json": {
134696
136384
  result: {
134697
- /**
134698
- * Format: date
134699
- * @description The week's operational Sunday
134700
- */
134701
- week_start: string;
134702
- /** @description ISO year of the week */
134703
- iso_year: number;
134704
- /** @description ISO week number */
134705
- iso_week: number;
134706
- /** @description What happened, in the words the page shows */
134707
- message: string;
136385
+ audience?: string | null;
136386
+ /** Format: date */
136387
+ week_start?: string | null;
136388
+ iso_year?: number | null;
136389
+ iso_week?: number | null;
136390
+ context_line?: string | null;
136391
+ has_weekly_snapshot: boolean;
136392
+ /** @description in_progress while the week is open, ended until it is final, final once frozen or locked. */
136393
+ week_state: string;
136394
+ week_state_label: string;
136395
+ week_state_tone: string;
136396
+ week_label?: string | null;
136397
+ /** @description Earned (final), expected (ended) or on track (open) this week, in dollars. */
136398
+ total_amount: string;
136399
+ /** @description The total in words, for example "$20 on track" or "New week". */
136400
+ total_label: string;
136401
+ /** @description Still open this week: the potential of bonuses not yet met and not out of reach. 0.00 once the week ends. */
136402
+ available_amount: string;
136403
+ /** @description One sentence under the total; names amounts. */
136404
+ summary: string;
136405
+ previews: {
136406
+ scheme_id: number;
136407
+ scheme_name: string;
136408
+ scheme_slug?: string | null;
136409
+ mode: string;
136410
+ eligible: boolean;
136411
+ amount?: string | null;
136412
+ reason?: string | null;
136413
+ /** @description Why, in words. */
136414
+ reason_display?: string | null;
136415
+ /** Format: date */
136416
+ week_end_date?: string | null;
136417
+ /** @description earned, on_track, expected, not_yet, not_earned, out_of_reach, waiting or unavailable. */
136418
+ standing?: string | null;
136419
+ standing_label?: string | null;
136420
+ standing_tone?: string | null;
136421
+ /** @description The scheme's portal description. */
136422
+ about?: string | null;
136423
+ headline?: string | null;
136424
+ /** @description What the bonus is worth this week; conditional, never pay. */
136425
+ potential_amount?: string | null;
136426
+ /** @description Bonus detail line: "Worth $X if ..." while open, "Was worth $X with all N targets met" once ended. */
136427
+ worth_text?: string | null;
136428
+ conditions_met?: number | null;
136429
+ conditions_total?: number | null;
136430
+ conditions?: {
136431
+ label: string;
136432
+ metric_slug?: string | null;
136433
+ actual_display?: string | null;
136434
+ target_text: string;
136435
+ gap_text?: string | null;
136436
+ met: boolean;
136437
+ reachable: boolean;
136438
+ /** @description all, or any for one choice of an any-of group. */
136439
+ group: string;
136440
+ }[] | null;
136441
+ payout?: {
136442
+ /** @description tiered, flat, per_unit or qualifying_week_cap. */
136443
+ basis: string;
136444
+ text: string;
136445
+ metric_slug?: string | null;
136446
+ calculation_text?: string | null;
136447
+ tiers: {
136448
+ label: string;
136449
+ range_text?: string | null;
136450
+ current: boolean;
136451
+ amount: string;
136452
+ }[];
136453
+ } | null;
136454
+ }[];
134708
136455
  };
134709
136456
  };
134710
136457
  };
@@ -134775,7 +136522,7 @@ export interface operations {
134775
136522
  };
134776
136523
  };
134777
136524
  };
134778
- "ops.scorecard.metric_display_order": {
136525
+ "ops.scorecards.focus.set": {
134779
136526
  parameters: {
134780
136527
  query?: never;
134781
136528
  header?: {
@@ -134791,134 +136538,21 @@ export interface operations {
134791
136538
  content: {
134792
136539
  /**
134793
136540
  * @example {
134794
- * "ordered_driver_metric_ids": [
134795
- * 10
134796
- * ]
136541
+ * "metric_slug": "safety_score",
136542
+ * "week_start": "2026-10-18"
134797
136543
  * }
134798
136544
  */
134799
136545
  "application/json": {
134800
- /** @description Driver metric ids on the scorecard, in order */
134801
- ordered_driver_metric_ids?: unknown[] | null;
134802
- /** @description Dispatcher metric ids, in order */
134803
- ordered_dispatcher_metric_ids?: unknown[] | null;
134804
- /** @description Per composite: composite_metric_definition_id and ordered_component_metric_ids */
134805
- composite_component_orders?: unknown[] | null;
134806
- };
134807
- };
134808
- };
134809
- responses: {
134810
- /** @description The operation ran. */
134811
- 200: {
134812
- headers: {
134813
- [name: string]: unknown;
134814
- };
134815
- content: {
134816
136546
  /**
134817
- * @example {
134818
- * "result": {
134819
- * "ok": true
134820
- * }
134821
- * }
136547
+ * @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
136548
+ * @enum {string|null}
134822
136549
  */
134823
- "application/json": {
134824
- result: {
134825
- /** @description Always true */
134826
- ok: boolean;
134827
- };
134828
- };
134829
- };
134830
- };
134831
- 202: components["responses"]["Proposal"];
134832
- /** @description Refused: credits_exhausted. */
134833
- 402: {
134834
- headers: {
134835
- [name: string]: unknown;
134836
- };
134837
- content: {
134838
- "application/json": components["schemas"]["OperationError"];
134839
- };
134840
- };
134841
- /** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
134842
- 403: {
134843
- headers: {
134844
- [name: string]: unknown;
134845
- };
134846
- content: {
134847
- "application/json": components["schemas"]["OperationError"];
134848
- };
134849
- };
134850
- /** @description Refused: not_found. */
134851
- 404: {
134852
- headers: {
134853
- [name: string]: unknown;
134854
- };
134855
- content: {
134856
- "application/json": components["schemas"]["OperationError"];
134857
- };
134858
- };
134859
- /** @description Refused: idempotency_conflict, stale_state. */
134860
- 409: {
134861
- headers: {
134862
- [name: string]: unknown;
134863
- };
134864
- content: {
134865
- "application/json": components["schemas"]["OperationError"];
134866
- };
134867
- };
134868
- /** @description Refused: operation_retired. */
134869
- 410: {
134870
- headers: {
134871
- [name: string]: unknown;
134872
- };
134873
- content: {
134874
- "application/json": components["schemas"]["OperationError"];
134875
- };
134876
- };
134877
- /** @description Refused: invalid_input, domain_rule. */
134878
- 422: {
134879
- headers: {
134880
- [name: string]: unknown;
134881
- };
134882
- content: {
134883
- "application/json": components["schemas"]["OperationError"];
134884
- };
134885
- };
134886
- /** @description Refused: rate_limited. */
134887
- 429: {
134888
- headers: {
134889
- [name: string]: unknown;
134890
- };
134891
- content: {
134892
- "application/json": components["schemas"]["OperationError"];
134893
- };
134894
- };
134895
- };
134896
- };
134897
- "ops.scorecards.bonus_previews": {
134898
- parameters: {
134899
- query?: never;
134900
- header?: {
134901
- /** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
134902
- "Idempotency-Key"?: string;
134903
- /** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
134904
- "Axivoy-Dry-Run"?: "true" | "false";
134905
- };
134906
- path?: never;
134907
- cookie?: never;
134908
- };
134909
- requestBody?: {
134910
- content: {
134911
- /**
134912
- * @example {
134913
- * "week_start": "2026-04-12"
134914
- * }
134915
- */
134916
- "application/json": {
134917
- /** @description Another driver to preview; default you. */
134918
- user_id?: number | null;
136550
+ audience?: "driver" | "dispatcher" | null;
136551
+ /** @description A score on your scorecard this open week (a headline metric or a part); null or omitted clears the focus. */
136552
+ metric_slug?: string | null;
134919
136553
  /**
134920
136554
  * Format: date
134921
- * @description Operational Sunday of the week (Y-m-d); default the current week.
136555
+ * @description The week the screen shows (Y-m-d operational Sunday); refused once it is no longer the current open week.
134922
136556
  */
134923
136557
  week_start?: string | null;
134924
136558
  };
@@ -134934,35 +136568,30 @@ export interface operations {
134934
136568
  /**
134935
136569
  * @example {
134936
136570
  * "result": {
134937
- * "week_start": "2026-04-12",
134938
- * "iso_year": 2026,
134939
- * "iso_week": 16,
134940
- * "context_line": "Aligned to week starting 2026-04-12 (week ending 2026-04-18).",
134941
- * "has_weekly_snapshot": false,
134942
- * "previews": []
136571
+ * "audience": "driver",
136572
+ * "week_start": "2026-10-18",
136573
+ * "week_label": "Oct 18 to 24, 2026",
136574
+ * "focus_pick": {
136575
+ * "slug": "safety_score",
136576
+ * "name": "Safety",
136577
+ * "picked_at": "2026-10-21T15:00:00Z"
136578
+ * }
134943
136579
  * }
134944
136580
  * }
134945
136581
  */
134946
136582
  "application/json": {
134947
136583
  result: {
136584
+ audience: string;
134948
136585
  /** Format: date */
134949
- week_start?: string | null;
134950
- iso_year?: number | null;
134951
- iso_week?: number | null;
134952
- context_line?: string | null;
134953
- has_weekly_snapshot: boolean;
134954
- previews: {
134955
- scheme_id: number;
134956
- scheme_name: string;
134957
- scheme_slug?: string | null;
134958
- mode: string;
134959
- eligible: boolean;
134960
- amount?: string | null;
134961
- reason?: string | null;
134962
- reason_display?: string | null;
134963
- /** Format: date */
134964
- week_end_date?: string | null;
134965
- }[];
136586
+ week_start: string;
136587
+ week_label: string;
136588
+ /** @description The score you picked; null once cleared. */
136589
+ focus_pick?: {
136590
+ slug: string;
136591
+ name: string;
136592
+ /** Format: date-time */
136593
+ picked_at: string;
136594
+ } | null;
134966
136595
  };
134967
136596
  };
134968
136597
  };
@@ -135053,11 +136682,16 @@ export interface operations {
135053
136682
  * }
135054
136683
  */
135055
136684
  "application/json": {
135056
- /** @description Another driver to preview; default you. */
136685
+ /** @description Another driver or dispatcher to preview; default you. */
135057
136686
  user_id?: number | null;
136687
+ /**
136688
+ * @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
136689
+ * @enum {string|null}
136690
+ */
136691
+ audience?: "driver" | "dispatcher" | null;
135058
136692
  /**
135059
136693
  * Format: date
135060
- * @description Operational Sunday of the week (Y-m-d); default the current week.
136694
+ * @description Operational Sunday of the week (Y-m-d); default the most recent week with scores.
135061
136695
  */
135062
136696
  week_start?: string | null;
135063
136697
  };
@@ -135073,6 +136707,7 @@ export interface operations {
135073
136707
  /**
135074
136708
  * @example {
135075
136709
  * "result": {
136710
+ * "audience": "driver",
135076
136711
  * "week_start": "2026-04-12",
135077
136712
  * "iso_year": 2026,
135078
136713
  * "iso_week": 16,
@@ -135089,7 +136724,63 @@ export interface operations {
135089
136724
  * "prior_value": null,
135090
136725
  * "format": "decimal",
135091
136726
  * "decimals": 2,
135092
- * "direction": "higher_is_better"
136727
+ * "direction": "higher_is_better",
136728
+ * "value_display": "70.25",
136729
+ * "hint": null,
136730
+ * "band_palette": "blue",
136731
+ * "band_position": 3,
136732
+ * "band_count": 5,
136733
+ * "needs_work": false,
136734
+ * "tip": null,
136735
+ * "change": null,
136736
+ * "next_step": {
136737
+ * "kind": "next_level",
136738
+ * "text": "9.75 to go for Fantastic"
136739
+ * },
136740
+ * "bands": [
136741
+ * {
136742
+ * "label": "Poor",
136743
+ * "palette": "red",
136744
+ * "range_text": "0 to 50",
136745
+ * "min": 0,
136746
+ * "max": 50,
136747
+ * "current": false
136748
+ * },
136749
+ * {
136750
+ * "label": "Fair",
136751
+ * "palette": "amber",
136752
+ * "range_text": "50 to 65",
136753
+ * "min": 50,
136754
+ * "max": 65,
136755
+ * "current": false
136756
+ * },
136757
+ * {
136758
+ * "label": "Great",
136759
+ * "palette": "blue",
136760
+ * "range_text": "65 to 80",
136761
+ * "min": 65,
136762
+ * "max": 80,
136763
+ * "current": true
136764
+ * },
136765
+ * {
136766
+ * "label": "Fantastic",
136767
+ * "palette": "green",
136768
+ * "range_text": "80 to 90",
136769
+ * "min": 80,
136770
+ * "max": 90,
136771
+ * "current": false
136772
+ * },
136773
+ * {
136774
+ * "label": "Fantastic Plus",
136775
+ * "palette": "violet",
136776
+ * "range_text": "90 or more",
136777
+ * "min": 90,
136778
+ * "max": null,
136779
+ * "current": false
136780
+ * }
136781
+ * ],
136782
+ * "targets": [],
136783
+ * "components_needing_work": null
135093
136784
  * },
135094
136785
  * {
135095
136786
  * "kind": "single",
@@ -135102,7 +136793,63 @@ export interface operations {
135102
136793
  * "prior_value": null,
135103
136794
  * "format": "decimal",
135104
136795
  * "decimals": 2,
135105
- * "direction": "higher_is_better"
136796
+ * "direction": "higher_is_better",
136797
+ * "value_display": "85.75",
136798
+ * "hint": null,
136799
+ * "band_palette": "green",
136800
+ * "band_position": 4,
136801
+ * "band_count": 5,
136802
+ * "needs_work": false,
136803
+ * "tip": null,
136804
+ * "change": null,
136805
+ * "next_step": {
136806
+ * "kind": "next_level",
136807
+ * "text": "4.25 to go for Fantastic Plus"
136808
+ * },
136809
+ * "bands": [
136810
+ * {
136811
+ * "label": "Poor",
136812
+ * "palette": "red",
136813
+ * "range_text": "0 to 50",
136814
+ * "min": 0,
136815
+ * "max": 50,
136816
+ * "current": false
136817
+ * },
136818
+ * {
136819
+ * "label": "Fair",
136820
+ * "palette": "amber",
136821
+ * "range_text": "50 to 65",
136822
+ * "min": 50,
136823
+ * "max": 65,
136824
+ * "current": false
136825
+ * },
136826
+ * {
136827
+ * "label": "Great",
136828
+ * "palette": "blue",
136829
+ * "range_text": "65 to 80",
136830
+ * "min": 65,
136831
+ * "max": 80,
136832
+ * "current": false
136833
+ * },
136834
+ * {
136835
+ * "label": "Fantastic",
136836
+ * "palette": "green",
136837
+ * "range_text": "80 to 90",
136838
+ * "min": 80,
136839
+ * "max": 90,
136840
+ * "current": true
136841
+ * },
136842
+ * {
136843
+ * "label": "Fantastic Plus",
136844
+ * "palette": "violet",
136845
+ * "range_text": "90 or more",
136846
+ * "min": 90,
136847
+ * "max": null,
136848
+ * "current": false
136849
+ * }
136850
+ * ],
136851
+ * "targets": [],
136852
+ * "components_needing_work": null
135106
136853
  * },
135107
136854
  * {
135108
136855
  * "kind": "single",
@@ -135115,20 +136862,120 @@ export interface operations {
135115
136862
  * "prior_value": null,
135116
136863
  * "format": "decimal",
135117
136864
  * "decimals": 2,
135118
- * "direction": "higher_is_better"
136865
+ * "direction": "higher_is_better",
136866
+ * "value_display": "92.50",
136867
+ * "hint": null,
136868
+ * "band_palette": "violet",
136869
+ * "band_position": 5,
136870
+ * "band_count": 5,
136871
+ * "needs_work": false,
136872
+ * "tip": null,
136873
+ * "change": null,
136874
+ * "next_step": {
136875
+ * "kind": "top_level",
136876
+ * "text": "Top level"
136877
+ * },
136878
+ * "bands": [
136879
+ * {
136880
+ * "label": "Poor",
136881
+ * "palette": "red",
136882
+ * "range_text": "0 to 50",
136883
+ * "min": 0,
136884
+ * "max": 50,
136885
+ * "current": false
136886
+ * },
136887
+ * {
136888
+ * "label": "Fair",
136889
+ * "palette": "amber",
136890
+ * "range_text": "50 to 65",
136891
+ * "min": 50,
136892
+ * "max": 65,
136893
+ * "current": false
136894
+ * },
136895
+ * {
136896
+ * "label": "Great",
136897
+ * "palette": "blue",
136898
+ * "range_text": "65 to 80",
136899
+ * "min": 65,
136900
+ * "max": 80,
136901
+ * "current": false
136902
+ * },
136903
+ * {
136904
+ * "label": "Fantastic",
136905
+ * "palette": "green",
136906
+ * "range_text": "80 to 90",
136907
+ * "min": 80,
136908
+ * "max": 90,
136909
+ * "current": false
136910
+ * },
136911
+ * {
136912
+ * "label": "Fantastic Plus",
136913
+ * "palette": "violet",
136914
+ * "range_text": "90 or more",
136915
+ * "min": 90,
136916
+ * "max": null,
136917
+ * "current": true
136918
+ * }
136919
+ * ],
136920
+ * "targets": [],
136921
+ * "components_needing_work": null
135119
136922
  * }
135120
- * ]
136923
+ * ],
136924
+ * "week_state": "ended",
136925
+ * "week_state_label": "Not final yet",
136926
+ * "week_state_tone": "info",
136927
+ * "week_label": "Apr 12 to 18, 2026",
136928
+ * "focus": [],
136929
+ * "wins": []
135121
136930
  * }
135122
136931
  * }
135123
136932
  */
135124
136933
  "application/json": {
135125
136934
  result: {
136935
+ audience?: string | null;
135126
136936
  /** Format: date */
135127
136937
  week_start?: string | null;
135128
136938
  iso_year?: number | null;
135129
136939
  iso_week?: number | null;
135130
136940
  /** Format: date */
135131
136941
  week_end?: string | null;
136942
+ /** @description in_progress while the week is open, ended until it is final, final once frozen or locked. */
136943
+ week_state: string;
136944
+ week_state_label: string;
136945
+ week_state_tone: string;
136946
+ /** @description The week in words, for example "Oct 11 to 17, 2026". */
136947
+ week_label?: string | null;
136948
+ /** @description What to work on: at most three items, the person's focus pick first, then the bonus closest to paying. Never names an amount. */
136949
+ focus: {
136950
+ slug: string;
136951
+ name: string;
136952
+ /** @description bonus_target or needs_work. */
136953
+ kind: string;
136954
+ text: string;
136955
+ gap_text?: string | null;
136956
+ tip?: string | null;
136957
+ scheme_id?: number | null;
136958
+ component_slugs: unknown[];
136959
+ /** @description The person's weekly focus pick ("Your focus"). */
136960
+ picked: boolean;
136961
+ }[];
136962
+ /** @description Wins this week: at most three, from this week and the week before. */
136963
+ wins: {
136964
+ slug: string;
136965
+ name: string;
136966
+ /** @description focus_improved, target_met, level_up or top_level_held. */
136967
+ kind: string;
136968
+ text: string;
136969
+ }[];
136970
+ /** @description The score the person picked to focus on this week; null when none. */
136971
+ focus_pick?: {
136972
+ slug: string;
136973
+ name: string;
136974
+ /** Format: date-time */
136975
+ picked_at: string;
136976
+ /** @description How the focus went, once the week has ended; null while it is open. */
136977
+ result_text?: string | null;
136978
+ } | null;
135132
136979
  metrics: {
135133
136980
  kind: string;
135134
136981
  slug: string;
@@ -135141,7 +136988,108 @@ export interface operations {
135141
136988
  format?: string | null;
135142
136989
  decimals?: number | null;
135143
136990
  direction?: string | null;
135144
- components?: unknown[] | null;
136991
+ /** @description The value in the metric's format, or "No score". */
136992
+ value_display: string;
136993
+ hint?: string | null;
136994
+ /** @description red, amber, green, blue, violet or gray. */
136995
+ band_palette?: string | null;
136996
+ /** @description Level from the worst, 1-based. */
136997
+ band_position?: number | null;
136998
+ band_count?: number | null;
136999
+ needs_work: boolean;
137000
+ tip?: string | null;
137001
+ change?: {
137002
+ direction: string;
137003
+ better?: boolean | null;
137004
+ text: string;
137005
+ } | null;
137006
+ next_step?: {
137007
+ /** @description bonus_target, next_level or top_level. */
137008
+ kind: string;
137009
+ text: string;
137010
+ } | null;
137011
+ /** @description Score levels, worst first. */
137012
+ bands: {
137013
+ label: string;
137014
+ palette: string;
137015
+ range_text: string;
137016
+ min?: number | null;
137017
+ max?: number | null;
137018
+ current: boolean;
137019
+ }[];
137020
+ /** @description Bonus targets on this score. */
137021
+ targets: {
137022
+ scheme_id: number;
137023
+ scheme_name: string;
137024
+ text: string;
137025
+ gap_text?: string | null;
137026
+ met: boolean;
137027
+ reachable: boolean;
137028
+ }[];
137029
+ /** @description On a composite: its parts in the bottom half of their ladders. */
137030
+ components_needing_work?: {
137031
+ count: number;
137032
+ total: number;
137033
+ text: string;
137034
+ slugs: unknown[];
137035
+ } | null;
137036
+ components?: {
137037
+ slug: string;
137038
+ name: string;
137039
+ value?: number | null;
137040
+ band_slug?: string | null;
137041
+ band_label?: string | null;
137042
+ band_color?: string | null;
137043
+ prior_value?: number | null;
137044
+ format?: string | null;
137045
+ decimals?: number | null;
137046
+ direction?: string | null;
137047
+ /** @description The value in the metric's format, or "No score". */
137048
+ value_display: string;
137049
+ hint?: string | null;
137050
+ /** @description red, amber, green, blue, violet or gray. */
137051
+ band_palette?: string | null;
137052
+ /** @description Level from the worst, 1-based. */
137053
+ band_position?: number | null;
137054
+ band_count?: number | null;
137055
+ needs_work: boolean;
137056
+ tip?: string | null;
137057
+ change?: {
137058
+ direction: string;
137059
+ better?: boolean | null;
137060
+ text: string;
137061
+ } | null;
137062
+ next_step?: {
137063
+ /** @description bonus_target, next_level or top_level. */
137064
+ kind: string;
137065
+ text: string;
137066
+ } | null;
137067
+ /** @description Score levels, worst first. */
137068
+ bands: {
137069
+ label: string;
137070
+ palette: string;
137071
+ range_text: string;
137072
+ min?: number | null;
137073
+ max?: number | null;
137074
+ current: boolean;
137075
+ }[];
137076
+ /** @description Bonus targets on this score. */
137077
+ targets: {
137078
+ scheme_id: number;
137079
+ scheme_name: string;
137080
+ text: string;
137081
+ gap_text?: string | null;
137082
+ met: boolean;
137083
+ reachable: boolean;
137084
+ }[];
137085
+ /** @description On a composite: its parts in the bottom half of their ladders. */
137086
+ components_needing_work?: {
137087
+ count: number;
137088
+ total: number;
137089
+ text: string;
137090
+ slugs: unknown[];
137091
+ } | null;
137092
+ }[] | null;
135145
137093
  }[];
135146
137094
  };
135147
137095
  };
@@ -135233,11 +137181,16 @@ export interface operations {
135233
137181
  * }
135234
137182
  */
135235
137183
  "application/json": {
135236
- /** @description Another driver to preview; default you. */
137184
+ /** @description Another driver or dispatcher to preview; default you. */
135237
137185
  user_id?: number | null;
137186
+ /**
137187
+ * @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
137188
+ * @enum {string|null}
137189
+ */
137190
+ audience?: "driver" | "dispatcher" | null;
135238
137191
  /**
135239
137192
  * Format: date
135240
- * @description Operational Sunday of the week (Y-m-d); default the current week.
137193
+ * @description Operational Sunday of the week (Y-m-d); default the most recent week with scores.
135241
137194
  */
135242
137195
  week_start?: string | null;
135243
137196
  /** @description Metric slug; default all. */
@@ -135309,6 +137262,7 @@ export interface operations {
135309
137262
  */
135310
137263
  "application/json": {
135311
137264
  result: {
137265
+ audience?: string | null;
135312
137266
  /** Format: date */
135313
137267
  week_start?: string | null;
135314
137268
  iso_year?: number | null;