@nuanu-ai/agentify-contracts 0.6.0 → 0.8.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/api.d.ts CHANGED
@@ -42,11 +42,10 @@
42
42
  * later by a merchant who took an order on and now has the goods or has run
43
43
  * out of them. The order machine keeps the same two apart, and in the
44
44
  * synchronous mode it is the returned answer that exists and the explicit
45
- * calls that do not. The addendum of 2026-08-26 to ADR-0004 settles this; §2
46
- * of that decision, read alone, leaves the synchronous handler with no address
47
- * at all.
45
+ * calls that do not. ADR-0004 §2 settles this.
48
46
  */
49
47
  import { z } from "zod";
48
+ import type { Fulfillment, PublicCard } from "./card.js";
50
49
  /**
51
50
  * An order together with the word for where it stands.
52
51
  *
@@ -69,10 +68,28 @@ export declare const OrderWithStatusSchema: z.ZodObject<{
69
68
  as_of: z.ZodISODateTime;
70
69
  }, z.core.$strict>;
71
70
  price_id: z.ZodOptional<z.ZodString>;
71
+ ship_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
72
+ name: z.ZodString;
73
+ line_one: z.ZodString;
74
+ line_two: z.ZodOptional<z.ZodString>;
75
+ city: z.ZodString;
76
+ state: z.ZodOptional<z.ZodString>;
77
+ postal_code: z.ZodOptional<z.ZodString>;
78
+ country: z.ZodString;
79
+ phone_number: z.ZodString;
80
+ }, z.core.$strict>, z.ZodObject<{
81
+ country: z.ZodString;
82
+ state: z.ZodOptional<z.ZodString>;
83
+ city: z.ZodString;
84
+ postal_code: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strict>, z.ZodObject<{
86
+ erased_at: z.ZodISODateTime;
87
+ }, z.core.$strict>]>>;
72
88
  test: z.ZodBoolean;
73
89
  status: z.ZodEnum<{
74
90
  delivered: "delivered";
75
91
  in_progress: "in_progress";
92
+ shipped: "shipped";
76
93
  rejected: "rejected";
77
94
  payment_unresolved: "payment_unresolved";
78
95
  declined: "declined";
@@ -103,10 +120,28 @@ export declare const OrderListSchema: z.ZodObject<{
103
120
  as_of: z.ZodISODateTime;
104
121
  }, z.core.$strict>;
105
122
  price_id: z.ZodOptional<z.ZodString>;
123
+ ship_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
124
+ name: z.ZodString;
125
+ line_one: z.ZodString;
126
+ line_two: z.ZodOptional<z.ZodString>;
127
+ city: z.ZodString;
128
+ state: z.ZodOptional<z.ZodString>;
129
+ postal_code: z.ZodOptional<z.ZodString>;
130
+ country: z.ZodString;
131
+ phone_number: z.ZodString;
132
+ }, z.core.$strict>, z.ZodObject<{
133
+ country: z.ZodString;
134
+ state: z.ZodOptional<z.ZodString>;
135
+ city: z.ZodString;
136
+ postal_code: z.ZodOptional<z.ZodString>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ erased_at: z.ZodISODateTime;
139
+ }, z.core.$strict>]>>;
106
140
  test: z.ZodBoolean;
107
141
  status: z.ZodEnum<{
108
142
  delivered: "delivered";
109
143
  in_progress: "in_progress";
144
+ shipped: "shipped";
110
145
  rejected: "rejected";
111
146
  payment_unresolved: "payment_unresolved";
112
147
  declined: "declined";
@@ -158,7 +193,7 @@ export declare const MerchantCardListSchema: z.ZodObject<{
158
193
  required: z.ZodOptional<z.ZodBoolean>;
159
194
  title: z.ZodOptional<z.ZodString>;
160
195
  }, z.core.$strict>>>>;
161
- result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
196
+ result: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
162
197
  type: z.ZodEnum<{
163
198
  string: "string";
164
199
  number: "number";
@@ -167,18 +202,20 @@ export declare const MerchantCardListSchema: z.ZodObject<{
167
202
  }>;
168
203
  required: z.ZodOptional<z.ZodBoolean>;
169
204
  title: z.ZodOptional<z.ZodString>;
170
- }, z.core.$strict>>>;
205
+ }, z.core.$strict>>>>;
171
206
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
172
207
  fulfillment: z.ZodDefault<z.ZodEnum<{
173
208
  sync: "sync";
174
209
  async: "async";
175
210
  confirm: "confirm";
211
+ ship: "ship";
176
212
  }>>;
177
213
  price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
178
214
  url: z.ZodURL;
179
215
  }, z.core.$strict>]>>;
180
216
  confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
181
217
  fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
218
+ ship_within_seconds: z.ZodOptional<z.ZodInt>;
182
219
  }, z.core.$strict>;
183
220
  selling: z.ZodEnum<{
184
221
  open: "open";
@@ -216,6 +253,7 @@ export declare const ReceiptListSchema: z.ZodObject<{
216
253
  outcome: z.ZodEnum<{
217
254
  delivered: "delivered";
218
255
  in_progress: "in_progress";
256
+ shipped: "shipped";
219
257
  refund_due: "refund_due";
220
258
  refunded: "refunded";
221
259
  }>;
@@ -295,6 +333,23 @@ export declare const WorkerPollResponseSchema: z.ZodObject<{
295
333
  as_of: z.ZodISODateTime;
296
334
  }, z.core.$strict>;
297
335
  price_id: z.ZodOptional<z.ZodString>;
336
+ ship_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
337
+ name: z.ZodString;
338
+ line_one: z.ZodString;
339
+ line_two: z.ZodOptional<z.ZodString>;
340
+ city: z.ZodString;
341
+ state: z.ZodOptional<z.ZodString>;
342
+ postal_code: z.ZodOptional<z.ZodString>;
343
+ country: z.ZodString;
344
+ phone_number: z.ZodString;
345
+ }, z.core.$strict>, z.ZodObject<{
346
+ country: z.ZodString;
347
+ state: z.ZodOptional<z.ZodString>;
348
+ city: z.ZodString;
349
+ postal_code: z.ZodOptional<z.ZodString>;
350
+ }, z.core.$strict>, z.ZodObject<{
351
+ erased_at: z.ZodISODateTime;
352
+ }, z.core.$strict>]>>;
298
353
  test: z.ZodBoolean;
299
354
  }, z.core.$strict>;
300
355
  }, z.core.$strict>, z.ZodObject<{
@@ -304,6 +359,12 @@ export declare const WorkerPollResponseSchema: z.ZodObject<{
304
359
  payload: z.ZodObject<{
305
360
  merchant_item_id: z.ZodString;
306
361
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
362
+ ship_to: z.ZodOptional<z.ZodObject<{
363
+ country: z.ZodString;
364
+ state: z.ZodOptional<z.ZodString>;
365
+ city: z.ZodString;
366
+ postal_code: z.ZodOptional<z.ZodString>;
367
+ }, z.core.$strict>>;
307
368
  price_id: z.ZodString;
308
369
  purpose: z.ZodEnum<{
309
370
  purchase: "purchase";
@@ -453,49 +514,24 @@ export declare const QuoteAnswerAckSchema: z.ZodObject<{
453
514
  */
454
515
  export declare const PurchaseRequestSchema: z.ZodObject<{
455
516
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
517
+ ship_to: z.ZodOptional<z.ZodObject<{
518
+ name: z.ZodString;
519
+ line_one: z.ZodString;
520
+ line_two: z.ZodOptional<z.ZodString>;
521
+ city: z.ZodString;
522
+ state: z.ZodOptional<z.ZodString>;
523
+ postal_code: z.ZodOptional<z.ZodString>;
524
+ country: z.ZodString;
525
+ phone_number: z.ZodString;
526
+ }, z.core.$strict>>;
456
527
  }, z.core.$strict>;
457
- /**
458
- * What became of a purchase, told to the agent that made it.
459
- *
460
- * The shape of the list is the decision rather than its length. This document
461
- * is what the buyer is owed — where their order stands, what it cost them, the
462
- * goods once those exist, and where to ask again — and it is deliberately
463
- * smaller than the merchant's own view of the same order. It carries no
464
- * merchant, no merchant's key for the product, none of the parameters the
465
- * buyer sent and nothing about any other order, because whoever holds an
466
- * order's identifier can read it (ADR-0011) and an answer assembled from the
467
- * merchant's record would hand all of that to whoever guessed one.
468
- *
469
- * Both of the agent's doors answer in it, and that is one concept rather than
470
- * two: the purchase and the later read are the same question — where does my
471
- * order stand — asked at two moments. Two documents for it would be two
472
- * readers for an integrator to write, and the one that came back from the
473
- * purchase was the merchant's own, with the merchant's key for the product and
474
- * the buyer's own parameters in it. What a purchase answers with beyond this
475
- * document is the payment exchange that precedes it, which is a header and not
476
- * a document at all.
477
- *
478
- * The two nullable fields are required rather than optional, and that is the
479
- * fifth gate written into a shape. `price` is null for an order nobody ever
480
- * named a price for — a product that was gone, a price question that went
481
- * unanswered — and `delivered` is null while there are no goods to hand over.
482
- * Left out instead, either would be a silence a reader cannot tell from an
483
- * oversight; present and null, it is a fact.
484
- *
485
- * The status vocabulary folds several of the machine's endings into `rejected`
486
- * on the argument that the reason travels separately, in the refusal code, and
487
- * `refusal` is where it travels. It is optional because most endings have no
488
- * refusal behind them, and what remains coarse is said in that field's own
489
- * words rather than left to be discovered: a product that was gone and a
490
- * payment that failed its check both still arrive as a bare `rejected`,
491
- * because neither was worded by anybody.
492
- */
493
528
  export declare const AgentOrderStatusSchema: z.ZodObject<{
494
529
  order_id: z.ZodString;
495
530
  status_url: z.ZodURL;
496
- status: z.ZodEnum<{
531
+ status: z.ZodUnion<readonly [z.ZodEnum<{
497
532
  delivered: "delivered";
498
533
  in_progress: "in_progress";
534
+ shipped: "shipped";
499
535
  rejected: "rejected";
500
536
  payment_unresolved: "payment_unresolved";
501
537
  declined: "declined";
@@ -504,20 +540,35 @@ export declare const AgentOrderStatusSchema: z.ZodObject<{
504
540
  refund_due: "refund_due";
505
541
  refunded: "refunded";
506
542
  delivered_unpaid: "delivered_unpaid";
507
- }>;
543
+ }>, z.ZodString]>;
508
544
  price: z.ZodNullable<z.ZodObject<{
509
545
  amount: z.ZodString;
510
546
  currency: z.ZodString;
511
547
  at: z.ZodISODateTime;
512
548
  as_of: z.ZodISODateTime;
513
- }, z.core.$strict>>;
549
+ }, z.core.$loose>>;
514
550
  delivered: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
551
+ shipment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
552
+ carrier: z.ZodString;
553
+ tracking_number: z.ZodNullable<z.ZodString>;
554
+ tracking_url: z.ZodOptional<z.ZodString>;
555
+ shipped_at: z.ZodISODateTime;
556
+ estimated_delivery: z.ZodOptional<z.ZodObject<{
557
+ earliest: z.ZodISODateTime;
558
+ latest: z.ZodISODateTime;
559
+ }, z.core.$loose>>;
560
+ }, z.core.$loose>>>;
561
+ ship_by: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
515
562
  test: z.ZodBoolean;
516
563
  refusal: z.ZodOptional<z.ZodObject<{
517
564
  code: z.ZodString;
518
565
  message: z.ZodString;
519
- }, z.core.$strict>>;
520
- }, z.core.$strict>;
566
+ }, z.core.$loose>>;
567
+ seller: z.ZodObject<{
568
+ name: z.ZodNullable<z.ZodString>;
569
+ site: z.ZodNullable<z.ZodString>;
570
+ }, z.core.$loose>;
571
+ }, z.core.$loose>;
521
572
  /**
522
573
  * The catalog as an agent reads it.
523
574
  *
@@ -526,115 +577,30 @@ export declare const AgentOrderStatusSchema: z.ZodObject<{
526
577
  * Until then it makes no claim about completeness, and that is stated in the
527
578
  * document itself: an agent must not read the absence of a field about paging
528
579
  * as a promise that there is nothing more.
580
+ *
581
+ * It is read card by card (ADR-0006 §5). The storefront has no version, so a
582
+ * card of a mode or a shape added later reaches agents that still hold this
583
+ * contract, and one card they cannot read must leave every other card for
584
+ * sale. So the page holds its items as whatever they are, and `cardsOf` reads
585
+ * each one on its own against the card an agent reads.
529
586
  */
530
587
  export declare const CatalogPageSchema: z.ZodObject<{
531
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
532
- id: z.ZodString;
533
- title: z.ZodString;
534
- description: z.ZodString;
535
- price: z.ZodObject<{
536
- amount: z.ZodString;
537
- currency: z.ZodString;
538
- }, z.core.$strict>;
539
- as_of: z.ZodISODateTime;
540
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
541
- type: z.ZodEnum<{
542
- string: "string";
543
- number: "number";
544
- boolean: "boolean";
545
- integer: "integer";
546
- }>;
547
- required: z.ZodOptional<z.ZodBoolean>;
548
- title: z.ZodOptional<z.ZodString>;
549
- }, z.core.$strict>>>;
550
- result: z.ZodRecord<z.ZodString, z.ZodObject<{
551
- type: z.ZodEnum<{
552
- string: "string";
553
- number: "number";
554
- boolean: "boolean";
555
- integer: "integer";
556
- }>;
557
- required: z.ZodOptional<z.ZodBoolean>;
558
- title: z.ZodOptional<z.ZodString>;
559
- }, z.core.$strict>>;
560
- price_checked_at_purchase: z.ZodBoolean;
561
- fulfillment: z.ZodLiteral<"sync">;
562
- }, z.core.$strict>, z.ZodObject<{
563
- id: z.ZodString;
564
- title: z.ZodString;
565
- description: z.ZodString;
566
- price: z.ZodObject<{
567
- amount: z.ZodString;
568
- currency: z.ZodString;
569
- }, z.core.$strict>;
570
- as_of: z.ZodISODateTime;
571
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
572
- type: z.ZodEnum<{
573
- string: "string";
574
- number: "number";
575
- boolean: "boolean";
576
- integer: "integer";
577
- }>;
578
- required: z.ZodOptional<z.ZodBoolean>;
579
- title: z.ZodOptional<z.ZodString>;
580
- }, z.core.$strict>>>;
581
- result: z.ZodRecord<z.ZodString, z.ZodObject<{
582
- type: z.ZodEnum<{
583
- string: "string";
584
- number: "number";
585
- boolean: "boolean";
586
- integer: "integer";
587
- }>;
588
- required: z.ZodOptional<z.ZodBoolean>;
589
- title: z.ZodOptional<z.ZodString>;
590
- }, z.core.$strict>>;
591
- price_checked_at_purchase: z.ZodBoolean;
592
- fulfillment: z.ZodLiteral<"async">;
593
- fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
594
- }, z.core.$strict>, z.ZodObject<{
595
- id: z.ZodString;
596
- title: z.ZodString;
597
- description: z.ZodString;
598
- price: z.ZodObject<{
599
- amount: z.ZodString;
600
- currency: z.ZodString;
601
- }, z.core.$strict>;
602
- as_of: z.ZodISODateTime;
603
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
604
- type: z.ZodEnum<{
605
- string: "string";
606
- number: "number";
607
- boolean: "boolean";
608
- integer: "integer";
609
- }>;
610
- required: z.ZodOptional<z.ZodBoolean>;
611
- title: z.ZodOptional<z.ZodString>;
612
- }, z.core.$strict>>>;
613
- result: z.ZodRecord<z.ZodString, z.ZodObject<{
614
- type: z.ZodEnum<{
615
- string: "string";
616
- number: "number";
617
- boolean: "boolean";
618
- integer: "integer";
619
- }>;
620
- required: z.ZodOptional<z.ZodBoolean>;
621
- title: z.ZodOptional<z.ZodString>;
622
- }, z.core.$strict>>;
623
- price_checked_at_purchase: z.ZodBoolean;
624
- fulfillment: z.ZodLiteral<"confirm">;
625
- confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
626
- fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
627
- }, z.core.$strict>], "fulfillment">>;
628
- }, z.core.$strict>;
588
+ items: z.ZodArray<z.ZodUnknown>;
589
+ }, z.core.$loose>;
629
590
  /**
630
- * The methods this surface uses.
591
+ * The cards of a catalog page a reader of this contract can buy from, each read
592
+ * on its own.
631
593
  *
632
- * `DELETE` is here for the one call that removes rows rather than marking them,
633
- * and it earns the third verb rather than being folded into a POST: what it
634
- * does to a key is not what disabling one does, and a surface that spelled both
635
- * as a POST would be inviting a reader to think it was.
594
+ * Two kinds of item are passed over, and the rest of the page stands. One that
595
+ * does not read as a card at all, and one that does but is sold in a mode this
596
+ * contract does not name: its reader cannot know when such goods arrive or when
597
+ * the money moves, so it must not buy on it.
636
598
  */
637
- export declare const HTTP_METHODS: readonly ["GET", "POST", "DELETE"];
599
+ export declare const cardsOf: (page: CatalogPage) => (PublicCard & {
600
+ readonly fulfillment: Fulfillment;
601
+ })[];
602
+ /** The methods this surface uses. */
603
+ export declare const HTTP_METHODS: readonly ["GET", "POST"];
638
604
  export type HttpMethod = (typeof HTTP_METHODS)[number];
639
605
  /**
640
606
  * Which door a call is behind.
@@ -783,7 +749,7 @@ export type ErrorEnvelope = z.infer<typeof ErrorEnvelopeSchema>;
783
749
  * has to act on it belongs to the route that sends it and to the sentence the
784
750
  * refusal carries.
785
751
  */
786
- export declare const ERROR_CODES: readonly ["body_too_large", "body_undecodable", "call_refused", "charset_unsupported", "encoding_unsupported", "gateway_failed", "key_made_for_a_cabinet", "key_opened_this_call", "malformed_body", "malformed_query", "merchant_departed", "no_such_item", "no_such_key", "no_such_order", "no_such_route", "not_a_cabinet_key", "not_authorised", "not_invited", "not_selling", "not_this_purchase", "order_closed_before_it_was_priced", "order_not_priced_yet", "params_do_not_fit", "payment_already_spent", "payment_not_taken", "payment_not_verified", "wallet_change_not_announced", "wallet_change_nobody_to_tell", "wallet_change_raced", "wallet_change_unconfirmed"];
752
+ export declare const ERROR_CODES: readonly ["body_too_large", "body_undecodable", "call_refused", "charset_unsupported", "encoding_unsupported", "gateway_failed", "key_opened_this_call", "malformed_body", "malformed_query", "merchant_departed", "no_such_item", "no_such_key", "no_such_order", "no_such_route", "not_authorised", "not_selling", "not_this_purchase", "order_closed_before_it_was_priced", "order_not_priced_yet", "params_do_not_fit", "payment_already_spent", "payment_not_taken", "payment_not_verified", "ship_to_changed", "ship_to_does_not_fit"];
787
753
  /** One of the codes this gateway is known to refuse a call with. */
788
754
  export type ErrorCode = (typeof ERROR_CODES)[number];
789
755
  /**
@@ -880,7 +846,7 @@ export declare const API_ROUTES: Readonly<{
880
846
  required: z.ZodOptional<z.ZodBoolean>;
881
847
  title: z.ZodOptional<z.ZodString>;
882
848
  }, z.core.$strict>>>>;
883
- result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
849
+ result: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
884
850
  type: z.ZodEnum<{
885
851
  string: "string";
886
852
  number: "number";
@@ -889,18 +855,20 @@ export declare const API_ROUTES: Readonly<{
889
855
  }>;
890
856
  required: z.ZodOptional<z.ZodBoolean>;
891
857
  title: z.ZodOptional<z.ZodString>;
892
- }, z.core.$strict>>>;
858
+ }, z.core.$strict>>>>;
893
859
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
894
860
  fulfillment: z.ZodDefault<z.ZodEnum<{
895
861
  sync: "sync";
896
862
  async: "async";
897
863
  confirm: "confirm";
864
+ ship: "ship";
898
865
  }>>;
899
866
  price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
900
867
  url: z.ZodURL;
901
868
  }, z.core.$strict>]>>;
902
869
  confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
903
870
  fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
871
+ ship_within_seconds: z.ZodOptional<z.ZodInt>;
904
872
  }, z.core.$strict>;
905
873
  response: {
906
874
  document: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -954,7 +922,7 @@ export declare const API_ROUTES: Readonly<{
954
922
  required: z.ZodOptional<z.ZodBoolean>;
955
923
  title: z.ZodOptional<z.ZodString>;
956
924
  }, z.core.$strict>>>>;
957
- result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
925
+ result: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
958
926
  type: z.ZodEnum<{
959
927
  string: "string";
960
928
  number: "number";
@@ -963,18 +931,20 @@ export declare const API_ROUTES: Readonly<{
963
931
  }>;
964
932
  required: z.ZodOptional<z.ZodBoolean>;
965
933
  title: z.ZodOptional<z.ZodString>;
966
- }, z.core.$strict>>>;
934
+ }, z.core.$strict>>>>;
967
935
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
968
936
  fulfillment: z.ZodDefault<z.ZodEnum<{
969
937
  sync: "sync";
970
938
  async: "async";
971
939
  confirm: "confirm";
940
+ ship: "ship";
972
941
  }>>;
973
942
  price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
974
943
  url: z.ZodURL;
975
944
  }, z.core.$strict>]>>;
976
945
  confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
977
946
  fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
947
+ ship_within_seconds: z.ZodOptional<z.ZodInt>;
978
948
  }, z.core.$strict>;
979
949
  selling: z.ZodEnum<{
980
950
  open: "open";
@@ -1013,7 +983,7 @@ export declare const API_ROUTES: Readonly<{
1013
983
  required: z.ZodOptional<z.ZodBoolean>;
1014
984
  title: z.ZodOptional<z.ZodString>;
1015
985
  }, z.core.$strict>>>>;
1016
- result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
986
+ result: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
1017
987
  type: z.ZodEnum<{
1018
988
  string: "string";
1019
989
  number: "number";
@@ -1022,18 +992,20 @@ export declare const API_ROUTES: Readonly<{
1022
992
  }>;
1023
993
  required: z.ZodOptional<z.ZodBoolean>;
1024
994
  title: z.ZodOptional<z.ZodString>;
1025
- }, z.core.$strict>>>;
995
+ }, z.core.$strict>>>>;
1026
996
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1027
997
  fulfillment: z.ZodDefault<z.ZodEnum<{
1028
998
  sync: "sync";
1029
999
  async: "async";
1030
1000
  confirm: "confirm";
1001
+ ship: "ship";
1031
1002
  }>>;
1032
1003
  price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
1033
1004
  url: z.ZodURL;
1034
1005
  }, z.core.$strict>]>>;
1035
1006
  confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
1036
1007
  fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
1008
+ ship_within_seconds: z.ZodOptional<z.ZodInt>;
1037
1009
  }, z.core.$strict>;
1038
1010
  selling: z.ZodEnum<{
1039
1011
  open: "open";
@@ -1071,7 +1043,7 @@ export declare const API_ROUTES: Readonly<{
1071
1043
  required: z.ZodOptional<z.ZodBoolean>;
1072
1044
  title: z.ZodOptional<z.ZodString>;
1073
1045
  }, z.core.$strict>>>>;
1074
- result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
1046
+ result: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
1075
1047
  type: z.ZodEnum<{
1076
1048
  string: "string";
1077
1049
  number: "number";
@@ -1080,18 +1052,20 @@ export declare const API_ROUTES: Readonly<{
1080
1052
  }>;
1081
1053
  required: z.ZodOptional<z.ZodBoolean>;
1082
1054
  title: z.ZodOptional<z.ZodString>;
1083
- }, z.core.$strict>>>;
1055
+ }, z.core.$strict>>>>;
1084
1056
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1085
1057
  fulfillment: z.ZodDefault<z.ZodEnum<{
1086
1058
  sync: "sync";
1087
1059
  async: "async";
1088
1060
  confirm: "confirm";
1061
+ ship: "ship";
1089
1062
  }>>;
1090
1063
  price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
1091
1064
  url: z.ZodURL;
1092
1065
  }, z.core.$strict>]>>;
1093
1066
  confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
1094
1067
  fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
1068
+ ship_within_seconds: z.ZodOptional<z.ZodInt>;
1095
1069
  }, z.core.$strict>;
1096
1070
  selling: z.ZodEnum<{
1097
1071
  open: "open";
@@ -1135,7 +1109,7 @@ export declare const API_ROUTES: Readonly<{
1135
1109
  required: z.ZodOptional<z.ZodBoolean>;
1136
1110
  title: z.ZodOptional<z.ZodString>;
1137
1111
  }, z.core.$strict>>>>;
1138
- result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
1112
+ result: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
1139
1113
  type: z.ZodEnum<{
1140
1114
  string: "string";
1141
1115
  number: "number";
@@ -1144,18 +1118,20 @@ export declare const API_ROUTES: Readonly<{
1144
1118
  }>;
1145
1119
  required: z.ZodOptional<z.ZodBoolean>;
1146
1120
  title: z.ZodOptional<z.ZodString>;
1147
- }, z.core.$strict>>>;
1121
+ }, z.core.$strict>>>>;
1148
1122
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1149
1123
  fulfillment: z.ZodDefault<z.ZodEnum<{
1150
1124
  sync: "sync";
1151
1125
  async: "async";
1152
1126
  confirm: "confirm";
1127
+ ship: "ship";
1153
1128
  }>>;
1154
1129
  price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
1155
1130
  url: z.ZodURL;
1156
1131
  }, z.core.$strict>]>>;
1157
1132
  confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
1158
1133
  fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
1134
+ ship_within_seconds: z.ZodOptional<z.ZodInt>;
1159
1135
  }, z.core.$strict>;
1160
1136
  selling: z.ZodEnum<{
1161
1137
  open: "open";
@@ -1200,7 +1176,7 @@ export declare const API_ROUTES: Readonly<{
1200
1176
  required: z.ZodOptional<z.ZodBoolean>;
1201
1177
  title: z.ZodOptional<z.ZodString>;
1202
1178
  }, z.core.$strict>>>>;
1203
- result: z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
1179
+ result: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodObject<{
1204
1180
  type: z.ZodEnum<{
1205
1181
  string: "string";
1206
1182
  number: "number";
@@ -1209,18 +1185,20 @@ export declare const API_ROUTES: Readonly<{
1209
1185
  }>;
1210
1186
  required: z.ZodOptional<z.ZodBoolean>;
1211
1187
  title: z.ZodOptional<z.ZodString>;
1212
- }, z.core.$strict>>>;
1188
+ }, z.core.$strict>>>>;
1213
1189
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1214
1190
  fulfillment: z.ZodDefault<z.ZodEnum<{
1215
1191
  sync: "sync";
1216
1192
  async: "async";
1217
1193
  confirm: "confirm";
1194
+ ship: "ship";
1218
1195
  }>>;
1219
1196
  price_check: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"handler">, z.ZodObject<{
1220
1197
  url: z.ZodURL;
1221
1198
  }, z.core.$strict>]>>;
1222
1199
  confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
1223
1200
  fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
1201
+ ship_within_seconds: z.ZodOptional<z.ZodInt>;
1224
1202
  }, z.core.$strict>;
1225
1203
  selling: z.ZodEnum<{
1226
1204
  open: "open";
@@ -1232,21 +1210,6 @@ export declare const API_ROUTES: Readonly<{
1232
1210
  }, z.core.$strict>;
1233
1211
  };
1234
1212
  };
1235
- register_merchant: {
1236
- method: "POST";
1237
- path: string;
1238
- auth: "none";
1239
- description: string;
1240
- request: z.ZodObject<{
1241
- invitation: z.ZodString;
1242
- }, z.core.$strict>;
1243
- response: {
1244
- document: z.ZodObject<{
1245
- merchant_id: z.ZodString;
1246
- secret: z.ZodString;
1247
- }, z.core.$strict>;
1248
- };
1249
- };
1250
1213
  get_seller_name: {
1251
1214
  method: "GET";
1252
1215
  path: string;
@@ -1255,6 +1218,7 @@ export declare const API_ROUTES: Readonly<{
1255
1218
  response: {
1256
1219
  document: z.ZodObject<{
1257
1220
  seller_name: z.ZodNullable<z.ZodString>;
1221
+ seller_site: z.ZodNullable<z.ZodString>;
1258
1222
  }, z.core.$strict>;
1259
1223
  };
1260
1224
  };
@@ -1264,11 +1228,13 @@ export declare const API_ROUTES: Readonly<{
1264
1228
  auth: "merchant_key";
1265
1229
  description: string;
1266
1230
  request: z.ZodObject<{
1267
- seller_name: z.ZodPipe<z.ZodString, z.ZodString>;
1231
+ seller_name: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
1232
+ seller_site: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodString>>;
1268
1233
  }, z.core.$strict>;
1269
1234
  response: {
1270
1235
  document: z.ZodObject<{
1271
1236
  seller_name: z.ZodNullable<z.ZodString>;
1237
+ seller_site: z.ZodNullable<z.ZodString>;
1272
1238
  }, z.core.$strict>;
1273
1239
  };
1274
1240
  };
@@ -1287,24 +1253,6 @@ export declare const API_ROUTES: Readonly<{
1287
1253
  }, z.core.$strict>;
1288
1254
  };
1289
1255
  };
1290
- set_payout_wallet: {
1291
- method: "POST";
1292
- path: string;
1293
- auth: "merchant_key";
1294
- description: string;
1295
- request: z.ZodObject<{
1296
- payout_wallet: z.ZodPipe<z.ZodString, z.ZodString>;
1297
- }, z.core.$strict>;
1298
- response: {
1299
- document: z.ZodObject<{
1300
- payout_wallet: z.ZodNullable<z.ZodString>;
1301
- pending: z.ZodNullable<z.ZodObject<{
1302
- payout_wallet: z.ZodString;
1303
- takes_effect_at: z.ZodISODateTime;
1304
- }, z.core.$strict>>;
1305
- }, z.core.$strict>;
1306
- };
1307
- };
1308
1256
  list_keys: {
1309
1257
  method: "GET";
1310
1258
  path: string;
@@ -1361,28 +1309,6 @@ export declare const API_ROUTES: Readonly<{
1361
1309
  }, z.core.$strict>;
1362
1310
  };
1363
1311
  };
1364
- issue_cabinet_key: {
1365
- method: "POST";
1366
- path: string;
1367
- auth: "merchant_key";
1368
- description: string;
1369
- response: {
1370
- document: z.ZodObject<{
1371
- secret: z.ZodString;
1372
- }, z.core.$strict>;
1373
- };
1374
- };
1375
- forget_cabinet_key: {
1376
- method: "DELETE";
1377
- path: string;
1378
- auth: "merchant_key";
1379
- description: string;
1380
- response: {
1381
- document: z.ZodObject<{
1382
- forgotten: z.ZodLiteral<true>;
1383
- }, z.core.$strict>;
1384
- };
1385
- };
1386
1312
  get_order: {
1387
1313
  method: "GET";
1388
1314
  path: string;
@@ -1400,10 +1326,28 @@ export declare const API_ROUTES: Readonly<{
1400
1326
  as_of: z.ZodISODateTime;
1401
1327
  }, z.core.$strict>;
1402
1328
  price_id: z.ZodOptional<z.ZodString>;
1329
+ ship_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1330
+ name: z.ZodString;
1331
+ line_one: z.ZodString;
1332
+ line_two: z.ZodOptional<z.ZodString>;
1333
+ city: z.ZodString;
1334
+ state: z.ZodOptional<z.ZodString>;
1335
+ postal_code: z.ZodOptional<z.ZodString>;
1336
+ country: z.ZodString;
1337
+ phone_number: z.ZodString;
1338
+ }, z.core.$strict>, z.ZodObject<{
1339
+ country: z.ZodString;
1340
+ state: z.ZodOptional<z.ZodString>;
1341
+ city: z.ZodString;
1342
+ postal_code: z.ZodOptional<z.ZodString>;
1343
+ }, z.core.$strict>, z.ZodObject<{
1344
+ erased_at: z.ZodISODateTime;
1345
+ }, z.core.$strict>]>>;
1403
1346
  test: z.ZodBoolean;
1404
1347
  status: z.ZodEnum<{
1405
1348
  delivered: "delivered";
1406
1349
  in_progress: "in_progress";
1350
+ shipped: "shipped";
1407
1351
  rejected: "rejected";
1408
1352
  payment_unresolved: "payment_unresolved";
1409
1353
  declined: "declined";
@@ -1440,10 +1384,28 @@ export declare const API_ROUTES: Readonly<{
1440
1384
  as_of: z.ZodISODateTime;
1441
1385
  }, z.core.$strict>;
1442
1386
  price_id: z.ZodOptional<z.ZodString>;
1387
+ ship_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1388
+ name: z.ZodString;
1389
+ line_one: z.ZodString;
1390
+ line_two: z.ZodOptional<z.ZodString>;
1391
+ city: z.ZodString;
1392
+ state: z.ZodOptional<z.ZodString>;
1393
+ postal_code: z.ZodOptional<z.ZodString>;
1394
+ country: z.ZodString;
1395
+ phone_number: z.ZodString;
1396
+ }, z.core.$strict>, z.ZodObject<{
1397
+ country: z.ZodString;
1398
+ state: z.ZodOptional<z.ZodString>;
1399
+ city: z.ZodString;
1400
+ postal_code: z.ZodOptional<z.ZodString>;
1401
+ }, z.core.$strict>, z.ZodObject<{
1402
+ erased_at: z.ZodISODateTime;
1403
+ }, z.core.$strict>]>>;
1443
1404
  test: z.ZodBoolean;
1444
1405
  status: z.ZodEnum<{
1445
1406
  delivered: "delivered";
1446
1407
  in_progress: "in_progress";
1408
+ shipped: "shipped";
1447
1409
  rejected: "rejected";
1448
1410
  payment_unresolved: "payment_unresolved";
1449
1411
  declined: "declined";
@@ -1479,6 +1441,7 @@ export declare const API_ROUTES: Readonly<{
1479
1441
  outcome: z.ZodEnum<{
1480
1442
  delivered: "delivered";
1481
1443
  in_progress: "in_progress";
1444
+ shipped: "shipped";
1482
1445
  refund_due: "refund_due";
1483
1446
  refunded: "refunded";
1484
1447
  }>;
@@ -1514,6 +1477,23 @@ export declare const API_ROUTES: Readonly<{
1514
1477
  as_of: z.ZodISODateTime;
1515
1478
  }, z.core.$strict>;
1516
1479
  price_id: z.ZodOptional<z.ZodString>;
1480
+ ship_to: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1481
+ name: z.ZodString;
1482
+ line_one: z.ZodString;
1483
+ line_two: z.ZodOptional<z.ZodString>;
1484
+ city: z.ZodString;
1485
+ state: z.ZodOptional<z.ZodString>;
1486
+ postal_code: z.ZodOptional<z.ZodString>;
1487
+ country: z.ZodString;
1488
+ phone_number: z.ZodString;
1489
+ }, z.core.$strict>, z.ZodObject<{
1490
+ country: z.ZodString;
1491
+ state: z.ZodOptional<z.ZodString>;
1492
+ city: z.ZodString;
1493
+ postal_code: z.ZodOptional<z.ZodString>;
1494
+ }, z.core.$strict>, z.ZodObject<{
1495
+ erased_at: z.ZodISODateTime;
1496
+ }, z.core.$strict>]>>;
1517
1497
  test: z.ZodBoolean;
1518
1498
  }, z.core.$strict>;
1519
1499
  }, z.core.$strict>, z.ZodObject<{
@@ -1523,6 +1503,12 @@ export declare const API_ROUTES: Readonly<{
1523
1503
  payload: z.ZodObject<{
1524
1504
  merchant_item_id: z.ZodString;
1525
1505
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1506
+ ship_to: z.ZodOptional<z.ZodObject<{
1507
+ country: z.ZodString;
1508
+ state: z.ZodOptional<z.ZodString>;
1509
+ city: z.ZodString;
1510
+ postal_code: z.ZodOptional<z.ZodString>;
1511
+ }, z.core.$strict>>;
1526
1512
  price_id: z.ZodString;
1527
1513
  purpose: z.ZodEnum<{
1528
1514
  purchase: "purchase";
@@ -1725,104 +1711,8 @@ export declare const API_ROUTES: Readonly<{
1725
1711
  description: string;
1726
1712
  response: {
1727
1713
  document: z.ZodObject<{
1728
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1729
- id: z.ZodString;
1730
- title: z.ZodString;
1731
- description: z.ZodString;
1732
- price: z.ZodObject<{
1733
- amount: z.ZodString;
1734
- currency: z.ZodString;
1735
- }, z.core.$strict>;
1736
- as_of: z.ZodISODateTime;
1737
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1738
- type: z.ZodEnum<{
1739
- string: "string";
1740
- number: "number";
1741
- boolean: "boolean";
1742
- integer: "integer";
1743
- }>;
1744
- required: z.ZodOptional<z.ZodBoolean>;
1745
- title: z.ZodOptional<z.ZodString>;
1746
- }, z.core.$strict>>>;
1747
- result: z.ZodRecord<z.ZodString, z.ZodObject<{
1748
- type: z.ZodEnum<{
1749
- string: "string";
1750
- number: "number";
1751
- boolean: "boolean";
1752
- integer: "integer";
1753
- }>;
1754
- required: z.ZodOptional<z.ZodBoolean>;
1755
- title: z.ZodOptional<z.ZodString>;
1756
- }, z.core.$strict>>;
1757
- price_checked_at_purchase: z.ZodBoolean;
1758
- fulfillment: z.ZodLiteral<"sync">;
1759
- }, z.core.$strict>, z.ZodObject<{
1760
- id: z.ZodString;
1761
- title: z.ZodString;
1762
- description: z.ZodString;
1763
- price: z.ZodObject<{
1764
- amount: z.ZodString;
1765
- currency: z.ZodString;
1766
- }, z.core.$strict>;
1767
- as_of: z.ZodISODateTime;
1768
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1769
- type: z.ZodEnum<{
1770
- string: "string";
1771
- number: "number";
1772
- boolean: "boolean";
1773
- integer: "integer";
1774
- }>;
1775
- required: z.ZodOptional<z.ZodBoolean>;
1776
- title: z.ZodOptional<z.ZodString>;
1777
- }, z.core.$strict>>>;
1778
- result: z.ZodRecord<z.ZodString, z.ZodObject<{
1779
- type: z.ZodEnum<{
1780
- string: "string";
1781
- number: "number";
1782
- boolean: "boolean";
1783
- integer: "integer";
1784
- }>;
1785
- required: z.ZodOptional<z.ZodBoolean>;
1786
- title: z.ZodOptional<z.ZodString>;
1787
- }, z.core.$strict>>;
1788
- price_checked_at_purchase: z.ZodBoolean;
1789
- fulfillment: z.ZodLiteral<"async">;
1790
- fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
1791
- }, z.core.$strict>, z.ZodObject<{
1792
- id: z.ZodString;
1793
- title: z.ZodString;
1794
- description: z.ZodString;
1795
- price: z.ZodObject<{
1796
- amount: z.ZodString;
1797
- currency: z.ZodString;
1798
- }, z.core.$strict>;
1799
- as_of: z.ZodISODateTime;
1800
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1801
- type: z.ZodEnum<{
1802
- string: "string";
1803
- number: "number";
1804
- boolean: "boolean";
1805
- integer: "integer";
1806
- }>;
1807
- required: z.ZodOptional<z.ZodBoolean>;
1808
- title: z.ZodOptional<z.ZodString>;
1809
- }, z.core.$strict>>>;
1810
- result: z.ZodRecord<z.ZodString, z.ZodObject<{
1811
- type: z.ZodEnum<{
1812
- string: "string";
1813
- number: "number";
1814
- boolean: "boolean";
1815
- integer: "integer";
1816
- }>;
1817
- required: z.ZodOptional<z.ZodBoolean>;
1818
- title: z.ZodOptional<z.ZodString>;
1819
- }, z.core.$strict>>;
1820
- price_checked_at_purchase: z.ZodBoolean;
1821
- fulfillment: z.ZodLiteral<"confirm">;
1822
- confirm_deadline_seconds: z.ZodOptional<z.ZodInt>;
1823
- fulfill_deadline_seconds: z.ZodOptional<z.ZodInt>;
1824
- }, z.core.$strict>], "fulfillment">>;
1825
- }, z.core.$strict>;
1714
+ items: z.ZodArray<z.ZodUnknown>;
1715
+ }, z.core.$loose>;
1826
1716
  };
1827
1717
  };
1828
1718
  purchase_item: {
@@ -1832,15 +1722,26 @@ export declare const API_ROUTES: Readonly<{
1832
1722
  description: string;
1833
1723
  request: z.ZodObject<{
1834
1724
  params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1725
+ ship_to: z.ZodOptional<z.ZodObject<{
1726
+ name: z.ZodString;
1727
+ line_one: z.ZodString;
1728
+ line_two: z.ZodOptional<z.ZodString>;
1729
+ city: z.ZodString;
1730
+ state: z.ZodOptional<z.ZodString>;
1731
+ postal_code: z.ZodOptional<z.ZodString>;
1732
+ country: z.ZodString;
1733
+ phone_number: z.ZodString;
1734
+ }, z.core.$strict>>;
1835
1735
  }, z.core.$strict>;
1836
1736
  also_answers_on: "GET"[];
1837
1737
  response: {
1838
1738
  document: z.ZodObject<{
1839
1739
  order_id: z.ZodString;
1840
1740
  status_url: z.ZodURL;
1841
- status: z.ZodEnum<{
1741
+ status: z.ZodUnion<readonly [z.ZodEnum<{
1842
1742
  delivered: "delivered";
1843
1743
  in_progress: "in_progress";
1744
+ shipped: "shipped";
1844
1745
  rejected: "rejected";
1845
1746
  payment_unresolved: "payment_unresolved";
1846
1747
  declined: "declined";
@@ -1849,20 +1750,35 @@ export declare const API_ROUTES: Readonly<{
1849
1750
  refund_due: "refund_due";
1850
1751
  refunded: "refunded";
1851
1752
  delivered_unpaid: "delivered_unpaid";
1852
- }>;
1753
+ }>, z.ZodString]>;
1853
1754
  price: z.ZodNullable<z.ZodObject<{
1854
1755
  amount: z.ZodString;
1855
1756
  currency: z.ZodString;
1856
1757
  at: z.ZodISODateTime;
1857
1758
  as_of: z.ZodISODateTime;
1858
- }, z.core.$strict>>;
1759
+ }, z.core.$loose>>;
1859
1760
  delivered: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1761
+ shipment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1762
+ carrier: z.ZodString;
1763
+ tracking_number: z.ZodNullable<z.ZodString>;
1764
+ tracking_url: z.ZodOptional<z.ZodString>;
1765
+ shipped_at: z.ZodISODateTime;
1766
+ estimated_delivery: z.ZodOptional<z.ZodObject<{
1767
+ earliest: z.ZodISODateTime;
1768
+ latest: z.ZodISODateTime;
1769
+ }, z.core.$loose>>;
1770
+ }, z.core.$loose>>>;
1771
+ ship_by: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1860
1772
  test: z.ZodBoolean;
1861
1773
  refusal: z.ZodOptional<z.ZodObject<{
1862
1774
  code: z.ZodString;
1863
1775
  message: z.ZodString;
1864
- }, z.core.$strict>>;
1865
- }, z.core.$strict>;
1776
+ }, z.core.$loose>>;
1777
+ seller: z.ZodObject<{
1778
+ name: z.ZodNullable<z.ZodString>;
1779
+ site: z.ZodNullable<z.ZodString>;
1780
+ }, z.core.$loose>;
1781
+ }, z.core.$loose>;
1866
1782
  };
1867
1783
  };
1868
1784
  get_order_status: {
@@ -1874,9 +1790,10 @@ export declare const API_ROUTES: Readonly<{
1874
1790
  document: z.ZodObject<{
1875
1791
  order_id: z.ZodString;
1876
1792
  status_url: z.ZodURL;
1877
- status: z.ZodEnum<{
1793
+ status: z.ZodUnion<readonly [z.ZodEnum<{
1878
1794
  delivered: "delivered";
1879
1795
  in_progress: "in_progress";
1796
+ shipped: "shipped";
1880
1797
  rejected: "rejected";
1881
1798
  payment_unresolved: "payment_unresolved";
1882
1799
  declined: "declined";
@@ -1885,20 +1802,35 @@ export declare const API_ROUTES: Readonly<{
1885
1802
  refund_due: "refund_due";
1886
1803
  refunded: "refunded";
1887
1804
  delivered_unpaid: "delivered_unpaid";
1888
- }>;
1805
+ }>, z.ZodString]>;
1889
1806
  price: z.ZodNullable<z.ZodObject<{
1890
1807
  amount: z.ZodString;
1891
1808
  currency: z.ZodString;
1892
1809
  at: z.ZodISODateTime;
1893
1810
  as_of: z.ZodISODateTime;
1894
- }, z.core.$strict>>;
1811
+ }, z.core.$loose>>;
1895
1812
  delivered: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1813
+ shipment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1814
+ carrier: z.ZodString;
1815
+ tracking_number: z.ZodNullable<z.ZodString>;
1816
+ tracking_url: z.ZodOptional<z.ZodString>;
1817
+ shipped_at: z.ZodISODateTime;
1818
+ estimated_delivery: z.ZodOptional<z.ZodObject<{
1819
+ earliest: z.ZodISODateTime;
1820
+ latest: z.ZodISODateTime;
1821
+ }, z.core.$loose>>;
1822
+ }, z.core.$loose>>>;
1823
+ ship_by: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1896
1824
  test: z.ZodBoolean;
1897
1825
  refusal: z.ZodOptional<z.ZodObject<{
1898
1826
  code: z.ZodString;
1899
1827
  message: z.ZodString;
1900
- }, z.core.$strict>>;
1901
- }, z.core.$strict>;
1828
+ }, z.core.$loose>>;
1829
+ seller: z.ZodObject<{
1830
+ name: z.ZodNullable<z.ZodString>;
1831
+ site: z.ZodNullable<z.ZodString>;
1832
+ }, z.core.$loose>;
1833
+ }, z.core.$loose>;
1902
1834
  };
1903
1835
  };
1904
1836
  }>;