palbase 0.70.0 → 0.72.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.
Files changed (67) hide show
  1. package/dist/ai/index.js +2 -2
  2. package/dist/ai-sdk/index.js +2 -2
  3. package/dist/backend/engine.js +2 -2
  4. package/dist/backend/env.js +1 -1
  5. package/dist/backend/index.js +11 -11
  6. package/dist/backend/stack.js +1 -1
  7. package/dist/backend/test.js +2 -2
  8. package/dist/chunks/{RZ5MXOUV.js → 3MF6NROQ.js} +2 -2
  9. package/dist/chunks/{UCPA6FO4.js → 7TZJLWWX.js} +2 -2
  10. package/dist/chunks/CYS75YV4.js +2 -0
  11. package/dist/chunks/{LBOXE7TK.js → D5I74USX.js} +2 -2
  12. package/dist/chunks/{4MGTVQVW.js → DE7BWXBF.js} +1 -1
  13. package/dist/chunks/{WVGN2ZVF.js → E2MNCFOU.js} +1 -1
  14. package/dist/chunks/{PQPCHYX6.js → F4LE2YZX.js} +2 -2
  15. package/dist/chunks/{Q3HIUVZS.js → I4SH2RTD.js} +1 -1
  16. package/dist/chunks/{YFWP2OZQ.js → JMNQRIEG.js} +2 -2
  17. package/dist/chunks/{OCGBLC6V.js → JP55FW66.js} +2 -2
  18. package/dist/chunks/{LPBEFJE5.js → JXIKBG4D.js} +1 -1
  19. package/dist/chunks/{EHPVCQN6.js → LDFOUUBT.js} +2 -2
  20. package/dist/chunks/{VH3R7VEC.js → MB6ITBD2.js} +1 -1
  21. package/dist/chunks/{GECTCWAJ.js → MVVULWTH.js} +2 -2
  22. package/dist/chunks/{U5NKNWFY.js → O6JNTYC5.js} +2 -2
  23. package/dist/chunks/{HQJIOCXK.js → OY2MT7N5.js} +2 -2
  24. package/dist/chunks/{6U37PDRV.js → QDPRR5PE.js} +2 -2
  25. package/dist/chunks/{2V7Q5VXI.js → QROXSSPQ.js} +1 -1
  26. package/dist/chunks/{TXSOG3EG.js → S3N7N6UD.js} +2 -2
  27. package/dist/chunks/UXU6RXU3.js +23 -0
  28. package/dist/chunks/{YG3BUCUL.js → WWXBXZUO.js} +1 -1
  29. package/dist/chunks/XUYC354U.js +2 -0
  30. package/dist/chunks/{3QQXHQUT.js → Y7ZJ3M5F.js} +2 -2
  31. package/dist/chunks/ZHSM4NCV.js +13 -0
  32. package/dist/cli.js +343 -343
  33. package/dist/cloud/index.js +2 -2
  34. package/dist/refuse/ai-sdk.js +1 -1
  35. package/dist/refuse/ai.js +1 -1
  36. package/dist/refuse/backend.js +1 -1
  37. package/dist/refuse/cloud.js +1 -1
  38. package/dist/refuse/server.js +1 -1
  39. package/dist/server/index.js +2 -2
  40. package/dist/server/testing.js +2 -2
  41. package/dist/web/index.js +2 -2
  42. package/dist/web/message.js +2 -2
  43. package/dist/web/palbe.js +2 -2
  44. package/dist/web/payments-ui.js +2 -2
  45. package/dist/web/paywall.js +2 -2
  46. package/dist/web/push-sw.js +1 -1
  47. package/dist/web/ssr.js +2 -2
  48. package/dist/web/vite.js +2 -2
  49. package/package.json +3 -3
  50. package/types/backend/src/index.d.ts +1 -1
  51. package/types/backend/src/services.d.ts +47 -0
  52. package/types/cloud/src/generated/project.d.ts +2 -1
  53. package/types/internal/src/modules/commerce.d.ts +4244 -0
  54. package/types/internal/src/modules/events.d.ts +4 -3
  55. package/types/internal/src/modules/index.d.ts +1 -0
  56. package/types/internal/src/modules/payments.d.ts +851 -2
  57. package/types/server/src/commerce.d.ts +78 -0
  58. package/types/server/src/index.d.ts +2 -1
  59. package/types/server/src/payments.d.ts +6 -0
  60. package/types/server/src/server.d.ts +2 -0
  61. package/types/web/src/client.d.ts +3 -0
  62. package/types/web/src/commerce.d.ts +130 -0
  63. package/types/web/src/index.d.ts +1 -0
  64. package/dist/chunks/DZBZLLLK.js +0 -13
  65. package/dist/chunks/GORZGXUQ.js +0 -23
  66. package/dist/chunks/PNUUNJSU.js +0 -2
  67. package/dist/chunks/WB5IL3JP.js +0 -2
@@ -0,0 +1,4244 @@
1
+ import { type Reply, type Transport } from '../transport.js';
2
+ /**
3
+ * Generic mutation acknowledgement.
4
+ */
5
+ export type ActionResult = {
6
+ /**
7
+ * Resource identifier.
8
+ */
9
+ id?: string;
10
+ /**
11
+ * Resulting status.
12
+ */
13
+ status?: string;
14
+ /**
15
+ * Whether link was attached.
16
+ */
17
+ attached?: boolean;
18
+ /**
19
+ * Whether link was detached.
20
+ */
21
+ detached?: boolean;
22
+ /**
23
+ * Whether item was added.
24
+ */
25
+ added?: boolean;
26
+ /**
27
+ * Whether item was removed.
28
+ */
29
+ removed?: boolean;
30
+ /**
31
+ * Whether resource was deleted.
32
+ */
33
+ deleted?: boolean;
34
+ /**
35
+ * Whether code was revoked.
36
+ */
37
+ revoked?: boolean;
38
+ [key: string]: unknown;
39
+ };
40
+ /**
41
+ * License key assigned to a paid digital order line.
42
+ */
43
+ export type AssignedLicenseKey = {
44
+ /**
45
+ * License key UUID.
46
+ */
47
+ id?: string;
48
+ /**
49
+ * Order line UUID.
50
+ */
51
+ order_line_id?: string;
52
+ /**
53
+ * Decrypted license key code.
54
+ */
55
+ code?: string;
56
+ /**
57
+ * Assignment timestamp.
58
+ */
59
+ assigned_at?: string | null;
60
+ [key: string]: unknown;
61
+ };
62
+ /**
63
+ * Catalog brand.
64
+ */
65
+ export type Brand = {
66
+ /**
67
+ * Brand UUID.
68
+ */
69
+ id?: string;
70
+ /**
71
+ * Unique slug.
72
+ */
73
+ slug?: string;
74
+ /**
75
+ * Brand name.
76
+ */
77
+ name?: string;
78
+ /**
79
+ * Logo URL.
80
+ */
81
+ logo_url?: string;
82
+ /**
83
+ * Custom metadata.
84
+ */
85
+ metadata?: {
86
+ [key: string]: unknown;
87
+ };
88
+ /**
89
+ * Creation timestamp.
90
+ */
91
+ created_at?: string;
92
+ [key: string]: unknown;
93
+ };
94
+ /**
95
+ * List of brands.
96
+ */
97
+ export type BrandList = {
98
+ /**
99
+ * Brands.
100
+ */
101
+ brands: Brand[];
102
+ };
103
+ /**
104
+ * Shopping cart with live quoted totals, promotions, and stale-cart quote_hash.
105
+ */
106
+ export type Cart = {
107
+ /**
108
+ * Cart UUID.
109
+ */
110
+ id?: string;
111
+ /**
112
+ * active, checking_out, completed, merged, or expired.
113
+ */
114
+ status?: string;
115
+ /**
116
+ * ISO 4217 currency.
117
+ */
118
+ currency?: string;
119
+ /**
120
+ * Signed-in customer ID.
121
+ */
122
+ customer_id?: string | null;
123
+ /**
124
+ * Guest cart token returned once on anonymous cart creation.
125
+ */
126
+ guest_token?: string;
127
+ /**
128
+ * Applied promo codes.
129
+ */
130
+ promo_codes?: string[];
131
+ /**
132
+ * Selected items subtotal.
133
+ */
134
+ subtotal_amount?: number;
135
+ /**
136
+ * Total item discounts.
137
+ */
138
+ discount_amount?: number;
139
+ /**
140
+ * Total shipping charges.
141
+ */
142
+ shipping_amount?: number;
143
+ /**
144
+ * Shipping discounts.
145
+ */
146
+ shipping_discount_amount?: number;
147
+ /**
148
+ * Total tax.
149
+ */
150
+ tax_amount?: number;
151
+ /**
152
+ * Whether tax is included in unit prices.
153
+ */
154
+ tax_included?: boolean;
155
+ /**
156
+ * Final payable grand total.
157
+ */
158
+ total_amount?: number;
159
+ /**
160
+ * SHA-256 quote fingerprint verified at checkout.
161
+ */
162
+ quote_hash?: string;
163
+ /**
164
+ * Cart lines.
165
+ */
166
+ lines?: CartLine[];
167
+ /**
168
+ * Creation timestamp.
169
+ */
170
+ created_at?: string;
171
+ /**
172
+ * Last update timestamp.
173
+ */
174
+ updated_at?: string;
175
+ [key: string]: unknown;
176
+ };
177
+ /**
178
+ * Line item inside a shopping cart.
179
+ */
180
+ export type CartLine = {
181
+ /**
182
+ * Cart line UUID.
183
+ */
184
+ id?: string;
185
+ /**
186
+ * Seller store UUID.
187
+ */
188
+ store_id?: string;
189
+ /**
190
+ * Listing UUID.
191
+ */
192
+ listing_id?: string;
193
+ /**
194
+ * Product UUID.
195
+ */
196
+ product_id?: string;
197
+ /**
198
+ * Variant UUID.
199
+ */
200
+ variant_id?: string;
201
+ /**
202
+ * Product title.
203
+ */
204
+ title?: string;
205
+ /**
206
+ * Variant title.
207
+ */
208
+ variant_title?: string;
209
+ /**
210
+ * Requested quantity.
211
+ */
212
+ quantity?: number;
213
+ /**
214
+ * Whether selected for checkout.
215
+ */
216
+ selected?: boolean;
217
+ /**
218
+ * Current live unit price.
219
+ */
220
+ unit_amount?: number;
221
+ /**
222
+ * Unit price when added to cart.
223
+ */
224
+ added_unit_amount?: number;
225
+ /**
226
+ * True if live price changed since adding.
227
+ */
228
+ price_changed?: boolean;
229
+ /**
230
+ * Line subtotal.
231
+ */
232
+ subtotal_amount?: number;
233
+ /**
234
+ * Computed line tax.
235
+ */
236
+ tax_amount?: number;
237
+ [key: string]: unknown;
238
+ };
239
+ /**
240
+ * Hierarchical catalog category.
241
+ */
242
+ export type Category = {
243
+ /**
244
+ * Category UUID.
245
+ */
246
+ id?: string;
247
+ /**
248
+ * Parent category UUID.
249
+ */
250
+ parent_id?: string | null;
251
+ /**
252
+ * Unique slug.
253
+ */
254
+ slug?: string;
255
+ /**
256
+ * Category name.
257
+ */
258
+ name?: string;
259
+ /**
260
+ * Category commission override in bps.
261
+ */
262
+ commission_bps?: number | null;
263
+ /**
264
+ * Creation timestamp.
265
+ */
266
+ created_at?: string;
267
+ [key: string]: unknown;
268
+ };
269
+ /**
270
+ * List of categories.
271
+ */
272
+ export type CategoryList = {
273
+ /**
274
+ * Categories.
275
+ */
276
+ categories: Category[];
277
+ };
278
+ /**
279
+ * Sales channel (web, mobile, POS, B2B) controlling cart mode and store visibility.
280
+ */
281
+ export type Channel = {
282
+ /**
283
+ * Channel UUID.
284
+ */
285
+ id?: string;
286
+ /**
287
+ * Unique channel slug.
288
+ */
289
+ key?: string;
290
+ /**
291
+ * Channel name.
292
+ */
293
+ name?: string;
294
+ /**
295
+ * Channel kind (web, mobile, pos, b2b, custom).
296
+ */
297
+ kind?: string;
298
+ /**
299
+ * multi_store or single_store.
300
+ */
301
+ cart_mode?: string;
302
+ /**
303
+ * Default region UUID.
304
+ */
305
+ default_region_id?: string | null;
306
+ /**
307
+ * Whether channel is active.
308
+ */
309
+ active?: boolean;
310
+ /**
311
+ * Creation timestamp.
312
+ */
313
+ created_at?: string;
314
+ [key: string]: unknown;
315
+ };
316
+ /**
317
+ * List of sales channels.
318
+ */
319
+ export type ChannelList = {
320
+ /**
321
+ * Channels.
322
+ */
323
+ channels: Channel[];
324
+ };
325
+ /**
326
+ * Created payments intent returned by checkout.
327
+ */
328
+ export type CheckoutPayment = {
329
+ /**
330
+ * PaymentIntent UUID.
331
+ */
332
+ id?: string;
333
+ /**
334
+ * PaymentIntent status.
335
+ */
336
+ status?: string;
337
+ /**
338
+ * Total payment amount.
339
+ */
340
+ amount?: number;
341
+ /**
342
+ * ISO 4217 currency.
343
+ */
344
+ currency?: string;
345
+ /**
346
+ * Card portion.
347
+ */
348
+ card_amount?: number;
349
+ /**
350
+ * Wallet portion.
351
+ */
352
+ wallet_amount?: number;
353
+ /**
354
+ * Resolved payment channel.
355
+ */
356
+ channel_key?: string;
357
+ /**
358
+ * Payment provider.
359
+ */
360
+ provider?: string;
361
+ /**
362
+ * Stripe client secret for embedded payment element.
363
+ */
364
+ client_secret?: string;
365
+ /**
366
+ * Hosted payment or 3DS redirect URL.
367
+ */
368
+ checkout_url?: string;
369
+ /**
370
+ * Marketplace splits.
371
+ */
372
+ splits?: CheckoutPaymentSplit[];
373
+ [key: string]: unknown;
374
+ };
375
+ /**
376
+ * Payment split created for a store order.
377
+ */
378
+ export type CheckoutPaymentSplit = {
379
+ /**
380
+ * Payment split UUID.
381
+ */
382
+ id?: string;
383
+ /**
384
+ * Store UUID.
385
+ */
386
+ seller_ref?: string;
387
+ /**
388
+ * Store order UUID.
389
+ */
390
+ external_item_ref?: string;
391
+ [key: string]: unknown;
392
+ };
393
+ /**
394
+ * Result of single-TX checkout.
395
+ */
396
+ export type CheckoutResponse = {
397
+ /**
398
+ * Created order UUID.
399
+ */
400
+ order_id: string;
401
+ /**
402
+ * Sequential order number.
403
+ */
404
+ order_number: string;
405
+ /**
406
+ * pending_payment or paid.
407
+ */
408
+ status: string;
409
+ /**
410
+ * ISO 4217 currency.
411
+ */
412
+ currency: string;
413
+ /**
414
+ * Order grand total.
415
+ */
416
+ total_amount: number;
417
+ /**
418
+ * One-time guest lookup token returned for guest orders.
419
+ */
420
+ guest_access_token?: string;
421
+ checkout?: CheckoutPayment;
422
+ [key: string]: unknown;
423
+ };
424
+ /**
425
+ * Curated product collection.
426
+ */
427
+ export type Collection = {
428
+ /**
429
+ * Collection UUID.
430
+ */
431
+ id?: string;
432
+ /**
433
+ * Optional owning store UUID.
434
+ */
435
+ store_id?: string | null;
436
+ /**
437
+ * Unique slug.
438
+ */
439
+ slug?: string;
440
+ /**
441
+ * Collection title.
442
+ */
443
+ title?: string;
444
+ /**
445
+ * Creation timestamp.
446
+ */
447
+ created_at?: string;
448
+ [key: string]: unknown;
449
+ };
450
+ /**
451
+ * List of collections.
452
+ */
453
+ export type CollectionList = {
454
+ /**
455
+ * Collections.
456
+ */
457
+ collections: Collection[];
458
+ };
459
+ /**
460
+ * Payload for commerce.buybox.changed.
461
+ */
462
+ export type CommerceBuyBoxEvent = {
463
+ /**
464
+ * Variant UUID.
465
+ */
466
+ variant_id?: string;
467
+ /**
468
+ * Previous winner listing UUID.
469
+ */
470
+ previous_listing_id?: string | null;
471
+ /**
472
+ * New winner listing UUID.
473
+ */
474
+ winner_listing_id?: string | null;
475
+ [key: string]: unknown;
476
+ };
477
+ /**
478
+ * Payload for commerce.cart.abandoned.
479
+ */
480
+ export type CommerceCartAbandonedEvent = {
481
+ /**
482
+ * Cart UUID.
483
+ */
484
+ cart_id?: string;
485
+ /**
486
+ * Customer ID.
487
+ */
488
+ customer_id?: string | null;
489
+ /**
490
+ * ISO 4217 currency.
491
+ */
492
+ currency?: string;
493
+ [key: string]: unknown;
494
+ };
495
+ /**
496
+ * Payload for commerce.cart.merged.
497
+ */
498
+ export type CommerceCartMergedEvent = {
499
+ /**
500
+ * Guest cart UUID.
501
+ */
502
+ source_cart_id?: string;
503
+ /**
504
+ * Customer cart UUID.
505
+ */
506
+ target_cart_id?: string;
507
+ /**
508
+ * Signed-in customer ID.
509
+ */
510
+ customer_id?: string;
511
+ [key: string]: unknown;
512
+ };
513
+ /**
514
+ * Payload for commerce.fulfillment.created and commerce.fulfillment.delivered.
515
+ */
516
+ export type CommerceFulfillmentEvent = {
517
+ /**
518
+ * Fulfillment UUID.
519
+ */
520
+ fulfillment_id?: string;
521
+ /**
522
+ * Store order UUID.
523
+ */
524
+ store_order_id?: string;
525
+ /**
526
+ * Order UUID.
527
+ */
528
+ order_id?: string;
529
+ /**
530
+ * Store UUID.
531
+ */
532
+ store_id?: string;
533
+ /**
534
+ * Fulfillment status.
535
+ */
536
+ status?: string;
537
+ [key: string]: unknown;
538
+ };
539
+ /**
540
+ * Payload for commerce.inventory.restocked.
541
+ */
542
+ export type CommerceInventoryRestockedEvent = {
543
+ /**
544
+ * Listing UUID.
545
+ */
546
+ listing_id?: string;
547
+ /**
548
+ * Location UUID.
549
+ */
550
+ location_id?: string;
551
+ /**
552
+ * New available quantity.
553
+ */
554
+ available?: number;
555
+ [key: string]: unknown;
556
+ };
557
+ /**
558
+ * Payload for commerce.order.created.
559
+ */
560
+ export type CommerceOrderCreatedEvent = {
561
+ /**
562
+ * Order UUID.
563
+ */
564
+ order_id?: string;
565
+ /**
566
+ * Order number.
567
+ */
568
+ order_number?: string;
569
+ /**
570
+ * Customer ID.
571
+ */
572
+ customer_id?: string | null;
573
+ /**
574
+ * ISO 4217 currency.
575
+ */
576
+ currency?: string;
577
+ /**
578
+ * Order total.
579
+ */
580
+ total_amount?: number;
581
+ /**
582
+ * Order status.
583
+ */
584
+ status?: string;
585
+ [key: string]: unknown;
586
+ };
587
+ /**
588
+ * Payload for commerce.order.paid (also consumed by iap-commerce for entitlement grants).
589
+ */
590
+ export type CommerceOrderPaidEvent = {
591
+ /**
592
+ * Order UUID.
593
+ */
594
+ order_id?: string;
595
+ /**
596
+ * Order number.
597
+ */
598
+ order_number?: string;
599
+ /**
600
+ * Customer ID.
601
+ */
602
+ customer_id?: string | null;
603
+ /**
604
+ * ISO 4217 currency.
605
+ */
606
+ currency?: string;
607
+ /**
608
+ * Paid total.
609
+ */
610
+ paid_total_amount?: number;
611
+ /**
612
+ * True if late capture hit stock shortage.
613
+ */
614
+ oversold?: boolean;
615
+ /**
616
+ * Per-store order summaries.
617
+ */
618
+ store_orders?: GenericPayload[];
619
+ /**
620
+ * IAP entitlement grants to issue.
621
+ */
622
+ entitlement_grants?: GenericPayload[];
623
+ [key: string]: unknown;
624
+ };
625
+ /**
626
+ * Payload for commerce.order.refunded (also consumed by iap-commerce for entitlement revocation).
627
+ */
628
+ export type CommerceOrderRefundedEvent = {
629
+ /**
630
+ * Order UUID.
631
+ */
632
+ order_id?: string;
633
+ /**
634
+ * Store order UUID.
635
+ */
636
+ store_order_id?: string;
637
+ /**
638
+ * Return UUID.
639
+ */
640
+ return_id?: string;
641
+ /**
642
+ * Customer ID.
643
+ */
644
+ customer_id?: string | null;
645
+ /**
646
+ * Refunded total.
647
+ */
648
+ refund_total_amount?: number;
649
+ /**
650
+ * Revoked entitlement line references.
651
+ */
652
+ revoked_entitlements?: GenericPayload[];
653
+ [key: string]: unknown;
654
+ };
655
+ /**
656
+ * Payload for commerce.listing.price_dropped.
657
+ */
658
+ export type CommercePriceDroppedEvent = {
659
+ /**
660
+ * Listing UUID.
661
+ */
662
+ listing_id?: string;
663
+ /**
664
+ * Store UUID.
665
+ */
666
+ store_id?: string;
667
+ /**
668
+ * Variant UUID.
669
+ */
670
+ variant_id?: string;
671
+ /**
672
+ * ISO 4217 currency.
673
+ */
674
+ currency?: string;
675
+ /**
676
+ * Previous price.
677
+ */
678
+ old_amount?: number;
679
+ /**
680
+ * New lower price.
681
+ */
682
+ new_amount?: number;
683
+ [key: string]: unknown;
684
+ };
685
+ /**
686
+ * Payload for commerce.product.created.
687
+ */
688
+ export type CommerceProductEvent = {
689
+ /**
690
+ * Product UUID.
691
+ */
692
+ product_id?: string;
693
+ /**
694
+ * Product handle.
695
+ */
696
+ handle?: string;
697
+ /**
698
+ * Product title.
699
+ */
700
+ title?: string;
701
+ [key: string]: unknown;
702
+ };
703
+ /**
704
+ * Payload for commerce.return.requested.
705
+ */
706
+ export type CommerceReturnEvent = {
707
+ /**
708
+ * Return UUID.
709
+ */
710
+ return_id?: string;
711
+ /**
712
+ * RMA number.
713
+ */
714
+ rma_number?: string;
715
+ /**
716
+ * Store order UUID.
717
+ */
718
+ store_order_id?: string;
719
+ /**
720
+ * Store UUID.
721
+ */
722
+ store_id?: string;
723
+ /**
724
+ * Requested refund amount.
725
+ */
726
+ refund_total_amount?: number;
727
+ [key: string]: unknown;
728
+ };
729
+ /**
730
+ * Project-level commerce defaults and marketplace configuration.
731
+ */
732
+ export type CommerceSettings = {
733
+ /**
734
+ * Default ISO 4217 currency code.
735
+ */
736
+ default_currency?: string;
737
+ /**
738
+ * Whether catalog prices include tax by default.
739
+ */
740
+ tax_included_default?: boolean;
741
+ /**
742
+ * Default marketplace platform commission in basis points.
743
+ */
744
+ default_commission_bps?: number;
745
+ /**
746
+ * Default e-commerce withholding tax (stopaj) in basis points.
747
+ */
748
+ default_withholding_bps?: number;
749
+ /**
750
+ * Inventory & promotion hold TTL during checkout.
751
+ */
752
+ reservation_ttl_seconds?: number;
753
+ /**
754
+ * Days after delivery before escrow release.
755
+ */
756
+ escrow_release_days?: number;
757
+ /**
758
+ * Idle cart threshold before commerce.cart.abandoned.
759
+ */
760
+ cart_abandon_after_seconds?: number;
761
+ /**
762
+ * Prefix for sequential order numbers.
763
+ */
764
+ order_number_prefix?: string;
765
+ /**
766
+ * Default payments module channel slug.
767
+ */
768
+ default_payment_channel?: string;
769
+ /**
770
+ * Default payments wallet slug.
771
+ */
772
+ default_wallet_key?: string;
773
+ /**
774
+ * Last settings update timestamp.
775
+ */
776
+ updated_at?: string;
777
+ [key: string]: unknown;
778
+ };
779
+ /**
780
+ * Payload for commerce.store.created.
781
+ */
782
+ export type CommerceStoreEvent = {
783
+ /**
784
+ * Store UUID.
785
+ */
786
+ store_id?: string;
787
+ /**
788
+ * Store slug.
789
+ */
790
+ slug?: string;
791
+ /**
792
+ * first_party or third_party.
793
+ */
794
+ kind?: string;
795
+ [key: string]: unknown;
796
+ };
797
+ /**
798
+ * Payload for commerce.store_order.canceled.
799
+ */
800
+ export type CommerceStoreOrderCanceledEvent = {
801
+ /**
802
+ * Cancellation UUID.
803
+ */
804
+ cancellation_id?: string;
805
+ /**
806
+ * Store order UUID.
807
+ */
808
+ store_order_id?: string;
809
+ /**
810
+ * Order UUID.
811
+ */
812
+ order_id?: string;
813
+ /**
814
+ * Store UUID.
815
+ */
816
+ store_id?: string;
817
+ /**
818
+ * buyer, seller, platform, or payment_timeout.
819
+ */
820
+ fault_party?: string;
821
+ /**
822
+ * Canceled refund amount.
823
+ */
824
+ refund_amount?: number;
825
+ [key: string]: unknown;
826
+ };
827
+ /**
828
+ * Private downloadable digital file attached to a variant or listing.
829
+ */
830
+ export type DigitalAsset = {
831
+ /**
832
+ * Digital asset UUID.
833
+ */
834
+ id?: string;
835
+ /**
836
+ * Variant UUID.
837
+ */
838
+ variant_id?: string;
839
+ /**
840
+ * Optional listing UUID.
841
+ */
842
+ listing_id?: string | null;
843
+ /**
844
+ * File display name.
845
+ */
846
+ name?: string;
847
+ /**
848
+ * Storage bucket (defaults to _commerce).
849
+ */
850
+ storage_bucket?: string;
851
+ /**
852
+ * Object key in private storage bucket.
853
+ */
854
+ storage_key?: string;
855
+ [key: string]: unknown;
856
+ };
857
+ /**
858
+ * Signed short-lived download URL for a purchased digital asset.
859
+ */
860
+ export type DigitalDownload = {
861
+ /**
862
+ * Digital asset UUID.
863
+ */
864
+ id?: string;
865
+ /**
866
+ * Order line UUID.
867
+ */
868
+ order_line_id?: string;
869
+ /**
870
+ * File name.
871
+ */
872
+ name?: string;
873
+ /**
874
+ * Short-lived signed download URL.
875
+ */
876
+ download_url?: string;
877
+ /**
878
+ * URL expiration timestamp.
879
+ */
880
+ expires_at?: string | null;
881
+ [key: string]: unknown;
882
+ };
883
+ /**
884
+ * Standard Palbase error envelope.
885
+ */
886
+ export type ErrorResponse = {
887
+ /**
888
+ * Machine-readable error code.
889
+ */
890
+ error: string;
891
+ /**
892
+ * Human-readable error explanation.
893
+ */
894
+ error_description: string;
895
+ /**
896
+ * Request correlation identifier.
897
+ */
898
+ request_id?: string;
899
+ [key: string]: unknown;
900
+ };
901
+ /**
902
+ * Structured request or response payload.
903
+ */
904
+ export type GenericPayload = {
905
+ [key: string]: unknown;
906
+ };
907
+ /**
908
+ * Created or rotated blocking hook including its Standard Webhooks signing secret.
909
+ */
910
+ export type HookCreated = {
911
+ /**
912
+ * Hook UUID.
913
+ */
914
+ id: string;
915
+ /**
916
+ * Hook point name.
917
+ */
918
+ hook_point: string;
919
+ /**
920
+ * HTTPS endpoint URL.
921
+ */
922
+ url: string;
923
+ /**
924
+ * Timeout in ms.
925
+ */
926
+ timeout_ms?: number;
927
+ /**
928
+ * open or closed.
929
+ */
930
+ fail_mode?: string;
931
+ /**
932
+ * Whether active.
933
+ */
934
+ enabled?: boolean;
935
+ /**
936
+ * Standard Webhooks HMAC-SHA256 signing secret (shown once).
937
+ */
938
+ signing_secret: string;
939
+ [key: string]: unknown;
940
+ };
941
+ /**
942
+ * List of configured blocking hooks.
943
+ */
944
+ export type HookList = {
945
+ /**
946
+ * Hooks.
947
+ */
948
+ hooks: HookView[];
949
+ };
950
+ /**
951
+ * Configured blocking commerce extension hook (secret redacted).
952
+ */
953
+ export type HookView = {
954
+ /**
955
+ * Hook UUID.
956
+ */
957
+ id?: string;
958
+ /**
959
+ * buybox.rank, shipping.quote, tax.quote, checkout.validate, or fulfillment.label.
960
+ */
961
+ hook_point?: string;
962
+ /**
963
+ * Optional store UUID.
964
+ */
965
+ store_id?: string | null;
966
+ /**
967
+ * HTTPS endpoint URL.
968
+ */
969
+ url?: string;
970
+ /**
971
+ * Timeout in ms (300..5000).
972
+ */
973
+ timeout_ms?: number;
974
+ /**
975
+ * open or closed.
976
+ */
977
+ fail_mode?: string;
978
+ /**
979
+ * Whether active.
980
+ */
981
+ enabled?: boolean;
982
+ /**
983
+ * Creation timestamp.
984
+ */
985
+ created_at?: string;
986
+ [key: string]: unknown;
987
+ };
988
+ /**
989
+ * Optimistic-locked inventory snapshot per listing and location.
990
+ */
991
+ export type InventoryLevel = {
992
+ /**
993
+ * Listing UUID.
994
+ */
995
+ listing_id?: string;
996
+ /**
997
+ * Stock location UUID.
998
+ */
999
+ location_id?: string;
1000
+ /**
1001
+ * Physical quantity on hand.
1002
+ */
1003
+ on_hand?: number;
1004
+ /**
1005
+ * Quantity reserved by active checkouts.
1006
+ */
1007
+ reserved?: number;
1008
+ /**
1009
+ * Sellable quantity (on_hand - reserved).
1010
+ */
1011
+ available?: number;
1012
+ /**
1013
+ * Optimistic concurrency version.
1014
+ */
1015
+ version?: number;
1016
+ /**
1017
+ * Last update timestamp.
1018
+ */
1019
+ updated_at?: string;
1020
+ [key: string]: unknown;
1021
+ };
1022
+ /**
1023
+ * List of inventory levels.
1024
+ */
1025
+ export type InventoryLevelList = {
1026
+ /**
1027
+ * Inventory levels.
1028
+ */
1029
+ inventory: InventoryLevel[];
1030
+ };
1031
+ /**
1032
+ * Immutable inventory ledger movement.
1033
+ */
1034
+ export type InventoryMovement = {
1035
+ /**
1036
+ * Movement UUID.
1037
+ */
1038
+ id?: string;
1039
+ /**
1040
+ * Listing UUID.
1041
+ */
1042
+ listing_id?: string;
1043
+ /**
1044
+ * Location UUID.
1045
+ */
1046
+ location_id?: string;
1047
+ /**
1048
+ * Signed quantity delta.
1049
+ */
1050
+ delta?: number;
1051
+ /**
1052
+ * Movement reason.
1053
+ */
1054
+ reason?: string;
1055
+ /**
1056
+ * Related order/return ID.
1057
+ */
1058
+ reference_id?: string | null;
1059
+ /**
1060
+ * Timestamp.
1061
+ */
1062
+ created_at?: string;
1063
+ [key: string]: unknown;
1064
+ };
1065
+ /**
1066
+ * List of inventory movements.
1067
+ */
1068
+ export type InventoryMovementList = {
1069
+ /**
1070
+ * Movements.
1071
+ */
1072
+ movements: InventoryMovement[];
1073
+ };
1074
+ /**
1075
+ * Tax invoice or e-Arsiv/e-Fatura record with legal hold.
1076
+ */
1077
+ export type Invoice = {
1078
+ /**
1079
+ * Invoice UUID.
1080
+ */
1081
+ id?: string;
1082
+ /**
1083
+ * Order UUID.
1084
+ */
1085
+ order_id?: string;
1086
+ /**
1087
+ * Optional store order UUID.
1088
+ */
1089
+ store_order_id?: string | null;
1090
+ /**
1091
+ * Invoice number.
1092
+ */
1093
+ invoice_number?: string;
1094
+ /**
1095
+ * Turkish GIB ETTN UUID.
1096
+ */
1097
+ ettn?: string | null;
1098
+ /**
1099
+ * draft, issued, voided, or credited.
1100
+ */
1101
+ status?: string;
1102
+ /**
1103
+ * Invoice total.
1104
+ */
1105
+ total_amount?: number;
1106
+ /**
1107
+ * Statutory retention date (YYYY-MM-DD).
1108
+ */
1109
+ legal_hold_until?: string | null;
1110
+ /**
1111
+ * Issuance timestamp.
1112
+ */
1113
+ issued_at?: string | null;
1114
+ [key: string]: unknown;
1115
+ };
1116
+ /**
1117
+ * List of invoices.
1118
+ */
1119
+ export type InvoiceList = {
1120
+ /**
1121
+ * Invoices.
1122
+ */
1123
+ invoices: Invoice[];
1124
+ };
1125
+ /**
1126
+ * A seller's offer for a catalog variant.
1127
+ */
1128
+ export type Listing = {
1129
+ /**
1130
+ * Listing UUID.
1131
+ */
1132
+ id?: string;
1133
+ /**
1134
+ * Store UUID.
1135
+ */
1136
+ store_id?: string;
1137
+ /**
1138
+ * Product UUID.
1139
+ */
1140
+ product_id?: string;
1141
+ /**
1142
+ * Variant UUID.
1143
+ */
1144
+ variant_id?: string;
1145
+ /**
1146
+ * Seller's internal SKU.
1147
+ */
1148
+ seller_sku?: string;
1149
+ /**
1150
+ * new, refurbished, or used.
1151
+ */
1152
+ condition?: string;
1153
+ /**
1154
+ * draft, active, paused, or archived.
1155
+ */
1156
+ status?: string;
1157
+ /**
1158
+ * deny, continue, or infinite.
1159
+ */
1160
+ inventory_policy?: string;
1161
+ /**
1162
+ * Handling SLA in days.
1163
+ */
1164
+ handling_days?: number;
1165
+ /**
1166
+ * Optional per-order cap.
1167
+ */
1168
+ max_qty_per_order?: number | null;
1169
+ /**
1170
+ * Creation timestamp.
1171
+ */
1172
+ created_at?: string;
1173
+ [key: string]: unknown;
1174
+ };
1175
+ /**
1176
+ * List of listings.
1177
+ */
1178
+ export type ListingList = {
1179
+ /**
1180
+ * Listings.
1181
+ */
1182
+ listings: Listing[];
1183
+ };
1184
+ /**
1185
+ * Product or variant image/video asset.
1186
+ */
1187
+ export type MediaAsset = {
1188
+ /**
1189
+ * Media UUID.
1190
+ */
1191
+ id?: string;
1192
+ /**
1193
+ * product, variant, or listing.
1194
+ */
1195
+ owner_kind?: string;
1196
+ /**
1197
+ * Owner UUID.
1198
+ */
1199
+ owner_id?: string;
1200
+ /**
1201
+ * Public media URL.
1202
+ */
1203
+ url?: string;
1204
+ /**
1205
+ * Alt text.
1206
+ */
1207
+ alt_text?: string;
1208
+ /**
1209
+ * Sort position.
1210
+ */
1211
+ position?: number;
1212
+ [key: string]: unknown;
1213
+ };
1214
+ /**
1215
+ * Temporary PSP sub-merchant KYC onboarding redirect URL.
1216
+ */
1217
+ export type OnboardingLink = {
1218
+ /**
1219
+ * Provider hosted onboarding URL.
1220
+ */
1221
+ url: string;
1222
+ /**
1223
+ * Expiration timestamp.
1224
+ */
1225
+ expires_at?: string | null;
1226
+ [key: string]: unknown;
1227
+ };
1228
+ /**
1229
+ * Buyer-facing parent order.
1230
+ */
1231
+ export type Order = {
1232
+ /**
1233
+ * Order UUID.
1234
+ */
1235
+ id?: string;
1236
+ /**
1237
+ * Sequential order number.
1238
+ */
1239
+ order_number?: string;
1240
+ /**
1241
+ * standard, exchange, or manual.
1242
+ */
1243
+ order_kind?: string;
1244
+ /**
1245
+ * Customer user ID.
1246
+ */
1247
+ customer_id?: string | null;
1248
+ /**
1249
+ * ISO 4217 currency.
1250
+ */
1251
+ currency?: string;
1252
+ /**
1253
+ * Order status.
1254
+ */
1255
+ status?: string;
1256
+ /**
1257
+ * Subtotal.
1258
+ */
1259
+ subtotal_amount?: number;
1260
+ /**
1261
+ * Item discount total.
1262
+ */
1263
+ discount_amount?: number;
1264
+ /**
1265
+ * Shipping total.
1266
+ */
1267
+ shipping_amount?: number;
1268
+ /**
1269
+ * Shipping discount total.
1270
+ */
1271
+ shipping_discount_amount?: number;
1272
+ /**
1273
+ * Tax total.
1274
+ */
1275
+ tax_amount?: number;
1276
+ /**
1277
+ * Order principal total.
1278
+ */
1279
+ total_amount?: number;
1280
+ /**
1281
+ * Buyer installment fee (vade farki).
1282
+ */
1283
+ installment_fee_amount?: number;
1284
+ /**
1285
+ * Total charged including installment fee.
1286
+ */
1287
+ paid_total_amount?: number;
1288
+ /**
1289
+ * Total refunded amount.
1290
+ */
1291
+ refunded_amount?: number;
1292
+ /**
1293
+ * Order creation timestamp.
1294
+ */
1295
+ placed_at?: string;
1296
+ /**
1297
+ * Payment timestamp.
1298
+ */
1299
+ paid_at?: string | null;
1300
+ [key: string]: unknown;
1301
+ };
1302
+ /**
1303
+ * Full order view with store orders and line items.
1304
+ */
1305
+ export type OrderDetail = {
1306
+ order?: Order;
1307
+ /**
1308
+ * Per-store split orders.
1309
+ */
1310
+ store_orders?: StoreOrder[];
1311
+ /**
1312
+ * Order lines.
1313
+ */
1314
+ lines?: OrderLine[];
1315
+ [key: string]: unknown;
1316
+ };
1317
+ /**
1318
+ * Digital files and assigned license keys for a paid order.
1319
+ */
1320
+ export type OrderDownloads = {
1321
+ /**
1322
+ * Signed download assets.
1323
+ */
1324
+ assets: DigitalDownload[];
1325
+ /**
1326
+ * Assigned license keys.
1327
+ */
1328
+ license_keys: AssignedLicenseKey[];
1329
+ };
1330
+ /**
1331
+ * Line item on an order and store order.
1332
+ */
1333
+ export type OrderLine = {
1334
+ /**
1335
+ * Order line UUID.
1336
+ */
1337
+ id?: string;
1338
+ /**
1339
+ * Store order UUID.
1340
+ */
1341
+ store_order_id?: string;
1342
+ /**
1343
+ * Store UUID.
1344
+ */
1345
+ store_id?: string;
1346
+ /**
1347
+ * Parent bundle line UUID.
1348
+ */
1349
+ parent_line_id?: string | null;
1350
+ /**
1351
+ * Whether this is a display-only bundle header line.
1352
+ */
1353
+ is_bundle_parent?: boolean;
1354
+ /**
1355
+ * Product title.
1356
+ */
1357
+ title?: string;
1358
+ /**
1359
+ * Variant title.
1360
+ */
1361
+ variant_title?: string;
1362
+ /**
1363
+ * physical, digital, service, or external.
1364
+ */
1365
+ fulfillment_kind?: string;
1366
+ /**
1367
+ * Granted IAP entitlement key.
1368
+ */
1369
+ grants_entitlement_key?: string | null;
1370
+ /**
1371
+ * Ordered quantity.
1372
+ */
1373
+ quantity?: number;
1374
+ /**
1375
+ * Fulfilled quantity.
1376
+ */
1377
+ fulfilled_quantity?: number;
1378
+ /**
1379
+ * Canceled quantity.
1380
+ */
1381
+ canceled_quantity?: number;
1382
+ /**
1383
+ * Returned quantity.
1384
+ */
1385
+ returned_quantity?: number;
1386
+ /**
1387
+ * Unit amount.
1388
+ */
1389
+ unit_amount?: number;
1390
+ /**
1391
+ * Line total.
1392
+ */
1393
+ total_amount?: number;
1394
+ /**
1395
+ * Escrow/settlement state.
1396
+ */
1397
+ settlement_status?: string;
1398
+ /**
1399
+ * Scheduled escrow release timestamp.
1400
+ */
1401
+ escrow_release_at?: string | null;
1402
+ [key: string]: unknown;
1403
+ };
1404
+ /**
1405
+ * Paged list of orders.
1406
+ */
1407
+ export type OrderList = {
1408
+ /**
1409
+ * Orders.
1410
+ */
1411
+ orders: Order[];
1412
+ /**
1413
+ * Cursor for next page.
1414
+ */
1415
+ next_cursor?: string;
1416
+ };
1417
+ /**
1418
+ * Listing price record in minor currency units.
1419
+ */
1420
+ export type Price = {
1421
+ /**
1422
+ * Price UUID.
1423
+ */
1424
+ id?: string;
1425
+ /**
1426
+ * Listing UUID.
1427
+ */
1428
+ listing_id?: string;
1429
+ /**
1430
+ * Optional price list UUID.
1431
+ */
1432
+ price_list_id?: string | null;
1433
+ /**
1434
+ * ISO 4217 currency code.
1435
+ */
1436
+ currency?: string;
1437
+ /**
1438
+ * Price in minor currency units.
1439
+ */
1440
+ unit_amount?: number;
1441
+ /**
1442
+ * Strike-through original price.
1443
+ */
1444
+ compare_at_amount?: number | null;
1445
+ /**
1446
+ * Tier minimum quantity.
1447
+ */
1448
+ min_quantity?: number;
1449
+ /**
1450
+ * Whether price is active.
1451
+ */
1452
+ active?: boolean;
1453
+ [key: string]: unknown;
1454
+ };
1455
+ /**
1456
+ * Segmented or scheduled price list (B2B, VIP, flash sale).
1457
+ */
1458
+ export type PriceList = {
1459
+ /**
1460
+ * Price list UUID.
1461
+ */
1462
+ id?: string;
1463
+ /**
1464
+ * Unique slug.
1465
+ */
1466
+ key?: string;
1467
+ /**
1468
+ * Display name.
1469
+ */
1470
+ name?: string;
1471
+ /**
1472
+ * draft, active, or archived.
1473
+ */
1474
+ status?: string;
1475
+ /**
1476
+ * Start timestamp.
1477
+ */
1478
+ starts_at?: string | null;
1479
+ /**
1480
+ * End timestamp.
1481
+ */
1482
+ ends_at?: string | null;
1483
+ [key: string]: unknown;
1484
+ };
1485
+ /**
1486
+ * List of price lists.
1487
+ */
1488
+ export type PriceListCollection = {
1489
+ /**
1490
+ * Price lists.
1491
+ */
1492
+ price_lists: PriceList[];
1493
+ };
1494
+ /**
1495
+ * Shared or store-owned catalog product.
1496
+ */
1497
+ export type Product = {
1498
+ /**
1499
+ * Product UUID.
1500
+ */
1501
+ id?: string;
1502
+ /**
1503
+ * URL-friendly handle.
1504
+ */
1505
+ handle?: string;
1506
+ /**
1507
+ * Product title.
1508
+ */
1509
+ title?: string;
1510
+ /**
1511
+ * Product description.
1512
+ */
1513
+ description?: string;
1514
+ /**
1515
+ * draft, active, or archived.
1516
+ */
1517
+ status?: string;
1518
+ /**
1519
+ * pending, approved, or rejected.
1520
+ */
1521
+ approval_status?: string;
1522
+ /**
1523
+ * Brand UUID.
1524
+ */
1525
+ brand_id?: string | null;
1526
+ /**
1527
+ * Category UUID.
1528
+ */
1529
+ category_id?: string | null;
1530
+ /**
1531
+ * Store UUID when private.
1532
+ */
1533
+ owner_store_id?: string | null;
1534
+ /**
1535
+ * Whether multiple stores may list against this product.
1536
+ */
1537
+ shared_catalog?: boolean;
1538
+ /**
1539
+ * Tax category slug.
1540
+ */
1541
+ tax_category?: string;
1542
+ /**
1543
+ * Custom product metadata.
1544
+ */
1545
+ metadata?: {
1546
+ [key: string]: unknown;
1547
+ };
1548
+ /**
1549
+ * Creation timestamp.
1550
+ */
1551
+ created_at?: string;
1552
+ /**
1553
+ * Last update timestamp.
1554
+ */
1555
+ updated_at?: string;
1556
+ [key: string]: unknown;
1557
+ };
1558
+ /**
1559
+ * Detailed product view including variants, listings, Buy Box winner, and media.
1560
+ */
1561
+ export type ProductDetail = {
1562
+ product?: Product;
1563
+ /**
1564
+ * Product variants.
1565
+ */
1566
+ variants?: Variant[];
1567
+ /**
1568
+ * Active seller listings.
1569
+ */
1570
+ listings?: Listing[];
1571
+ /**
1572
+ * Product media.
1573
+ */
1574
+ media?: MediaAsset[];
1575
+ [key: string]: unknown;
1576
+ };
1577
+ /**
1578
+ * Paged list of products.
1579
+ */
1580
+ export type ProductList = {
1581
+ /**
1582
+ * Products.
1583
+ */
1584
+ products: Product[];
1585
+ /**
1586
+ * Cursor for next page.
1587
+ */
1588
+ next_cursor?: string;
1589
+ };
1590
+ /**
1591
+ * Redeemable coupon or referral code.
1592
+ */
1593
+ export type PromotionCode = {
1594
+ /**
1595
+ * Code UUID.
1596
+ */
1597
+ id?: string;
1598
+ /**
1599
+ * Promotion rule UUID.
1600
+ */
1601
+ rule_id?: string;
1602
+ /**
1603
+ * Uppercase promo code.
1604
+ */
1605
+ code?: string;
1606
+ /**
1607
+ * active, exhausted, expired, or revoked.
1608
+ */
1609
+ status?: string;
1610
+ /**
1611
+ * Max uses for this code.
1612
+ */
1613
+ max_uses?: number | null;
1614
+ /**
1615
+ * Current committed uses.
1616
+ */
1617
+ uses_count?: number;
1618
+ /**
1619
+ * Optional restricted user ID.
1620
+ */
1621
+ assigned_user_id?: string | null;
1622
+ /**
1623
+ * Referrer customer ID.
1624
+ */
1625
+ referrer_customer_id?: string | null;
1626
+ /**
1627
+ * Code expiry.
1628
+ */
1629
+ expires_at?: string | null;
1630
+ /**
1631
+ * Creation timestamp.
1632
+ */
1633
+ created_at?: string;
1634
+ [key: string]: unknown;
1635
+ };
1636
+ /**
1637
+ * Generated batch of single-use promotion codes.
1638
+ */
1639
+ export type PromotionCodeBatch = {
1640
+ /**
1641
+ * Generated codes.
1642
+ */
1643
+ codes: PromotionCode[];
1644
+ /**
1645
+ * Number of codes created.
1646
+ */
1647
+ count: number;
1648
+ };
1649
+ /**
1650
+ * List of promotion codes.
1651
+ */
1652
+ export type PromotionCodeList = {
1653
+ /**
1654
+ * Codes.
1655
+ */
1656
+ codes: PromotionCode[];
1657
+ };
1658
+ /**
1659
+ * Deterministic promotion evaluation result with Hamilton per-line adjustments.
1660
+ */
1661
+ export type PromotionEvalResult = {
1662
+ /**
1663
+ * Total item discount.
1664
+ */
1665
+ total_discount_amount?: number;
1666
+ /**
1667
+ * Total shipping discount.
1668
+ */
1669
+ shipping_discount_amount?: number;
1670
+ /**
1671
+ * Total wallet cashback earned.
1672
+ */
1673
+ wallet_cashback_amount?: number;
1674
+ /**
1675
+ * Applied rules.
1676
+ */
1677
+ applied_rules?: GenericPayload[];
1678
+ /**
1679
+ * Per-line and per-store adjustments.
1680
+ */
1681
+ adjustments?: GenericPayload[];
1682
+ /**
1683
+ * Rejected promo codes with reasons.
1684
+ */
1685
+ rejected_codes?: GenericPayload[];
1686
+ [key: string]: unknown;
1687
+ };
1688
+ /**
1689
+ * Created standalone promotion holds and evaluation snapshot.
1690
+ */
1691
+ export type PromotionHoldResponse = {
1692
+ evaluation?: PromotionEvalResult;
1693
+ /**
1694
+ * Created holds.
1695
+ */
1696
+ holds?: GenericPayload[];
1697
+ [key: string]: unknown;
1698
+ };
1699
+ /**
1700
+ * Committed or reversed promotion redemption record.
1701
+ */
1702
+ export type PromotionRedemption = {
1703
+ /**
1704
+ * Redemption UUID.
1705
+ */
1706
+ id?: string;
1707
+ /**
1708
+ * Rule UUID.
1709
+ */
1710
+ rule_id?: string;
1711
+ /**
1712
+ * Code UUID.
1713
+ */
1714
+ code_id?: string | null;
1715
+ /**
1716
+ * Customer ID.
1717
+ */
1718
+ customer_id?: string | null;
1719
+ /**
1720
+ * commerce_order or external.
1721
+ */
1722
+ reference_type?: string;
1723
+ /**
1724
+ * External reference UUID.
1725
+ */
1726
+ reference_id?: string;
1727
+ /**
1728
+ * ISO 4217 currency.
1729
+ */
1730
+ currency?: string;
1731
+ /**
1732
+ * Total discount committed.
1733
+ */
1734
+ discount_amount?: number;
1735
+ /**
1736
+ * committed or reversed.
1737
+ */
1738
+ status?: string;
1739
+ /**
1740
+ * Creation timestamp.
1741
+ */
1742
+ created_at?: string;
1743
+ [key: string]: unknown;
1744
+ };
1745
+ /**
1746
+ * List of promotion redemptions.
1747
+ */
1748
+ export type PromotionRedemptionList = {
1749
+ /**
1750
+ * Redemptions.
1751
+ */
1752
+ redemptions: PromotionRedemption[];
1753
+ };
1754
+ /**
1755
+ * Promotion rule with recursive condition tree, effect, stacking, and funding split.
1756
+ */
1757
+ export type PromotionRule = {
1758
+ /**
1759
+ * Rule UUID.
1760
+ */
1761
+ id?: string;
1762
+ /**
1763
+ * Unique rule slug.
1764
+ */
1765
+ key?: string;
1766
+ /**
1767
+ * Rule name.
1768
+ */
1769
+ name?: string;
1770
+ /**
1771
+ * Owning store UUID for seller promos.
1772
+ */
1773
+ owner_store_id?: string | null;
1774
+ /**
1775
+ * automatic, code, or referral.
1776
+ */
1777
+ trigger_kind?: string;
1778
+ /**
1779
+ * draft, active, paused, or archived.
1780
+ */
1781
+ status?: string;
1782
+ /**
1783
+ * platform, seller, or shared.
1784
+ */
1785
+ funded_by?: string;
1786
+ /**
1787
+ * Platform funding share in bps (0..10000).
1788
+ */
1789
+ platform_share_bps?: number;
1790
+ /**
1791
+ * percent_off, fixed_off, free_shipping, bxgy, or wallet_cashback.
1792
+ */
1793
+ effect_kind?: string;
1794
+ /**
1795
+ * Effect JSON parameters.
1796
+ */
1797
+ effect?: {
1798
+ [key: string]: unknown;
1799
+ };
1800
+ /**
1801
+ * Recursive all/any/not condition tree.
1802
+ */
1803
+ conditions?: {
1804
+ [key: string]: unknown;
1805
+ };
1806
+ /**
1807
+ * Stacking group.
1808
+ */
1809
+ stack_group?: string;
1810
+ /**
1811
+ * Combinable stack groups.
1812
+ */
1813
+ combinable_with?: string[];
1814
+ /**
1815
+ * Evaluation priority (lower runs first).
1816
+ */
1817
+ priority?: number;
1818
+ /**
1819
+ * proportional, forfeit_if_below_min, or keep.
1820
+ */
1821
+ partial_return_policy?: string;
1822
+ /**
1823
+ * Require signed-in customer.
1824
+ */
1825
+ signed_in_only?: boolean;
1826
+ /**
1827
+ * Global usage cap.
1828
+ */
1829
+ max_total_uses?: number | null;
1830
+ /**
1831
+ * Per-customer usage cap.
1832
+ */
1833
+ max_uses_per_customer?: number | null;
1834
+ /**
1835
+ * Start timestamp.
1836
+ */
1837
+ starts_at?: string | null;
1838
+ /**
1839
+ * End timestamp.
1840
+ */
1841
+ ends_at?: string | null;
1842
+ /**
1843
+ * Custom metadata.
1844
+ */
1845
+ metadata?: {
1846
+ [key: string]: unknown;
1847
+ };
1848
+ /**
1849
+ * Creation timestamp.
1850
+ */
1851
+ created_at?: string;
1852
+ /**
1853
+ * Last update timestamp.
1854
+ */
1855
+ updated_at?: string;
1856
+ [key: string]: unknown;
1857
+ };
1858
+ /**
1859
+ * Paged list of promotion rules.
1860
+ */
1861
+ export type PromotionRuleList = {
1862
+ /**
1863
+ * Promotion rules.
1864
+ */
1865
+ rules: PromotionRule[];
1866
+ /**
1867
+ * Cursor for next page.
1868
+ */
1869
+ next_cursor?: string;
1870
+ };
1871
+ /**
1872
+ * Payload for promotions.rule.created.
1873
+ */
1874
+ export type PromotionsRuleCreatedEvent = {
1875
+ /**
1876
+ * Rule UUID.
1877
+ */
1878
+ rule_id?: string;
1879
+ /**
1880
+ * Rule key.
1881
+ */
1882
+ key?: string;
1883
+ /**
1884
+ * Effect kind.
1885
+ */
1886
+ effect_kind?: string;
1887
+ /**
1888
+ * platform, seller, or shared.
1889
+ */
1890
+ funded_by?: string;
1891
+ [key: string]: unknown;
1892
+ };
1893
+ /**
1894
+ * Result of single-call quick product + variant + listing + price + stock creation.
1895
+ */
1896
+ export type QuickProductResponse = {
1897
+ product?: Product;
1898
+ variant?: Variant;
1899
+ listing?: Listing;
1900
+ [key: string]: unknown;
1901
+ };
1902
+ /**
1903
+ * Sales region defining currency, tax mode, and supported countries.
1904
+ */
1905
+ export type Region = {
1906
+ /**
1907
+ * Region UUID.
1908
+ */
1909
+ id?: string;
1910
+ /**
1911
+ * Unique region slug.
1912
+ */
1913
+ key?: string;
1914
+ /**
1915
+ * Display name.
1916
+ */
1917
+ name?: string;
1918
+ /**
1919
+ * ISO 4217 currency code.
1920
+ */
1921
+ currency?: string;
1922
+ /**
1923
+ * ISO 3166-1 alpha-2 country codes.
1924
+ */
1925
+ countries?: string[];
1926
+ /**
1927
+ * Whether prices are tax-inclusive.
1928
+ */
1929
+ tax_included?: boolean;
1930
+ /**
1931
+ * Whether region is active.
1932
+ */
1933
+ active?: boolean;
1934
+ /**
1935
+ * Creation timestamp.
1936
+ */
1937
+ created_at?: string;
1938
+ [key: string]: unknown;
1939
+ };
1940
+ /**
1941
+ * List of sales regions.
1942
+ */
1943
+ export type RegionList = {
1944
+ /**
1945
+ * Regions.
1946
+ */
1947
+ regions: Region[];
1948
+ };
1949
+ /**
1950
+ * List of returns.
1951
+ */
1952
+ export type ReturnList = {
1953
+ /**
1954
+ * Returns.
1955
+ */
1956
+ returns: ReturnRecord[];
1957
+ };
1958
+ /**
1959
+ * RMA return or partial-refund record.
1960
+ */
1961
+ export type ReturnRecord = {
1962
+ /**
1963
+ * Return UUID.
1964
+ */
1965
+ id?: string;
1966
+ /**
1967
+ * Sequential RMA number.
1968
+ */
1969
+ rma_number?: string;
1970
+ /**
1971
+ * Store order UUID.
1972
+ */
1973
+ store_order_id?: string;
1974
+ /**
1975
+ * Store UUID.
1976
+ */
1977
+ store_id?: string;
1978
+ /**
1979
+ * requested, approved, received, refunded, or rejected.
1980
+ */
1981
+ status?: string;
1982
+ /**
1983
+ * Total refund amount.
1984
+ */
1985
+ refund_total_amount?: number;
1986
+ /**
1987
+ * Creation timestamp.
1988
+ */
1989
+ created_at?: string;
1990
+ [key: string]: unknown;
1991
+ };
1992
+ /**
1993
+ * Deduplicated seller payout settlement statement.
1994
+ */
1995
+ export type Settlement = {
1996
+ /**
1997
+ * Settlement UUID.
1998
+ */
1999
+ id?: string;
2000
+ /**
2001
+ * Store UUID.
2002
+ */
2003
+ store_id?: string;
2004
+ /**
2005
+ * ISO 4217 currency.
2006
+ */
2007
+ currency?: string;
2008
+ /**
2009
+ * draft, scheduled, or paid.
2010
+ */
2011
+ status?: string;
2012
+ /**
2013
+ * Gross sales.
2014
+ */
2015
+ gross_amount?: number;
2016
+ /**
2017
+ * Platform commissions.
2018
+ */
2019
+ commission_amount?: number;
2020
+ /**
2021
+ * Withholding tax.
2022
+ */
2023
+ withholding_tax_amount?: number;
2024
+ /**
2025
+ * Net payout amount.
2026
+ */
2027
+ net_payout_amount?: number;
2028
+ /**
2029
+ * Period start.
2030
+ */
2031
+ period_start_at?: string;
2032
+ /**
2033
+ * Period end.
2034
+ */
2035
+ period_end_at?: string;
2036
+ [key: string]: unknown;
2037
+ };
2038
+ /**
2039
+ * List of settlements.
2040
+ */
2041
+ export type SettlementList = {
2042
+ /**
2043
+ * Settlements.
2044
+ */
2045
+ settlements: Settlement[];
2046
+ };
2047
+ /**
2048
+ * Flat-rate, threshold-free, or external carrier shipping option.
2049
+ */
2050
+ export type ShippingOption = {
2051
+ /**
2052
+ * Shipping option UUID.
2053
+ */
2054
+ id?: string;
2055
+ /**
2056
+ * Optional store UUID.
2057
+ */
2058
+ store_id?: string | null;
2059
+ /**
2060
+ * Shipping method name.
2061
+ */
2062
+ name?: string;
2063
+ /**
2064
+ * ISO 4217 currency.
2065
+ */
2066
+ currency?: string;
2067
+ /**
2068
+ * Shipping cost in minor units.
2069
+ */
2070
+ amount?: number;
2071
+ /**
2072
+ * Free shipping threshold.
2073
+ */
2074
+ free_over_amount?: number | null;
2075
+ /**
2076
+ * seller or platform.
2077
+ */
2078
+ shipping_recipient?: string;
2079
+ /**
2080
+ * Whether active.
2081
+ */
2082
+ active?: boolean;
2083
+ [key: string]: unknown;
2084
+ };
2085
+ /**
2086
+ * List of shipping options.
2087
+ */
2088
+ export type ShippingOptionList = {
2089
+ /**
2090
+ * Options.
2091
+ */
2092
+ shipping_options: ShippingOption[];
2093
+ };
2094
+ /**
2095
+ * Shipping profile grouping products with similar shipping rules.
2096
+ */
2097
+ export type ShippingProfile = {
2098
+ /**
2099
+ * Shipping profile UUID.
2100
+ */
2101
+ id?: string;
2102
+ /**
2103
+ * Unique key.
2104
+ */
2105
+ key?: string;
2106
+ /**
2107
+ * Display name.
2108
+ */
2109
+ name?: string;
2110
+ [key: string]: unknown;
2111
+ };
2112
+ /**
2113
+ * List of shipping profiles.
2114
+ */
2115
+ export type ShippingProfileList = {
2116
+ /**
2117
+ * Profiles.
2118
+ */
2119
+ shipping_profiles: ShippingProfile[];
2120
+ };
2121
+ /**
2122
+ * Warehouse, branch, or store fulfillment location.
2123
+ */
2124
+ export type StockLocation = {
2125
+ /**
2126
+ * Location UUID.
2127
+ */
2128
+ id?: string;
2129
+ /**
2130
+ * Owning store UUID.
2131
+ */
2132
+ store_id?: string;
2133
+ /**
2134
+ * Location code.
2135
+ */
2136
+ code?: string;
2137
+ /**
2138
+ * Location display name.
2139
+ */
2140
+ name?: string;
2141
+ /**
2142
+ * Allocation priority.
2143
+ */
2144
+ priority?: number;
2145
+ /**
2146
+ * Whether active.
2147
+ */
2148
+ active?: boolean;
2149
+ [key: string]: unknown;
2150
+ };
2151
+ /**
2152
+ * List of stock locations.
2153
+ */
2154
+ export type StockLocationList = {
2155
+ /**
2156
+ * Stock locations.
2157
+ */
2158
+ locations: StockLocation[];
2159
+ };
2160
+ /**
2161
+ * First-party or third-party marketplace seller store.
2162
+ */
2163
+ export type Store = {
2164
+ /**
2165
+ * Store UUID.
2166
+ */
2167
+ id?: string;
2168
+ /**
2169
+ * Unique store slug.
2170
+ */
2171
+ slug?: string;
2172
+ /**
2173
+ * Store display name.
2174
+ */
2175
+ name?: string;
2176
+ /**
2177
+ * first_party or third_party.
2178
+ */
2179
+ kind?: string;
2180
+ /**
2181
+ * pending, active, suspended, or closed.
2182
+ */
2183
+ status?: string;
2184
+ /**
2185
+ * Whether store is temporarily paused.
2186
+ */
2187
+ vacation_mode?: boolean;
2188
+ /**
2189
+ * Store-level commission override in bps.
2190
+ */
2191
+ commission_bps?: number | null;
2192
+ /**
2193
+ * Store-level withholding tax override in bps.
2194
+ */
2195
+ withholding_bps?: number | null;
2196
+ /**
2197
+ * Store-level escrow release days override.
2198
+ */
2199
+ escrow_release_days?: number | null;
2200
+ /**
2201
+ * Custom store metadata.
2202
+ */
2203
+ metadata?: {
2204
+ [key: string]: unknown;
2205
+ };
2206
+ /**
2207
+ * Creation timestamp.
2208
+ */
2209
+ created_at?: string;
2210
+ /**
2211
+ * Last update timestamp.
2212
+ */
2213
+ updated_at?: string;
2214
+ [key: string]: unknown;
2215
+ };
2216
+ /**
2217
+ * Paged list of stores.
2218
+ */
2219
+ export type StoreList = {
2220
+ /**
2221
+ * Stores.
2222
+ */
2223
+ stores: Store[];
2224
+ /**
2225
+ * Cursor for next page.
2226
+ */
2227
+ next_cursor?: string;
2228
+ };
2229
+ /**
2230
+ * Seller portal team member assignment.
2231
+ */
2232
+ export type StoreMember = {
2233
+ /**
2234
+ * Store UUID.
2235
+ */
2236
+ store_id?: string;
2237
+ /**
2238
+ * Auth user ID.
2239
+ */
2240
+ user_id?: string;
2241
+ /**
2242
+ * viewer, fulfillment, manager, or owner.
2243
+ */
2244
+ role?: string;
2245
+ [key: string]: unknown;
2246
+ };
2247
+ /**
2248
+ * Seller quality and Buy Box metrics.
2249
+ */
2250
+ export type StoreMetrics = {
2251
+ /**
2252
+ * Store UUID.
2253
+ */
2254
+ store_id?: string;
2255
+ /**
2256
+ * Composite quality score (0..1000).
2257
+ */
2258
+ seller_score?: number;
2259
+ /**
2260
+ * On-time dispatch rate in bps.
2261
+ */
2262
+ on_time_dispatch_bps?: number;
2263
+ /**
2264
+ * Seller-fault cancellation rate in bps.
2265
+ */
2266
+ cancellation_rate_bps?: number;
2267
+ /**
2268
+ * Return rate in bps.
2269
+ */
2270
+ return_rate_bps?: number;
2271
+ /**
2272
+ * Total paid store orders.
2273
+ */
2274
+ total_orders?: number;
2275
+ /**
2276
+ * Last update timestamp.
2277
+ */
2278
+ updated_at?: string;
2279
+ [key: string]: unknown;
2280
+ };
2281
+ /**
2282
+ * Per-seller split order with marketplace financial breakdown.
2283
+ */
2284
+ export type StoreOrder = {
2285
+ /**
2286
+ * Store order UUID.
2287
+ */
2288
+ id?: string;
2289
+ /**
2290
+ * Parent order UUID.
2291
+ */
2292
+ order_id?: string;
2293
+ /**
2294
+ * Store UUID.
2295
+ */
2296
+ store_id?: string;
2297
+ /**
2298
+ * Per-store order number.
2299
+ */
2300
+ store_order_number?: string;
2301
+ /**
2302
+ * ISO 4217 currency.
2303
+ */
2304
+ currency?: string;
2305
+ /**
2306
+ * Store order status.
2307
+ */
2308
+ status?: string;
2309
+ /**
2310
+ * Store subtotal.
2311
+ */
2312
+ subtotal_amount?: number;
2313
+ /**
2314
+ * Seller-funded discount.
2315
+ */
2316
+ seller_discount_amount?: number;
2317
+ /**
2318
+ * Platform-funded discount.
2319
+ */
2320
+ platform_discount_amount?: number;
2321
+ /**
2322
+ * Store shipping.
2323
+ */
2324
+ shipping_amount?: number;
2325
+ /**
2326
+ * Buyer principal allocated to this store.
2327
+ */
2328
+ buyer_paid_principal_amount?: number;
2329
+ /**
2330
+ * Platform marketplace commission.
2331
+ */
2332
+ platform_commission_amount?: number;
2333
+ /**
2334
+ * E-commerce withholding tax (stopaj).
2335
+ */
2336
+ withholding_tax_amount?: number;
2337
+ /**
2338
+ * Net seller payout.
2339
+ */
2340
+ seller_net_amount?: number;
2341
+ /**
2342
+ * none, held, partial, released, or disputed.
2343
+ */
2344
+ escrow_status?: string;
2345
+ /**
2346
+ * Creation timestamp.
2347
+ */
2348
+ created_at?: string;
2349
+ [key: string]: unknown;
2350
+ };
2351
+ /**
2352
+ * Store order with its line items.
2353
+ */
2354
+ export type StoreOrderDetail = {
2355
+ store_order?: StoreOrder;
2356
+ /**
2357
+ * Store order lines.
2358
+ */
2359
+ lines?: OrderLine[];
2360
+ [key: string]: unknown;
2361
+ };
2362
+ /**
2363
+ * Paged list of store orders.
2364
+ */
2365
+ export type StoreOrderList = {
2366
+ /**
2367
+ * Store orders.
2368
+ */
2369
+ store_orders: StoreOrder[];
2370
+ /**
2371
+ * Cursor for next page.
2372
+ */
2373
+ next_cursor?: string;
2374
+ };
2375
+ /**
2376
+ * Synced PSP sub-merchant account for a store.
2377
+ */
2378
+ export type SubMerchantAccount = {
2379
+ /**
2380
+ * Payments sub-merchant UUID.
2381
+ */
2382
+ id?: string;
2383
+ /**
2384
+ * Payment channel slug.
2385
+ */
2386
+ channel_key?: string;
2387
+ /**
2388
+ * Commerce store UUID.
2389
+ */
2390
+ seller_ref?: string;
2391
+ /**
2392
+ * Provider name (stripe or iyzico).
2393
+ */
2394
+ provider?: string;
2395
+ /**
2396
+ * Provider sub-merchant ID.
2397
+ */
2398
+ external_id?: string;
2399
+ /**
2400
+ * personal, private_company, or limited_or_joint_stock.
2401
+ */
2402
+ sub_merchant_type?: string;
2403
+ /**
2404
+ * Onboarding status.
2405
+ */
2406
+ status?: string;
2407
+ /**
2408
+ * Whether charges are enabled.
2409
+ */
2410
+ charges_enabled?: boolean;
2411
+ /**
2412
+ * Whether payouts are enabled.
2413
+ */
2414
+ payouts_enabled?: boolean;
2415
+ [key: string]: unknown;
2416
+ };
2417
+ /**
2418
+ * Jurisdiction tax rate in basis points.
2419
+ */
2420
+ export type TaxRate = {
2421
+ /**
2422
+ * Tax rate UUID.
2423
+ */
2424
+ id?: string;
2425
+ /**
2426
+ * ISO country code.
2427
+ */
2428
+ country?: string;
2429
+ /**
2430
+ * Optional state/province code.
2431
+ */
2432
+ region_code?: string;
2433
+ /**
2434
+ * Tax category slug.
2435
+ */
2436
+ tax_category?: string;
2437
+ /**
2438
+ * Tax rate in basis points (2000 = 20%).
2439
+ */
2440
+ rate_bps?: number;
2441
+ /**
2442
+ * Tax label (e.g. KDV %20).
2443
+ */
2444
+ name?: string;
2445
+ [key: string]: unknown;
2446
+ };
2447
+ /**
2448
+ * List of tax rates.
2449
+ */
2450
+ export type TaxRateList = {
2451
+ /**
2452
+ * Tax rates.
2453
+ */
2454
+ tax_rates: TaxRate[];
2455
+ };
2456
+ /**
2457
+ * Sellable product variant (physical, digital, service, bundle, or IAP-bridged).
2458
+ */
2459
+ export type Variant = {
2460
+ /**
2461
+ * Variant UUID.
2462
+ */
2463
+ id?: string;
2464
+ /**
2465
+ * Product UUID.
2466
+ */
2467
+ product_id?: string;
2468
+ /**
2469
+ * Variant title.
2470
+ */
2471
+ title?: string;
2472
+ /**
2473
+ * Canonical SKU.
2474
+ */
2475
+ sku?: string;
2476
+ /**
2477
+ * GTIN/EAN/UPC barcode.
2478
+ */
2479
+ barcode?: string;
2480
+ /**
2481
+ * physical, digital, service, or external.
2482
+ */
2483
+ fulfillment_kind?: string;
2484
+ /**
2485
+ * Whether this variant explodes into bundle child lines.
2486
+ */
2487
+ is_bundle?: boolean;
2488
+ /**
2489
+ * IAP entitlement slug granted automatically when paid.
2490
+ */
2491
+ grants_entitlement_key?: string | null;
2492
+ /**
2493
+ * ISO 8601 duration for granted entitlement (empty for lifetime).
2494
+ */
2495
+ grants_entitlement_duration?: string | null;
2496
+ /**
2497
+ * Current winning Buy Box listing UUID.
2498
+ */
2499
+ buybox_listing_id?: string | null;
2500
+ /**
2501
+ * Creation timestamp.
2502
+ */
2503
+ created_at?: string;
2504
+ [key: string]: unknown;
2505
+ };
2506
+ /** The events this module sends the project's webhooks (x-palbase-events), by type: each one's payload, the event's data. */
2507
+ export interface Events {
2508
+ /**
2509
+ * The winning Buy Box listing for a variant changed.
2510
+ */
2511
+ "commerce.buybox.changed": CommerceBuyBoxEvent;
2512
+ /**
2513
+ * An active cart with items stayed idle past cart_abandon_after_seconds.
2514
+ */
2515
+ "commerce.cart.abandoned": CommerceCartAbandonedEvent;
2516
+ /**
2517
+ * A guest cart was merged into or claimed by a signed-in customer.
2518
+ */
2519
+ "commerce.cart.merged": CommerceCartMergedEvent;
2520
+ /**
2521
+ * A seller created a shipment, pickup, or digital fulfillment.
2522
+ */
2523
+ "commerce.fulfillment.created": CommerceFulfillmentEvent;
2524
+ /**
2525
+ * A fulfillment was marked delivered and escrow release scheduled.
2526
+ */
2527
+ "commerce.fulfillment.delivered": CommerceFulfillmentEvent;
2528
+ /**
2529
+ * A previously out-of-stock listing came back in stock.
2530
+ */
2531
+ "commerce.inventory.restocked": CommerceInventoryRestockedEvent;
2532
+ /**
2533
+ * A seller reduced the active price of a listing.
2534
+ */
2535
+ "commerce.listing.price_dropped": CommercePriceDroppedEvent;
2536
+ /**
2537
+ * A checkout created a new order and per-store split orders.
2538
+ */
2539
+ "commerce.order.created": CommerceOrderCreatedEvent;
2540
+ /**
2541
+ * An order was paid; inventory and promo holds committed and IAP entitlements emitted.
2542
+ */
2543
+ "commerce.order.paid": CommerceOrderPaidEvent;
2544
+ /**
2545
+ * An RMA return was completed and refunded.
2546
+ */
2547
+ "commerce.order.refunded": CommerceOrderRefundedEvent;
2548
+ /**
2549
+ * A catalog product was created.
2550
+ */
2551
+ "commerce.product.created": CommerceProductEvent;
2552
+ /**
2553
+ * A buyer or operator requested an RMA return.
2554
+ */
2555
+ "commerce.return.requested": CommerceReturnEvent;
2556
+ /**
2557
+ * A first-party or third-party marketplace store was created.
2558
+ */
2559
+ "commerce.store.created": CommerceStoreEvent;
2560
+ /**
2561
+ * A store order was fully or partially canceled.
2562
+ */
2563
+ "commerce.store_order.canceled": CommerceStoreOrderCanceledEvent;
2564
+ /**
2565
+ * A promotion rule was created.
2566
+ */
2567
+ "promotions.rule.created": PromotionsRuleCreatedEvent;
2568
+ }
2569
+ /** Palbase Commerce & Promotions */
2570
+ export declare function client(t: Transport): {
2571
+ /**
2572
+ * List brands
2573
+ *
2574
+ * List brands
2575
+ */
2576
+ listBrands(input?: {
2577
+ signal?: AbortSignal;
2578
+ }): Promise<Reply<200, BrandList>>;
2579
+ /**
2580
+ * Create brand
2581
+ *
2582
+ * Create brand
2583
+ */
2584
+ createBrand(input: {
2585
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2586
+ signal?: AbortSignal;
2587
+ }): Promise<Reply<201, Brand>>;
2588
+ /**
2589
+ * Create guest or customer cart
2590
+ *
2591
+ * Create guest or customer cart
2592
+ */
2593
+ createCart(input: {
2594
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2595
+ signal?: AbortSignal;
2596
+ }): Promise<Reply<201, Cart>>;
2597
+ /**
2598
+ * Get cart with live quoted totals
2599
+ *
2600
+ * Get cart with live quoted totals
2601
+ */
2602
+ getCart(input: {
2603
+ path: {
2604
+ cart_id: string;
2605
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2606
+ signal?: AbortSignal;
2607
+ }): Promise<Reply<200, Cart>>;
2608
+ /**
2609
+ * Update cart contact, addresses, or wallet amount
2610
+ *
2611
+ * Update cart contact, addresses, or wallet amount
2612
+ */
2613
+ updateCart(input: {
2614
+ path: {
2615
+ cart_id: string;
2616
+ };
2617
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2618
+ signal?: AbortSignal;
2619
+ }): Promise<Reply<200, Cart>>;
2620
+ /**
2621
+ * Execute single-TX checkout with stock/promo holds and marketplace payment intent
2622
+ *
2623
+ * Execute single-TX checkout with stock/promo holds and marketplace payment intent
2624
+ */
2625
+ checkoutCart(input: {
2626
+ path: {
2627
+ cart_id: string;
2628
+ };
2629
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2630
+ signal?: AbortSignal;
2631
+ }): Promise<Reply<201, CheckoutResponse>>;
2632
+ /**
2633
+ * Add listing item to cart
2634
+ *
2635
+ * Add listing item to cart
2636
+ */
2637
+ addCartItem(input: {
2638
+ path: {
2639
+ cart_id: string;
2640
+ };
2641
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2642
+ signal?: AbortSignal;
2643
+ }): Promise<Reply<200, Cart>>;
2644
+ /**
2645
+ * Remove line item from cart
2646
+ *
2647
+ * Remove line item from cart
2648
+ */
2649
+ deleteCartItem(input: {
2650
+ path: {
2651
+ cart_id: string; /** Path parameter line_id. */
2652
+ line_id: string;
2653
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2654
+ signal?: AbortSignal;
2655
+ }): Promise<Reply<200, Cart>>;
2656
+ /**
2657
+ * Update cart item quantity or selection
2658
+ *
2659
+ * Update cart item quantity or selection
2660
+ */
2661
+ updateCartItem(input: {
2662
+ path: {
2663
+ cart_id: string; /** Path parameter line_id. */
2664
+ line_id: string;
2665
+ };
2666
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2667
+ signal?: AbortSignal;
2668
+ }): Promise<Reply<200, Cart>>;
2669
+ /**
2670
+ * Merge guest cart into signed-in customer cart
2671
+ *
2672
+ * Merge guest cart into signed-in customer cart
2673
+ */
2674
+ mergeGuestCart(input: {
2675
+ path: {
2676
+ cart_id: string;
2677
+ };
2678
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2679
+ signal?: AbortSignal;
2680
+ }): Promise<Reply<200, Cart>>;
2681
+ /**
2682
+ * Apply promotion code to cart
2683
+ *
2684
+ * Apply promotion code to cart
2685
+ */
2686
+ applyCartPromoCode(input: {
2687
+ path: {
2688
+ cart_id: string;
2689
+ };
2690
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2691
+ signal?: AbortSignal;
2692
+ }): Promise<Reply<200, Cart>>;
2693
+ /**
2694
+ * Remove promotion code from cart
2695
+ *
2696
+ * Remove promotion code from cart
2697
+ */
2698
+ removeCartPromoCode(input: {
2699
+ path: {
2700
+ cart_id: string; /** Path parameter code. */
2701
+ code: string;
2702
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2703
+ signal?: AbortSignal;
2704
+ }): Promise<Reply<200, Cart>>;
2705
+ /**
2706
+ * Select shipping option for a store in cart
2707
+ *
2708
+ * Select shipping option for a store in cart
2709
+ */
2710
+ selectCartShipping(input: {
2711
+ path: {
2712
+ cart_id: string;
2713
+ };
2714
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2715
+ signal?: AbortSignal;
2716
+ }): Promise<Reply<200, Cart>>;
2717
+ /**
2718
+ * List storefront brands
2719
+ *
2720
+ * List storefront brands
2721
+ */
2722
+ storefrontListBrands(input?: {
2723
+ signal?: AbortSignal;
2724
+ }): Promise<Reply<200, BrandList>>;
2725
+ /**
2726
+ * List storefront categories
2727
+ *
2728
+ * List storefront categories
2729
+ */
2730
+ storefrontListCategories(input?: {
2731
+ signal?: AbortSignal;
2732
+ }): Promise<Reply<200, CategoryList>>;
2733
+ /**
2734
+ * List active sales channels
2735
+ *
2736
+ * List active sales channels
2737
+ */
2738
+ storefrontListChannels(input?: {
2739
+ signal?: AbortSignal;
2740
+ }): Promise<Reply<200, ChannelList>>;
2741
+ /**
2742
+ * List storefront collections
2743
+ *
2744
+ * List storefront collections
2745
+ */
2746
+ storefrontListCollections(input?: {
2747
+ signal?: AbortSignal;
2748
+ }): Promise<Reply<200, CollectionList>>;
2749
+ /**
2750
+ * List active storefront products
2751
+ *
2752
+ * List active storefront products
2753
+ */
2754
+ storefrontListProducts(input?: {
2755
+ query?: {
2756
+ limit?: number; /** Opaque keyset pagination cursor. */
2757
+ cursor?: string; /** Full-text or trigram search query. */
2758
+ q?: string; /** Filter by category UUID. */
2759
+ category_id?: string; /** Filter by brand UUID. */
2760
+ brand_id?: string; /** Filter by store UUID. */
2761
+ store_id?: string; /** Filter by collection UUID. */
2762
+ collection_id?: string; /** Channel key. */
2763
+ channel?: string;
2764
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2765
+ signal?: AbortSignal;
2766
+ }): Promise<Reply<200, ProductList>>;
2767
+ /**
2768
+ * Get storefront product with variants and Buy Box offers
2769
+ *
2770
+ * Get storefront product with variants and Buy Box offers
2771
+ */
2772
+ storefrontGetProduct(input: {
2773
+ path: {
2774
+ product_id_or_handle: string;
2775
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2776
+ signal?: AbortSignal;
2777
+ }): Promise<Reply<200, ProductDetail>>;
2778
+ /**
2779
+ * List active sales regions
2780
+ *
2781
+ * List active sales regions
2782
+ */
2783
+ storefrontListRegions(input?: {
2784
+ signal?: AbortSignal;
2785
+ }): Promise<Reply<200, RegionList>>;
2786
+ /**
2787
+ * List active marketplace stores
2788
+ *
2789
+ * List active marketplace stores
2790
+ */
2791
+ storefrontListStores(input?: {
2792
+ query?: {
2793
+ limit?: number; /** Opaque keyset pagination cursor. */
2794
+ cursor?: string;
2795
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2796
+ signal?: AbortSignal;
2797
+ }): Promise<Reply<200, StoreList>>;
2798
+ /**
2799
+ * Get storefront store profile
2800
+ *
2801
+ * Get storefront store profile
2802
+ */
2803
+ storefrontGetStore(input: {
2804
+ path: {
2805
+ store_id_or_slug: string;
2806
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2807
+ signal?: AbortSignal;
2808
+ }): Promise<Reply<200, Store>>;
2809
+ /**
2810
+ * List categories
2811
+ *
2812
+ * List categories
2813
+ */
2814
+ listCategories(input?: {
2815
+ signal?: AbortSignal;
2816
+ }): Promise<Reply<200, CategoryList>>;
2817
+ /**
2818
+ * Create category
2819
+ *
2820
+ * Create category
2821
+ */
2822
+ createCategory(input: {
2823
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2824
+ signal?: AbortSignal;
2825
+ }): Promise<Reply<201, Category>>;
2826
+ /**
2827
+ * List sales channels
2828
+ *
2829
+ * List sales channels
2830
+ */
2831
+ listChannels(input?: {
2832
+ signal?: AbortSignal;
2833
+ }): Promise<Reply<200, ChannelList>>;
2834
+ /**
2835
+ * Create sales channel
2836
+ *
2837
+ * Create sales channel
2838
+ */
2839
+ createChannel(input: {
2840
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2841
+ signal?: AbortSignal;
2842
+ }): Promise<Reply<201, Channel>>;
2843
+ /**
2844
+ * Attach region to sales channel
2845
+ *
2846
+ * Attach region to sales channel
2847
+ */
2848
+ attachChannelRegion(input: {
2849
+ path: {
2850
+ channel_id: string; /** Path parameter region_id. */
2851
+ region_id: string;
2852
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2853
+ signal?: AbortSignal;
2854
+ }): Promise<Reply<200, ActionResult>>;
2855
+ /**
2856
+ * Attach store to sales channel
2857
+ *
2858
+ * Attach store to sales channel
2859
+ */
2860
+ attachChannelStore(input: {
2861
+ path: {
2862
+ channel_id: string; /** Path parameter store_id. */
2863
+ store_id: string;
2864
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2865
+ signal?: AbortSignal;
2866
+ }): Promise<Reply<200, ActionResult>>;
2867
+ /**
2868
+ * Detach store from sales channel
2869
+ *
2870
+ * Detach store from sales channel
2871
+ */
2872
+ detachChannelStore(input: {
2873
+ path: {
2874
+ channel_id: string; /** Path parameter store_id. */
2875
+ store_id: string;
2876
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2877
+ signal?: AbortSignal;
2878
+ }): Promise<Reply<200, ActionResult>>;
2879
+ /**
2880
+ * List collections
2881
+ *
2882
+ * List collections
2883
+ */
2884
+ listCollections(input?: {
2885
+ signal?: AbortSignal;
2886
+ }): Promise<Reply<200, CollectionList>>;
2887
+ /**
2888
+ * Create collection
2889
+ *
2890
+ * Create collection
2891
+ */
2892
+ createCollection(input: {
2893
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2894
+ signal?: AbortSignal;
2895
+ }): Promise<Reply<201, Collection>>;
2896
+ /**
2897
+ * Add product to collection
2898
+ *
2899
+ * Add product to collection
2900
+ */
2901
+ addCollectionProduct(input: {
2902
+ path: {
2903
+ collection_id: string; /** Path parameter product_id. */
2904
+ product_id: string;
2905
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2906
+ signal?: AbortSignal;
2907
+ }): Promise<Reply<200, ActionResult>>;
2908
+ /**
2909
+ * Remove product from collection
2910
+ *
2911
+ * Remove product from collection
2912
+ */
2913
+ removeCollectionProduct(input: {
2914
+ path: {
2915
+ collection_id: string; /** Path parameter product_id. */
2916
+ product_id: string;
2917
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2918
+ signal?: AbortSignal;
2919
+ }): Promise<Reply<200, ActionResult>>;
2920
+ /**
2921
+ * Register private digital asset for variant or listing
2922
+ *
2923
+ * Register private digital asset for variant or listing
2924
+ */
2925
+ createDigitalAsset(input: {
2926
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2927
+ signal?: AbortSignal;
2928
+ }): Promise<Reply<201, DigitalAsset>>;
2929
+ /**
2930
+ * Update fulfillment status
2931
+ *
2932
+ * Update fulfillment status
2933
+ */
2934
+ updateFulfillment(input: {
2935
+ path: {
2936
+ fulfillment_id: string;
2937
+ };
2938
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2939
+ signal?: AbortSignal;
2940
+ }): Promise<Reply<200, ActionResult>>;
2941
+ /**
2942
+ * Append carrier shipment tracking event
2943
+ *
2944
+ * Append carrier shipment tracking event
2945
+ */
2946
+ addShipmentEvent(input: {
2947
+ path: {
2948
+ fulfillment_id: string;
2949
+ };
2950
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2951
+ signal?: AbortSignal;
2952
+ }): Promise<Reply<201, ActionResult>>;
2953
+ /**
2954
+ * List configured blocking extension hooks
2955
+ *
2956
+ * List configured blocking extension hooks
2957
+ */
2958
+ listHooks(input?: {
2959
+ signal?: AbortSignal;
2960
+ }): Promise<Reply<200, HookList>>;
2961
+ /**
2962
+ * Register or rotate blocking extension hook
2963
+ *
2964
+ * Register or rotate blocking extension hook
2965
+ */
2966
+ upsertHook(input: {
2967
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2968
+ signal?: AbortSignal;
2969
+ }): Promise<Reply<201, HookCreated>>;
2970
+ /**
2971
+ * Delete blocking extension hook
2972
+ *
2973
+ * Delete blocking extension hook
2974
+ */
2975
+ deleteHook(input: {
2976
+ path: {
2977
+ hook_id: string;
2978
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2979
+ signal?: AbortSignal;
2980
+ }): Promise<Reply<200, ActionResult>>;
2981
+ /**
2982
+ * List inventory levels
2983
+ *
2984
+ * List inventory levels
2985
+ */
2986
+ listInventory(input?: {
2987
+ query?: {
2988
+ store_id?: string; /** Filter by listing UUID. */
2989
+ listing_id?: string;
2990
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
2991
+ signal?: AbortSignal;
2992
+ }): Promise<Reply<200, InventoryLevelList>>;
2993
+ /**
2994
+ * Adjust inventory on-hand quantity with audit ledger
2995
+ *
2996
+ * Adjust inventory on-hand quantity with audit ledger
2997
+ */
2998
+ adjustInventory(input: {
2999
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3000
+ signal?: AbortSignal;
3001
+ }): Promise<Reply<200, InventoryLevel>>;
3002
+ /**
3003
+ * Bulk ERP inventory sync
3004
+ *
3005
+ * Bulk ERP inventory sync
3006
+ */
3007
+ bulkSyncInventory(input: {
3008
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3009
+ signal?: AbortSignal;
3010
+ }): Promise<Reply<200, ActionResult>>;
3011
+ /**
3012
+ * List immutable inventory movements
3013
+ *
3014
+ * List immutable inventory movements
3015
+ */
3016
+ listInventoryMovements(input?: {
3017
+ query?: {
3018
+ listing_id?: string;
3019
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3020
+ signal?: AbortSignal;
3021
+ }): Promise<Reply<200, InventoryMovementList>>;
3022
+ /**
3023
+ * List tax invoices
3024
+ *
3025
+ * List tax invoices
3026
+ */
3027
+ listInvoices(input?: {
3028
+ signal?: AbortSignal;
3029
+ }): Promise<Reply<200, InvoiceList>>;
3030
+ /**
3031
+ * Create tax invoice record with ETTN and legal hold
3032
+ *
3033
+ * Create tax invoice record with ETTN and legal hold
3034
+ */
3035
+ createInvoice(input: {
3036
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3037
+ signal?: AbortSignal;
3038
+ }): Promise<Reply<201, Invoice>>;
3039
+ /**
3040
+ * Update invoice status or ETTN
3041
+ *
3042
+ * Update invoice status or ETTN
3043
+ */
3044
+ updateInvoice(input: {
3045
+ path: {
3046
+ invoice_id: string;
3047
+ };
3048
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3049
+ signal?: AbortSignal;
3050
+ }): Promise<Reply<200, Invoice>>;
3051
+ /**
3052
+ * List seller listings
3053
+ *
3054
+ * List seller listings
3055
+ */
3056
+ listListings(input?: {
3057
+ query?: {
3058
+ store_id?: string; /** Filter by variant UUID. */
3059
+ variant_id?: string;
3060
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3061
+ signal?: AbortSignal;
3062
+ }): Promise<Reply<200, ListingList>>;
3063
+ /**
3064
+ * Create seller listing
3065
+ *
3066
+ * Create seller listing
3067
+ */
3068
+ createListing(input: {
3069
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3070
+ signal?: AbortSignal;
3071
+ }): Promise<Reply<201, Listing>>;
3072
+ /**
3073
+ * Update seller listing
3074
+ *
3075
+ * Update seller listing
3076
+ */
3077
+ updateListing(input: {
3078
+ path: {
3079
+ listing_id: string;
3080
+ };
3081
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3082
+ signal?: AbortSignal;
3083
+ }): Promise<Reply<200, Listing>>;
3084
+ /**
3085
+ * Import encrypted license keys into listing pool
3086
+ *
3087
+ * Import encrypted license keys into listing pool
3088
+ */
3089
+ importLicenseKeys(input: {
3090
+ path: {
3091
+ listing_id: string;
3092
+ };
3093
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3094
+ signal?: AbortSignal;
3095
+ }): Promise<Reply<201, ActionResult>>;
3096
+ /**
3097
+ * Upsert listing price
3098
+ *
3099
+ * Upsert listing price
3100
+ */
3101
+ upsertPrice(input: {
3102
+ path: {
3103
+ listing_id: string;
3104
+ };
3105
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3106
+ signal?: AbortSignal;
3107
+ }): Promise<Reply<201, Price>>;
3108
+ /**
3109
+ * List signed-in customer orders
3110
+ *
3111
+ * List signed-in customer orders
3112
+ */
3113
+ listMyOrders(input?: {
3114
+ query?: {
3115
+ limit?: number; /** Opaque keyset pagination cursor. */
3116
+ cursor?: string; /** Filter by order status. */
3117
+ status?: string;
3118
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3119
+ signal?: AbortSignal;
3120
+ }): Promise<Reply<200, OrderList>>;
3121
+ /**
3122
+ * Get signed-in customer order detail
3123
+ *
3124
+ * Get signed-in customer order detail
3125
+ */
3126
+ getMyOrder(input: {
3127
+ path: {
3128
+ order_id: string;
3129
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3130
+ signal?: AbortSignal;
3131
+ }): Promise<Reply<200, OrderDetail>>;
3132
+ /**
3133
+ * Get signed digital download URLs and assigned license keys
3134
+ *
3135
+ * Get signed digital download URLs and assigned license keys
3136
+ */
3137
+ getMyOrderDownloads(input: {
3138
+ path: {
3139
+ order_id: string;
3140
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3141
+ signal?: AbortSignal;
3142
+ }): Promise<Reply<200, OrderDownloads>>;
3143
+ /**
3144
+ * List signed-in customer returns
3145
+ *
3146
+ * List signed-in customer returns
3147
+ */
3148
+ listMyReturns(input?: {
3149
+ signal?: AbortSignal;
3150
+ }): Promise<Reply<200, ReturnList>>;
3151
+ /**
3152
+ * Request RMA return for a store order
3153
+ *
3154
+ * Request RMA return for a store order
3155
+ */
3156
+ requestMyReturn(input: {
3157
+ path: {
3158
+ store_order_id: string;
3159
+ };
3160
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3161
+ signal?: AbortSignal;
3162
+ }): Promise<Reply<201, ReturnRecord>>;
3163
+ /**
3164
+ * Attach media asset to product, variant, or listing
3165
+ *
3166
+ * Attach media asset to product, variant, or listing
3167
+ */
3168
+ createMediaAsset(input: {
3169
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3170
+ signal?: AbortSignal;
3171
+ }): Promise<Reply<201, MediaAsset>>;
3172
+ /**
3173
+ * List orders
3174
+ *
3175
+ * List orders
3176
+ */
3177
+ listOrders(input?: {
3178
+ query?: {
3179
+ limit?: number; /** Opaque keyset pagination cursor. */
3180
+ cursor?: string; /** Filter by status. */
3181
+ status?: string; /** Filter by customer ID. */
3182
+ customer_id?: string;
3183
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3184
+ signal?: AbortSignal;
3185
+ }): Promise<Reply<200, OrderList>>;
3186
+ /**
3187
+ * Lookup guest order using guest access token
3188
+ *
3189
+ * Lookup guest order using guest access token
3190
+ */
3191
+ getGuestOrder(input: {
3192
+ path: {
3193
+ order_number: string;
3194
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3195
+ signal?: AbortSignal;
3196
+ }): Promise<Reply<200, OrderDetail>>;
3197
+ /**
3198
+ * Get order detail with store orders and lines
3199
+ *
3200
+ * Get order detail with store orders and lines
3201
+ */
3202
+ getOrder(input: {
3203
+ path: {
3204
+ order_id: string;
3205
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3206
+ signal?: AbortSignal;
3207
+ }): Promise<Reply<200, OrderDetail>>;
3208
+ /**
3209
+ * Mark order paid (manual/COD/bank transfer)
3210
+ *
3211
+ * Mark order paid (manual/COD/bank transfer)
3212
+ */
3213
+ markOrderPaid(input: {
3214
+ path: {
3215
+ order_id: string;
3216
+ };
3217
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3218
+ signal?: AbortSignal;
3219
+ }): Promise<Reply<200, ActionResult>>;
3220
+ /**
3221
+ * List segmented price lists
3222
+ *
3223
+ * List segmented price lists
3224
+ */
3225
+ listPriceLists(input?: {
3226
+ signal?: AbortSignal;
3227
+ }): Promise<Reply<200, PriceListCollection>>;
3228
+ /**
3229
+ * Create segmented price list
3230
+ *
3231
+ * Create segmented price list
3232
+ */
3233
+ createPriceList(input: {
3234
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3235
+ signal?: AbortSignal;
3236
+ }): Promise<Reply<201, PriceList>>;
3237
+ /**
3238
+ * List catalog products
3239
+ *
3240
+ * List catalog products
3241
+ */
3242
+ listProducts(input?: {
3243
+ query?: {
3244
+ limit?: number; /** Opaque keyset pagination cursor. */
3245
+ cursor?: string; /** Search query. */
3246
+ q?: string; /** Filter by status. */
3247
+ status?: string; /** Filter by approval status. */
3248
+ approval_status?: string;
3249
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3250
+ signal?: AbortSignal;
3251
+ }): Promise<Reply<200, ProductList>>;
3252
+ /**
3253
+ * Create catalog product
3254
+ *
3255
+ * Create catalog product
3256
+ */
3257
+ createProduct(input: {
3258
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3259
+ signal?: AbortSignal;
3260
+ }): Promise<Reply<201, Product>>;
3261
+ /**
3262
+ * Quick-create product, variant, listing, price, and inventory
3263
+ *
3264
+ * Quick-create product, variant, listing, price, and inventory
3265
+ */
3266
+ createQuickProduct(input: {
3267
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3268
+ signal?: AbortSignal;
3269
+ }): Promise<Reply<201, QuickProductResponse>>;
3270
+ /**
3271
+ * Get catalog product detail
3272
+ *
3273
+ * Get catalog product detail
3274
+ */
3275
+ getProduct(input: {
3276
+ path: {
3277
+ product_id: string;
3278
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3279
+ signal?: AbortSignal;
3280
+ }): Promise<Reply<200, ProductDetail>>;
3281
+ /**
3282
+ * Update catalog product
3283
+ *
3284
+ * Update catalog product
3285
+ */
3286
+ updateProduct(input: {
3287
+ path: {
3288
+ product_id: string;
3289
+ };
3290
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3291
+ signal?: AbortSignal;
3292
+ }): Promise<Reply<200, Product>>;
3293
+ /**
3294
+ * Approve or reject marketplace product submission
3295
+ *
3296
+ * Approve or reject marketplace product submission
3297
+ */
3298
+ approveProduct(input: {
3299
+ path: {
3300
+ product_id: string;
3301
+ };
3302
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3303
+ signal?: AbortSignal;
3304
+ }): Promise<Reply<200, ActionResult>>;
3305
+ /**
3306
+ * Upsert product option (Size, Color)
3307
+ *
3308
+ * Upsert product option (Size, Color)
3309
+ */
3310
+ upsertProductOption(input: {
3311
+ path: {
3312
+ product_id: string;
3313
+ };
3314
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3315
+ signal?: AbortSignal;
3316
+ }): Promise<Reply<200, ActionResult>>;
3317
+ /**
3318
+ * Create product variant
3319
+ *
3320
+ * Create product variant
3321
+ */
3322
+ createVariant(input: {
3323
+ path: {
3324
+ product_id: string;
3325
+ };
3326
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3327
+ signal?: AbortSignal;
3328
+ }): Promise<Reply<201, Variant>>;
3329
+ /**
3330
+ * List sales regions
3331
+ *
3332
+ * List sales regions
3333
+ */
3334
+ listRegions(input?: {
3335
+ signal?: AbortSignal;
3336
+ }): Promise<Reply<200, RegionList>>;
3337
+ /**
3338
+ * Create sales region
3339
+ *
3340
+ * Create sales region
3341
+ */
3342
+ createRegion(input: {
3343
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3344
+ signal?: AbortSignal;
3345
+ }): Promise<Reply<201, Region>>;
3346
+ /**
3347
+ * Update sales region
3348
+ *
3349
+ * Update sales region
3350
+ */
3351
+ updateRegion(input: {
3352
+ path: {
3353
+ region_id: string;
3354
+ };
3355
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3356
+ signal?: AbortSignal;
3357
+ }): Promise<Reply<200, Region>>;
3358
+ /**
3359
+ * List RMA returns
3360
+ *
3361
+ * List RMA returns
3362
+ */
3363
+ listReturns(input?: {
3364
+ query?: {
3365
+ store_id?: string; /** Filter by status. */
3366
+ status?: string;
3367
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3368
+ signal?: AbortSignal;
3369
+ }): Promise<Reply<200, ReturnList>>;
3370
+ /**
3371
+ * Approve RMA return
3372
+ *
3373
+ * Approve RMA return
3374
+ */
3375
+ approveReturn(input: {
3376
+ path: {
3377
+ return_id: string;
3378
+ };
3379
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3380
+ signal?: AbortSignal;
3381
+ }): Promise<Reply<200, ReturnRecord>>;
3382
+ /**
3383
+ * Complete RMA return and issue payment/wallet refund
3384
+ *
3385
+ * Complete RMA return and issue payment/wallet refund
3386
+ */
3387
+ completeReturn(input: {
3388
+ path: {
3389
+ return_id: string;
3390
+ };
3391
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3392
+ signal?: AbortSignal;
3393
+ }): Promise<Reply<200, ReturnRecord>>;
3394
+ /**
3395
+ * Receive and inspect returned items
3396
+ *
3397
+ * Receive and inspect returned items
3398
+ */
3399
+ receiveReturn(input: {
3400
+ path: {
3401
+ return_id: string;
3402
+ };
3403
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3404
+ signal?: AbortSignal;
3405
+ }): Promise<Reply<200, ReturnRecord>>;
3406
+ /**
3407
+ * Get project commerce settings
3408
+ *
3409
+ * Get project commerce settings
3410
+ */
3411
+ getCommerceSettings(input?: {
3412
+ signal?: AbortSignal;
3413
+ }): Promise<Reply<200, CommerceSettings>>;
3414
+ /**
3415
+ * Update project commerce settings
3416
+ *
3417
+ * Update project commerce settings
3418
+ */
3419
+ updateCommerceSettings(input: {
3420
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3421
+ signal?: AbortSignal;
3422
+ }): Promise<Reply<200, CommerceSettings>>;
3423
+ /**
3424
+ * List seller settlement statements
3425
+ *
3426
+ * List seller settlement statements
3427
+ */
3428
+ listSettlements(input?: {
3429
+ query?: {
3430
+ store_id?: string;
3431
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3432
+ signal?: AbortSignal;
3433
+ }): Promise<Reply<200, SettlementList>>;
3434
+ /**
3435
+ * Generate deduplicated seller settlement statement
3436
+ *
3437
+ * Generate deduplicated seller settlement statement
3438
+ */
3439
+ generateSettlement(input: {
3440
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3441
+ signal?: AbortSignal;
3442
+ }): Promise<Reply<201, Settlement>>;
3443
+ /**
3444
+ * Mark seller settlement statement paid
3445
+ *
3446
+ * Mark seller settlement statement paid
3447
+ */
3448
+ markSettlementPaid(input: {
3449
+ path: {
3450
+ settlement_id: string;
3451
+ };
3452
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3453
+ signal?: AbortSignal;
3454
+ }): Promise<Reply<200, Settlement>>;
3455
+ /**
3456
+ * List shipping options
3457
+ *
3458
+ * List shipping options
3459
+ */
3460
+ listShippingOptions(input?: {
3461
+ signal?: AbortSignal;
3462
+ }): Promise<Reply<200, ShippingOptionList>>;
3463
+ /**
3464
+ * Create shipping option
3465
+ *
3466
+ * Create shipping option
3467
+ */
3468
+ createShippingOption(input: {
3469
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3470
+ signal?: AbortSignal;
3471
+ }): Promise<Reply<201, ShippingOption>>;
3472
+ /**
3473
+ * List shipping profiles
3474
+ *
3475
+ * List shipping profiles
3476
+ */
3477
+ listShippingProfiles(input?: {
3478
+ signal?: AbortSignal;
3479
+ }): Promise<Reply<200, ShippingProfileList>>;
3480
+ /**
3481
+ * Create shipping profile
3482
+ *
3483
+ * Create shipping profile
3484
+ */
3485
+ createShippingProfile(input: {
3486
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3487
+ signal?: AbortSignal;
3488
+ }): Promise<Reply<201, ShippingProfile>>;
3489
+ /**
3490
+ * List stock locations
3491
+ *
3492
+ * List stock locations
3493
+ */
3494
+ listStockLocations(input?: {
3495
+ query?: {
3496
+ store_id?: string;
3497
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3498
+ signal?: AbortSignal;
3499
+ }): Promise<Reply<200, StockLocationList>>;
3500
+ /**
3501
+ * Create stock location
3502
+ *
3503
+ * Create stock location
3504
+ */
3505
+ createStockLocation(input: {
3506
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3507
+ signal?: AbortSignal;
3508
+ }): Promise<Reply<201, StockLocation>>;
3509
+ /**
3510
+ * List per-seller store orders
3511
+ *
3512
+ * List per-seller store orders
3513
+ */
3514
+ listStoreOrders(input?: {
3515
+ query?: {
3516
+ limit?: number; /** Opaque keyset pagination cursor. */
3517
+ cursor?: string; /** Filter by store UUID. */
3518
+ store_id?: string; /** Filter by status. */
3519
+ status?: string;
3520
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3521
+ signal?: AbortSignal;
3522
+ }): Promise<Reply<200, StoreOrderList>>;
3523
+ /**
3524
+ * Get store order detail
3525
+ *
3526
+ * Get store order detail
3527
+ */
3528
+ getStoreOrder(input: {
3529
+ path: {
3530
+ store_order_id: string;
3531
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3532
+ signal?: AbortSignal;
3533
+ }): Promise<Reply<200, StoreOrderDetail>>;
3534
+ /**
3535
+ * Cancel full or partial store order
3536
+ *
3537
+ * Cancel full or partial store order
3538
+ */
3539
+ cancelStoreOrder(input: {
3540
+ path: {
3541
+ store_order_id: string;
3542
+ };
3543
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3544
+ signal?: AbortSignal;
3545
+ }): Promise<Reply<201, ActionResult>>;
3546
+ /**
3547
+ * Create shipment or fulfillment
3548
+ *
3549
+ * Create shipment or fulfillment
3550
+ */
3551
+ createFulfillment(input: {
3552
+ path: {
3553
+ store_order_id: string;
3554
+ };
3555
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3556
+ signal?: AbortSignal;
3557
+ }): Promise<Reply<201, ActionResult>>;
3558
+ /**
3559
+ * Create RMA return or partial-refund request
3560
+ *
3561
+ * Create RMA return or partial-refund request
3562
+ */
3563
+ createReturn(input: {
3564
+ path: {
3565
+ store_order_id: string;
3566
+ };
3567
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3568
+ signal?: AbortSignal;
3569
+ }): Promise<Reply<201, ReturnRecord>>;
3570
+ /**
3571
+ * List all stores
3572
+ *
3573
+ * List all stores
3574
+ */
3575
+ listStores(input?: {
3576
+ query?: {
3577
+ limit?: number; /** Opaque keyset pagination cursor. */
3578
+ cursor?: string; /** Filter by status. */
3579
+ status?: string;
3580
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3581
+ signal?: AbortSignal;
3582
+ }): Promise<Reply<200, StoreList>>;
3583
+ /**
3584
+ * Create first-party or third-party store
3585
+ *
3586
+ * Create first-party or third-party store
3587
+ */
3588
+ createStore(input: {
3589
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3590
+ signal?: AbortSignal;
3591
+ }): Promise<Reply<201, Store>>;
3592
+ /**
3593
+ * Get store details
3594
+ *
3595
+ * Get store details
3596
+ */
3597
+ getStore(input: {
3598
+ path: {
3599
+ store_id: string;
3600
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3601
+ signal?: AbortSignal;
3602
+ }): Promise<Reply<200, Store>>;
3603
+ /**
3604
+ * Update store status, commission, or settings
3605
+ *
3606
+ * Update store status, commission, or settings
3607
+ */
3608
+ updateStore(input: {
3609
+ path: {
3610
+ store_id: string;
3611
+ };
3612
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3613
+ signal?: AbortSignal;
3614
+ }): Promise<Reply<200, Store>>;
3615
+ /**
3616
+ * Update fulfillment status (e.g. delivered)
3617
+ *
3618
+ * Update fulfillment status (e.g. delivered)
3619
+ */
3620
+ sellerUpdateFulfillment(input: {
3621
+ path: {
3622
+ store_id: string; /** Path parameter fulfillment_id. */
3623
+ fulfillment_id: string;
3624
+ };
3625
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3626
+ signal?: AbortSignal;
3627
+ }): Promise<Reply<200, ActionResult>>;
3628
+ /**
3629
+ * Append carrier tracking event to fulfillment
3630
+ *
3631
+ * Append carrier tracking event to fulfillment
3632
+ */
3633
+ sellerAddShipmentEvent(input: {
3634
+ path: {
3635
+ store_id: string; /** Path parameter fulfillment_id. */
3636
+ fulfillment_id: string;
3637
+ };
3638
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3639
+ signal?: AbortSignal;
3640
+ }): Promise<Reply<201, ActionResult>>;
3641
+ /**
3642
+ * List seller inventory levels
3643
+ *
3644
+ * List seller inventory levels
3645
+ */
3646
+ sellerListInventory(input: {
3647
+ path: {
3648
+ store_id: string;
3649
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3650
+ signal?: AbortSignal;
3651
+ }): Promise<Reply<200, InventoryLevelList>>;
3652
+ /**
3653
+ * Adjust seller inventory quantity
3654
+ *
3655
+ * Adjust seller inventory quantity
3656
+ */
3657
+ sellerAdjustInventory(input: {
3658
+ path: {
3659
+ store_id: string;
3660
+ };
3661
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3662
+ signal?: AbortSignal;
3663
+ }): Promise<Reply<200, InventoryLevel>>;
3664
+ /**
3665
+ * Bulk sync seller inventory levels
3666
+ *
3667
+ * Bulk sync seller inventory levels
3668
+ */
3669
+ sellerBulkSyncInventory(input: {
3670
+ path: {
3671
+ store_id: string;
3672
+ };
3673
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3674
+ signal?: AbortSignal;
3675
+ }): Promise<Reply<200, ActionResult>>;
3676
+ /**
3677
+ * List seller store listings
3678
+ *
3679
+ * List seller store listings
3680
+ */
3681
+ sellerListListings(input: {
3682
+ path: {
3683
+ store_id: string;
3684
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3685
+ signal?: AbortSignal;
3686
+ }): Promise<Reply<200, ListingList>>;
3687
+ /**
3688
+ * Create seller listing on a catalog variant
3689
+ *
3690
+ * Create seller listing on a catalog variant
3691
+ */
3692
+ sellerCreateListing(input: {
3693
+ path: {
3694
+ store_id: string;
3695
+ };
3696
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3697
+ signal?: AbortSignal;
3698
+ }): Promise<Reply<201, Listing>>;
3699
+ /**
3700
+ * Update seller listing
3701
+ *
3702
+ * Update seller listing
3703
+ */
3704
+ sellerUpdateListing(input: {
3705
+ path: {
3706
+ store_id: string; /** Path parameter listing_id. */
3707
+ listing_id: string;
3708
+ };
3709
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3710
+ signal?: AbortSignal;
3711
+ }): Promise<Reply<200, Listing>>;
3712
+ /**
3713
+ * Import encrypted digital license keys for listing
3714
+ *
3715
+ * Import encrypted digital license keys for listing
3716
+ */
3717
+ sellerImportLicenseKeys(input: {
3718
+ path: {
3719
+ store_id: string; /** Path parameter listing_id. */
3720
+ listing_id: string;
3721
+ };
3722
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3723
+ signal?: AbortSignal;
3724
+ }): Promise<Reply<201, ActionResult>>;
3725
+ /**
3726
+ * Upsert seller listing price
3727
+ *
3728
+ * Upsert seller listing price
3729
+ */
3730
+ sellerUpsertPrice(input: {
3731
+ path: {
3732
+ store_id: string; /** Path parameter listing_id. */
3733
+ listing_id: string;
3734
+ };
3735
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3736
+ signal?: AbortSignal;
3737
+ }): Promise<Reply<201, Price>>;
3738
+ /**
3739
+ * List seller stock locations
3740
+ *
3741
+ * List seller stock locations
3742
+ */
3743
+ sellerListStockLocations(input: {
3744
+ path: {
3745
+ store_id: string;
3746
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3747
+ signal?: AbortSignal;
3748
+ }): Promise<Reply<200, StockLocationList>>;
3749
+ /**
3750
+ * Create seller stock location
3751
+ *
3752
+ * Create seller stock location
3753
+ */
3754
+ sellerCreateStockLocation(input: {
3755
+ path: {
3756
+ store_id: string;
3757
+ };
3758
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3759
+ signal?: AbortSignal;
3760
+ }): Promise<Reply<201, StockLocation>>;
3761
+ /**
3762
+ * Add or update store portal member role
3763
+ *
3764
+ * Add or update store portal member role
3765
+ */
3766
+ addStoreMember(input: {
3767
+ path: {
3768
+ store_id: string;
3769
+ };
3770
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3771
+ signal?: AbortSignal;
3772
+ }): Promise<Reply<200, StoreMember>>;
3773
+ /**
3774
+ * Remove store portal member
3775
+ *
3776
+ * Remove store portal member
3777
+ */
3778
+ removeStoreMember(input: {
3779
+ path: {
3780
+ store_id: string; /** Path parameter user_id. */
3781
+ user_id: string;
3782
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3783
+ signal?: AbortSignal;
3784
+ }): Promise<Reply<200, ActionResult>>;
3785
+ /**
3786
+ * Get seller quality and Buy Box metrics
3787
+ *
3788
+ * Get seller quality and Buy Box metrics
3789
+ */
3790
+ sellerGetMetrics(input: {
3791
+ path: {
3792
+ store_id: string;
3793
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3794
+ signal?: AbortSignal;
3795
+ }): Promise<Reply<200, StoreMetrics>>;
3796
+ /**
3797
+ * List seller store orders
3798
+ *
3799
+ * List seller store orders
3800
+ */
3801
+ sellerListStoreOrders(input: {
3802
+ path: {
3803
+ store_id: string;
3804
+ };
3805
+ query?: {
3806
+ limit?: number; /** Opaque keyset pagination cursor. */
3807
+ cursor?: string; /** Filter by status. */
3808
+ status?: string;
3809
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3810
+ signal?: AbortSignal;
3811
+ }): Promise<Reply<200, StoreOrderList>>;
3812
+ /**
3813
+ * Get seller store order detail
3814
+ *
3815
+ * Get seller store order detail
3816
+ */
3817
+ sellerGetStoreOrder(input: {
3818
+ path: {
3819
+ store_id: string; /** Path parameter store_order_id. */
3820
+ store_order_id: string;
3821
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3822
+ signal?: AbortSignal;
3823
+ }): Promise<Reply<200, StoreOrderDetail>>;
3824
+ /**
3825
+ * Cancel full or partial seller store order
3826
+ *
3827
+ * Cancel full or partial seller store order
3828
+ */
3829
+ sellerCancelStoreOrder(input: {
3830
+ path: {
3831
+ store_id: string; /** Path parameter store_order_id. */
3832
+ store_order_id: string;
3833
+ };
3834
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3835
+ signal?: AbortSignal;
3836
+ }): Promise<Reply<201, ActionResult>>;
3837
+ /**
3838
+ * Create shipment or fulfillment for store order
3839
+ *
3840
+ * Create shipment or fulfillment for store order
3841
+ */
3842
+ sellerCreateFulfillment(input: {
3843
+ path: {
3844
+ store_id: string; /** Path parameter store_order_id. */
3845
+ store_order_id: string;
3846
+ };
3847
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3848
+ signal?: AbortSignal;
3849
+ }): Promise<Reply<201, ActionResult>>;
3850
+ /**
3851
+ * Onboard store PSP sub-merchant account
3852
+ *
3853
+ * Onboard store PSP sub-merchant account
3854
+ */
3855
+ onboardStorePaymentAccount(input: {
3856
+ path: {
3857
+ store_id: string;
3858
+ };
3859
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3860
+ signal?: AbortSignal;
3861
+ }): Promise<Reply<201, SubMerchantAccount>>;
3862
+ /**
3863
+ * Onboard seller PSP sub-merchant account
3864
+ *
3865
+ * Onboard seller PSP sub-merchant account
3866
+ */
3867
+ sellerOnboardPayouts(input: {
3868
+ path: {
3869
+ store_id: string;
3870
+ };
3871
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3872
+ signal?: AbortSignal;
3873
+ }): Promise<Reply<201, SubMerchantAccount>>;
3874
+ /**
3875
+ * Create temporary PSP sub-merchant onboarding link
3876
+ *
3877
+ * Create temporary PSP sub-merchant onboarding link
3878
+ */
3879
+ sellerOnboardingLink(input: {
3880
+ path: {
3881
+ store_id: string;
3882
+ };
3883
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3884
+ signal?: AbortSignal;
3885
+ }): Promise<Reply<200, OnboardingLink>>;
3886
+ /**
3887
+ * List seller store products
3888
+ *
3889
+ * List seller store products
3890
+ */
3891
+ sellerListProducts(input: {
3892
+ path: {
3893
+ store_id: string;
3894
+ };
3895
+ query?: {
3896
+ limit?: number; /** Opaque keyset pagination cursor. */
3897
+ cursor?: string; /** Search query. */
3898
+ q?: string;
3899
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3900
+ signal?: AbortSignal;
3901
+ }): Promise<Reply<200, ProductList>>;
3902
+ /**
3903
+ * Create seller catalog product
3904
+ *
3905
+ * Create seller catalog product
3906
+ */
3907
+ sellerCreateProduct(input: {
3908
+ path: {
3909
+ store_id: string;
3910
+ };
3911
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3912
+ signal?: AbortSignal;
3913
+ }): Promise<Reply<201, Product>>;
3914
+ /**
3915
+ * Quick-create seller product, variant, listing, price, and stock
3916
+ *
3917
+ * Quick-create seller product, variant, listing, price, and stock
3918
+ */
3919
+ sellerCreateQuickProduct(input: {
3920
+ path: {
3921
+ store_id: string;
3922
+ };
3923
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3924
+ signal?: AbortSignal;
3925
+ }): Promise<Reply<201, QuickProductResponse>>;
3926
+ /**
3927
+ * Create seller-funded promotion rule
3928
+ *
3929
+ * Create seller-funded promotion rule
3930
+ */
3931
+ sellerCreatePromotionRule(input: {
3932
+ path: {
3933
+ store_id: string;
3934
+ };
3935
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3936
+ signal?: AbortSignal;
3937
+ }): Promise<Reply<201, PromotionRule>>;
3938
+ /**
3939
+ * List seller store returns
3940
+ *
3941
+ * List seller store returns
3942
+ */
3943
+ sellerListReturns(input: {
3944
+ path: {
3945
+ store_id: string;
3946
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3947
+ signal?: AbortSignal;
3948
+ }): Promise<Reply<200, ReturnList>>;
3949
+ /**
3950
+ * Approve buyer RMA return
3951
+ *
3952
+ * Approve buyer RMA return
3953
+ */
3954
+ sellerApproveReturn(input: {
3955
+ path: {
3956
+ store_id: string; /** Path parameter return_id. */
3957
+ return_id: string;
3958
+ };
3959
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3960
+ signal?: AbortSignal;
3961
+ }): Promise<Reply<200, ReturnRecord>>;
3962
+ /**
3963
+ * Complete RMA return and trigger payment refund
3964
+ *
3965
+ * Complete RMA return and trigger payment refund
3966
+ */
3967
+ sellerCompleteReturn(input: {
3968
+ path: {
3969
+ store_id: string; /** Path parameter return_id. */
3970
+ return_id: string;
3971
+ };
3972
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3973
+ signal?: AbortSignal;
3974
+ }): Promise<Reply<200, ReturnRecord>>;
3975
+ /**
3976
+ * Mark returned goods received and inspected
3977
+ *
3978
+ * Mark returned goods received and inspected
3979
+ */
3980
+ sellerReceiveReturn(input: {
3981
+ path: {
3982
+ store_id: string; /** Path parameter return_id. */
3983
+ return_id: string;
3984
+ };
3985
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3986
+ signal?: AbortSignal;
3987
+ }): Promise<Reply<200, ReturnRecord>>;
3988
+ /**
3989
+ * List seller settlement statements
3990
+ *
3991
+ * List seller settlement statements
3992
+ */
3993
+ sellerListSettlements(input: {
3994
+ path: {
3995
+ store_id: string;
3996
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
3997
+ signal?: AbortSignal;
3998
+ }): Promise<Reply<200, SettlementList>>;
3999
+ /**
4000
+ * Create seller shipping option
4001
+ *
4002
+ * Create seller shipping option
4003
+ */
4004
+ sellerCreateShippingOption(input: {
4005
+ path: {
4006
+ store_id: string;
4007
+ };
4008
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4009
+ signal?: AbortSignal;
4010
+ }): Promise<Reply<201, ShippingOption>>;
4011
+ /**
4012
+ * List jurisdiction tax rates
4013
+ *
4014
+ * List jurisdiction tax rates
4015
+ */
4016
+ listTaxRates(input?: {
4017
+ signal?: AbortSignal;
4018
+ }): Promise<Reply<200, TaxRateList>>;
4019
+ /**
4020
+ * Upsert jurisdiction tax rate
4021
+ *
4022
+ * Upsert jurisdiction tax rate
4023
+ */
4024
+ upsertTaxRate(input: {
4025
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4026
+ signal?: AbortSignal;
4027
+ }): Promise<Reply<200, TaxRate>>;
4028
+ /**
4029
+ * Update product variant
4030
+ *
4031
+ * Update product variant
4032
+ */
4033
+ updateVariant(input: {
4034
+ path: {
4035
+ variant_id: string;
4036
+ };
4037
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4038
+ signal?: AbortSignal;
4039
+ }): Promise<Reply<200, Variant>>;
4040
+ /**
4041
+ * Set bundle component variants
4042
+ *
4043
+ * Set bundle component variants
4044
+ */
4045
+ setBundleItems(input: {
4046
+ path: {
4047
+ variant_id: string;
4048
+ };
4049
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4050
+ signal?: AbortSignal;
4051
+ }): Promise<Reply<200, ActionResult>>;
4052
+ /**
4053
+ * Recompute winning Buy Box offer for variant
4054
+ *
4055
+ * Recompute winning Buy Box offer for variant
4056
+ */
4057
+ recomputeVariantBuyBox(input: {
4058
+ path: {
4059
+ variant_id: string;
4060
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4061
+ signal?: AbortSignal;
4062
+ }): Promise<Reply<200, ActionResult>>;
4063
+ /**
4064
+ * Revoke promotion code
4065
+ *
4066
+ * Revoke promotion code
4067
+ */
4068
+ revokePromotionCode(input: {
4069
+ path: {
4070
+ code_id: string;
4071
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4072
+ signal?: AbortSignal;
4073
+ }): Promise<Reply<200, ActionResult>>;
4074
+ /**
4075
+ * Evaluate applicable promotions against a cart or external order
4076
+ *
4077
+ * Evaluate applicable promotions against a cart or external order
4078
+ */
4079
+ evaluatePromotions(input: {
4080
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4081
+ signal?: AbortSignal;
4082
+ }): Promise<Reply<200, PromotionEvalResult>>;
4083
+ /**
4084
+ * Reserve promotion usages and budgets for an external checkout
4085
+ *
4086
+ * Reserve promotion usages and budgets for an external checkout
4087
+ */
4088
+ holdPromotions(input: {
4089
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4090
+ signal?: AbortSignal;
4091
+ }): Promise<Reply<201, PromotionHoldResponse>>;
4092
+ /**
4093
+ * Commit promotion hold into an immutable redemption
4094
+ *
4095
+ * Commit promotion hold into an immutable redemption
4096
+ */
4097
+ commitPromotionHold(input: {
4098
+ path: {
4099
+ hold_id: string;
4100
+ };
4101
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4102
+ signal?: AbortSignal;
4103
+ }): Promise<Reply<200, PromotionRedemption>>;
4104
+ /**
4105
+ * Release unused promotion hold
4106
+ *
4107
+ * Release unused promotion hold
4108
+ */
4109
+ releasePromotionHold(input: {
4110
+ path: {
4111
+ hold_id: string;
4112
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4113
+ signal?: AbortSignal;
4114
+ }): Promise<Reply<200, ActionResult>>;
4115
+ /**
4116
+ * List promotion redemptions
4117
+ *
4118
+ * List promotion redemptions
4119
+ */
4120
+ listPromotionRedemptions(input?: {
4121
+ query?: {
4122
+ rule_id?: string; /** Filter by customer ID. */
4123
+ customer_id?: string;
4124
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4125
+ signal?: AbortSignal;
4126
+ }): Promise<Reply<200, PromotionRedemptionList>>;
4127
+ /**
4128
+ * Reverse committed promotion redemption on refund/cancel
4129
+ *
4130
+ * Reverse committed promotion redemption on refund/cancel
4131
+ */
4132
+ reversePromotionRedemption(input: {
4133
+ path: {
4134
+ redemption_id: string;
4135
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4136
+ signal?: AbortSignal;
4137
+ }): Promise<Reply<200, PromotionRedemption>>;
4138
+ /**
4139
+ * List promotion rules
4140
+ *
4141
+ * List promotion rules
4142
+ */
4143
+ listPromotionRules(input?: {
4144
+ query?: {
4145
+ limit?: number; /** Opaque keyset pagination cursor. */
4146
+ cursor?: string; /** Filter by status. */
4147
+ status?: string; /** Filter by owning store UUID. */
4148
+ store_id?: string;
4149
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4150
+ signal?: AbortSignal;
4151
+ }): Promise<Reply<200, PromotionRuleList>>;
4152
+ /**
4153
+ * Create promotion rule
4154
+ *
4155
+ * Create promotion rule
4156
+ */
4157
+ createPromotionRule(input: {
4158
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4159
+ signal?: AbortSignal;
4160
+ }): Promise<Reply<201, PromotionRule>>;
4161
+ /**
4162
+ * Get promotion rule
4163
+ *
4164
+ * Get promotion rule
4165
+ */
4166
+ getPromotionRule(input: {
4167
+ path: {
4168
+ rule_id: string;
4169
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4170
+ signal?: AbortSignal;
4171
+ }): Promise<Reply<200, PromotionRule>>;
4172
+ /**
4173
+ * Archive promotion rule
4174
+ *
4175
+ * Archive promotion rule
4176
+ */
4177
+ archivePromotionRule(input: {
4178
+ path: {
4179
+ rule_id: string;
4180
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4181
+ signal?: AbortSignal;
4182
+ }): Promise<Reply<200, ActionResult>>;
4183
+ /**
4184
+ * Update promotion rule
4185
+ *
4186
+ * Update promotion rule
4187
+ */
4188
+ updatePromotionRule(input: {
4189
+ path: {
4190
+ rule_id: string;
4191
+ };
4192
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4193
+ signal?: AbortSignal;
4194
+ }): Promise<Reply<200, PromotionRule>>;
4195
+ /**
4196
+ * Set per-currency promotion spend cap
4197
+ *
4198
+ * Set per-currency promotion spend cap
4199
+ */
4200
+ upsertPromotionBudget(input: {
4201
+ path: {
4202
+ rule_id: string; /** Path parameter currency. */
4203
+ currency: string;
4204
+ };
4205
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4206
+ signal?: AbortSignal;
4207
+ }): Promise<Reply<200, GenericPayload>>;
4208
+ /**
4209
+ * List promotion codes for a rule
4210
+ *
4211
+ * List promotion codes for a rule
4212
+ */
4213
+ listPromotionCodes(input: {
4214
+ path: {
4215
+ rule_id: string;
4216
+ }; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4217
+ signal?: AbortSignal;
4218
+ }): Promise<Reply<200, PromotionCodeList>>;
4219
+ /**
4220
+ * Create single or referral promotion code
4221
+ *
4222
+ * Create single or referral promotion code
4223
+ */
4224
+ createPromotionCode(input: {
4225
+ path: {
4226
+ rule_id: string;
4227
+ };
4228
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4229
+ signal?: AbortSignal;
4230
+ }): Promise<Reply<201, PromotionCode>>;
4231
+ /**
4232
+ * Generate batch of single-use promotion codes
4233
+ *
4234
+ * Generate batch of single-use promotion codes
4235
+ */
4236
+ generatePromotionCodeBatch(input: {
4237
+ path: {
4238
+ rule_id: string;
4239
+ };
4240
+ body: GenericPayload; /** Stops the call: the request in flight, a wait before a retry, a proof-of-work being solved. */
4241
+ signal?: AbortSignal;
4242
+ }): Promise<Reply<201, PromotionCodeBatch>>;
4243
+ };
4244
+ export type Client = ReturnType<typeof client>;