@axivoy/api 1.71.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.
- package/dist/generated/schema.d.ts +828 -62
- package/package.json +1 -1
|
@@ -5800,7 +5800,7 @@ export interface paths {
|
|
|
5800
5800
|
put?: never;
|
|
5801
5801
|
/**
|
|
5802
5802
|
* Attach a conversation to a load
|
|
5803
|
-
* @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).
|
|
5804
5804
|
*
|
|
5805
5805
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
5806
5806
|
*/
|
|
@@ -5855,6 +5855,28 @@ export interface paths {
|
|
|
5855
5855
|
patch?: never;
|
|
5856
5856
|
trace?: never;
|
|
5857
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
|
+
};
|
|
5858
5880
|
"/ops/inbox.conversations.claim": {
|
|
5859
5881
|
parameters: {
|
|
5860
5882
|
query?: never;
|
|
@@ -5899,6 +5921,28 @@ export interface paths {
|
|
|
5899
5921
|
patch?: never;
|
|
5900
5922
|
trace?: never;
|
|
5901
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
|
+
};
|
|
5902
5946
|
"/ops/inbox.conversations.get": {
|
|
5903
5947
|
parameters: {
|
|
5904
5948
|
query?: never;
|
|
@@ -5921,6 +5965,28 @@ export interface paths {
|
|
|
5921
5965
|
patch?: never;
|
|
5922
5966
|
trace?: never;
|
|
5923
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
|
+
};
|
|
5924
5990
|
"/ops/inbox.conversations.load_search": {
|
|
5925
5991
|
parameters: {
|
|
5926
5992
|
query?: never;
|
|
@@ -62542,7 +62608,8 @@ export interface operations {
|
|
|
62542
62608
|
/**
|
|
62543
62609
|
* @example {
|
|
62544
62610
|
* "thread_id": 1,
|
|
62545
|
-
* "load_id": 1
|
|
62611
|
+
* "load_id": 1,
|
|
62612
|
+
* "copy_attachment_ids": []
|
|
62546
62613
|
* }
|
|
62547
62614
|
*/
|
|
62548
62615
|
"application/json": {
|
|
@@ -62554,6 +62621,8 @@ export interface operations {
|
|
|
62554
62621
|
inbound_message_id?: number | null;
|
|
62555
62622
|
/** @description More teams that should see it */
|
|
62556
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;
|
|
62557
62626
|
};
|
|
62558
62627
|
};
|
|
62559
62628
|
};
|
|
@@ -62589,6 +62658,212 @@ export interface operations {
|
|
|
62589
62658
|
* "last_outbound_at": null,
|
|
62590
62659
|
* "closed_at": null
|
|
62591
62660
|
* },
|
|
62661
|
+
* "inbound_message_id": 1,
|
|
62662
|
+
* "copied": [],
|
|
62663
|
+
* "skipped": []
|
|
62664
|
+
* }
|
|
62665
|
+
* }
|
|
62666
|
+
*/
|
|
62667
|
+
"application/json": {
|
|
62668
|
+
result: {
|
|
62669
|
+
/** @description True when the change was made */
|
|
62670
|
+
ok: boolean;
|
|
62671
|
+
/** @description What happened, ready to show a person */
|
|
62672
|
+
message: string;
|
|
62673
|
+
/** @description The conversation as it now stands */
|
|
62674
|
+
conversation: {
|
|
62675
|
+
/** @description Conversation id (thread_id on every conversation operation) */
|
|
62676
|
+
id: number;
|
|
62677
|
+
/** @description email or sms */
|
|
62678
|
+
channel?: string | null;
|
|
62679
|
+
/** @description Subject as the outside party wrote it */
|
|
62680
|
+
subject?: string | null;
|
|
62681
|
+
/** @description Home team */
|
|
62682
|
+
queue_key?: string | null;
|
|
62683
|
+
/** @description Home team first, then the teams it is also in */
|
|
62684
|
+
queue_keys: unknown[];
|
|
62685
|
+
/** @description open, awaiting_reply or closed */
|
|
62686
|
+
state: string;
|
|
62687
|
+
/** @description Owner */
|
|
62688
|
+
assigned_user_id?: number | null;
|
|
62689
|
+
/** @description Owner and everyone it is shared with */
|
|
62690
|
+
member_user_ids: unknown[];
|
|
62691
|
+
/** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
|
|
62692
|
+
screened_category?: string | null;
|
|
62693
|
+
/** @description Linked record type, for example load or customer_invoice */
|
|
62694
|
+
related_type?: string | null;
|
|
62695
|
+
/** @description Linked record id */
|
|
62696
|
+
related_id?: number | null;
|
|
62697
|
+
/**
|
|
62698
|
+
* Format: date-time
|
|
62699
|
+
* @description When the outside party started waiting on us
|
|
62700
|
+
*/
|
|
62701
|
+
awaiting_reply_since?: string | null;
|
|
62702
|
+
/**
|
|
62703
|
+
* Format: date-time
|
|
62704
|
+
* @description Last message received
|
|
62705
|
+
*/
|
|
62706
|
+
last_inbound_at?: string | null;
|
|
62707
|
+
/**
|
|
62708
|
+
* Format: date-time
|
|
62709
|
+
* @description Last message sent
|
|
62710
|
+
*/
|
|
62711
|
+
last_outbound_at?: string | null;
|
|
62712
|
+
/**
|
|
62713
|
+
* Format: date-time
|
|
62714
|
+
* @description When it was closed
|
|
62715
|
+
*/
|
|
62716
|
+
closed_at?: string | null;
|
|
62717
|
+
};
|
|
62718
|
+
/** @description The message that was attached */
|
|
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
|
+
}[];
|
|
62736
|
+
};
|
|
62737
|
+
};
|
|
62738
|
+
};
|
|
62739
|
+
};
|
|
62740
|
+
202: components["responses"]["Proposal"];
|
|
62741
|
+
/** @description Refused: credits_exhausted. */
|
|
62742
|
+
402: {
|
|
62743
|
+
headers: {
|
|
62744
|
+
[name: string]: unknown;
|
|
62745
|
+
};
|
|
62746
|
+
content: {
|
|
62747
|
+
"application/json": components["schemas"]["OperationError"];
|
|
62748
|
+
};
|
|
62749
|
+
};
|
|
62750
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
62751
|
+
403: {
|
|
62752
|
+
headers: {
|
|
62753
|
+
[name: string]: unknown;
|
|
62754
|
+
};
|
|
62755
|
+
content: {
|
|
62756
|
+
"application/json": components["schemas"]["OperationError"];
|
|
62757
|
+
};
|
|
62758
|
+
};
|
|
62759
|
+
/** @description Refused: not_found. */
|
|
62760
|
+
404: {
|
|
62761
|
+
headers: {
|
|
62762
|
+
[name: string]: unknown;
|
|
62763
|
+
};
|
|
62764
|
+
content: {
|
|
62765
|
+
"application/json": components["schemas"]["OperationError"];
|
|
62766
|
+
};
|
|
62767
|
+
};
|
|
62768
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
62769
|
+
409: {
|
|
62770
|
+
headers: {
|
|
62771
|
+
[name: string]: unknown;
|
|
62772
|
+
};
|
|
62773
|
+
content: {
|
|
62774
|
+
"application/json": components["schemas"]["OperationError"];
|
|
62775
|
+
};
|
|
62776
|
+
};
|
|
62777
|
+
/** @description Refused: operation_retired. */
|
|
62778
|
+
410: {
|
|
62779
|
+
headers: {
|
|
62780
|
+
[name: string]: unknown;
|
|
62781
|
+
};
|
|
62782
|
+
content: {
|
|
62783
|
+
"application/json": components["schemas"]["OperationError"];
|
|
62784
|
+
};
|
|
62785
|
+
};
|
|
62786
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
62787
|
+
422: {
|
|
62788
|
+
headers: {
|
|
62789
|
+
[name: string]: unknown;
|
|
62790
|
+
};
|
|
62791
|
+
content: {
|
|
62792
|
+
"application/json": components["schemas"]["OperationError"];
|
|
62793
|
+
};
|
|
62794
|
+
};
|
|
62795
|
+
/** @description Refused: rate_limited. */
|
|
62796
|
+
429: {
|
|
62797
|
+
headers: {
|
|
62798
|
+
[name: string]: unknown;
|
|
62799
|
+
};
|
|
62800
|
+
content: {
|
|
62801
|
+
"application/json": components["schemas"]["OperationError"];
|
|
62802
|
+
};
|
|
62803
|
+
};
|
|
62804
|
+
};
|
|
62805
|
+
};
|
|
62806
|
+
"ops.inbox.conversations.attach_opportunity": {
|
|
62807
|
+
parameters: {
|
|
62808
|
+
query?: never;
|
|
62809
|
+
header?: {
|
|
62810
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
62811
|
+
"Idempotency-Key"?: string;
|
|
62812
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
62813
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
62814
|
+
};
|
|
62815
|
+
path?: never;
|
|
62816
|
+
cookie?: never;
|
|
62817
|
+
};
|
|
62818
|
+
requestBody?: {
|
|
62819
|
+
content: {
|
|
62820
|
+
/**
|
|
62821
|
+
* @example {
|
|
62822
|
+
* "thread_id": 1,
|
|
62823
|
+
* "opportunity_id": 1
|
|
62824
|
+
* }
|
|
62825
|
+
*/
|
|
62826
|
+
"application/json": {
|
|
62827
|
+
/** @description The conversation */
|
|
62828
|
+
thread_id: number;
|
|
62829
|
+
/** @description The load opportunity */
|
|
62830
|
+
opportunity_id?: number;
|
|
62831
|
+
/** @description The received message to attach; default the latest */
|
|
62832
|
+
inbound_message_id?: number | null;
|
|
62833
|
+
};
|
|
62834
|
+
};
|
|
62835
|
+
};
|
|
62836
|
+
responses: {
|
|
62837
|
+
/** @description The operation ran. */
|
|
62838
|
+
200: {
|
|
62839
|
+
headers: {
|
|
62840
|
+
[name: string]: unknown;
|
|
62841
|
+
};
|
|
62842
|
+
content: {
|
|
62843
|
+
/**
|
|
62844
|
+
* @example {
|
|
62845
|
+
* "result": {
|
|
62846
|
+
* "ok": true,
|
|
62847
|
+
* "message": "Conversation attached to opportunity.",
|
|
62848
|
+
* "conversation": {
|
|
62849
|
+
* "id": 1,
|
|
62850
|
+
* "channel": "email",
|
|
62851
|
+
* "subject": "Invoice INV-9",
|
|
62852
|
+
* "queue_key": "receivables",
|
|
62853
|
+
* "queue_keys": [
|
|
62854
|
+
* "receivables"
|
|
62855
|
+
* ],
|
|
62856
|
+
* "state": "awaiting_reply",
|
|
62857
|
+
* "assigned_user_id": null,
|
|
62858
|
+
* "member_user_ids": [],
|
|
62859
|
+
* "screened_category": null,
|
|
62860
|
+
* "related_type": "load_opportunity",
|
|
62861
|
+
* "related_id": 1,
|
|
62862
|
+
* "awaiting_reply_since": "2026-10-20T14:00:00Z",
|
|
62863
|
+
* "last_inbound_at": "2026-10-20T14:00:00Z",
|
|
62864
|
+
* "last_outbound_at": null,
|
|
62865
|
+
* "closed_at": null
|
|
62866
|
+
* },
|
|
62592
62867
|
* "inbound_message_id": 1
|
|
62593
62868
|
* }
|
|
62594
62869
|
* }
|
|
@@ -62716,7 +62991,193 @@ export interface operations {
|
|
|
62716
62991
|
};
|
|
62717
62992
|
};
|
|
62718
62993
|
};
|
|
62719
|
-
"ops.inbox.conversations.
|
|
62994
|
+
"ops.inbox.conversations.capture_remittance": {
|
|
62995
|
+
parameters: {
|
|
62996
|
+
query?: never;
|
|
62997
|
+
header?: {
|
|
62998
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
62999
|
+
"Idempotency-Key"?: string;
|
|
63000
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
63001
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
63002
|
+
};
|
|
63003
|
+
path?: never;
|
|
63004
|
+
cookie?: never;
|
|
63005
|
+
};
|
|
63006
|
+
requestBody?: {
|
|
63007
|
+
content: {
|
|
63008
|
+
/**
|
|
63009
|
+
* @example {
|
|
63010
|
+
* "thread_id": 1
|
|
63011
|
+
* }
|
|
63012
|
+
*/
|
|
63013
|
+
"application/json": {
|
|
63014
|
+
/** @description The conversation */
|
|
63015
|
+
thread_id: number;
|
|
63016
|
+
};
|
|
63017
|
+
};
|
|
63018
|
+
};
|
|
63019
|
+
responses: {
|
|
63020
|
+
/** @description The operation ran. */
|
|
63021
|
+
200: {
|
|
63022
|
+
headers: {
|
|
63023
|
+
[name: string]: unknown;
|
|
63024
|
+
};
|
|
63025
|
+
content: {
|
|
63026
|
+
/**
|
|
63027
|
+
* @example {
|
|
63028
|
+
* "result": {
|
|
63029
|
+
* "ok": true,
|
|
63030
|
+
* "message": "Remittance capture could not enqueue — check the Remittance capture panel for details.",
|
|
63031
|
+
* "conversation": {
|
|
63032
|
+
* "id": 1,
|
|
63033
|
+
* "channel": "email",
|
|
63034
|
+
* "subject": "Invoice INV-9",
|
|
63035
|
+
* "queue_key": "receivables",
|
|
63036
|
+
* "queue_keys": [
|
|
63037
|
+
* "receivables"
|
|
63038
|
+
* ],
|
|
63039
|
+
* "state": "awaiting_reply",
|
|
63040
|
+
* "assigned_user_id": null,
|
|
63041
|
+
* "member_user_ids": [],
|
|
63042
|
+
* "screened_category": null,
|
|
63043
|
+
* "related_type": null,
|
|
63044
|
+
* "related_id": null,
|
|
63045
|
+
* "awaiting_reply_since": "2026-10-20T14:00:00Z",
|
|
63046
|
+
* "last_inbound_at": "2026-10-20T14:00:00Z",
|
|
63047
|
+
* "last_outbound_at": null,
|
|
63048
|
+
* "closed_at": null
|
|
63049
|
+
* },
|
|
63050
|
+
* "status": "not_queued",
|
|
63051
|
+
* "remittance_advice_id": null
|
|
63052
|
+
* }
|
|
63053
|
+
* }
|
|
63054
|
+
*/
|
|
63055
|
+
"application/json": {
|
|
63056
|
+
result: {
|
|
63057
|
+
/** @description True when the change was made */
|
|
63058
|
+
ok: boolean;
|
|
63059
|
+
/** @description What happened, ready to show a person */
|
|
63060
|
+
message: string;
|
|
63061
|
+
/** @description The conversation as it now stands */
|
|
63062
|
+
conversation: {
|
|
63063
|
+
/** @description Conversation id (thread_id on every conversation operation) */
|
|
63064
|
+
id: number;
|
|
63065
|
+
/** @description email or sms */
|
|
63066
|
+
channel?: string | null;
|
|
63067
|
+
/** @description Subject as the outside party wrote it */
|
|
63068
|
+
subject?: string | null;
|
|
63069
|
+
/** @description Home team */
|
|
63070
|
+
queue_key?: string | null;
|
|
63071
|
+
/** @description Home team first, then the teams it is also in */
|
|
63072
|
+
queue_keys: unknown[];
|
|
63073
|
+
/** @description open, awaiting_reply or closed */
|
|
63074
|
+
state: string;
|
|
63075
|
+
/** @description Owner */
|
|
63076
|
+
assigned_user_id?: number | null;
|
|
63077
|
+
/** @description Owner and everyone it is shared with */
|
|
63078
|
+
member_user_ids: unknown[];
|
|
63079
|
+
/** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
|
|
63080
|
+
screened_category?: string | null;
|
|
63081
|
+
/** @description Linked record type, for example load or customer_invoice */
|
|
63082
|
+
related_type?: string | null;
|
|
63083
|
+
/** @description Linked record id */
|
|
63084
|
+
related_id?: number | null;
|
|
63085
|
+
/**
|
|
63086
|
+
* Format: date-time
|
|
63087
|
+
* @description When the outside party started waiting on us
|
|
63088
|
+
*/
|
|
63089
|
+
awaiting_reply_since?: string | null;
|
|
63090
|
+
/**
|
|
63091
|
+
* Format: date-time
|
|
63092
|
+
* @description Last message received
|
|
63093
|
+
*/
|
|
63094
|
+
last_inbound_at?: string | null;
|
|
63095
|
+
/**
|
|
63096
|
+
* Format: date-time
|
|
63097
|
+
* @description Last message sent
|
|
63098
|
+
*/
|
|
63099
|
+
last_outbound_at?: string | null;
|
|
63100
|
+
/**
|
|
63101
|
+
* Format: date-time
|
|
63102
|
+
* @description When it was closed
|
|
63103
|
+
*/
|
|
63104
|
+
closed_at?: string | null;
|
|
63105
|
+
};
|
|
63106
|
+
/** @description queued, on_file (already captured) or not_queued */
|
|
63107
|
+
status: string;
|
|
63108
|
+
/** @description The remittance advice record, when there is one */
|
|
63109
|
+
remittance_advice_id?: number | null;
|
|
63110
|
+
};
|
|
63111
|
+
};
|
|
63112
|
+
};
|
|
63113
|
+
};
|
|
63114
|
+
202: components["responses"]["Proposal"];
|
|
63115
|
+
/** @description Refused: credits_exhausted. */
|
|
63116
|
+
402: {
|
|
63117
|
+
headers: {
|
|
63118
|
+
[name: string]: unknown;
|
|
63119
|
+
};
|
|
63120
|
+
content: {
|
|
63121
|
+
"application/json": components["schemas"]["OperationError"];
|
|
63122
|
+
};
|
|
63123
|
+
};
|
|
63124
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
63125
|
+
403: {
|
|
63126
|
+
headers: {
|
|
63127
|
+
[name: string]: unknown;
|
|
63128
|
+
};
|
|
63129
|
+
content: {
|
|
63130
|
+
"application/json": components["schemas"]["OperationError"];
|
|
63131
|
+
};
|
|
63132
|
+
};
|
|
63133
|
+
/** @description Refused: not_found. */
|
|
63134
|
+
404: {
|
|
63135
|
+
headers: {
|
|
63136
|
+
[name: string]: unknown;
|
|
63137
|
+
};
|
|
63138
|
+
content: {
|
|
63139
|
+
"application/json": components["schemas"]["OperationError"];
|
|
63140
|
+
};
|
|
63141
|
+
};
|
|
63142
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
63143
|
+
409: {
|
|
63144
|
+
headers: {
|
|
63145
|
+
[name: string]: unknown;
|
|
63146
|
+
};
|
|
63147
|
+
content: {
|
|
63148
|
+
"application/json": components["schemas"]["OperationError"];
|
|
63149
|
+
};
|
|
63150
|
+
};
|
|
63151
|
+
/** @description Refused: operation_retired. */
|
|
63152
|
+
410: {
|
|
63153
|
+
headers: {
|
|
63154
|
+
[name: string]: unknown;
|
|
63155
|
+
};
|
|
63156
|
+
content: {
|
|
63157
|
+
"application/json": components["schemas"]["OperationError"];
|
|
63158
|
+
};
|
|
63159
|
+
};
|
|
63160
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
63161
|
+
422: {
|
|
63162
|
+
headers: {
|
|
63163
|
+
[name: string]: unknown;
|
|
63164
|
+
};
|
|
63165
|
+
content: {
|
|
63166
|
+
"application/json": components["schemas"]["OperationError"];
|
|
63167
|
+
};
|
|
63168
|
+
};
|
|
63169
|
+
/** @description Refused: rate_limited. */
|
|
63170
|
+
429: {
|
|
63171
|
+
headers: {
|
|
63172
|
+
[name: string]: unknown;
|
|
63173
|
+
};
|
|
63174
|
+
content: {
|
|
63175
|
+
"application/json": components["schemas"]["OperationError"];
|
|
63176
|
+
};
|
|
63177
|
+
};
|
|
63178
|
+
};
|
|
63179
|
+
};
|
|
63180
|
+
"ops.inbox.conversations.change_load": {
|
|
62720
63181
|
parameters: {
|
|
62721
63182
|
query?: never;
|
|
62722
63183
|
header?: {
|
|
@@ -62732,17 +63193,23 @@ export interface operations {
|
|
|
62732
63193
|
content: {
|
|
62733
63194
|
/**
|
|
62734
63195
|
* @example {
|
|
62735
|
-
* "thread_id":
|
|
62736
|
-
* "
|
|
63196
|
+
* "thread_id": 8,
|
|
63197
|
+
* "from_load_id": 1,
|
|
63198
|
+
* "to_load_id": 2,
|
|
63199
|
+
* "copy_attachment_ids": [
|
|
63200
|
+
* 1
|
|
63201
|
+
* ]
|
|
62737
63202
|
* }
|
|
62738
63203
|
*/
|
|
62739
63204
|
"application/json": {
|
|
62740
63205
|
/** @description The conversation */
|
|
62741
63206
|
thread_id: number;
|
|
62742
|
-
/** @description The load
|
|
62743
|
-
|
|
62744
|
-
/** @description The
|
|
62745
|
-
|
|
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;
|
|
62746
63213
|
};
|
|
62747
63214
|
};
|
|
62748
63215
|
};
|
|
@@ -62757,11 +63224,11 @@ export interface operations {
|
|
|
62757
63224
|
* @example {
|
|
62758
63225
|
* "result": {
|
|
62759
63226
|
* "ok": true,
|
|
62760
|
-
* "message": "
|
|
63227
|
+
* "message": "Moved to LD-5H-2002. 1 file copied.",
|
|
62761
63228
|
* "conversation": {
|
|
62762
|
-
* "id":
|
|
63229
|
+
* "id": 8,
|
|
62763
63230
|
* "channel": "email",
|
|
62764
|
-
* "subject": "
|
|
63231
|
+
* "subject": "POD for LD-5H-2002",
|
|
62765
63232
|
* "queue_key": "receivables",
|
|
62766
63233
|
* "queue_keys": [
|
|
62767
63234
|
* "receivables"
|
|
@@ -62770,14 +63237,24 @@ export interface operations {
|
|
|
62770
63237
|
* "assigned_user_id": null,
|
|
62771
63238
|
* "member_user_ids": [],
|
|
62772
63239
|
* "screened_category": null,
|
|
62773
|
-
* "related_type": "
|
|
62774
|
-
* "related_id":
|
|
63240
|
+
* "related_type": "load",
|
|
63241
|
+
* "related_id": 2,
|
|
62775
63242
|
* "awaiting_reply_since": "2026-10-20T14:00:00Z",
|
|
62776
63243
|
* "last_inbound_at": "2026-10-20T14:00:00Z",
|
|
62777
63244
|
* "last_outbound_at": null,
|
|
62778
63245
|
* "closed_at": null
|
|
62779
63246
|
* },
|
|
62780
|
-
* "
|
|
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": []
|
|
62781
63258
|
* }
|
|
62782
63259
|
* }
|
|
62783
63260
|
*/
|
|
@@ -62832,8 +63309,39 @@ export interface operations {
|
|
|
62832
63309
|
*/
|
|
62833
63310
|
closed_at?: string | null;
|
|
62834
63311
|
};
|
|
62835
|
-
/** @description The
|
|
62836
|
-
|
|
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
|
+
}[];
|
|
62837
63345
|
};
|
|
62838
63346
|
};
|
|
62839
63347
|
};
|
|
@@ -62904,7 +63412,7 @@ export interface operations {
|
|
|
62904
63412
|
};
|
|
62905
63413
|
};
|
|
62906
63414
|
};
|
|
62907
|
-
"ops.inbox.conversations.
|
|
63415
|
+
"ops.inbox.conversations.claim": {
|
|
62908
63416
|
parameters: {
|
|
62909
63417
|
query?: never;
|
|
62910
63418
|
header?: {
|
|
@@ -62940,7 +63448,7 @@ export interface operations {
|
|
|
62940
63448
|
* @example {
|
|
62941
63449
|
* "result": {
|
|
62942
63450
|
* "ok": true,
|
|
62943
|
-
* "message": "
|
|
63451
|
+
* "message": "Conversation claimed.",
|
|
62944
63452
|
* "conversation": {
|
|
62945
63453
|
* "id": 1,
|
|
62946
63454
|
* "channel": "email",
|
|
@@ -62950,8 +63458,10 @@ export interface operations {
|
|
|
62950
63458
|
* "receivables"
|
|
62951
63459
|
* ],
|
|
62952
63460
|
* "state": "awaiting_reply",
|
|
62953
|
-
* "assigned_user_id":
|
|
62954
|
-
* "member_user_ids": [
|
|
63461
|
+
* "assigned_user_id": 1,
|
|
63462
|
+
* "member_user_ids": [
|
|
63463
|
+
* 1
|
|
63464
|
+
* ],
|
|
62955
63465
|
* "screened_category": null,
|
|
62956
63466
|
* "related_type": null,
|
|
62957
63467
|
* "related_id": null,
|
|
@@ -62960,8 +63470,8 @@ export interface operations {
|
|
|
62960
63470
|
* "last_outbound_at": null,
|
|
62961
63471
|
* "closed_at": null
|
|
62962
63472
|
* },
|
|
62963
|
-
* "
|
|
62964
|
-
* "
|
|
63473
|
+
* "claimed": true,
|
|
63474
|
+
* "assigned_user_id": 1
|
|
62965
63475
|
* }
|
|
62966
63476
|
* }
|
|
62967
63477
|
*/
|
|
@@ -63016,10 +63526,10 @@ export interface operations {
|
|
|
63016
63526
|
*/
|
|
63017
63527
|
closed_at?: string | null;
|
|
63018
63528
|
};
|
|
63019
|
-
/** @description
|
|
63020
|
-
|
|
63021
|
-
/** @description
|
|
63022
|
-
|
|
63529
|
+
/** @description False when someone else already owns it */
|
|
63530
|
+
claimed: boolean;
|
|
63531
|
+
/** @description Owner after the claim */
|
|
63532
|
+
assigned_user_id?: number | null;
|
|
63023
63533
|
};
|
|
63024
63534
|
};
|
|
63025
63535
|
};
|
|
@@ -63090,7 +63600,7 @@ export interface operations {
|
|
|
63090
63600
|
};
|
|
63091
63601
|
};
|
|
63092
63602
|
};
|
|
63093
|
-
"ops.inbox.conversations.
|
|
63603
|
+
"ops.inbox.conversations.close": {
|
|
63094
63604
|
parameters: {
|
|
63095
63605
|
query?: never;
|
|
63096
63606
|
header?: {
|
|
@@ -63126,7 +63636,7 @@ export interface operations {
|
|
|
63126
63636
|
* @example {
|
|
63127
63637
|
* "result": {
|
|
63128
63638
|
* "ok": true,
|
|
63129
|
-
* "message": "Conversation
|
|
63639
|
+
* "message": "Conversation closed. Find it under Closed.",
|
|
63130
63640
|
* "conversation": {
|
|
63131
63641
|
* "id": 1,
|
|
63132
63642
|
* "channel": "email",
|
|
@@ -63135,21 +63645,17 @@ export interface operations {
|
|
|
63135
63645
|
* "queue_keys": [
|
|
63136
63646
|
* "receivables"
|
|
63137
63647
|
* ],
|
|
63138
|
-
* "state": "
|
|
63139
|
-
* "assigned_user_id":
|
|
63140
|
-
* "member_user_ids": [
|
|
63141
|
-
* 1
|
|
63142
|
-
* ],
|
|
63648
|
+
* "state": "closed",
|
|
63649
|
+
* "assigned_user_id": null,
|
|
63650
|
+
* "member_user_ids": [],
|
|
63143
63651
|
* "screened_category": null,
|
|
63144
63652
|
* "related_type": null,
|
|
63145
63653
|
* "related_id": null,
|
|
63146
|
-
* "awaiting_reply_since":
|
|
63654
|
+
* "awaiting_reply_since": null,
|
|
63147
63655
|
* "last_inbound_at": "2026-10-20T14:00:00Z",
|
|
63148
63656
|
* "last_outbound_at": null,
|
|
63149
|
-
* "closed_at":
|
|
63150
|
-
* }
|
|
63151
|
-
* "claimed": true,
|
|
63152
|
-
* "assigned_user_id": 1
|
|
63657
|
+
* "closed_at": "2026-10-20T15:00:00Z"
|
|
63658
|
+
* }
|
|
63153
63659
|
* }
|
|
63154
63660
|
* }
|
|
63155
63661
|
*/
|
|
@@ -63204,10 +63710,6 @@ export interface operations {
|
|
|
63204
63710
|
*/
|
|
63205
63711
|
closed_at?: string | null;
|
|
63206
63712
|
};
|
|
63207
|
-
/** @description False when someone else already owns it */
|
|
63208
|
-
claimed: boolean;
|
|
63209
|
-
/** @description Owner after the claim */
|
|
63210
|
-
assigned_user_id?: number | null;
|
|
63211
63713
|
};
|
|
63212
63714
|
};
|
|
63213
63715
|
};
|
|
@@ -63278,7 +63780,7 @@ export interface operations {
|
|
|
63278
63780
|
};
|
|
63279
63781
|
};
|
|
63280
63782
|
};
|
|
63281
|
-
"ops.inbox.conversations.
|
|
63783
|
+
"ops.inbox.conversations.detach_load": {
|
|
63282
63784
|
parameters: {
|
|
63283
63785
|
query?: never;
|
|
63284
63786
|
header?: {
|
|
@@ -63294,12 +63796,15 @@ export interface operations {
|
|
|
63294
63796
|
content: {
|
|
63295
63797
|
/**
|
|
63296
63798
|
* @example {
|
|
63297
|
-
* "thread_id":
|
|
63799
|
+
* "thread_id": 8,
|
|
63800
|
+
* "load_id": 1
|
|
63298
63801
|
* }
|
|
63299
63802
|
*/
|
|
63300
63803
|
"application/json": {
|
|
63301
63804
|
/** @description The conversation */
|
|
63302
63805
|
thread_id: number;
|
|
63806
|
+
/** @description A load on the conversation (from inbox.conversations.get); links made by remittance advice are refused */
|
|
63807
|
+
load_id: number;
|
|
63303
63808
|
};
|
|
63304
63809
|
};
|
|
63305
63810
|
};
|
|
@@ -63314,26 +63819,29 @@ export interface operations {
|
|
|
63314
63819
|
* @example {
|
|
63315
63820
|
* "result": {
|
|
63316
63821
|
* "ok": true,
|
|
63317
|
-
* "message": "
|
|
63822
|
+
* "message": "LD-4G-1001 removed. You can attach this conversation again.",
|
|
63318
63823
|
* "conversation": {
|
|
63319
|
-
* "id":
|
|
63824
|
+
* "id": 8,
|
|
63320
63825
|
* "channel": "email",
|
|
63321
|
-
* "subject": "
|
|
63826
|
+
* "subject": "POD for LD-5H-2002",
|
|
63322
63827
|
* "queue_key": "receivables",
|
|
63323
63828
|
* "queue_keys": [
|
|
63324
63829
|
* "receivables"
|
|
63325
63830
|
* ],
|
|
63326
|
-
* "state": "
|
|
63831
|
+
* "state": "awaiting_reply",
|
|
63327
63832
|
* "assigned_user_id": null,
|
|
63328
63833
|
* "member_user_ids": [],
|
|
63329
63834
|
* "screened_category": null,
|
|
63330
63835
|
* "related_type": null,
|
|
63331
63836
|
* "related_id": null,
|
|
63332
|
-
* "awaiting_reply_since":
|
|
63837
|
+
* "awaiting_reply_since": "2026-10-20T14:00:00Z",
|
|
63333
63838
|
* "last_inbound_at": "2026-10-20T14:00:00Z",
|
|
63334
63839
|
* "last_outbound_at": null,
|
|
63335
|
-
* "closed_at":
|
|
63336
|
-
* }
|
|
63840
|
+
* "closed_at": null
|
|
63841
|
+
* },
|
|
63842
|
+
* "removed_load_id": 1,
|
|
63843
|
+
* "reopened": true,
|
|
63844
|
+
* "left_documents": []
|
|
63337
63845
|
* }
|
|
63338
63846
|
* }
|
|
63339
63847
|
*/
|
|
@@ -63388,6 +63896,23 @@ export interface operations {
|
|
|
63388
63896
|
*/
|
|
63389
63897
|
closed_at?: string | null;
|
|
63390
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
|
+
}[];
|
|
63391
63916
|
};
|
|
63392
63917
|
};
|
|
63393
63918
|
};
|
|
@@ -63474,7 +63999,7 @@ export interface operations {
|
|
|
63474
63999
|
content: {
|
|
63475
64000
|
/**
|
|
63476
64001
|
* @example {
|
|
63477
|
-
* "thread_id":
|
|
64002
|
+
* "thread_id": 8
|
|
63478
64003
|
* }
|
|
63479
64004
|
*/
|
|
63480
64005
|
"application/json": {
|
|
@@ -63494,9 +64019,9 @@ export interface operations {
|
|
|
63494
64019
|
* @example {
|
|
63495
64020
|
* "result": {
|
|
63496
64021
|
* "conversation": {
|
|
63497
|
-
* "id":
|
|
64022
|
+
* "id": 8,
|
|
63498
64023
|
* "channel": "email",
|
|
63499
|
-
* "subject": "
|
|
64024
|
+
* "subject": "POD for LD-5H-2002",
|
|
63500
64025
|
* "queue_key": "receivables",
|
|
63501
64026
|
* "queue_keys": [
|
|
63502
64027
|
* "receivables"
|
|
@@ -63505,19 +64030,30 @@ export interface operations {
|
|
|
63505
64030
|
* "assigned_user_id": null,
|
|
63506
64031
|
* "member_user_ids": [],
|
|
63507
64032
|
* "screened_category": null,
|
|
63508
|
-
* "related_type":
|
|
63509
|
-
* "related_id":
|
|
64033
|
+
* "related_type": "load",
|
|
64034
|
+
* "related_id": 1,
|
|
63510
64035
|
* "awaiting_reply_since": "2026-10-20T14:00:00Z",
|
|
63511
64036
|
* "last_inbound_at": "2026-10-20T14:00:00Z",
|
|
63512
64037
|
* "last_outbound_at": null,
|
|
63513
64038
|
* "closed_at": null
|
|
63514
64039
|
* },
|
|
63515
|
-
* "
|
|
64040
|
+
* "loads": [
|
|
63516
64041
|
* {
|
|
63517
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,
|
|
63518
64054
|
* "direction": "inbound",
|
|
63519
|
-
* "from": "
|
|
63520
|
-
* "subject": "
|
|
64055
|
+
* "from": "dispatch@broker.example",
|
|
64056
|
+
* "subject": "POD for LD-5H-2002",
|
|
63521
64057
|
* "body": "Thanks for the invoice.",
|
|
63522
64058
|
* "status": null,
|
|
63523
64059
|
* "at": "2026-10-20T14:00:00Z"
|
|
@@ -63574,6 +64110,23 @@ export interface operations {
|
|
|
63574
64110
|
*/
|
|
63575
64111
|
closed_at?: string | null;
|
|
63576
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
|
+
}[];
|
|
63577
64130
|
/** @description Latest messages, oldest first */
|
|
63578
64131
|
messages: {
|
|
63579
64132
|
/** @description Message id within its direction (reply_to_message_id) */
|
|
@@ -63666,6 +64219,204 @@ export interface operations {
|
|
|
63666
64219
|
};
|
|
63667
64220
|
};
|
|
63668
64221
|
};
|
|
64222
|
+
"ops.inbox.conversations.load_file_preview": {
|
|
64223
|
+
parameters: {
|
|
64224
|
+
query?: never;
|
|
64225
|
+
header?: {
|
|
64226
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
64227
|
+
"Idempotency-Key"?: string;
|
|
64228
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
64229
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
64230
|
+
};
|
|
64231
|
+
path?: never;
|
|
64232
|
+
cookie?: never;
|
|
64233
|
+
};
|
|
64234
|
+
requestBody?: {
|
|
64235
|
+
content: {
|
|
64236
|
+
/**
|
|
64237
|
+
* @example {
|
|
64238
|
+
* "thread_id": 8,
|
|
64239
|
+
* "to_load_id": 2,
|
|
64240
|
+
* "from_load_id": 1
|
|
64241
|
+
* }
|
|
64242
|
+
*/
|
|
64243
|
+
"application/json": {
|
|
64244
|
+
/** @description The conversation */
|
|
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;
|
|
64252
|
+
};
|
|
64253
|
+
};
|
|
64254
|
+
};
|
|
64255
|
+
responses: {
|
|
64256
|
+
/** @description The operation ran. */
|
|
64257
|
+
200: {
|
|
64258
|
+
headers: {
|
|
64259
|
+
[name: string]: unknown;
|
|
64260
|
+
};
|
|
64261
|
+
content: {
|
|
64262
|
+
/**
|
|
64263
|
+
* @example {
|
|
64264
|
+
* "result": {
|
|
64265
|
+
* "to_load": {
|
|
64266
|
+
* "id": 2,
|
|
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
|
+
* ]
|
|
64293
|
+
* }
|
|
64294
|
+
* }
|
|
64295
|
+
*/
|
|
64296
|
+
"application/json": {
|
|
64297
|
+
result: {
|
|
64298
|
+
/** @description Where the files would be copied */
|
|
64299
|
+
to_load: {
|
|
64300
|
+
/** @description Load id */
|
|
64301
|
+
id: number;
|
|
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;
|
|
64334
|
+
/**
|
|
64335
|
+
* Format: date-time
|
|
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
|
+
}[];
|
|
64350
|
+
};
|
|
64351
|
+
};
|
|
64352
|
+
};
|
|
64353
|
+
};
|
|
64354
|
+
202: components["responses"]["Proposal"];
|
|
64355
|
+
/** @description Refused: credits_exhausted. */
|
|
64356
|
+
402: {
|
|
64357
|
+
headers: {
|
|
64358
|
+
[name: string]: unknown;
|
|
64359
|
+
};
|
|
64360
|
+
content: {
|
|
64361
|
+
"application/json": components["schemas"]["OperationError"];
|
|
64362
|
+
};
|
|
64363
|
+
};
|
|
64364
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
64365
|
+
403: {
|
|
64366
|
+
headers: {
|
|
64367
|
+
[name: string]: unknown;
|
|
64368
|
+
};
|
|
64369
|
+
content: {
|
|
64370
|
+
"application/json": components["schemas"]["OperationError"];
|
|
64371
|
+
};
|
|
64372
|
+
};
|
|
64373
|
+
/** @description Refused: not_found. */
|
|
64374
|
+
404: {
|
|
64375
|
+
headers: {
|
|
64376
|
+
[name: string]: unknown;
|
|
64377
|
+
};
|
|
64378
|
+
content: {
|
|
64379
|
+
"application/json": components["schemas"]["OperationError"];
|
|
64380
|
+
};
|
|
64381
|
+
};
|
|
64382
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
64383
|
+
409: {
|
|
64384
|
+
headers: {
|
|
64385
|
+
[name: string]: unknown;
|
|
64386
|
+
};
|
|
64387
|
+
content: {
|
|
64388
|
+
"application/json": components["schemas"]["OperationError"];
|
|
64389
|
+
};
|
|
64390
|
+
};
|
|
64391
|
+
/** @description Refused: operation_retired. */
|
|
64392
|
+
410: {
|
|
64393
|
+
headers: {
|
|
64394
|
+
[name: string]: unknown;
|
|
64395
|
+
};
|
|
64396
|
+
content: {
|
|
64397
|
+
"application/json": components["schemas"]["OperationError"];
|
|
64398
|
+
};
|
|
64399
|
+
};
|
|
64400
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
64401
|
+
422: {
|
|
64402
|
+
headers: {
|
|
64403
|
+
[name: string]: unknown;
|
|
64404
|
+
};
|
|
64405
|
+
content: {
|
|
64406
|
+
"application/json": components["schemas"]["OperationError"];
|
|
64407
|
+
};
|
|
64408
|
+
};
|
|
64409
|
+
/** @description Refused: rate_limited. */
|
|
64410
|
+
429: {
|
|
64411
|
+
headers: {
|
|
64412
|
+
[name: string]: unknown;
|
|
64413
|
+
};
|
|
64414
|
+
content: {
|
|
64415
|
+
"application/json": components["schemas"]["OperationError"];
|
|
64416
|
+
};
|
|
64417
|
+
};
|
|
64418
|
+
};
|
|
64419
|
+
};
|
|
63669
64420
|
"ops.inbox.conversations.load_search": {
|
|
63670
64421
|
parameters: {
|
|
63671
64422
|
query?: never;
|
|
@@ -63709,7 +64460,12 @@ export interface operations {
|
|
|
63709
64460
|
* "id": 1,
|
|
63710
64461
|
* "load_number": "LD-4G-1001",
|
|
63711
64462
|
* "customer_name": "Acme Logistics",
|
|
63712
|
-
* "order_number": null
|
|
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"
|
|
63713
64469
|
* }
|
|
63714
64470
|
* ]
|
|
63715
64471
|
* }
|
|
@@ -63717,7 +64473,7 @@ export interface operations {
|
|
|
63717
64473
|
*/
|
|
63718
64474
|
"application/json": {
|
|
63719
64475
|
result: {
|
|
63720
|
-
/** @description Loads you can see that match */
|
|
64476
|
+
/** @description Loads you can see that match, newest first; cancelled and TONU loads included */
|
|
63721
64477
|
matches: {
|
|
63722
64478
|
/** @description Pass as load_id to inbox.conversations.attach_load */
|
|
63723
64479
|
id: number;
|
|
@@ -63727,6 +64483,16 @@ export interface operations {
|
|
|
63727
64483
|
customer_name?: string | null;
|
|
63728
64484
|
/** @description Customer order or reference number */
|
|
63729
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;
|
|
63730
64496
|
}[];
|
|
63731
64497
|
};
|
|
63732
64498
|
};
|