@01.software/sdk 0.7.1 → 0.9.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 (54) hide show
  1. package/README.md +54 -18
  2. package/dist/const-DZ04SC2y.d.cts +19 -0
  3. package/dist/const-hXu9oG66.d.ts +19 -0
  4. package/dist/index.cjs +57 -180
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +47 -64
  7. package/dist/index.d.ts +47 -64
  8. package/dist/index.js +57 -180
  9. package/dist/index.js.map +1 -1
  10. package/dist/{payload-types-Cp10MoF6.d.cts → payload-types-DICC2-Zr.d.cts} +916 -475
  11. package/dist/{payload-types-Cp10MoF6.d.ts → payload-types-DICC2-Zr.d.ts} +916 -475
  12. package/dist/{realtime-DupPIYx-.d.cts → realtime-D7HtUpqt.d.cts} +2 -2
  13. package/dist/{realtime-DupPIYx-.d.ts → realtime-D7HtUpqt.d.ts} +2 -2
  14. package/dist/realtime.cjs +8 -7
  15. package/dist/realtime.cjs.map +1 -1
  16. package/dist/realtime.d.cts +6 -6
  17. package/dist/realtime.d.ts +6 -6
  18. package/dist/realtime.js +8 -7
  19. package/dist/realtime.js.map +1 -1
  20. package/dist/{server-DxhuG-_s.d.cts → server-JR9TvKZ5.d.cts} +0 -2
  21. package/dist/{server-DxhuG-_s.d.ts → server-JR9TvKZ5.d.ts} +0 -2
  22. package/dist/ui/canvas/server.cjs +1 -2
  23. package/dist/ui/canvas/server.cjs.map +1 -1
  24. package/dist/ui/canvas/server.d.cts +1 -1
  25. package/dist/ui/canvas/server.d.ts +1 -1
  26. package/dist/ui/canvas/server.js +1 -2
  27. package/dist/ui/canvas/server.js.map +1 -1
  28. package/dist/ui/canvas.cjs +1 -2
  29. package/dist/ui/canvas.cjs.map +1 -1
  30. package/dist/ui/canvas.d.cts +2 -2
  31. package/dist/ui/canvas.d.ts +2 -2
  32. package/dist/ui/canvas.js +1 -2
  33. package/dist/ui/canvas.js.map +1 -1
  34. package/dist/ui/form.d.cts +1 -1
  35. package/dist/ui/form.d.ts +1 -1
  36. package/dist/ui/video.cjs +1 -1
  37. package/dist/ui/video.cjs.map +1 -1
  38. package/dist/ui/video.d.cts +1 -1
  39. package/dist/ui/video.d.ts +1 -1
  40. package/dist/ui/video.js +1 -1
  41. package/dist/ui/video.js.map +1 -1
  42. package/dist/{webhook-BKhMTlFN.d.ts → webhook-BD9ivfyR.d.ts} +2 -2
  43. package/dist/{webhook-CiWsseVz.d.cts → webhook-D8ogsafv.d.cts} +2 -2
  44. package/dist/webhook.d.cts +3 -3
  45. package/dist/webhook.d.ts +3 -3
  46. package/package.json +1 -11
  47. package/dist/auth.cjs +0 -109
  48. package/dist/auth.cjs.map +0 -1
  49. package/dist/auth.d.cts +0 -36
  50. package/dist/auth.d.ts +0 -36
  51. package/dist/auth.js +0 -86
  52. package/dist/auth.js.map +0 -1
  53. package/dist/const-B8iE-mDN.d.cts +0 -19
  54. package/dist/const-Chw71pKS.d.ts +0 -19
@@ -27,6 +27,8 @@ interface Config {
27
27
  'system-media': SystemMedia;
28
28
  audiences: Audience;
29
29
  'email-logs': EmailLog;
30
+ 'api-keys': ApiKey;
31
+ 'personal-access-tokens': PersonalAccessToken;
30
32
  tenants: Tenant;
31
33
  'tenant-metadata': TenantMetadatum;
32
34
  'api-usage': ApiUsage;
@@ -36,21 +38,20 @@ interface Config {
36
38
  products: Product;
37
39
  'product-variants': ProductVariant;
38
40
  'product-options': ProductOption;
41
+ 'product-option-values': ProductOptionValue;
39
42
  'product-categories': ProductCategory;
40
43
  'product-tags': ProductTag;
41
44
  'product-collections': ProductCollection;
42
45
  brands: Brand;
43
46
  'brand-logos': BrandLogo;
44
47
  orders: Order;
45
- 'order-products': OrderProduct;
48
+ 'order-items': OrderItem;
46
49
  transactions: Transaction;
47
50
  'order-status-logs': OrderStatusLog;
48
51
  fulfillments: Fulfillment;
49
52
  'fulfillment-items': FulfillmentItem;
50
53
  returns: Return;
51
- 'return-products': ReturnProduct;
52
- exchanges: Exchange;
53
- 'exchange-products': ExchangeProduct;
54
+ 'return-items': ReturnItem;
54
55
  'shipping-policies': ShippingPolicy;
55
56
  customers: Customer;
56
57
  'customer-addresses': CustomerAddress;
@@ -111,24 +112,20 @@ interface Config {
111
112
  options: 'product-options';
112
113
  collections: 'product-collections';
113
114
  };
114
- 'product-variants': {
115
- productOptions: 'product-options';
115
+ 'product-options': {
116
+ values: 'product-option-values';
116
117
  };
117
118
  orders: {
118
- products: 'order-products';
119
+ items: 'order-items';
119
120
  transactions: 'transactions';
120
121
  fulfillments: 'fulfillments';
121
122
  returns: 'returns';
122
- exchanges: 'exchanges';
123
123
  };
124
124
  fulfillments: {
125
125
  items: 'fulfillment-items';
126
126
  };
127
127
  returns: {
128
- returnProducts: 'return-products';
129
- };
130
- exchanges: {
131
- exchangeProducts: 'exchange-products';
128
+ items: 'return-items';
132
129
  };
133
130
  customers: {
134
131
  orders: 'orders';
@@ -144,7 +141,7 @@ interface Config {
144
141
  posts: 'posts';
145
142
  };
146
143
  playlists: {
147
- musics: 'musics';
144
+ tracks: 'musics';
148
145
  };
149
146
  galleries: {
150
147
  items: 'gallery-items';
@@ -160,6 +157,8 @@ interface Config {
160
157
  'system-media': SystemMediaSelect<false> | SystemMediaSelect<true>;
161
158
  audiences: AudiencesSelect<false> | AudiencesSelect<true>;
162
159
  'email-logs': EmailLogsSelect<false> | EmailLogsSelect<true>;
160
+ 'api-keys': ApiKeysSelect<false> | ApiKeysSelect<true>;
161
+ 'personal-access-tokens': PersonalAccessTokensSelect<false> | PersonalAccessTokensSelect<true>;
163
162
  tenants: TenantsSelect<false> | TenantsSelect<true>;
164
163
  'tenant-metadata': TenantMetadataSelect<false> | TenantMetadataSelect<true>;
165
164
  'api-usage': ApiUsageSelect<false> | ApiUsageSelect<true>;
@@ -169,21 +168,20 @@ interface Config {
169
168
  products: ProductsSelect<false> | ProductsSelect<true>;
170
169
  'product-variants': ProductVariantsSelect<false> | ProductVariantsSelect<true>;
171
170
  'product-options': ProductOptionsSelect<false> | ProductOptionsSelect<true>;
171
+ 'product-option-values': ProductOptionValuesSelect<false> | ProductOptionValuesSelect<true>;
172
172
  'product-categories': ProductCategoriesSelect<false> | ProductCategoriesSelect<true>;
173
173
  'product-tags': ProductTagsSelect<false> | ProductTagsSelect<true>;
174
174
  'product-collections': ProductCollectionsSelect<false> | ProductCollectionsSelect<true>;
175
175
  brands: BrandsSelect<false> | BrandsSelect<true>;
176
176
  'brand-logos': BrandLogosSelect<false> | BrandLogosSelect<true>;
177
177
  orders: OrdersSelect<false> | OrdersSelect<true>;
178
- 'order-products': OrderProductsSelect<false> | OrderProductsSelect<true>;
178
+ 'order-items': OrderItemsSelect<false> | OrderItemsSelect<true>;
179
179
  transactions: TransactionsSelect<false> | TransactionsSelect<true>;
180
180
  'order-status-logs': OrderStatusLogsSelect<false> | OrderStatusLogsSelect<true>;
181
181
  fulfillments: FulfillmentsSelect<false> | FulfillmentsSelect<true>;
182
182
  'fulfillment-items': FulfillmentItemsSelect<false> | FulfillmentItemsSelect<true>;
183
183
  returns: ReturnsSelect<false> | ReturnsSelect<true>;
184
- 'return-products': ReturnProductsSelect<false> | ReturnProductsSelect<true>;
185
- exchanges: ExchangesSelect<false> | ExchangesSelect<true>;
186
- 'exchange-products': ExchangeProductsSelect<false> | ExchangeProductsSelect<true>;
184
+ 'return-items': ReturnItemsSelect<false> | ReturnItemsSelect<true>;
187
185
  'shipping-policies': ShippingPoliciesSelect<false> | ShippingPoliciesSelect<true>;
188
186
  customers: CustomersSelect<false> | CustomersSelect<true>;
189
187
  'customer-addresses': CustomerAddressesSelect<false> | CustomerAddressesSelect<true>;
@@ -335,12 +333,28 @@ interface User {
335
333
  id?: string | null;
336
334
  }[] | null;
337
335
  emailPreferences?: {
338
- usageAlerts?: boolean | null;
336
+ acceptsUsageAlerts?: boolean | null;
339
337
  };
338
+ phone?: string | null;
339
+ isPhoneVerified?: boolean | null;
340
+ lastLoginAt?: string | null;
341
+ lastLoginIp?: string | null;
342
+ isSuspended?: boolean | null;
343
+ suspendedAt?: string | null;
344
+ suspendedReason?: string | null;
345
+ timezone?: string | null;
346
+ locale?: string | null;
347
+ avatar?: (string | null) | Image;
348
+ anonymizedAt?: string | null;
349
+ /**
350
+ * Scheduled deletion date
351
+ */
352
+ deletionScheduledAt?: string | null;
340
353
  authProvider?: ('local' | 'google') | null;
341
354
  googleSub?: string | null;
342
355
  updatedAt: string;
343
356
  createdAt: string;
357
+ deletedAt?: string | null;
344
358
  email: string;
345
359
  resetPasswordToken?: string | null;
346
360
  resetPasswordExpiration?: string | null;
@@ -365,6 +379,10 @@ interface User {
365
379
  interface Tenant {
366
380
  id: string;
367
381
  name: string;
382
+ /**
383
+ * URL-safe identifier (auto-generated)
384
+ */
385
+ slug?: string | null;
368
386
  /**
369
387
  * Tenant owner. Only the owner can delete the tenant or transfer ownership.
370
388
  */
@@ -374,15 +392,18 @@ interface Tenant {
374
392
  /**
375
393
  * Require email verification on customer registration. Verification token is delivered via webhook (operation: verification). You must configure a webhook URL first.
376
394
  */
377
- requireEmailVerification?: boolean | null;
395
+ requiresEmailVerification?: boolean | null;
378
396
  /**
379
397
  * When enabled, new threads require admin approval before being published.
380
398
  */
381
- requirePostApproval?: boolean | null;
399
+ requiresPostApproval?: boolean | null;
382
400
  /**
383
401
  * Dev mode shows configuration tools like the field settings panel. Turn off after setup for a clean production UI.
384
402
  */
385
- devMode?: boolean | null;
403
+ isDevMode?: boolean | null;
404
+ status?: ('active' | 'paused' | 'past_due' | 'canceled' | 'pending_deletion') | null;
405
+ trialEndsAt?: string | null;
406
+ deletionScheduledAt?: string | null;
386
407
  /**
387
408
  * Allowed CORS origins for browser SDK requests. Empty = all origins allowed.
388
409
  */
@@ -390,12 +411,10 @@ interface Tenant {
390
411
  origin: string;
391
412
  id?: string | null;
392
413
  }[] | null;
393
- clientKey: string;
394
- secretKeys?: {
395
- name: string;
396
- value?: string | null;
397
- id?: string | null;
398
- }[] | null;
414
+ /**
415
+ * Publishable Key — safe to embed in browser code. Prefix: pk01_
416
+ */
417
+ publishableKey: string;
399
418
  /**
400
419
  * Webhook endpoints to notify on data changes.
401
420
  */
@@ -412,7 +431,7 @@ interface Tenant {
412
431
  * HMAC-SHA256 secret for webhook signature verification. Sent as x-webhook-signature header.
413
432
  */
414
433
  secret?: string | null;
415
- enabled?: boolean | null;
434
+ isEnabled?: boolean | null;
416
435
  id?: string | null;
417
436
  }[] | null;
418
437
  /**
@@ -426,21 +445,6 @@ interface Tenant {
426
445
  updatedAt: string;
427
446
  createdAt: string;
428
447
  }
429
- /**
430
- * This interface was referenced by `Config`'s JSON-Schema
431
- * via the `definition` "field-configs".
432
- */
433
- interface FieldConfig {
434
- id: string;
435
- tenant?: (string | null) | Tenant;
436
- collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'exchanges' | 'customers' | 'customer-groups' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'threads' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'thread-categories';
437
- isHidden?: boolean | null;
438
- hiddenFields?: {
439
- [k: string]: unknown;
440
- } | unknown[] | string | number | boolean | null;
441
- updatedAt: string;
442
- createdAt: string;
443
- }
444
448
  /**
445
449
  * This interface was referenced by `Config`'s JSON-Schema
446
450
  * via the `definition` "images".
@@ -516,6 +520,21 @@ interface Image {
516
520
  };
517
521
  };
518
522
  }
523
+ /**
524
+ * This interface was referenced by `Config`'s JSON-Schema
525
+ * via the `definition` "field-configs".
526
+ */
527
+ interface FieldConfig {
528
+ id: string;
529
+ tenant?: (string | null) | Tenant;
530
+ collectionSlug: 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-collections' | 'product-categories' | 'product-tags' | 'brands' | 'discounts' | 'shipping-policies' | 'orders' | 'carts' | 'transactions' | 'fulfillments' | 'returns' | 'customers' | 'customer-groups' | 'post-authors' | 'posts' | 'post-categories' | 'post-tags' | 'documents' | 'document-categories' | 'document-types' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'musics' | 'music-categories' | 'music-tags' | 'galleries' | 'gallery-categories' | 'gallery-tags' | 'gallery-items' | 'links' | 'link-categories' | 'link-tags' | 'canvases' | 'canvas-categories' | 'canvas-tags' | 'canvas-node-types' | 'canvas-edge-types' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'forms' | 'threads' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'thread-categories';
531
+ isHidden?: boolean | null;
532
+ hiddenFields?: {
533
+ [k: string]: unknown;
534
+ } | unknown[] | string | number | boolean | null;
535
+ updatedAt: string;
536
+ createdAt: string;
537
+ }
519
538
  /**
520
539
  * This interface was referenced by `Config`'s JSON-Schema
521
540
  * via the `definition` "system-media".
@@ -568,6 +587,10 @@ interface Audience {
568
587
  */
569
588
  interface EmailLog {
570
589
  id: string;
590
+ /**
591
+ * Originating tenant. NULL for system-level emails (super-admin only).
592
+ */
593
+ tenant?: (string | null) | Tenant;
571
594
  to: string;
572
595
  from?: string | null;
573
596
  subject: string;
@@ -575,6 +598,80 @@ interface EmailLog {
575
598
  status: 'sent' | 'failed';
576
599
  sentAt: string;
577
600
  error?: string | null;
601
+ /**
602
+ * Provider message ID (e.g. Resend)
603
+ */
604
+ providerMessageId?: string | null;
605
+ openedAt?: string | null;
606
+ clickedAt?: string | null;
607
+ bouncedAt?: string | null;
608
+ /**
609
+ * Consent category for compliance audit
610
+ */
611
+ recipientConsent?: ('marketing' | 'transactional' | 'service_notice') | null;
612
+ updatedAt: string;
613
+ createdAt: string;
614
+ }
615
+ /**
616
+ * This interface was referenced by `Config`'s JSON-Schema
617
+ * via the `definition` "api-keys".
618
+ */
619
+ interface ApiKey {
620
+ id: string;
621
+ tenant: string | Tenant;
622
+ name: string;
623
+ secretHash: string;
624
+ /**
625
+ * Key prefix (e.g. sk01_ab12cd3)
626
+ */
627
+ displayPrefix: string;
628
+ displaySuffix: string;
629
+ /**
630
+ * Not enforced in v1. Reserved for future use. E.g. ["*"] or ["read:products", "write:orders"]
631
+ */
632
+ scopes?: {
633
+ [k: string]: unknown;
634
+ } | unknown[] | string | number | boolean | null;
635
+ createdBy?: (string | null) | User;
636
+ createdByIp?: string | null;
637
+ lastUsedAt?: string | null;
638
+ lastUsedIp?: string | null;
639
+ revokedAt?: string | null;
640
+ revokedBy?: (string | null) | User;
641
+ /**
642
+ * Optional expiration. Empty = never expires.
643
+ */
644
+ expiresAt?: string | null;
645
+ updatedAt: string;
646
+ createdAt: string;
647
+ }
648
+ /**
649
+ * This interface was referenced by `Config`'s JSON-Schema
650
+ * via the `definition` "personal-access-tokens".
651
+ */
652
+ interface PersonalAccessToken {
653
+ id: string;
654
+ user: string | User;
655
+ /**
656
+ * e.g. "CLI: MacBook Pro (darwin)", "GitHub Actions"
657
+ */
658
+ name: string;
659
+ secretHash: string;
660
+ displayPrefix: string;
661
+ displaySuffix: string;
662
+ /**
663
+ * Default tenant ID for CLI operations. Set via `01 tenant use <name>`.
664
+ */
665
+ defaultTenant?: string | null;
666
+ createdByIp?: string | null;
667
+ lastUsedAt?: string | null;
668
+ lastUsedIp?: string | null;
669
+ revokedAt?: string | null;
670
+ revokedBy?: (string | null) | User;
671
+ /**
672
+ * PATs expire after 90 days by default.
673
+ */
674
+ expiresAt?: string | null;
578
675
  updatedAt: string;
579
676
  createdAt: string;
580
677
  }
@@ -605,7 +702,18 @@ interface TenantMetadatum {
605
702
  /**
606
703
  * Full site URL (e.g., https://example.com)
607
704
  */
608
- siteUrl?: string | null;
705
+ url?: string | null;
706
+ };
707
+ /**
708
+ * Required by Korean e-commerce law
709
+ */
710
+ businessInfo?: {
711
+ businessRegistrationNumber?: string | null;
712
+ businessName?: string | null;
713
+ ceoName?: string | null;
714
+ businessAddress?: string | null;
715
+ businessEmail?: string | null;
716
+ onlineSalesRegistrationNumber?: string | null;
609
717
  };
610
718
  branding?: {
611
719
  /**
@@ -836,24 +944,24 @@ interface ApiUsage {
836
944
  * YYYY-MM format
837
945
  */
838
946
  month: string;
839
- count: number;
947
+ apiCallCount: number;
840
948
  plan: 'free' | 'starter' | 'basic' | 'pro' | 'enterprise';
841
949
  /**
842
950
  * -1 means unlimited
843
951
  */
844
- limit: number;
952
+ apiCallLimit: number;
845
953
  /**
846
954
  * Storage usage in bytes
847
955
  */
848
- storageUsed?: number | null;
956
+ storageUsedBytes?: number | null;
849
957
  /**
850
958
  * Storage limit in bytes (-1 means unlimited)
851
959
  */
852
- storageLimit?: number | null;
960
+ storageLimitBytes?: number | null;
853
961
  /**
854
962
  * Total document count across all tenant-scoped collections
855
963
  */
856
- totalDocuments?: number | null;
964
+ documentCount?: number | null;
857
965
  /**
858
966
  * Number of video documents
859
967
  */
@@ -866,6 +974,11 @@ interface ApiUsage {
866
974
  * Monthly viewer watch time from Mux Data
867
975
  */
868
976
  deliveryMinutesUsed?: number | null;
977
+ /**
978
+ * AI generation count
979
+ */
980
+ aiGenerationCount?: number | null;
981
+ snapshottedAt?: string | null;
869
982
  updatedAt: string;
870
983
  createdAt: string;
871
984
  }
@@ -887,7 +1000,10 @@ interface Subscription {
887
1000
  provider: 'toss' | 'polar';
888
1001
  currentPeriodStart?: string | null;
889
1002
  currentPeriodEnd?: string | null;
890
- nextBillingDate?: string | null;
1003
+ trialStartAt?: string | null;
1004
+ trialEndAt?: string | null;
1005
+ endedAt?: string | null;
1006
+ pastDueAt?: string | null;
891
1007
  /**
892
1008
  * Toss billing key (AES-256-GCM encrypted)
893
1009
  */
@@ -908,17 +1024,19 @@ interface Subscription {
908
1024
  cardType?: string | null;
909
1025
  };
910
1026
  /**
911
- * Polar subscription ID
1027
+ * Provider subscription ID
912
1028
  */
913
- polarSubscriptionId?: string | null;
1029
+ providerSubscriptionId?: string | null;
914
1030
  /**
915
- * Polar customer ID
1031
+ * Provider customer ID
916
1032
  */
917
- polarCustomerId?: string | null;
1033
+ providerCustomerId?: string | null;
918
1034
  /**
919
- * Polar product ID
1035
+ * Additional provider metadata
920
1036
  */
921
- polarProductId?: string | null;
1037
+ providerMetadata?: {
1038
+ [k: string]: unknown;
1039
+ } | unknown[] | string | number | boolean | null;
922
1040
  cancelAtPeriodEnd?: boolean | null;
923
1041
  canceledAt?: string | null;
924
1042
  cancelReason?: string | null;
@@ -928,7 +1046,7 @@ interface Subscription {
928
1046
  pendingPlanChange?: {
929
1047
  targetPlan?: ('starter' | 'basic' | 'pro') | null;
930
1048
  targetAmount?: number | null;
931
- effectiveDate?: string | null;
1049
+ effectiveAt?: string | null;
932
1050
  };
933
1051
  updatedAt: string;
934
1052
  createdAt: string;
@@ -950,7 +1068,7 @@ interface BillingHistory {
950
1068
  /**
951
1069
  * Plan at time of payment
952
1070
  */
953
- plan?: string | null;
1071
+ plan: 'starter' | 'basic' | 'pro';
954
1072
  provider: 'toss' | 'polar';
955
1073
  currency: 'KRW' | 'USD';
956
1074
  billingCycle?: ('monthly' | 'yearly') | null;
@@ -959,7 +1077,7 @@ interface BillingHistory {
959
1077
  /**
960
1078
  * Unique order number
961
1079
  */
962
- orderId: string;
1080
+ invoiceNumber: string;
963
1081
  orderName?: string | null;
964
1082
  /**
965
1083
  * Toss payment key
@@ -1097,11 +1215,6 @@ interface Product {
1097
1215
  thumbnail?: (string | null) | Image;
1098
1216
  images?: (string | Image)[] | null;
1099
1217
  videos?: (string | Video)[] | null;
1100
- price: number;
1101
- /**
1102
- * Original price before discount
1103
- */
1104
- compareAtPrice?: number | null;
1105
1218
  content?: {
1106
1219
  root: {
1107
1220
  type: string;
@@ -1140,18 +1253,6 @@ interface Product {
1140
1253
  hasNextPage?: boolean;
1141
1254
  totalDocs?: number;
1142
1255
  };
1143
- /**
1144
- * Stock Keeping Unit
1145
- */
1146
- sku?: string | null;
1147
- /**
1148
- * UPC/EAN barcode
1149
- */
1150
- barcode?: string | null;
1151
- /**
1152
- * External system ID (ERP, POS)
1153
- */
1154
- externalId?: string | null;
1155
1256
  /**
1156
1257
  * Minimum order quantity
1157
1258
  */
@@ -1204,6 +1305,12 @@ interface Product {
1204
1305
  isSoldOut?: boolean | null;
1205
1306
  isFeatured?: boolean | null;
1206
1307
  publishedAt?: string | null;
1308
+ vendor?: string | null;
1309
+ productType?: string | null;
1310
+ /**
1311
+ * URL handle (alternative to slug)
1312
+ */
1313
+ handle?: string | null;
1207
1314
  updatedAt: string;
1208
1315
  createdAt: string;
1209
1316
  deletedAt?: string | null;
@@ -1237,11 +1344,11 @@ interface Video {
1237
1344
  [k: string]: unknown;
1238
1345
  } | null;
1239
1346
  sourceLiveStream?: (string | null) | LiveStream;
1240
- status?: ('waiting' | 'preparing' | 'ready' | 'errored') | null;
1241
- duration?: number | null;
1242
- aspectRatio?: string | null;
1347
+ muxStatus?: ('waiting' | 'preparing' | 'ready' | 'errored') | null;
1348
+ durationSeconds?: number | null;
1349
+ muxAspectRatio?: string | null;
1243
1350
  maxResolution?: string | null;
1244
- videoQuality?: ('basic' | 'plus' | 'premium') | null;
1351
+ quality?: ('basic' | 'plus' | 'premium') | null;
1245
1352
  mp4Support?: ('none' | 'standard' | 'capped-1080p') | null;
1246
1353
  muxAssetId?: string | null;
1247
1354
  muxPlaybackId?: string | null;
@@ -1291,6 +1398,16 @@ interface Video {
1291
1398
  metadata?: {
1292
1399
  [k: string]: unknown;
1293
1400
  } | unknown[] | string | number | boolean | null;
1401
+ viewCount?: number | null;
1402
+ aspectRatio?: ('16_9' | '9_16' | '4_3' | '1_1') | null;
1403
+ /**
1404
+ * Chapter markers
1405
+ */
1406
+ chapters?: {
1407
+ title: string;
1408
+ startSeconds: number;
1409
+ id?: string | null;
1410
+ }[] | null;
1294
1411
  updatedAt: string;
1295
1412
  createdAt: string;
1296
1413
  deletedAt?: string | null;
@@ -1315,12 +1432,12 @@ interface LiveStream {
1315
1432
  /**
1316
1433
  * Reconnect window (seconds)
1317
1434
  */
1318
- reconnectWindow?: number | null;
1319
- status?: ('idle' | 'active' | 'disabled') | null;
1435
+ reconnectWindowSeconds?: number | null;
1436
+ muxStatus?: ('idle' | 'active' | 'disabled') | null;
1320
1437
  muxLiveStreamId?: string | null;
1321
1438
  muxPlaybackId?: string | null;
1322
1439
  streamKey?: string | null;
1323
- activeAssetId?: string | null;
1440
+ muxActiveAssetId?: string | null;
1324
1441
  recentAssetIds?: {
1325
1442
  [k: string]: unknown;
1326
1443
  } | unknown[] | string | number | boolean | null;
@@ -1366,6 +1483,10 @@ interface LiveStream {
1366
1483
  metadata?: {
1367
1484
  [k: string]: unknown;
1368
1485
  } | unknown[] | string | number | boolean | null;
1486
+ startedAt?: string | null;
1487
+ endedAt?: string | null;
1488
+ peakViewerCount?: number | null;
1489
+ viewCount?: number | null;
1369
1490
  updatedAt: string;
1370
1491
  createdAt: string;
1371
1492
  deletedAt?: string | null;
@@ -1430,88 +1551,72 @@ interface ProductVariant {
1430
1551
  _order?: string | null;
1431
1552
  tenant?: (string | null) | Tenant;
1432
1553
  product: string | Product;
1433
- title: string;
1434
- /**
1435
- * Short summary for listing/cards
1436
- */
1437
- description?: string | null;
1554
+ title?: string | null;
1438
1555
  /**
1439
1556
  * Variant-specific SKU
1440
1557
  */
1441
1558
  sku?: string | null;
1442
1559
  /**
1443
- * Override price (uses product price if empty)
1560
+ * Selling price (KRW)
1444
1561
  */
1445
1562
  price?: number | null;
1446
1563
  /**
1447
- * Barcode (EAN, UPC, etc.)
1564
+ * Original price before discount
1565
+ */
1566
+ compareAtPrice?: number | null;
1567
+ /**
1568
+ * Sell without tracking inventory
1569
+ */
1570
+ isUnlimited?: boolean | null;
1571
+ stock?: number | null;
1572
+ /**
1573
+ * Paid orders in transit (informational — stock alone gates new purchases)
1574
+ */
1575
+ reservedStock?: number | null;
1576
+ /**
1577
+ * Variant-specific barcode
1448
1578
  */
1449
1579
  barcode?: string | null;
1450
1580
  /**
1451
- * Weight in grams (g)
1581
+ * Variant-specific weight (g)
1452
1582
  */
1453
1583
  weight?: number | null;
1454
- isSoldOut?: boolean | null;
1455
- images?: (string | Image)[] | null;
1584
+ requiresShipping?: boolean | null;
1456
1585
  /**
1457
1586
  * External system ID
1458
1587
  */
1459
1588
  externalId?: string | null;
1460
- status?: ('active' | 'inactive') | null;
1589
+ /**
1590
+ * Option value combination for this variant (e.g. Black + S)
1591
+ */
1592
+ optionValues?: (string | ProductOptionValue)[] | null;
1593
+ isActive?: boolean | null;
1461
1594
  metadata?: {
1462
1595
  [k: string]: unknown;
1463
1596
  } | unknown[] | string | number | boolean | null;
1464
- productOptions?: {
1465
- docs?: (string | ProductOption)[];
1466
- hasNextPage?: boolean;
1467
- totalDocs?: number;
1468
- };
1469
1597
  updatedAt: string;
1470
1598
  createdAt: string;
1471
1599
  deletedAt?: string | null;
1472
1600
  }
1473
1601
  /**
1474
1602
  * This interface was referenced by `Config`'s JSON-Schema
1475
- * via the `definition` "product-options".
1603
+ * via the `definition` "product-option-values".
1476
1604
  */
1477
- interface ProductOption {
1605
+ interface ProductOptionValue {
1478
1606
  id: string;
1479
- '_product-options_productOptions_order'?: string | null;
1480
- '_product-options_options_order'?: string | null;
1607
+ '_product-option-values_values_order'?: string | null;
1481
1608
  _order?: string | null;
1482
1609
  tenant?: (string | null) | Tenant;
1483
- product: string | Product;
1484
- variant?: (string | null) | ProductVariant;
1485
- title?: string | null;
1486
- /**
1487
- * Option-specific SKU
1488
- */
1489
- sku?: string | null;
1490
- /**
1491
- * Sell without tracking inventory
1492
- */
1493
- isUnlimited?: boolean | null;
1494
- stock?: number | null;
1495
- /**
1496
- * Paid orders in transit (informational — stock alone gates new purchases)
1497
- */
1498
- reservedStock?: number | null;
1499
- /**
1500
- * Price adjustment (add/subtract from base price)
1501
- */
1502
- priceAdjustment?: number | null;
1503
- /**
1504
- * Option-specific barcode
1505
- */
1506
- barcode?: string | null;
1610
+ option: string | ProductOption;
1507
1611
  /**
1508
- * Option-specific weight (g)
1612
+ * Display label (e.g. Black, S)
1509
1613
  */
1510
- weight?: number | null;
1614
+ value: string;
1511
1615
  /**
1512
- * External system ID
1616
+ * When enabled, the slug will auto-generate from the title field on save and autosave.
1513
1617
  */
1514
- externalId?: string | null;
1618
+ generateSlug?: boolean | null;
1619
+ slug?: string | null;
1515
1620
  metadata?: {
1516
1621
  [k: string]: unknown;
1517
1622
  } | unknown[] | string | number | boolean | null;
@@ -1519,6 +1624,29 @@ interface ProductOption {
1519
1624
  createdAt: string;
1520
1625
  deletedAt?: string | null;
1521
1626
  }
1627
+ /**
1628
+ * This interface was referenced by `Config`'s JSON-Schema
1629
+ * via the `definition` "product-options".
1630
+ */
1631
+ interface ProductOption {
1632
+ id: string;
1633
+ '_product-options_options_order'?: string | null;
1634
+ _order?: string | null;
1635
+ tenant?: (string | null) | Tenant;
1636
+ product: string | Product;
1637
+ /**
1638
+ * Option name (e.g. Color, Size)
1639
+ */
1640
+ title: string;
1641
+ values?: {
1642
+ docs?: (string | ProductOptionValue)[];
1643
+ hasNextPage?: boolean;
1644
+ totalDocs?: number;
1645
+ };
1646
+ updatedAt: string;
1647
+ createdAt: string;
1648
+ deletedAt?: string | null;
1649
+ }
1522
1650
  /**
1523
1651
  * This interface was referenced by `Config`'s JSON-Schema
1524
1652
  * via the `definition` "product-categories".
@@ -1673,21 +1801,21 @@ interface ShippingPolicy {
1673
1801
  */
1674
1802
  title: string;
1675
1803
  /**
1676
- * Base shipping fee
1804
+ * Amount in KRW (won)
1677
1805
  */
1678
- baseFee: number;
1806
+ baseAmount: number;
1679
1807
  /**
1680
- * Free shipping above this amount (empty = no free shipping)
1808
+ * Amount in KRW (won)
1681
1809
  */
1682
- freeShippingThreshold?: number | null;
1810
+ freeShippingMinAmount?: number | null;
1683
1811
  /**
1684
- * Extra fee for Jeju island
1812
+ * Amount in KRW (won)
1685
1813
  */
1686
- jejuExtraFee?: number | null;
1814
+ jejuExtraAmount?: number | null;
1687
1815
  /**
1688
- * Extra fee for remote islands
1816
+ * Amount in KRW (won)
1689
1817
  */
1690
- islandExtraFee?: number | null;
1818
+ remoteAreaExtraAmount?: number | null;
1691
1819
  /**
1692
1820
  * Short summary for listing/cards
1693
1821
  */
@@ -1701,7 +1829,7 @@ interface ShippingPolicy {
1701
1829
  * Estimated delivery days
1702
1830
  */
1703
1831
  estimatedDays?: number | null;
1704
- status?: ('active' | 'inactive') | null;
1832
+ isActive?: boolean | null;
1705
1833
  isDefault?: boolean | null;
1706
1834
  metadata?: {
1707
1835
  [k: string]: unknown;
@@ -1797,6 +1925,7 @@ interface Order {
1797
1925
  id: string;
1798
1926
  tenant?: (string | null) | Tenant;
1799
1927
  orderNumber: string;
1928
+ cartToken?: string | null;
1800
1929
  status: 'pending' | 'paid' | 'failed' | 'canceled' | 'preparing' | 'shipped' | 'delivered' | 'confirmed' | 'return_requested' | 'return_processing' | 'returned';
1801
1930
  totalAmount?: number | null;
1802
1931
  discountCode?: string | null;
@@ -1806,18 +1935,27 @@ interface Order {
1806
1935
  */
1807
1936
  refundedAmount?: number | null;
1808
1937
  /**
1809
- * Shipping fee at time of order
1938
+ * Shipping amount at time of order
1939
+ */
1940
+ shippingAmount?: number | null;
1941
+ /**
1942
+ * Item subtotal (excl. shipping & discount)
1810
1943
  */
1811
- shippingFee?: number | null;
1944
+ subtotalAmount?: number | null;
1945
+ taxAmount?: number | null;
1812
1946
  source?: ('web' | 'app' | 'manual') | null;
1947
+ currency?: string | null;
1813
1948
  /**
1814
1949
  * Internal admin notes (not visible to customers)
1815
1950
  */
1816
1951
  adminNotes?: string | null;
1952
+ cancelReason?: string | null;
1953
+ canceledAt?: string | null;
1954
+ completedAt?: string | null;
1817
1955
  /**
1818
- * Notes left by customer at checkout
1956
+ * Note left by customer at checkout
1819
1957
  */
1820
- customerNotes?: string | null;
1958
+ customerNote?: string | null;
1821
1959
  customer?: (string | null) | Customer;
1822
1960
  /**
1823
1961
  * Customer info at the time of order
@@ -1831,12 +1969,19 @@ interface Order {
1831
1969
  recipientName?: string | null;
1832
1970
  phone?: string | null;
1833
1971
  postalCode?: string | null;
1834
- address1?: string | null;
1835
- address2?: string | null;
1972
+ address?: string | null;
1973
+ detailAddress?: string | null;
1836
1974
  deliveryMessage?: string | null;
1837
1975
  };
1838
- products?: {
1839
- docs?: (string | OrderProduct)[];
1976
+ billingAddress?: {
1977
+ recipientName?: string | null;
1978
+ businessRegistrationNumber?: string | null;
1979
+ email?: string | null;
1980
+ phone?: string | null;
1981
+ address?: string | null;
1982
+ };
1983
+ items?: {
1984
+ docs?: (string | OrderItem)[];
1840
1985
  hasNextPage?: boolean;
1841
1986
  totalDocs?: number;
1842
1987
  };
@@ -1855,16 +2000,12 @@ interface Order {
1855
2000
  hasNextPage?: boolean;
1856
2001
  totalDocs?: number;
1857
2002
  };
1858
- exchanges?: {
1859
- docs?: (string | Exchange)[];
1860
- hasNextPage?: boolean;
1861
- totalDocs?: number;
1862
- };
1863
2003
  metadata?: {
1864
2004
  [k: string]: unknown;
1865
2005
  } | unknown[] | string | number | boolean | null;
1866
2006
  updatedAt: string;
1867
2007
  createdAt: string;
2008
+ deletedAt?: string | null;
1868
2009
  }
1869
2010
  /**
1870
2011
  * This interface was referenced by `Config`'s JSON-Schema
@@ -1882,7 +2023,7 @@ interface Customer {
1882
2023
  /**
1883
2024
  * External provider user ID
1884
2025
  */
1885
- socialId?: string | null;
2026
+ providerUserId?: string | null;
1886
2027
  /**
1887
2028
  * Internal notes (not visible to customers)
1888
2029
  */
@@ -1899,30 +2040,75 @@ interface Customer {
1899
2040
  hasNextPage?: boolean;
1900
2041
  totalDocs?: number;
1901
2042
  };
2043
+ marketingConsent?: {
2044
+ email?: {
2045
+ isConsented?: boolean | null;
2046
+ consentedAt?: string | null;
2047
+ expiresAt?: string | null;
2048
+ unsubscribedAt?: string | null;
2049
+ };
2050
+ sms?: {
2051
+ isConsented?: boolean | null;
2052
+ consentedAt?: string | null;
2053
+ expiresAt?: string | null;
2054
+ unsubscribedAt?: string | null;
2055
+ };
2056
+ push?: {
2057
+ isConsented?: boolean | null;
2058
+ consentedAt?: string | null;
2059
+ expiresAt?: string | null;
2060
+ unsubscribedAt?: string | null;
2061
+ };
2062
+ /**
2063
+ * Channel through which consent was obtained (e.g. signup, checkout, import)
2064
+ */
2065
+ consentSource?: string | null;
2066
+ };
2067
+ guardianConsent?: {
2068
+ hasGuardianConsent?: boolean | null;
2069
+ guardianName?: string | null;
2070
+ guardianPhone?: string | null;
2071
+ guardianConsentedAt?: string | null;
2072
+ };
2073
+ /**
2074
+ * Withdrawal reason (internal)
2075
+ */
2076
+ withdrawReason?: string | null;
2077
+ withdrawnAt?: string | null;
2078
+ /**
2079
+ * Legal retention deadline (hard-delete eligible after this date)
2080
+ */
2081
+ retainUntil?: string | null;
2082
+ anonymizedAt?: string | null;
1902
2083
  hashedPassword?: string | null;
1903
2084
  salt?: string | null;
1904
2085
  verificationToken?: string | null;
1905
2086
  resetPasswordToken?: string | null;
1906
- resetPasswordExpiry?: string | null;
1907
- loginAttempts?: number | null;
2087
+ resetPasswordExpiresAt?: string | null;
2088
+ loginAttemptCount?: number | null;
1908
2089
  lockedUntil?: string | null;
1909
2090
  authProvider?: ('local' | 'google' | 'apple' | 'kakao' | 'naver') | null;
1910
2091
  isGuest?: boolean | null;
1911
- isVerified?: boolean | null;
1912
- /**
1913
- * Marketing email consent
1914
- */
1915
- marketingConsent?: boolean | null;
1916
- /**
1917
- * Date marketing consent was given
1918
- */
1919
- consentedAt?: string | null;
2092
+ isEmailVerified?: boolean | null;
1920
2093
  lastLoginAt?: string | null;
2094
+ isMinor?: boolean | null;
2095
+ acceptsTos?: boolean | null;
2096
+ tosVersion?: string | null;
2097
+ defaultShippingAddress?: (string | null) | CustomerAddress;
2098
+ defaultBillingAddress?: (string | null) | CustomerAddress;
2099
+ totalOrderCount?: number | null;
2100
+ lifetimeValue?: number | null;
2101
+ firstOrderAt?: string | null;
2102
+ lastOrderAt?: string | null;
2103
+ threadCount?: number | null;
2104
+ commentCount?: number | null;
2105
+ reactionCount?: number | null;
1921
2106
  metadata?: {
1922
2107
  [k: string]: unknown;
1923
2108
  } | unknown[] | string | number | boolean | null;
1924
2109
  updatedAt: string;
1925
2110
  createdAt: string;
2111
+ deletedAt?: string | null;
1926
2112
  collection: 'customers';
1927
2113
  }
1928
2114
  /**
@@ -1945,7 +2131,7 @@ interface CustomerGroup {
1945
2131
  description?: string | null;
1946
2132
  color?: string | null;
1947
2133
  image?: (string | null) | Image;
1948
- status?: ('active' | 'inactive') | null;
2134
+ isActive?: boolean | null;
1949
2135
  metadata?: {
1950
2136
  [k: string]: unknown;
1951
2137
  } | unknown[] | string | number | boolean | null;
@@ -1982,15 +2168,14 @@ interface CustomerAddress {
1982
2168
  }
1983
2169
  /**
1984
2170
  * This interface was referenced by `Config`'s JSON-Schema
1985
- * via the `definition` "order-products".
2171
+ * via the `definition` "order-items".
1986
2172
  */
1987
- interface OrderProduct {
2173
+ interface OrderItem {
1988
2174
  id: string;
1989
2175
  tenant?: (string | null) | Tenant;
1990
2176
  order: string | Order;
1991
2177
  product: string | Product;
1992
2178
  variant?: (string | null) | ProductVariant;
1993
- option?: (string | null) | ProductOption;
1994
2179
  quantity: number;
1995
2180
  /**
1996
2181
  * Price per unit at time of order
@@ -2000,7 +2185,7 @@ interface OrderProduct {
2000
2185
  * unitPrice × quantity
2001
2186
  */
2002
2187
  totalPrice: number;
2003
- title?: string | null;
2188
+ productTitle?: string | null;
2004
2189
  updatedAt: string;
2005
2190
  createdAt: string;
2006
2191
  }
@@ -2014,19 +2199,50 @@ interface Transaction {
2014
2199
  type: 'payment' | 'refund';
2015
2200
  status: 'pending' | 'paid' | 'failed' | 'canceled';
2016
2201
  order: string | Order;
2017
- paymentId?: string | null;
2202
+ amount?: number | null;
2018
2203
  paymentMethod?: string | null;
2204
+ /**
2205
+ * Installment months (0 = lump sum)
2206
+ */
2207
+ installmentMonths?: number | null;
2208
+ approvedAt?: string | null;
2019
2209
  receiptUrl?: string | null;
2020
- totalAmount?: number | null;
2210
+ pgPaymentId?: string | null;
2211
+ pgOrderId?: string | null;
2212
+ cashReceipt?: {
2213
+ issuanceType?: ('none' | 'personal' | 'business') | null;
2214
+ /**
2215
+ * Personal: phone or cash receipt card number / Business: business registration number
2216
+ */
2217
+ registrationNumber?: string | null;
2218
+ issueNumber?: string | null;
2219
+ issuedAt?: string | null;
2220
+ };
2221
+ cardInfo?: {
2222
+ brand?: string | null;
2223
+ last4?: string | null;
2224
+ expMonth?: number | null;
2225
+ expYear?: number | null;
2226
+ issuerCode?: string | null;
2227
+ type?: ('credit' | 'debit' | 'gift') | null;
2228
+ owner?: string | null;
2229
+ };
2230
+ failureCode?: string | null;
2231
+ failureMessage?: string | null;
2021
2232
  /**
2022
- * Payment gateway provider (e.g. toss, stripe)
2233
+ * Payment gateway (e.g. toss, stripe)
2023
2234
  */
2024
2235
  pgProvider?: string | null;
2236
+ /**
2237
+ * Legal retention deadline (5 years, Electronic Financial Transactions Act)
2238
+ */
2239
+ retainUntil?: string | null;
2025
2240
  metadata?: {
2026
2241
  [k: string]: unknown;
2027
2242
  } | unknown[] | string | number | boolean | null;
2028
2243
  updatedAt: string;
2029
2244
  createdAt: string;
2245
+ deletedAt?: string | null;
2030
2246
  }
2031
2247
  /**
2032
2248
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2038,10 +2254,15 @@ interface Fulfillment {
2038
2254
  order: string | Order;
2039
2255
  status: 'pending' | 'packed' | 'shipped' | 'delivered' | 'failed';
2040
2256
  /**
2041
- * Shipping carrier name (e.g. CJ Logistics, FedEx, UPS)
2257
+ * Carrier name (e.g. CJ Logistics, FedEx)
2042
2258
  */
2043
2259
  carrier?: string | null;
2044
2260
  trackingNumber?: string | null;
2261
+ /**
2262
+ * Tracking URL (auto-derived from carrier + trackingNumber)
2263
+ */
2264
+ trackingUrl?: string | null;
2265
+ packedAt?: string | null;
2045
2266
  shippedAt?: string | null;
2046
2267
  deliveredAt?: string | null;
2047
2268
  items?: {
@@ -2058,6 +2279,7 @@ interface Fulfillment {
2058
2279
  } | unknown[] | string | number | boolean | null;
2059
2280
  updatedAt: string;
2060
2281
  createdAt: string;
2282
+ deletedAt?: string | null;
2061
2283
  }
2062
2284
  /**
2063
2285
  * This interface was referenced by `Config`'s JSON-Schema
@@ -2067,7 +2289,7 @@ interface FulfillmentItem {
2067
2289
  id: string;
2068
2290
  tenant?: (string | null) | Tenant;
2069
2291
  fulfillment: string | Fulfillment;
2070
- orderProduct: string | OrderProduct;
2292
+ orderItem: string | OrderItem;
2071
2293
  quantity: number;
2072
2294
  updatedAt: string;
2073
2295
  createdAt: string;
@@ -2079,107 +2301,56 @@ interface FulfillmentItem {
2079
2301
  interface Return {
2080
2302
  id: string;
2081
2303
  tenant?: (string | null) | Tenant;
2304
+ returnNumber?: string | null;
2082
2305
  order: string | Order;
2083
- status: 'requested' | 'processing' | 'approved' | 'rejected' | 'completed';
2084
- reason?: ('change_of_mind' | 'defective' | 'wrong_delivery' | 'damaged' | 'other') | null;
2306
+ type: 'refund' | 'exchange';
2085
2307
  /**
2086
- * Detailed return reason
2308
+ * New order created for exchange
2087
2309
  */
2088
- reasonDetail?: string | null;
2089
- returnProducts?: {
2090
- docs?: (string | ReturnProduct)[];
2091
- hasNextPage?: boolean;
2092
- totalDocs?: number;
2093
- };
2094
- /**
2095
- * Internal notes
2096
- */
2097
- adminNotes?: string | null;
2098
- completedAt?: string | null;
2099
- /**
2100
- * Refund receipt URL
2101
- */
2102
- refundReceiptUrl?: string | null;
2103
- refundAmount: number;
2104
- metadata?: {
2105
- [k: string]: unknown;
2106
- } | unknown[] | string | number | boolean | null;
2107
- updatedAt: string;
2108
- createdAt: string;
2109
- }
2110
- /**
2111
- * This interface was referenced by `Config`'s JSON-Schema
2112
- * via the `definition` "return-products".
2113
- */
2114
- interface ReturnProduct {
2115
- id: string;
2116
- tenant?: (string | null) | Tenant;
2117
- return: string | Return;
2118
- order: string | Order;
2310
+ exchangeOrder?: (string | null) | Order;
2119
2311
  status: 'requested' | 'processing' | 'approved' | 'rejected' | 'completed';
2120
- orderProduct: string | OrderProduct;
2121
- product: string | Product;
2122
- variant: string | ProductVariant;
2123
- option: string | ProductOption;
2124
- quantity: number;
2125
- title?: string | null;
2126
- updatedAt: string;
2127
- createdAt: string;
2128
- }
2129
- /**
2130
- * This interface was referenced by `Config`'s JSON-Schema
2131
- * via the `definition` "exchanges".
2132
- */
2133
- interface Exchange {
2134
- id: string;
2135
- tenant?: (string | null) | Tenant;
2136
- order: string | Order;
2137
- status: 'requested' | 'processing' | 'shipped' | 'completed' | 'rejected';
2138
- reason?: ('wrong_size' | 'wrong_color' | 'defective' | 'other') | null;
2312
+ reason?: ('change_of_mind' | 'defective' | 'wrong_delivery' | 'damaged' | 'other') | null;
2139
2313
  /**
2140
- * Detailed exchange reason
2314
+ * Detailed return reason
2141
2315
  */
2142
2316
  reasonDetail?: string | null;
2143
- shippingFee?: number | null;
2317
+ items?: {
2318
+ docs?: (string | ReturnItem)[];
2319
+ hasNextPage?: boolean;
2320
+ totalDocs?: number;
2321
+ };
2144
2322
  /**
2145
2323
  * Internal notes
2146
2324
  */
2147
2325
  adminNotes?: string | null;
2148
2326
  completedAt?: string | null;
2149
- exchangeProducts?: {
2150
- docs?: (string | ExchangeProduct)[];
2151
- hasNextPage?: boolean;
2152
- totalDocs?: number;
2153
- };
2327
+ /**
2328
+ * Refund receipt URL
2329
+ */
2330
+ refundReceiptUrl?: string | null;
2331
+ refundAmount: number;
2154
2332
  metadata?: {
2155
2333
  [k: string]: unknown;
2156
2334
  } | unknown[] | string | number | boolean | null;
2157
2335
  updatedAt: string;
2158
2336
  createdAt: string;
2337
+ deletedAt?: string | null;
2159
2338
  }
2160
2339
  /**
2161
2340
  * This interface was referenced by `Config`'s JSON-Schema
2162
- * via the `definition` "exchange-products".
2341
+ * via the `definition` "return-items".
2163
2342
  */
2164
- interface ExchangeProduct {
2343
+ interface ReturnItem {
2165
2344
  id: string;
2166
2345
  tenant?: (string | null) | Tenant;
2167
- exchange: string | Exchange;
2346
+ return: string | Return;
2168
2347
  order: string | Order;
2169
- orderProduct: string | OrderProduct;
2348
+ status: 'requested' | 'processing' | 'approved' | 'rejected' | 'completed';
2349
+ orderItem: string | OrderItem;
2170
2350
  product: string | Product;
2171
2351
  variant?: (string | null) | ProductVariant;
2172
- option?: (string | null) | ProductOption;
2173
2352
  quantity: number;
2174
- /**
2175
- * New variant to exchange to
2176
- */
2177
- newVariant?: (string | null) | ProductVariant;
2178
- /**
2179
- * New option to exchange to
2180
- */
2181
- newOption?: (string | null) | ProductOption;
2182
- title?: string | null;
2353
+ productTitle?: string | null;
2183
2354
  updatedAt: string;
2184
2355
  createdAt: string;
2185
2356
  }
@@ -2212,25 +2383,43 @@ interface Cart {
2212
2383
  id: string;
2213
2384
  tenant?: (string | null) | Tenant;
2214
2385
  customer?: (string | null) | Customer;
2215
- status: 'active' | 'completed' | 'abandoned';
2386
+ /**
2387
+ * Guest checkout email
2388
+ */
2389
+ email?: string | null;
2216
2390
  shippingAddress?: {
2217
2391
  recipientName?: string | null;
2218
2392
  phone?: string | null;
2219
2393
  postalCode?: string | null;
2220
- address1?: string | null;
2221
- address2?: string | null;
2394
+ address?: string | null;
2395
+ detailAddress?: string | null;
2222
2396
  deliveryMessage?: string | null;
2223
2397
  };
2224
2398
  discountCode?: string | null;
2225
- itemsTotal?: number | null;
2226
- shippingFee?: number | null;
2227
- discountAmount?: number | null;
2228
- totalAmount?: number | null;
2399
+ /**
2400
+ * Customer note
2401
+ */
2402
+ customerNote?: string | null;
2229
2403
  items?: {
2230
2404
  docs?: (string | CartItem)[];
2231
2405
  hasNextPage?: boolean;
2232
2406
  totalDocs?: number;
2233
2407
  };
2408
+ status: 'active' | 'completed' | 'abandoned';
2409
+ currency?: string | null;
2410
+ subtotalAmount?: number | null;
2411
+ /**
2412
+ * Amount in KRW (won)
2413
+ */
2414
+ shippingAmount?: number | null;
2415
+ /**
2416
+ * Amount in KRW (won)
2417
+ */
2418
+ discountAmount?: number | null;
2419
+ totalAmount?: number | null;
2420
+ cartToken?: string | null;
2421
+ lastActivityAt?: string | null;
2422
+ abandonedAt?: string | null;
2234
2423
  expiresAt?: string | null;
2235
2424
  metadata?: {
2236
2425
  [k: string]: unknown;
@@ -2248,7 +2437,6 @@ interface CartItem {
2248
2437
  cart: string | Cart;
2249
2438
  product: string | Product;
2250
2439
  variant?: (string | null) | ProductVariant;
2251
- option?: (string | null) | ProductOption;
2252
2440
  quantity: number;
2253
2441
  /**
2254
2442
  * Price at the time of adding to cart
@@ -2268,7 +2456,7 @@ interface Discount {
2268
2456
  id: string;
2269
2457
  _order?: string | null;
2270
2458
  tenant?: (string | null) | Tenant;
2271
- type: 'percentage' | 'fixed_amount' | 'free_shipping' | 'tiered';
2459
+ discountType: 'percentage' | 'fixed_amount' | 'free_shipping' | 'tiered';
2272
2460
  /**
2273
2461
  * Internal name (e.g. New member 10% discount)
2274
2462
  */
@@ -2281,11 +2469,11 @@ interface Discount {
2281
2469
  /**
2282
2470
  * Internal description for admin reference
2283
2471
  */
2284
- description?: string | null;
2472
+ internalNote?: string | null;
2285
2473
  /**
2286
2474
  * Discount rate (%) or fixed amount
2287
2475
  */
2288
- value?: number | null;
2476
+ discountValue?: number | null;
2289
2477
  /**
2290
2478
  * Tiered discount rules (applied by order amount range)
2291
2479
  */
@@ -2298,41 +2486,48 @@ interface Discount {
2298
2486
  /**
2299
2487
  * Discount rate (%) or fixed amount
2300
2488
  */
2301
- value?: number | null;
2489
+ value: number;
2302
2490
  id?: string | null;
2303
2491
  }[] | null;
2304
2492
  /**
2305
- * Minimum order amount to apply
2493
+ * Amount in KRW (won)
2306
2494
  */
2307
2495
  minOrderAmount?: number | null;
2308
2496
  /**
2309
- * Max discount for percentage type
2497
+ * Amount in KRW (won)
2310
2498
  */
2311
2499
  maxDiscountAmount?: number | null;
2312
2500
  startsAt?: string | null;
2313
2501
  endsAt?: string | null;
2314
- /**
2315
- * Leave empty to apply to all products
2316
- */
2317
- applicableProducts?: (string | Product)[] | null;
2318
- /**
2319
- * Leave empty to apply to all categories
2320
- */
2321
- applicableCategories?: (string | ProductCategory)[] | null;
2502
+ customerSelection?: {
2503
+ type?: ('all' | 'included' | 'excluded') | null;
2504
+ customers?: (string | Customer)[] | null;
2505
+ customerGroups?: (string | CustomerGroup)[] | null;
2506
+ };
2507
+ productSelection?: {
2508
+ type?: ('all' | 'included' | 'excluded') | null;
2509
+ products?: (string | Product)[] | null;
2510
+ categories?: (string | ProductCategory)[] | null;
2511
+ };
2322
2512
  /**
2323
2513
  * Total usage limit (empty = unlimited)
2324
2514
  */
2325
- usageLimit?: number | null;
2326
- usageCount?: number | null;
2515
+ maxUses?: number | null;
2516
+ usesCount?: number | null;
2327
2517
  /**
2328
2518
  * Usage limit per customer (empty = unlimited)
2329
2519
  */
2330
- perCustomerLimit?: number | null;
2331
- customerGroups?: (string | CustomerGroup)[] | null;
2520
+ maxUsesPerCustomer?: number | null;
2521
+ discountMode?: ('code' | 'automatic') | null;
2522
+ /**
2523
+ * First order only
2524
+ */
2525
+ isFirstOrderOnly?: boolean | null;
2332
2526
  /**
2333
- * Auto-apply discount
2527
+ * Allow combining with other discounts
2334
2528
  */
2335
- isAutoApply?: boolean | null;
2529
+ isCombinable?: boolean | null;
2530
+ allocationMethod?: ('across' | 'each') | null;
2336
2531
  /**
2337
2532
  * Discount priority (higher = first)
2338
2533
  */
@@ -2420,9 +2615,21 @@ interface Post {
2420
2615
  customer?: (string | null) | Customer;
2421
2616
  isFeatured?: boolean | null;
2422
2617
  /**
2423
- * Read time (minutes)
2618
+ * Reading time (minutes)
2619
+ */
2620
+ readingMinutes?: number | null;
2621
+ /**
2622
+ * OG/Twitter excerpt (280 chars)
2623
+ */
2624
+ excerpt?: string | null;
2625
+ canonicalUrl?: string | null;
2626
+ visibility?: ('public' | 'members' | 'paid') | null;
2627
+ scheduledAt?: string | null;
2628
+ featuredUntil?: string | null;
2629
+ /**
2630
+ * Related posts
2424
2631
  */
2425
- readTime?: number | null;
2632
+ relatedPosts?: (string | Post)[] | null;
2426
2633
  metadata?: {
2427
2634
  [k: string]: unknown;
2428
2635
  } | unknown[] | string | number | boolean | null;
@@ -2453,7 +2660,7 @@ interface PostAuthor {
2453
2660
  hasNextPage?: boolean;
2454
2661
  totalDocs?: number;
2455
2662
  };
2456
- status?: ('active' | 'inactive') | null;
2663
+ isActive?: boolean | null;
2457
2664
  metadata?: {
2458
2665
  [k: string]: unknown;
2459
2666
  } | unknown[] | string | number | boolean | null;
@@ -2524,7 +2731,7 @@ interface Document {
2524
2731
  * Short summary for listing/cards
2525
2732
  */
2526
2733
  description?: string | null;
2527
- content: {
2734
+ content?: {
2528
2735
  root: {
2529
2736
  type: string;
2530
2737
  children: {
@@ -2538,7 +2745,7 @@ interface Document {
2538
2745
  version: number;
2539
2746
  };
2540
2747
  [k: string]: unknown;
2541
- };
2748
+ } | null;
2542
2749
  videos?: (string | Video)[] | null;
2543
2750
  /**
2544
2751
  * Document version (e.g. 1.0, 1.1, 2.0)
@@ -2547,11 +2754,11 @@ interface Document {
2547
2754
  /**
2548
2755
  * Effective date
2549
2756
  */
2550
- effectiveDate?: string | null;
2757
+ effectiveAt?: string | null;
2551
2758
  /**
2552
2759
  * Expiry date (optional)
2553
2760
  */
2554
- expiryDate?: string | null;
2761
+ expiresAt?: string | null;
2555
2762
  /**
2556
2763
  * Changelog (differences from previous version)
2557
2764
  */
@@ -2559,12 +2766,12 @@ interface Document {
2559
2766
  /**
2560
2767
  * Document that requires user agreement
2561
2768
  */
2562
- isRequired?: boolean | null;
2769
+ requiresAgreement?: boolean | null;
2563
2770
  /**
2564
- * Tags for search (e.g. GDPR, CCPA)
2771
+ * Keywords for search (e.g. GDPR, CCPA)
2565
2772
  */
2566
- tags?: {
2567
- tag?: string | null;
2773
+ keywords?: {
2774
+ keyword?: string | null;
2568
2775
  id?: string | null;
2569
2776
  }[] | null;
2570
2777
  seo?: {
@@ -2605,7 +2812,13 @@ interface Document {
2605
2812
  generateSlug?: boolean | null;
2606
2813
  slug?: string | null;
2607
2814
  type?: (string | null) | DocumentType;
2608
- category?: (string | null) | DocumentCategory;
2815
+ categories?: (string | DocumentCategory)[] | null;
2816
+ jurisdiction?: string | null;
2817
+ language?: string | null;
2818
+ /**
2819
+ * Document that supersedes this one
2820
+ */
2821
+ supersededBy?: (string | null) | Document;
2609
2822
  thumbnail?: (string | null) | Image;
2610
2823
  images?: (string | Image)[] | null;
2611
2824
  publishedAt?: string | null;
@@ -2683,7 +2896,7 @@ interface Playlist {
2683
2896
  videos?: (string | Video)[] | null;
2684
2897
  categories?: (string | PlaylistCategory)[] | null;
2685
2898
  tags?: (string | PlaylistTag)[] | null;
2686
- musics?: {
2899
+ tracks?: {
2687
2900
  docs?: (string | Music)[];
2688
2901
  hasNextPage?: boolean;
2689
2902
  totalDocs?: number;
@@ -2721,6 +2934,8 @@ interface Playlist {
2721
2934
  };
2722
2935
  };
2723
2936
  thumbnail?: (string | null) | Image;
2937
+ coverArt?: (string | null) | Image;
2938
+ isCollaborative?: boolean | null;
2724
2939
  /**
2725
2940
  * When enabled, the slug will auto-generate from the title field on save and autosave.
2726
2941
  */
@@ -2729,10 +2944,6 @@ interface Playlist {
2729
2944
  status?: ('draft' | 'published' | 'archived') | null;
2730
2945
  publishedAt?: string | null;
2731
2946
  isFeatured?: boolean | null;
2732
- /**
2733
- * Total duration (seconds)
2734
- */
2735
- totalDuration?: number | null;
2736
2947
  metadata?: {
2737
2948
  [k: string]: unknown;
2738
2949
  } | unknown[] | string | number | boolean | null;
@@ -2796,11 +3007,16 @@ interface PlaylistTag {
2796
3007
  */
2797
3008
  interface Music {
2798
3009
  id: string;
2799
- _musics_musics_order?: string | null;
3010
+ _musics_tracks_order?: string | null;
2800
3011
  _order?: string | null;
2801
3012
  tenant?: (string | null) | Tenant;
2802
3013
  playlist: string | Playlist;
2803
- url: string;
3014
+ sourceUrl?: string | null;
3015
+ /**
3016
+ * Provider (e.g. youtube, soundcloud)
3017
+ */
3018
+ sourceProvider?: string | null;
3019
+ sourceId?: string | null;
2804
3020
  /**
2805
3021
  * Auto-filled from YouTube
2806
3022
  */
@@ -2838,17 +3054,23 @@ interface Music {
2838
3054
  generateSlug?: boolean | null;
2839
3055
  slug?: string | null;
2840
3056
  thumbnail?: (string | null) | Image;
2841
- status?: ('active' | 'inactive') | null;
3057
+ status?: ('draft' | 'published' | 'archived') | null;
2842
3058
  isFeatured?: boolean | null;
2843
3059
  publishedAt?: string | null;
2844
3060
  /**
2845
3061
  * Duration in seconds (auto-filled)
2846
3062
  */
2847
- duration?: number | null;
2848
- isValid?: boolean | null;
3063
+ durationSeconds?: number | null;
3064
+ isEmbeddable?: boolean | null;
2849
3065
  metadata?: {
2850
3066
  [k: string]: unknown;
2851
3067
  } | unknown[] | string | number | boolean | null;
3068
+ /**
3069
+ * ISRC
3070
+ */
3071
+ isrc?: string | null;
3072
+ isExplicit?: boolean | null;
3073
+ previewUrl?: string | null;
2852
3074
  updatedAt: string;
2853
3075
  createdAt: string;
2854
3076
  deletedAt?: string | null;
@@ -2956,6 +3178,7 @@ interface Gallery {
2956
3178
  image?: (string | null) | Image;
2957
3179
  };
2958
3180
  };
3181
+ coverLayout?: ('grid' | 'masonry' | 'carousel' | 'justified') | null;
2959
3182
  /**
2960
3183
  * When enabled, the slug will auto-generate from the title field on save and autosave.
2961
3184
  */
@@ -3085,7 +3308,11 @@ interface Link {
3085
3308
  generateSlug?: boolean | null;
3086
3309
  slug?: string | null;
3087
3310
  type?: ('external' | 'social' | 'internal') | null;
3088
- thumbnail?: (string | null) | Image;
3311
+ icon?: (string | null) | Image;
3312
+ publishedAt?: string | null;
3313
+ platform?: string | null;
3314
+ opensInNewTab?: boolean | null;
3315
+ expiresAt?: string | null;
3089
3316
  status?: ('draft' | 'published' | 'archived') | null;
3090
3317
  isFeatured?: boolean | null;
3091
3318
  metadata?: {
@@ -3288,7 +3515,7 @@ interface CanvasNodeType {
3288
3515
  /**
3289
3516
  * Display node with transparent background
3290
3517
  */
3291
- transparentBackground?: boolean | null;
3518
+ hasTransparentBackground?: boolean | null;
3292
3519
  /**
3293
3520
  * Define custom fields to display on node
3294
3521
  */
@@ -3347,7 +3574,7 @@ interface CanvasEdgeType {
3347
3574
  description?: string | null;
3348
3575
  color?: string | null;
3349
3576
  strokeWidth?: number | null;
3350
- animated?: boolean | null;
3577
+ isAnimated?: boolean | null;
3351
3578
  lineStyle?: ('default' | 'step' | 'smoothstep' | 'bezier') | null;
3352
3579
  markerStart?: ('none' | 'arrow' | 'arrowclosed') | null;
3353
3580
  markerEnd?: ('none' | 'arrow' | 'arrowclosed') | null;
@@ -3404,6 +3631,7 @@ interface Thread {
3404
3631
  hasNextPage?: boolean;
3405
3632
  totalDocs?: number;
3406
3633
  };
3634
+ status?: ('draft' | 'published' | 'archived') | null;
3407
3635
  /**
3408
3636
  * When enabled, the slug will auto-generate from the title field on save and autosave.
3409
3637
  */
@@ -3417,7 +3645,14 @@ interface Thread {
3417
3645
  reactionCount?: number | null;
3418
3646
  reportCount?: number | null;
3419
3647
  isPinned?: boolean | null;
3420
- allowComments?: boolean | null;
3648
+ allowsComments?: boolean | null;
3649
+ visibility?: ('visible' | 'hidden') | null;
3650
+ /**
3651
+ * Lock comments
3652
+ */
3653
+ isLocked?: boolean | null;
3654
+ lastActivityAt?: string | null;
3655
+ lastCommentBy?: (string | null) | Customer;
3421
3656
  isFeatured?: boolean | null;
3422
3657
  publishedAt?: string | null;
3423
3658
  metadata?: {
@@ -3461,14 +3696,18 @@ interface Comment {
3461
3696
  tenant?: (string | null) | Tenant;
3462
3697
  thread: string | Thread;
3463
3698
  customer: string | Customer;
3464
- content: string;
3699
+ body?: string | null;
3465
3700
  parent?: (string | null) | Comment;
3466
3701
  depth?: number | null;
3467
- rootId?: string | null;
3468
- status?: ('published' | 'hidden' | 'reported') | null;
3702
+ rootComment?: (string | null) | Comment;
3703
+ status?: ('published' | 'hidden' | 'removed') | null;
3704
+ moderationStatus?: ('pending' | 'approved' | 'rejected' | 'reported') | null;
3705
+ visibility?: ('visible' | 'hidden' | 'removed') | null;
3706
+ editedAt?: string | null;
3469
3707
  isEdited?: boolean | null;
3470
3708
  reactionCount?: number | null;
3471
3709
  reportCount?: number | null;
3710
+ replyCount?: number | null;
3472
3711
  metadata?: {
3473
3712
  [k: string]: unknown;
3474
3713
  } | unknown[] | string | number | boolean | null;
@@ -3548,6 +3787,12 @@ interface Report {
3548
3787
  customer: string | Customer;
3549
3788
  reason: 'spam' | 'harassment' | 'inappropriate' | 'off-topic' | 'other';
3550
3789
  reasonDetail?: string | null;
3790
+ moderationStatus?: ('pending' | 'reviewed' | 'resolved' | 'dismissed') | null;
3791
+ /**
3792
+ * Resolution notes
3793
+ */
3794
+ resolution?: string | null;
3795
+ reviewedAt?: string | null;
3551
3796
  updatedAt: string;
3552
3797
  createdAt: string;
3553
3798
  }
@@ -3564,7 +3809,15 @@ interface CommunityBan {
3564
3809
  */
3565
3810
  bannedUntil?: string | null;
3566
3811
  isPermanent: boolean;
3567
- reason?: string | null;
3812
+ reason?: ('spam' | 'harassment' | 'ban_evasion' | 'repeated_violations' | 'other') | null;
3813
+ /**
3814
+ * Additional context (optional)
3815
+ */
3816
+ reasonDetail?: string | null;
3817
+ /**
3818
+ * Related report
3819
+ */
3820
+ sourceReport?: (string | null) | Report;
3568
3821
  /**
3569
3822
  * Admin who issued the ban (auto-set)
3570
3823
  */
@@ -3585,7 +3838,7 @@ interface Form {
3585
3838
  * Short summary for listing/cards
3586
3839
  */
3587
3840
  description?: string | null;
3588
- status?: ('active' | 'inactive') | null;
3841
+ isActive?: boolean | null;
3589
3842
  /**
3590
3843
  * When enabled, the slug will auto-generate from the title field on save and autosave.
3591
3844
  */
@@ -3796,6 +4049,12 @@ interface PayloadLockedDocument {
3796
4049
  } | null) | ({
3797
4050
  relationTo: 'email-logs';
3798
4051
  value: string | EmailLog;
4052
+ } | null) | ({
4053
+ relationTo: 'api-keys';
4054
+ value: string | ApiKey;
4055
+ } | null) | ({
4056
+ relationTo: 'personal-access-tokens';
4057
+ value: string | PersonalAccessToken;
3799
4058
  } | null) | ({
3800
4059
  relationTo: 'tenants';
3801
4060
  value: string | Tenant;
@@ -3823,6 +4082,9 @@ interface PayloadLockedDocument {
3823
4082
  } | null) | ({
3824
4083
  relationTo: 'product-options';
3825
4084
  value: string | ProductOption;
4085
+ } | null) | ({
4086
+ relationTo: 'product-option-values';
4087
+ value: string | ProductOptionValue;
3826
4088
  } | null) | ({
3827
4089
  relationTo: 'product-categories';
3828
4090
  value: string | ProductCategory;
@@ -3842,8 +4104,8 @@ interface PayloadLockedDocument {
3842
4104
  relationTo: 'orders';
3843
4105
  value: string | Order;
3844
4106
  } | null) | ({
3845
- relationTo: 'order-products';
3846
- value: string | OrderProduct;
4107
+ relationTo: 'order-items';
4108
+ value: string | OrderItem;
3847
4109
  } | null) | ({
3848
4110
  relationTo: 'transactions';
3849
4111
  value: string | Transaction;
@@ -3860,14 +4122,8 @@ interface PayloadLockedDocument {
3860
4122
  relationTo: 'returns';
3861
4123
  value: string | Return;
3862
4124
  } | null) | ({
3863
- relationTo: 'return-products';
3864
- value: string | ReturnProduct;
3865
- } | null) | ({
3866
- relationTo: 'exchanges';
3867
- value: string | Exchange;
3868
- } | null) | ({
3869
- relationTo: 'exchange-products';
3870
- value: string | ExchangeProduct;
4125
+ relationTo: 'return-items';
4126
+ value: string | ReturnItem;
3871
4127
  } | null) | ({
3872
4128
  relationTo: 'shipping-policies';
3873
4129
  value: string | ShippingPolicy;
@@ -4061,12 +4317,25 @@ interface UsersSelect<T extends boolean = true> {
4061
4317
  id?: T;
4062
4318
  };
4063
4319
  emailPreferences?: T | {
4064
- usageAlerts?: T;
4320
+ acceptsUsageAlerts?: T;
4065
4321
  };
4322
+ phone?: T;
4323
+ isPhoneVerified?: T;
4324
+ lastLoginAt?: T;
4325
+ lastLoginIp?: T;
4326
+ isSuspended?: T;
4327
+ suspendedAt?: T;
4328
+ suspendedReason?: T;
4329
+ timezone?: T;
4330
+ locale?: T;
4331
+ avatar?: T;
4332
+ anonymizedAt?: T;
4333
+ deletionScheduledAt?: T;
4066
4334
  authProvider?: T;
4067
4335
  googleSub?: T;
4068
4336
  updatedAt?: T;
4069
4337
  createdAt?: T;
4338
+ deletedAt?: T;
4070
4339
  email?: T;
4071
4340
  resetPasswordToken?: T;
4072
4341
  resetPasswordExpiration?: T;
@@ -4208,6 +4477,7 @@ interface AudiencesSelect<T extends boolean = true> {
4208
4477
  * via the `definition` "email-logs_select".
4209
4478
  */
4210
4479
  interface EmailLogsSelect<T extends boolean = true> {
4480
+ tenant?: T;
4211
4481
  to?: T;
4212
4482
  from?: T;
4213
4483
  subject?: T;
@@ -4215,6 +4485,52 @@ interface EmailLogsSelect<T extends boolean = true> {
4215
4485
  status?: T;
4216
4486
  sentAt?: T;
4217
4487
  error?: T;
4488
+ providerMessageId?: T;
4489
+ openedAt?: T;
4490
+ clickedAt?: T;
4491
+ bouncedAt?: T;
4492
+ recipientConsent?: T;
4493
+ updatedAt?: T;
4494
+ createdAt?: T;
4495
+ }
4496
+ /**
4497
+ * This interface was referenced by `Config`'s JSON-Schema
4498
+ * via the `definition` "api-keys_select".
4499
+ */
4500
+ interface ApiKeysSelect<T extends boolean = true> {
4501
+ tenant?: T;
4502
+ name?: T;
4503
+ secretHash?: T;
4504
+ displayPrefix?: T;
4505
+ displaySuffix?: T;
4506
+ scopes?: T;
4507
+ createdBy?: T;
4508
+ createdByIp?: T;
4509
+ lastUsedAt?: T;
4510
+ lastUsedIp?: T;
4511
+ revokedAt?: T;
4512
+ revokedBy?: T;
4513
+ expiresAt?: T;
4514
+ updatedAt?: T;
4515
+ createdAt?: T;
4516
+ }
4517
+ /**
4518
+ * This interface was referenced by `Config`'s JSON-Schema
4519
+ * via the `definition` "personal-access-tokens_select".
4520
+ */
4521
+ interface PersonalAccessTokensSelect<T extends boolean = true> {
4522
+ user?: T;
4523
+ name?: T;
4524
+ secretHash?: T;
4525
+ displayPrefix?: T;
4526
+ displaySuffix?: T;
4527
+ defaultTenant?: T;
4528
+ createdByIp?: T;
4529
+ lastUsedAt?: T;
4530
+ lastUsedIp?: T;
4531
+ revokedAt?: T;
4532
+ revokedBy?: T;
4533
+ expiresAt?: T;
4218
4534
  updatedAt?: T;
4219
4535
  createdAt?: T;
4220
4536
  }
@@ -4224,27 +4540,26 @@ interface EmailLogsSelect<T extends boolean = true> {
4224
4540
  */
4225
4541
  interface TenantsSelect<T extends boolean = true> {
4226
4542
  name?: T;
4543
+ slug?: T;
4227
4544
  owner?: T;
4228
4545
  plan?: T;
4229
4546
  features?: T;
4230
- requireEmailVerification?: T;
4231
- requirePostApproval?: T;
4232
- devMode?: T;
4547
+ requiresEmailVerification?: T;
4548
+ requiresPostApproval?: T;
4549
+ isDevMode?: T;
4550
+ status?: T;
4551
+ trialEndsAt?: T;
4552
+ deletionScheduledAt?: T;
4233
4553
  cors?: T | {
4234
4554
  origin?: T;
4235
4555
  id?: T;
4236
4556
  };
4237
- clientKey?: T;
4238
- secretKeys?: T | {
4239
- name?: T;
4240
- value?: T;
4241
- id?: T;
4242
- };
4557
+ publishableKey?: T;
4243
4558
  webhooks?: T | {
4244
4559
  name?: T;
4245
4560
  url?: T;
4246
4561
  secret?: T;
4247
- enabled?: T;
4562
+ isEnabled?: T;
4248
4563
  id?: T;
4249
4564
  };
4250
4565
  members?: T;
@@ -4262,7 +4577,15 @@ interface TenantMetadataSelect<T extends boolean = true> {
4262
4577
  description?: T;
4263
4578
  keywords?: T;
4264
4579
  author?: T;
4265
- siteUrl?: T;
4580
+ url?: T;
4581
+ };
4582
+ businessInfo?: T | {
4583
+ businessRegistrationNumber?: T;
4584
+ businessName?: T;
4585
+ ceoName?: T;
4586
+ businessAddress?: T;
4587
+ businessEmail?: T;
4588
+ onlineSalesRegistrationNumber?: T;
4266
4589
  };
4267
4590
  branding?: T | {
4268
4591
  logo?: T;
@@ -4314,15 +4637,17 @@ interface TenantMetadataSelect<T extends boolean = true> {
4314
4637
  interface ApiUsageSelect<T extends boolean = true> {
4315
4638
  tenant?: T;
4316
4639
  month?: T;
4317
- count?: T;
4640
+ apiCallCount?: T;
4318
4641
  plan?: T;
4319
- limit?: T;
4320
- storageUsed?: T;
4321
- storageLimit?: T;
4322
- totalDocuments?: T;
4642
+ apiCallLimit?: T;
4643
+ storageUsedBytes?: T;
4644
+ storageLimitBytes?: T;
4645
+ documentCount?: T;
4323
4646
  videoCount?: T;
4324
4647
  videoMinutesUsed?: T;
4325
4648
  deliveryMinutesUsed?: T;
4649
+ aiGenerationCount?: T;
4650
+ snapshottedAt?: T;
4326
4651
  updatedAt?: T;
4327
4652
  createdAt?: T;
4328
4653
  }
@@ -4340,7 +4665,10 @@ interface SubscriptionsSelect<T extends boolean = true> {
4340
4665
  provider?: T;
4341
4666
  currentPeriodStart?: T;
4342
4667
  currentPeriodEnd?: T;
4343
- nextBillingDate?: T;
4668
+ trialStartAt?: T;
4669
+ trialEndAt?: T;
4670
+ endedAt?: T;
4671
+ pastDueAt?: T;
4344
4672
  billingKey?: T;
4345
4673
  customerKey?: T;
4346
4674
  cardInfo?: T | {
@@ -4348,9 +4676,9 @@ interface SubscriptionsSelect<T extends boolean = true> {
4348
4676
  number?: T;
4349
4677
  cardType?: T;
4350
4678
  };
4351
- polarSubscriptionId?: T;
4352
- polarCustomerId?: T;
4353
- polarProductId?: T;
4679
+ providerSubscriptionId?: T;
4680
+ providerCustomerId?: T;
4681
+ providerMetadata?: T;
4354
4682
  cancelAtPeriodEnd?: T;
4355
4683
  canceledAt?: T;
4356
4684
  cancelReason?: T;
@@ -4360,7 +4688,7 @@ interface SubscriptionsSelect<T extends boolean = true> {
4360
4688
  pendingPlanChange?: T | {
4361
4689
  targetPlan?: T;
4362
4690
  targetAmount?: T;
4363
- effectiveDate?: T;
4691
+ effectiveAt?: T;
4364
4692
  };
4365
4693
  updatedAt?: T;
4366
4694
  createdAt?: T;
@@ -4381,7 +4709,7 @@ interface BillingHistorySelect<T extends boolean = true> {
4381
4709
  billingCycle?: T;
4382
4710
  periodStart?: T;
4383
4711
  periodEnd?: T;
4384
- orderId?: T;
4712
+ invoiceNumber?: T;
4385
4713
  orderName?: T;
4386
4714
  paymentKey?: T;
4387
4715
  tossResponse?: T;
@@ -4492,8 +4820,6 @@ interface ProductsSelect<T extends boolean = true> {
4492
4820
  thumbnail?: T;
4493
4821
  images?: T;
4494
4822
  videos?: T;
4495
- price?: T;
4496
- compareAtPrice?: T;
4497
4823
  content?: T;
4498
4824
  variants?: T;
4499
4825
  options?: T;
@@ -4503,9 +4829,6 @@ interface ProductsSelect<T extends boolean = true> {
4503
4829
  shippingPolicy?: T;
4504
4830
  weight?: T;
4505
4831
  collections?: T;
4506
- sku?: T;
4507
- barcode?: T;
4508
- externalId?: T;
4509
4832
  minOrderQuantity?: T;
4510
4833
  maxOrderQuantity?: T;
4511
4834
  metadata?: T;
@@ -4526,6 +4849,9 @@ interface ProductsSelect<T extends boolean = true> {
4526
4849
  isSoldOut?: T;
4527
4850
  isFeatured?: T;
4528
4851
  publishedAt?: T;
4852
+ vendor?: T;
4853
+ productType?: T;
4854
+ handle?: T;
4529
4855
  updatedAt?: T;
4530
4856
  createdAt?: T;
4531
4857
  deletedAt?: T;
@@ -4540,17 +4866,19 @@ interface ProductVariantsSelect<T extends boolean = true> {
4540
4866
  tenant?: T;
4541
4867
  product?: T;
4542
4868
  title?: T;
4543
- description?: T;
4544
4869
  sku?: T;
4545
4870
  price?: T;
4871
+ compareAtPrice?: T;
4872
+ isUnlimited?: T;
4873
+ stock?: T;
4874
+ reservedStock?: T;
4546
4875
  barcode?: T;
4547
4876
  weight?: T;
4548
- isSoldOut?: T;
4549
- images?: T;
4877
+ requiresShipping?: T;
4550
4878
  externalId?: T;
4551
- status?: T;
4879
+ optionValues?: T;
4880
+ isActive?: T;
4552
4881
  metadata?: T;
4553
- productOptions?: T;
4554
4882
  updatedAt?: T;
4555
4883
  createdAt?: T;
4556
4884
  deletedAt?: T;
@@ -4560,21 +4888,28 @@ interface ProductVariantsSelect<T extends boolean = true> {
4560
4888
  * via the `definition` "product-options_select".
4561
4889
  */
4562
4890
  interface ProductOptionsSelect<T extends boolean = true> {
4563
- '_product-options_productOptions_order'?: T;
4564
4891
  '_product-options_options_order'?: T;
4565
4892
  _order?: T;
4566
4893
  tenant?: T;
4567
4894
  product?: T;
4568
- variant?: T;
4569
4895
  title?: T;
4570
- sku?: T;
4571
- isUnlimited?: T;
4572
- stock?: T;
4573
- reservedStock?: T;
4574
- priceAdjustment?: T;
4575
- barcode?: T;
4576
- weight?: T;
4577
- externalId?: T;
4896
+ values?: T;
4897
+ updatedAt?: T;
4898
+ createdAt?: T;
4899
+ deletedAt?: T;
4900
+ }
4901
+ /**
4902
+ * This interface was referenced by `Config`'s JSON-Schema
4903
+ * via the `definition` "product-option-values_select".
4904
+ */
4905
+ interface ProductOptionValuesSelect<T extends boolean = true> {
4906
+ '_product-option-values_values_order'?: T;
4907
+ _order?: T;
4908
+ tenant?: T;
4909
+ option?: T;
4910
+ value?: T;
4911
+ generateSlug?: T;
4912
+ slug?: T;
4578
4913
  metadata?: T;
4579
4914
  updatedAt?: T;
4580
4915
  createdAt?: T;
@@ -4780,15 +5115,22 @@ interface BrandLogosSelect<T extends boolean = true> {
4780
5115
  interface OrdersSelect<T extends boolean = true> {
4781
5116
  tenant?: T;
4782
5117
  orderNumber?: T;
5118
+ cartToken?: T;
4783
5119
  status?: T;
4784
5120
  totalAmount?: T;
4785
5121
  discountCode?: T;
4786
5122
  discountAmount?: T;
4787
5123
  refundedAmount?: T;
4788
- shippingFee?: T;
5124
+ shippingAmount?: T;
5125
+ subtotalAmount?: T;
5126
+ taxAmount?: T;
4789
5127
  source?: T;
5128
+ currency?: T;
4790
5129
  adminNotes?: T;
4791
- customerNotes?: T;
5130
+ cancelReason?: T;
5131
+ canceledAt?: T;
5132
+ completedAt?: T;
5133
+ customerNote?: T;
4792
5134
  customer?: T;
4793
5135
  customerSnapshot?: T | {
4794
5136
  name?: T;
@@ -4799,33 +5141,39 @@ interface OrdersSelect<T extends boolean = true> {
4799
5141
  recipientName?: T;
4800
5142
  phone?: T;
4801
5143
  postalCode?: T;
4802
- address1?: T;
4803
- address2?: T;
5144
+ address?: T;
5145
+ detailAddress?: T;
4804
5146
  deliveryMessage?: T;
4805
5147
  };
4806
- products?: T;
5148
+ billingAddress?: T | {
5149
+ recipientName?: T;
5150
+ businessRegistrationNumber?: T;
5151
+ email?: T;
5152
+ phone?: T;
5153
+ address?: T;
5154
+ };
5155
+ items?: T;
4807
5156
  transactions?: T;
4808
5157
  fulfillments?: T;
4809
5158
  returns?: T;
4810
- exchanges?: T;
4811
5159
  metadata?: T;
4812
5160
  updatedAt?: T;
4813
5161
  createdAt?: T;
5162
+ deletedAt?: T;
4814
5163
  }
4815
5164
  /**
4816
5165
  * This interface was referenced by `Config`'s JSON-Schema
4817
- * via the `definition` "order-products_select".
5166
+ * via the `definition` "order-items_select".
4818
5167
  */
4819
- interface OrderProductsSelect<T extends boolean = true> {
5168
+ interface OrderItemsSelect<T extends boolean = true> {
4820
5169
  tenant?: T;
4821
5170
  order?: T;
4822
5171
  product?: T;
4823
5172
  variant?: T;
4824
- option?: T;
4825
5173
  quantity?: T;
4826
5174
  unitPrice?: T;
4827
5175
  totalPrice?: T;
4828
- title?: T;
5176
+ productTitle?: T;
4829
5177
  updatedAt?: T;
4830
5178
  createdAt?: T;
4831
5179
  }
@@ -4838,14 +5186,36 @@ interface TransactionsSelect<T extends boolean = true> {
4838
5186
  type?: T;
4839
5187
  status?: T;
4840
5188
  order?: T;
4841
- paymentId?: T;
5189
+ amount?: T;
4842
5190
  paymentMethod?: T;
5191
+ installmentMonths?: T;
5192
+ approvedAt?: T;
4843
5193
  receiptUrl?: T;
4844
- totalAmount?: T;
5194
+ pgPaymentId?: T;
5195
+ pgOrderId?: T;
5196
+ cashReceipt?: T | {
5197
+ issuanceType?: T;
5198
+ registrationNumber?: T;
5199
+ issueNumber?: T;
5200
+ issuedAt?: T;
5201
+ };
5202
+ cardInfo?: T | {
5203
+ brand?: T;
5204
+ last4?: T;
5205
+ expMonth?: T;
5206
+ expYear?: T;
5207
+ issuerCode?: T;
5208
+ type?: T;
5209
+ owner?: T;
5210
+ };
5211
+ failureCode?: T;
5212
+ failureMessage?: T;
4845
5213
  pgProvider?: T;
5214
+ retainUntil?: T;
4846
5215
  metadata?: T;
4847
5216
  updatedAt?: T;
4848
5217
  createdAt?: T;
5218
+ deletedAt?: T;
4849
5219
  }
4850
5220
  /**
4851
5221
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4872,6 +5242,8 @@ interface FulfillmentsSelect<T extends boolean = true> {
4872
5242
  status?: T;
4873
5243
  carrier?: T;
4874
5244
  trackingNumber?: T;
5245
+ trackingUrl?: T;
5246
+ packedAt?: T;
4875
5247
  shippedAt?: T;
4876
5248
  deliveredAt?: T;
4877
5249
  items?: T;
@@ -4879,6 +5251,7 @@ interface FulfillmentsSelect<T extends boolean = true> {
4879
5251
  metadata?: T;
4880
5252
  updatedAt?: T;
4881
5253
  createdAt?: T;
5254
+ deletedAt?: T;
4882
5255
  }
4883
5256
  /**
4884
5257
  * This interface was referenced by `Config`'s JSON-Schema
@@ -4887,7 +5260,7 @@ interface FulfillmentsSelect<T extends boolean = true> {
4887
5260
  interface FulfillmentItemsSelect<T extends boolean = true> {
4888
5261
  tenant?: T;
4889
5262
  fulfillment?: T;
4890
- orderProduct?: T;
5263
+ orderItem?: T;
4891
5264
  quantity?: T;
4892
5265
  updatedAt?: T;
4893
5266
  createdAt?: T;
@@ -4898,11 +5271,14 @@ interface FulfillmentItemsSelect<T extends boolean = true> {
4898
5271
  */
4899
5272
  interface ReturnsSelect<T extends boolean = true> {
4900
5273
  tenant?: T;
5274
+ returnNumber?: T;
4901
5275
  order?: T;
5276
+ type?: T;
5277
+ exchangeOrder?: T;
4902
5278
  status?: T;
4903
5279
  reason?: T;
4904
5280
  reasonDetail?: T;
4905
- returnProducts?: T;
5281
+ items?: T;
4906
5282
  adminNotes?: T;
4907
5283
  completedAt?: T;
4908
5284
  refundReceiptUrl?: T;
@@ -4910,59 +5286,22 @@ interface ReturnsSelect<T extends boolean = true> {
4910
5286
  metadata?: T;
4911
5287
  updatedAt?: T;
4912
5288
  createdAt?: T;
5289
+ deletedAt?: T;
4913
5290
  }
4914
5291
  /**
4915
5292
  * This interface was referenced by `Config`'s JSON-Schema
4916
- * via the `definition` "return-products_select".
5293
+ * via the `definition` "return-items_select".
4917
5294
  */
4918
- interface ReturnProductsSelect<T extends boolean = true> {
5295
+ interface ReturnItemsSelect<T extends boolean = true> {
4919
5296
  tenant?: T;
4920
5297
  return?: T;
4921
5298
  order?: T;
4922
5299
  status?: T;
4923
- orderProduct?: T;
4924
- product?: T;
4925
- variant?: T;
4926
- option?: T;
4927
- quantity?: T;
4928
- title?: T;
4929
- updatedAt?: T;
4930
- createdAt?: T;
4931
- }
4932
- /**
4933
- * This interface was referenced by `Config`'s JSON-Schema
4934
- * via the `definition` "exchanges_select".
4935
- */
4936
- interface ExchangesSelect<T extends boolean = true> {
4937
- tenant?: T;
4938
- order?: T;
4939
- status?: T;
4940
- reason?: T;
4941
- reasonDetail?: T;
4942
- shippingFee?: T;
4943
- adminNotes?: T;
4944
- completedAt?: T;
4945
- exchangeProducts?: T;
4946
- metadata?: T;
4947
- updatedAt?: T;
4948
- createdAt?: T;
4949
- }
4950
- /**
4951
- * This interface was referenced by `Config`'s JSON-Schema
4952
- * via the `definition` "exchange-products_select".
4953
- */
4954
- interface ExchangeProductsSelect<T extends boolean = true> {
4955
- tenant?: T;
4956
- exchange?: T;
4957
- order?: T;
4958
- orderProduct?: T;
5300
+ orderItem?: T;
4959
5301
  product?: T;
4960
5302
  variant?: T;
4961
- option?: T;
4962
5303
  quantity?: T;
4963
- newVariant?: T;
4964
- newOption?: T;
4965
- title?: T;
5304
+ productTitle?: T;
4966
5305
  updatedAt?: T;
4967
5306
  createdAt?: T;
4968
5307
  }
@@ -4974,15 +5313,15 @@ interface ShippingPoliciesSelect<T extends boolean = true> {
4974
5313
  _order?: T;
4975
5314
  tenant?: T;
4976
5315
  title?: T;
4977
- baseFee?: T;
4978
- freeShippingThreshold?: T;
4979
- jejuExtraFee?: T;
4980
- islandExtraFee?: T;
5316
+ baseAmount?: T;
5317
+ freeShippingMinAmount?: T;
5318
+ jejuExtraAmount?: T;
5319
+ remoteAreaExtraAmount?: T;
4981
5320
  description?: T;
4982
5321
  generateSlug?: T;
4983
5322
  slug?: T;
4984
5323
  estimatedDays?: T;
4985
- status?: T;
5324
+ isActive?: T;
4986
5325
  isDefault?: T;
4987
5326
  metadata?: T;
4988
5327
  updatedAt?: T;
@@ -5001,28 +5340,70 @@ interface CustomersSelect<T extends boolean = true> {
5001
5340
  email?: T;
5002
5341
  phone?: T;
5003
5342
  groups?: T;
5004
- socialId?: T;
5343
+ providerUserId?: T;
5005
5344
  note?: T;
5006
5345
  birthDate?: T;
5007
5346
  gender?: T;
5008
5347
  orders?: T;
5009
5348
  addresses?: T;
5349
+ marketingConsent?: T | {
5350
+ email?: T | {
5351
+ isConsented?: T;
5352
+ consentedAt?: T;
5353
+ expiresAt?: T;
5354
+ unsubscribedAt?: T;
5355
+ };
5356
+ sms?: T | {
5357
+ isConsented?: T;
5358
+ consentedAt?: T;
5359
+ expiresAt?: T;
5360
+ unsubscribedAt?: T;
5361
+ };
5362
+ push?: T | {
5363
+ isConsented?: T;
5364
+ consentedAt?: T;
5365
+ expiresAt?: T;
5366
+ unsubscribedAt?: T;
5367
+ };
5368
+ consentSource?: T;
5369
+ };
5370
+ guardianConsent?: T | {
5371
+ hasGuardianConsent?: T;
5372
+ guardianName?: T;
5373
+ guardianPhone?: T;
5374
+ guardianConsentedAt?: T;
5375
+ };
5376
+ withdrawReason?: T;
5377
+ withdrawnAt?: T;
5378
+ retainUntil?: T;
5379
+ anonymizedAt?: T;
5010
5380
  hashedPassword?: T;
5011
5381
  salt?: T;
5012
5382
  verificationToken?: T;
5013
5383
  resetPasswordToken?: T;
5014
- resetPasswordExpiry?: T;
5015
- loginAttempts?: T;
5384
+ resetPasswordExpiresAt?: T;
5385
+ loginAttemptCount?: T;
5016
5386
  lockedUntil?: T;
5017
5387
  authProvider?: T;
5018
5388
  isGuest?: T;
5019
- isVerified?: T;
5020
- marketingConsent?: T;
5021
- consentedAt?: T;
5389
+ isEmailVerified?: T;
5022
5390
  lastLoginAt?: T;
5391
+ isMinor?: T;
5392
+ acceptsTos?: T;
5393
+ tosVersion?: T;
5394
+ defaultShippingAddress?: T;
5395
+ defaultBillingAddress?: T;
5396
+ totalOrderCount?: T;
5397
+ lifetimeValue?: T;
5398
+ firstOrderAt?: T;
5399
+ lastOrderAt?: T;
5400
+ threadCount?: T;
5401
+ commentCount?: T;
5402
+ reactionCount?: T;
5023
5403
  metadata?: T;
5024
5404
  updatedAt?: T;
5025
5405
  createdAt?: T;
5406
+ deletedAt?: T;
5026
5407
  }
5027
5408
  /**
5028
5409
  * This interface was referenced by `Config`'s JSON-Schema
@@ -5055,7 +5436,7 @@ interface CustomerGroupsSelect<T extends boolean = true> {
5055
5436
  description?: T;
5056
5437
  color?: T;
5057
5438
  image?: T;
5058
- status?: T;
5439
+ isActive?: T;
5059
5440
  metadata?: T;
5060
5441
  customers?: T;
5061
5442
  updatedAt?: T;
@@ -5069,21 +5450,27 @@ interface CustomerGroupsSelect<T extends boolean = true> {
5069
5450
  interface CartsSelect<T extends boolean = true> {
5070
5451
  tenant?: T;
5071
5452
  customer?: T;
5072
- status?: T;
5453
+ email?: T;
5073
5454
  shippingAddress?: T | {
5074
5455
  recipientName?: T;
5075
5456
  phone?: T;
5076
5457
  postalCode?: T;
5077
- address1?: T;
5078
- address2?: T;
5458
+ address?: T;
5459
+ detailAddress?: T;
5079
5460
  deliveryMessage?: T;
5080
5461
  };
5081
5462
  discountCode?: T;
5082
- itemsTotal?: T;
5083
- shippingFee?: T;
5463
+ customerNote?: T;
5464
+ items?: T;
5465
+ status?: T;
5466
+ currency?: T;
5467
+ subtotalAmount?: T;
5468
+ shippingAmount?: T;
5084
5469
  discountAmount?: T;
5085
5470
  totalAmount?: T;
5086
- items?: T;
5471
+ cartToken?: T;
5472
+ lastActivityAt?: T;
5473
+ abandonedAt?: T;
5087
5474
  expiresAt?: T;
5088
5475
  metadata?: T;
5089
5476
  updatedAt?: T;
@@ -5098,7 +5485,6 @@ interface CartItemsSelect<T extends boolean = true> {
5098
5485
  cart?: T;
5099
5486
  product?: T;
5100
5487
  variant?: T;
5101
- option?: T;
5102
5488
  quantity?: T;
5103
5489
  unitPrice?: T;
5104
5490
  metadata?: T;
@@ -5112,12 +5498,12 @@ interface CartItemsSelect<T extends boolean = true> {
5112
5498
  interface DiscountsSelect<T extends boolean = true> {
5113
5499
  _order?: T;
5114
5500
  tenant?: T;
5115
- type?: T;
5501
+ discountType?: T;
5116
5502
  title?: T;
5117
5503
  code?: T;
5118
5504
  isActive?: T;
5119
- description?: T;
5120
- value?: T;
5505
+ internalNote?: T;
5506
+ discountValue?: T;
5121
5507
  tiers?: T | {
5122
5508
  minAmount?: T;
5123
5509
  discountType?: T;
@@ -5128,13 +5514,23 @@ interface DiscountsSelect<T extends boolean = true> {
5128
5514
  maxDiscountAmount?: T;
5129
5515
  startsAt?: T;
5130
5516
  endsAt?: T;
5131
- applicableProducts?: T;
5132
- applicableCategories?: T;
5133
- usageLimit?: T;
5134
- usageCount?: T;
5135
- perCustomerLimit?: T;
5136
- customerGroups?: T;
5137
- isAutoApply?: T;
5517
+ customerSelection?: T | {
5518
+ type?: T;
5519
+ customers?: T;
5520
+ customerGroups?: T;
5521
+ };
5522
+ productSelection?: T | {
5523
+ type?: T;
5524
+ products?: T;
5525
+ categories?: T;
5526
+ };
5527
+ maxUses?: T;
5528
+ usesCount?: T;
5529
+ maxUsesPerCustomer?: T;
5530
+ discountMode?: T;
5531
+ isFirstOrderOnly?: T;
5532
+ isCombinable?: T;
5533
+ allocationMethod?: T;
5138
5534
  priority?: T;
5139
5535
  metadata?: T;
5140
5536
  updatedAt?: T;
@@ -5174,7 +5570,13 @@ interface PostsSelect<T extends boolean = true> {
5174
5570
  publishedAt?: T;
5175
5571
  customer?: T;
5176
5572
  isFeatured?: T;
5177
- readTime?: T;
5573
+ readingMinutes?: T;
5574
+ excerpt?: T;
5575
+ canonicalUrl?: T;
5576
+ visibility?: T;
5577
+ scheduledAt?: T;
5578
+ featuredUntil?: T;
5579
+ relatedPosts?: T;
5178
5580
  metadata?: T;
5179
5581
  updatedAt?: T;
5180
5582
  createdAt?: T;
@@ -5195,7 +5597,7 @@ interface PostAuthorsSelect<T extends boolean = true> {
5195
5597
  bio?: T;
5196
5598
  email?: T;
5197
5599
  posts?: T;
5198
- status?: T;
5600
+ isActive?: T;
5199
5601
  metadata?: T;
5200
5602
  updatedAt?: T;
5201
5603
  createdAt?: T;
@@ -5249,12 +5651,12 @@ interface DocumentsSelect<T extends boolean = true> {
5249
5651
  content?: T;
5250
5652
  videos?: T;
5251
5653
  version?: T;
5252
- effectiveDate?: T;
5253
- expiryDate?: T;
5654
+ effectiveAt?: T;
5655
+ expiresAt?: T;
5254
5656
  changeLog?: T;
5255
- isRequired?: T;
5256
- tags?: T | {
5257
- tag?: T;
5657
+ requiresAgreement?: T;
5658
+ keywords?: T | {
5659
+ keyword?: T;
5258
5660
  id?: T;
5259
5661
  };
5260
5662
  seo?: T | {
@@ -5271,7 +5673,10 @@ interface DocumentsSelect<T extends boolean = true> {
5271
5673
  generateSlug?: T;
5272
5674
  slug?: T;
5273
5675
  type?: T;
5274
- category?: T;
5676
+ categories?: T;
5677
+ jurisdiction?: T;
5678
+ language?: T;
5679
+ supersededBy?: T;
5275
5680
  thumbnail?: T;
5276
5681
  images?: T;
5277
5682
  publishedAt?: T;
@@ -5329,7 +5734,7 @@ interface PlaylistsSelect<T extends boolean = true> {
5329
5734
  videos?: T;
5330
5735
  categories?: T;
5331
5736
  tags?: T;
5332
- musics?: T;
5737
+ tracks?: T;
5333
5738
  seo?: T | {
5334
5739
  title?: T;
5335
5740
  description?: T;
@@ -5342,12 +5747,13 @@ interface PlaylistsSelect<T extends boolean = true> {
5342
5747
  };
5343
5748
  };
5344
5749
  thumbnail?: T;
5750
+ coverArt?: T;
5751
+ isCollaborative?: T;
5345
5752
  generateSlug?: T;
5346
5753
  slug?: T;
5347
5754
  status?: T;
5348
5755
  publishedAt?: T;
5349
5756
  isFeatured?: T;
5350
- totalDuration?: T;
5351
5757
  metadata?: T;
5352
5758
  updatedAt?: T;
5353
5759
  createdAt?: T;
@@ -5394,11 +5800,13 @@ interface PlaylistTagsSelect<T extends boolean = true> {
5394
5800
  * via the `definition` "musics_select".
5395
5801
  */
5396
5802
  interface MusicsSelect<T extends boolean = true> {
5397
- _musics_musics_order?: T;
5803
+ _musics_tracks_order?: T;
5398
5804
  _order?: T;
5399
5805
  tenant?: T;
5400
5806
  playlist?: T;
5401
- url?: T;
5807
+ sourceUrl?: T;
5808
+ sourceProvider?: T;
5809
+ sourceId?: T;
5402
5810
  title?: T;
5403
5811
  description?: T;
5404
5812
  content?: T;
@@ -5413,9 +5821,12 @@ interface MusicsSelect<T extends boolean = true> {
5413
5821
  status?: T;
5414
5822
  isFeatured?: T;
5415
5823
  publishedAt?: T;
5416
- duration?: T;
5417
- isValid?: T;
5824
+ durationSeconds?: T;
5825
+ isEmbeddable?: T;
5418
5826
  metadata?: T;
5827
+ isrc?: T;
5828
+ isExplicit?: T;
5829
+ previewUrl?: T;
5419
5830
  updatedAt?: T;
5420
5831
  createdAt?: T;
5421
5832
  deletedAt?: T;
@@ -5480,6 +5891,7 @@ interface GalleriesSelect<T extends boolean = true> {
5480
5891
  image?: T;
5481
5892
  };
5482
5893
  };
5894
+ coverLayout?: T;
5483
5895
  generateSlug?: T;
5484
5896
  slug?: T;
5485
5897
  thumbnail?: T;
@@ -5560,7 +5972,11 @@ interface LinksSelect<T extends boolean = true> {
5560
5972
  generateSlug?: T;
5561
5973
  slug?: T;
5562
5974
  type?: T;
5563
- thumbnail?: T;
5975
+ icon?: T;
5976
+ publishedAt?: T;
5977
+ platform?: T;
5978
+ opensInNewTab?: T;
5979
+ expiresAt?: T;
5564
5980
  status?: T;
5565
5981
  isFeatured?: T;
5566
5982
  metadata?: T;
@@ -5655,7 +6071,7 @@ interface CanvasNodeTypesSelect<T extends boolean = true> {
5655
6071
  width?: T;
5656
6072
  height?: T;
5657
6073
  };
5658
- transparentBackground?: T;
6074
+ hasTransparentBackground?: T;
5659
6075
  fields?: T | {
5660
6076
  name?: T;
5661
6077
  label?: T;
@@ -5689,7 +6105,7 @@ interface CanvasEdgeTypesSelect<T extends boolean = true> {
5689
6105
  description?: T;
5690
6106
  color?: T;
5691
6107
  strokeWidth?: T;
5692
- animated?: T;
6108
+ isAnimated?: T;
5693
6109
  lineStyle?: T;
5694
6110
  markerStart?: T;
5695
6111
  markerEnd?: T;
@@ -5757,11 +6173,11 @@ interface VideosSelect<T extends boolean = true> {
5757
6173
  description?: T;
5758
6174
  content?: T;
5759
6175
  sourceLiveStream?: T;
5760
- status?: T;
5761
- duration?: T;
5762
- aspectRatio?: T;
6176
+ muxStatus?: T;
6177
+ durationSeconds?: T;
6178
+ muxAspectRatio?: T;
5763
6179
  maxResolution?: T;
5764
- videoQuality?: T;
6180
+ quality?: T;
5765
6181
  mp4Support?: T;
5766
6182
  muxAssetId?: T;
5767
6183
  muxPlaybackId?: T;
@@ -5785,6 +6201,13 @@ interface VideosSelect<T extends boolean = true> {
5785
6201
  categories?: T;
5786
6202
  tags?: T;
5787
6203
  metadata?: T;
6204
+ viewCount?: T;
6205
+ aspectRatio?: T;
6206
+ chapters?: T | {
6207
+ title?: T;
6208
+ startSeconds?: T;
6209
+ id?: T;
6210
+ };
5788
6211
  updatedAt?: T;
5789
6212
  createdAt?: T;
5790
6213
  deletedAt?: T;
@@ -5835,12 +6258,12 @@ interface LiveStreamsSelect<T extends boolean = true> {
5835
6258
  description?: T;
5836
6259
  scheduledAt?: T;
5837
6260
  latencyMode?: T;
5838
- reconnectWindow?: T;
5839
- status?: T;
6261
+ reconnectWindowSeconds?: T;
6262
+ muxStatus?: T;
5840
6263
  muxLiveStreamId?: T;
5841
6264
  muxPlaybackId?: T;
5842
6265
  streamKey?: T;
5843
- activeAssetId?: T;
6266
+ muxActiveAssetId?: T;
5844
6267
  recentAssetIds?: T;
5845
6268
  seo?: T | {
5846
6269
  title?: T;
@@ -5858,6 +6281,10 @@ interface LiveStreamsSelect<T extends boolean = true> {
5858
6281
  thumbnail?: T;
5859
6282
  isFeatured?: T;
5860
6283
  metadata?: T;
6284
+ startedAt?: T;
6285
+ endedAt?: T;
6286
+ peakViewerCount?: T;
6287
+ viewCount?: T;
5861
6288
  updatedAt?: T;
5862
6289
  createdAt?: T;
5863
6290
  deletedAt?: T;
@@ -5873,6 +6300,7 @@ interface ThreadsSelect<T extends boolean = true> {
5873
6300
  content?: T;
5874
6301
  categories?: T;
5875
6302
  comments?: T;
6303
+ status?: T;
5876
6304
  generateSlug?: T;
5877
6305
  slug?: T;
5878
6306
  thumbnail?: T;
@@ -5883,7 +6311,11 @@ interface ThreadsSelect<T extends boolean = true> {
5883
6311
  reactionCount?: T;
5884
6312
  reportCount?: T;
5885
6313
  isPinned?: T;
5886
- allowComments?: T;
6314
+ allowsComments?: T;
6315
+ visibility?: T;
6316
+ isLocked?: T;
6317
+ lastActivityAt?: T;
6318
+ lastCommentBy?: T;
5887
6319
  isFeatured?: T;
5888
6320
  publishedAt?: T;
5889
6321
  metadata?: T;
@@ -5899,14 +6331,18 @@ interface CommentsSelect<T extends boolean = true> {
5899
6331
  tenant?: T;
5900
6332
  thread?: T;
5901
6333
  customer?: T;
5902
- content?: T;
6334
+ body?: T;
5903
6335
  parent?: T;
5904
6336
  depth?: T;
5905
- rootId?: T;
6337
+ rootComment?: T;
5906
6338
  status?: T;
6339
+ moderationStatus?: T;
6340
+ visibility?: T;
6341
+ editedAt?: T;
5907
6342
  isEdited?: T;
5908
6343
  reactionCount?: T;
5909
6344
  reportCount?: T;
6345
+ replyCount?: T;
5910
6346
  metadata?: T;
5911
6347
  updatedAt?: T;
5912
6348
  createdAt?: T;
@@ -5983,6 +6419,9 @@ interface ReportsSelect<T extends boolean = true> {
5983
6419
  customer?: T;
5984
6420
  reason?: T;
5985
6421
  reasonDetail?: T;
6422
+ moderationStatus?: T;
6423
+ resolution?: T;
6424
+ reviewedAt?: T;
5986
6425
  updatedAt?: T;
5987
6426
  createdAt?: T;
5988
6427
  }
@@ -5996,6 +6435,8 @@ interface CommunityBansSelect<T extends boolean = true> {
5996
6435
  bannedUntil?: T;
5997
6436
  isPermanent?: T;
5998
6437
  reason?: T;
6438
+ reasonDetail?: T;
6439
+ sourceReport?: T;
5999
6440
  bannedBy?: T;
6000
6441
  updatedAt?: T;
6001
6442
  createdAt?: T;
@@ -6009,7 +6450,7 @@ interface FormsSelect<T extends boolean = true> {
6009
6450
  tenant?: T;
6010
6451
  title?: T;
6011
6452
  description?: T;
6012
- status?: T;
6453
+ isActive?: T;
6013
6454
  generateSlug?: T;
6014
6455
  slug?: T;
6015
6456
  fields?: T | {
@@ -6193,4 +6634,4 @@ declare module 'payload' {
6193
6634
  }
6194
6635
  }
6195
6636
 
6196
- export type { Document as $, Audience as A, BrandLogo as B, Config as C, ProductCollection as D, Exchange as E, Form as F, Customer as G, CustomerGroup as H, IframeBlock as I, CustomerAddress as J, FulfillmentItem as K, LiveStream as L, ReturnProduct as M, ExchangeProduct as N, Order as O, Product as P, OrderStatusLog as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Video as V, Discount as W, Post as X, PostAuthor as Y, PostCategory as Z, PostTag as _, OrderProduct as a, ShippingPoliciesSelect as a$, DocumentType as a0, DocumentCategory as a1, Playlist as a2, PlaylistCategory as a3, PlaylistTag as a4, Music as a5, MusicCategory as a6, MusicTag as a7, Gallery as a8, GalleryCategory as a9, SystemMediaSelect as aA, AudiencesSelect as aB, EmailLogsSelect as aC, TenantsSelect as aD, TenantMetadataSelect as aE, ApiUsageSelect as aF, SubscriptionsSelect as aG, BillingHistorySelect as aH, TenantLogosSelect as aI, ProductsSelect as aJ, ProductVariantsSelect as aK, ProductOptionsSelect as aL, ProductCategoriesSelect as aM, ProductTagsSelect as aN, ProductCollectionsSelect as aO, BrandsSelect as aP, BrandLogosSelect as aQ, OrdersSelect as aR, OrderProductsSelect as aS, TransactionsSelect as aT, OrderStatusLogsSelect as aU, FulfillmentsSelect as aV, FulfillmentItemsSelect as aW, ReturnsSelect as aX, ReturnProductsSelect as aY, ExchangesSelect as aZ, ExchangeProductsSelect as a_, GalleryTag as aa, GalleryItem as ab, Link as ac, LinkCategory as ad, LinkTag as ae, Canvase as af, CanvasCategory as ag, CanvasTag as ah, CanvasNodeType as ai, CanvasEdgeType as aj, Thread as ak, ThreadCategory as al, Comment as am, Reaction as an, ReactionType as ao, Bookmark as ap, Report as aq, CommunityBan as ar, FormSubmission as as, PayloadKv as at, PayloadLockedDocument as au, PayloadPreference as av, PayloadMigration as aw, UsersSelect as ax, FieldConfigsSelect as ay, ImagesSelect as az, Fulfillment as b, CustomersSelect as b0, CustomerAddressesSelect as b1, CustomerGroupsSelect as b2, CartsSelect as b3, CartItemsSelect as b4, DiscountsSelect as b5, PostsSelect as b6, PostAuthorsSelect as b7, PostCategoriesSelect as b8, PostTagsSelect as b9, CommentsSelect as bA, ReactionsSelect as bB, ReactionTypesSelect as bC, BookmarksSelect as bD, ThreadCategoriesSelect as bE, ReportsSelect as bF, CommunityBansSelect as bG, FormsSelect as bH, FormSubmissionsSelect as bI, PayloadKvSelect as bJ, PayloadLockedDocumentsSelect as bK, PayloadPreferencesSelect as bL, PayloadMigrationsSelect as bM, CollectionsWidget as bN, Auth as bO, DocumentsSelect as ba, DocumentCategoriesSelect as bb, DocumentTypesSelect as bc, PlaylistsSelect as bd, PlaylistCategoriesSelect as be, PlaylistTagsSelect as bf, MusicsSelect as bg, MusicCategoriesSelect as bh, MusicTagsSelect as bi, GalleriesSelect as bj, GalleryCategoriesSelect as bk, GalleryTagsSelect as bl, GalleryItemsSelect as bm, LinksSelect as bn, LinkCategoriesSelect as bo, LinkTagsSelect as bp, CanvasesSelect as bq, CanvasNodeTypesSelect as br, CanvasEdgeTypesSelect as bs, CanvasCategoriesSelect as bt, CanvasTagsSelect as bu, VideosSelect as bv, VideoCategoriesSelect as bw, VideoTagsSelect as bx, LiveStreamsSelect as by, ThreadsSelect as bz, Cart as c, CartItem as d, CustomerAuthOperations as e, PlayerBlock as f, CodeBlock as g, User as h, Tenant as i, FieldConfig as j, Image as k, SystemMedia as l, EmailLog as m, TenantMetadatum as n, ApiUsage as o, Subscription as p, BillingHistory as q, TenantLogo as r, VideoCategory as s, VideoTag as t, ProductVariant as u, ProductOption as v, ProductCategory as w, ProductTag as x, Brand as y, ShippingPolicy as z };
6637
+ export type { PostTag as $, Audience as A, BrandLogo as B, Config as C, Brand as D, EmailLog as E, Form as F, ShippingPolicy as G, ProductCollection as H, IframeBlock as I, Customer as J, CustomerGroup as K, LiveStream as L, CustomerAddress as M, FulfillmentItem as N, Order as O, Product as P, ReturnItem as Q, Return as R, SupportedTimezones as S, Transaction as T, UserAuthOperations as U, Video as V, OrderStatusLog as W, Discount as X, Post as Y, PostAuthor as Z, PostCategory as _, OrderItem as a, ReturnsSelect as a$, Document as a0, DocumentType as a1, DocumentCategory as a2, Playlist as a3, PlaylistCategory as a4, PlaylistTag as a5, Music as a6, MusicCategory as a7, MusicTag as a8, Gallery as a9, ImagesSelect as aA, SystemMediaSelect as aB, AudiencesSelect as aC, EmailLogsSelect as aD, ApiKeysSelect as aE, PersonalAccessTokensSelect as aF, TenantsSelect as aG, TenantMetadataSelect as aH, ApiUsageSelect as aI, SubscriptionsSelect as aJ, BillingHistorySelect as aK, TenantLogosSelect as aL, ProductsSelect as aM, ProductVariantsSelect as aN, ProductOptionsSelect as aO, ProductOptionValuesSelect as aP, ProductCategoriesSelect as aQ, ProductTagsSelect as aR, ProductCollectionsSelect as aS, BrandsSelect as aT, BrandLogosSelect as aU, OrdersSelect as aV, OrderItemsSelect as aW, TransactionsSelect as aX, OrderStatusLogsSelect as aY, FulfillmentsSelect as aZ, FulfillmentItemsSelect as a_, GalleryCategory as aa, GalleryTag as ab, GalleryItem as ac, Link as ad, LinkCategory as ae, LinkTag as af, Canvase as ag, CanvasCategory as ah, CanvasTag as ai, CanvasNodeType as aj, CanvasEdgeType as ak, Thread as al, ThreadCategory as am, Comment as an, Reaction as ao, ReactionType as ap, Bookmark as aq, Report as ar, CommunityBan as as, FormSubmission as at, PayloadKv as au, PayloadLockedDocument as av, PayloadPreference as aw, PayloadMigration as ax, UsersSelect as ay, FieldConfigsSelect as az, Fulfillment as b, ReturnItemsSelect as b0, ShippingPoliciesSelect as b1, CustomersSelect as b2, CustomerAddressesSelect as b3, CustomerGroupsSelect as b4, CartsSelect as b5, CartItemsSelect as b6, DiscountsSelect as b7, PostsSelect as b8, PostAuthorsSelect as b9, LiveStreamsSelect as bA, ThreadsSelect as bB, CommentsSelect as bC, ReactionsSelect as bD, ReactionTypesSelect as bE, BookmarksSelect as bF, ThreadCategoriesSelect as bG, ReportsSelect as bH, CommunityBansSelect as bI, FormsSelect as bJ, FormSubmissionsSelect as bK, PayloadKvSelect as bL, PayloadLockedDocumentsSelect as bM, PayloadPreferencesSelect as bN, PayloadMigrationsSelect as bO, CollectionsWidget as bP, Auth as bQ, PostCategoriesSelect as ba, PostTagsSelect as bb, DocumentsSelect as bc, DocumentCategoriesSelect as bd, DocumentTypesSelect as be, PlaylistsSelect as bf, PlaylistCategoriesSelect as bg, PlaylistTagsSelect as bh, MusicsSelect as bi, MusicCategoriesSelect as bj, MusicTagsSelect as bk, GalleriesSelect as bl, GalleryCategoriesSelect as bm, GalleryTagsSelect as bn, GalleryItemsSelect as bo, LinksSelect as bp, LinkCategoriesSelect as bq, LinkTagsSelect as br, CanvasesSelect as bs, CanvasNodeTypesSelect as bt, CanvasEdgeTypesSelect as bu, CanvasCategoriesSelect as bv, CanvasTagsSelect as bw, VideosSelect as bx, VideoCategoriesSelect as by, VideoTagsSelect as bz, Cart as c, CartItem as d, CustomerAuthOperations as e, PlayerBlock as f, CodeBlock as g, User as h, Tenant as i, Image as j, FieldConfig as k, SystemMedia as l, ApiKey as m, PersonalAccessToken as n, TenantMetadatum as o, ApiUsage as p, Subscription as q, BillingHistory as r, TenantLogo as s, VideoCategory as t, VideoTag as u, ProductVariant as v, ProductOptionValue as w, ProductOption as x, ProductCategory as y, ProductTag as z };