@01.software/sdk 0.49.0 → 0.56.1

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 (74) hide show
  1. package/CHANGELOG.md +257 -1
  2. package/MIGRATION.md +56 -0
  3. package/README.md +269 -56
  4. package/dist/client.cjs +608 -190
  5. package/dist/client.cjs.map +1 -1
  6. package/dist/client.d.cts +6 -6
  7. package/dist/client.d.ts +6 -6
  8. package/dist/client.js +608 -190
  9. package/dist/client.js.map +1 -1
  10. package/dist/{collection-client-DnDt6EQz.d.ts → collection-client-Bmr53saa.d.ts} +6 -4
  11. package/dist/{collection-client-XfGLPuTf.d.cts → collection-client-DxuBDso_.d.cts} +6 -4
  12. package/dist/{const-CBba4lDo.d.cts → const-BKUqg96Q.d.ts} +5 -5
  13. package/dist/{const-DCNV5Kq7.d.ts → const-Cv1DCsp6.d.cts} +5 -5
  14. package/dist/embedded-admin/server.cjs +306 -0
  15. package/dist/embedded-admin/server.cjs.map +1 -0
  16. package/dist/embedded-admin/server.d.cts +33 -0
  17. package/dist/embedded-admin/server.d.ts +33 -0
  18. package/dist/embedded-admin/server.js +288 -0
  19. package/dist/embedded-admin/server.js.map +1 -0
  20. package/dist/embedded-admin.cjs +400 -0
  21. package/dist/embedded-admin.cjs.map +1 -0
  22. package/dist/embedded-admin.d.cts +61 -0
  23. package/dist/embedded-admin.d.ts +61 -0
  24. package/dist/embedded-admin.js +377 -0
  25. package/dist/embedded-admin.js.map +1 -0
  26. package/dist/errors.cjs +1 -0
  27. package/dist/errors.cjs.map +1 -1
  28. package/dist/errors.d.cts +3 -3
  29. package/dist/errors.d.ts +3 -3
  30. package/dist/errors.js +1 -0
  31. package/dist/errors.js.map +1 -1
  32. package/dist/{index-DUuIqUS8.d.ts → index-CGsT4AQ8.d.cts} +89 -10
  33. package/dist/{index-CbKyoEzy.d.cts → index-DFHLLqYu.d.ts} +89 -10
  34. package/dist/index.cjs +752 -436
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +12 -69
  37. package/dist/index.d.ts +12 -69
  38. package/dist/index.js +752 -436
  39. package/dist/index.js.map +1 -1
  40. package/dist/{payload-types-MKbx5MuJ.d.cts → payload-types-Bk-duc5k.d.cts} +545 -141
  41. package/dist/{payload-types-MKbx5MuJ.d.ts → payload-types-Bk-duc5k.d.ts} +545 -141
  42. package/dist/query.cjs +108 -71
  43. package/dist/query.cjs.map +1 -1
  44. package/dist/query.d.cts +5 -5
  45. package/dist/query.d.ts +5 -5
  46. package/dist/query.js +108 -71
  47. package/dist/query.js.map +1 -1
  48. package/dist/realtime.d.cts +2 -2
  49. package/dist/realtime.d.ts +2 -2
  50. package/dist/server.cjs +502 -175
  51. package/dist/server.cjs.map +1 -1
  52. package/dist/server.d.cts +9 -8
  53. package/dist/server.d.ts +9 -8
  54. package/dist/server.js +502 -175
  55. package/dist/server.js.map +1 -1
  56. package/dist/storefront-cache.cjs +1 -0
  57. package/dist/storefront-cache.cjs.map +1 -1
  58. package/dist/storefront-cache.js +1 -0
  59. package/dist/storefront-cache.js.map +1 -1
  60. package/dist/{types-1UeOk1Uy.d.cts → types-CEK8uTvU.d.ts} +287 -30
  61. package/dist/{types-BKr_2avj.d.cts → types-CNdpj2fI.d.cts} +2 -2
  62. package/dist/{types-L_nh-ED7.d.ts → types-D4mjGFj4.d.ts} +2 -2
  63. package/dist/{types-Du4s5anw.d.ts → types-Dhk5NX7Z.d.cts} +287 -30
  64. package/dist/ui/form.d.cts +1 -1
  65. package/dist/ui/form.d.ts +1 -1
  66. package/dist/ui/video.d.cts +1 -1
  67. package/dist/ui/video.d.ts +1 -1
  68. package/dist/webhook.cjs +135 -80
  69. package/dist/webhook.cjs.map +1 -1
  70. package/dist/webhook.d.cts +21 -5
  71. package/dist/webhook.d.ts +21 -5
  72. package/dist/webhook.js +135 -80
  73. package/dist/webhook.js.map +1 -1
  74. package/package.json +28 -6
@@ -23,6 +23,7 @@ interface Config {
23
23
  'webhook-events': WebhookEvent;
24
24
  'webhook-deliveries': WebhookDelivery;
25
25
  'webhook-outbox-deliveries': WebhookOutboxDelivery;
26
+ projects: Project;
26
27
  tenants: Tenant;
27
28
  'tenant-metadata': TenantMetadatum;
28
29
  'tenant-entitlements': TenantEntitlement;
@@ -62,6 +63,7 @@ interface Config {
62
63
  'payment-event-inbox': PaymentEventInbox;
63
64
  'payment-refund-attempts': PaymentRefundAttempt;
64
65
  'portone-payment-interactions': PortonePaymentInteraction;
66
+ 'commerce-payment-webhook-routes': CommercePaymentWebhookRoute;
65
67
  'payment-kernel-external-integrations': PaymentKernelExternalIntegration;
66
68
  'payment-kernel-owner-identities': PaymentKernelOwnerIdentity;
67
69
  'payment-kernel-provider-connections': PaymentKernelProviderConnection;
@@ -96,6 +98,7 @@ interface Config {
96
98
  'customer-profile-lists': CustomerProfileList;
97
99
  'customer-addresses': CustomerAddress;
98
100
  'customer-groups': CustomerGroup;
101
+ 'customer-group-grants': CustomerGroupGrant;
99
102
  carts: Cart;
100
103
  'cart-items': CartItem;
101
104
  'commerce-idempotency-records': CommerceIdempotencyRecord;
@@ -149,6 +152,8 @@ interface Config {
149
152
  events: Event;
150
153
  'event-admission-holds': EventAdmissionHold;
151
154
  'event-admission-types': EventAdmissionType;
155
+ 'event-ticket-purchases': EventTicketPurchase;
156
+ 'event-ticket-purchase-prices': EventTicketPurchasePrice;
152
157
  'event-categories': EventCategory;
153
158
  'event-tags': EventTag;
154
159
  'event-occurrences': EventOccurrence;
@@ -258,6 +263,7 @@ interface Config {
258
263
  'webhook-events': WebhookEventsSelect<false> | WebhookEventsSelect<true>;
259
264
  'webhook-deliveries': WebhookDeliveriesSelect<false> | WebhookDeliveriesSelect<true>;
260
265
  'webhook-outbox-deliveries': WebhookOutboxDeliveriesSelect<false> | WebhookOutboxDeliveriesSelect<true>;
266
+ projects: ProjectsSelect<false> | ProjectsSelect<true>;
261
267
  tenants: TenantsSelect<false> | TenantsSelect<true>;
262
268
  'tenant-metadata': TenantMetadataSelect<false> | TenantMetadataSelect<true>;
263
269
  'tenant-entitlements': TenantEntitlementsSelect<false> | TenantEntitlementsSelect<true>;
@@ -297,6 +303,7 @@ interface Config {
297
303
  'payment-event-inbox': PaymentEventInboxSelect<false> | PaymentEventInboxSelect<true>;
298
304
  'payment-refund-attempts': PaymentRefundAttemptsSelect<false> | PaymentRefundAttemptsSelect<true>;
299
305
  'portone-payment-interactions': PortonePaymentInteractionsSelect<false> | PortonePaymentInteractionsSelect<true>;
306
+ 'commerce-payment-webhook-routes': CommercePaymentWebhookRoutesSelect<false> | CommercePaymentWebhookRoutesSelect<true>;
300
307
  'payment-kernel-external-integrations': PaymentKernelExternalIntegrationsSelect<false> | PaymentKernelExternalIntegrationsSelect<true>;
301
308
  'payment-kernel-owner-identities': PaymentKernelOwnerIdentitiesSelect<false> | PaymentKernelOwnerIdentitiesSelect<true>;
302
309
  'payment-kernel-provider-connections': PaymentKernelProviderConnectionsSelect<false> | PaymentKernelProviderConnectionsSelect<true>;
@@ -331,6 +338,7 @@ interface Config {
331
338
  'customer-profile-lists': CustomerProfileListsSelect<false> | CustomerProfileListsSelect<true>;
332
339
  'customer-addresses': CustomerAddressesSelect<false> | CustomerAddressesSelect<true>;
333
340
  'customer-groups': CustomerGroupsSelect<false> | CustomerGroupsSelect<true>;
341
+ 'customer-group-grants': CustomerGroupGrantsSelect<false> | CustomerGroupGrantsSelect<true>;
334
342
  carts: CartsSelect<false> | CartsSelect<true>;
335
343
  'cart-items': CartItemsSelect<false> | CartItemsSelect<true>;
336
344
  'commerce-idempotency-records': CommerceIdempotencyRecordsSelect<false> | CommerceIdempotencyRecordsSelect<true>;
@@ -384,6 +392,8 @@ interface Config {
384
392
  events: EventsSelect<false> | EventsSelect<true>;
385
393
  'event-admission-holds': EventAdmissionHoldsSelect<false> | EventAdmissionHoldsSelect<true>;
386
394
  'event-admission-types': EventAdmissionTypesSelect<false> | EventAdmissionTypesSelect<true>;
395
+ 'event-ticket-purchases': EventTicketPurchasesSelect<false> | EventTicketPurchasesSelect<true>;
396
+ 'event-ticket-purchase-prices': EventTicketPurchasePricesSelect<false> | EventTicketPurchasePricesSelect<true>;
387
397
  'event-categories': EventCategoriesSelect<false> | EventCategoriesSelect<true>;
388
398
  'event-tags': EventTagsSelect<false> | EventTagsSelect<true>;
389
399
  'event-occurrences': EventOccurrencesSelect<false> | EventOccurrencesSelect<true>;
@@ -613,6 +623,11 @@ interface Image {
613
623
  interface Tenant {
614
624
  id: string;
615
625
  webhookPurgeFencedAt?: string | null;
626
+ project?: (string | null) | Project;
627
+ environmentKind?: ('live' | 'sandbox') | null;
628
+ environmentGeneration?: number | null;
629
+ environmentState?: ('requested' | 'provisioning' | 'ready' | 'suspended' | 'failed' | 'archived' | 'purge-pending' | 'purged') | null;
630
+ environmentIsCurrent?: boolean | null;
616
631
  name: string;
617
632
  /**
618
633
  * TEST is a time-limited space with separate data and keys and no external effects.
@@ -688,6 +703,15 @@ interface Tenant {
688
703
  origin: string;
689
704
  id?: string | null;
690
705
  }[] | null;
706
+ /**
707
+ * Managed from the dedicated Console developer-settings screen.
708
+ */
709
+ embeddedAdminApp?: {
710
+ enabled?: boolean | null;
711
+ label?: string | null;
712
+ origin?: string | null;
713
+ path?: string | null;
714
+ };
691
715
  /**
692
716
  * Workspace-wide email sender settings. Applies to every send, including commerce notifications and password resets.
693
717
  */
@@ -814,7 +838,32 @@ interface Tenant {
814
838
  deletedAt?: string | null;
815
839
  }
816
840
  /**
817
- * Manage Admin Panel users and permission details.
841
+ * This interface was referenced by `Config`'s JSON-Schema
842
+ * via the `definition` "projects".
843
+ */
844
+ interface Project {
845
+ id: string;
846
+ /**
847
+ * Customer-facing Project name.
848
+ */
849
+ name: string;
850
+ /**
851
+ * URL-safe Project identifier. It is separate from a tenant slug and never substitutes for one.
852
+ */
853
+ slug: string;
854
+ /**
855
+ * Commercial Project lifecycle state, distinct from child tenant runtime state.
856
+ */
857
+ status: 'active' | 'suspended' | 'closed';
858
+ /**
859
+ * ADR 0056 migration authority mode. `tenant` preserves legacy tenant billing; `project-billing` moves only subscription authority while retaining the current Live tenant as the compatibility anchor.
860
+ */
861
+ authorityMode: 'tenant' | 'project-billing';
862
+ updatedAt: string;
863
+ createdAt: string;
864
+ }
865
+ /**
866
+ * Manage Console users and permission details.
818
867
  *
819
868
  * This interface was referenced by `Config`'s JSON-Schema
820
869
  * via the `definition` "users".
@@ -842,11 +891,11 @@ interface User {
842
891
  suspendedAt?: string | null;
843
892
  suspendedReason?: string | null;
844
893
  /**
845
- * Timezone used for admin UI and notifications, such as Asia/Seoul.
894
+ * Timezone used for Console UI and notifications, such as Asia/Seoul.
846
895
  */
847
896
  timezone?: string | null;
848
897
  /**
849
- * Admin UI language or locale code, such as ko or en.
898
+ * Console UI language or locale code, such as ko or en.
850
899
  */
851
900
  locale?: string | null;
852
901
  avatar?: (string | null) | Image;
@@ -1044,12 +1093,12 @@ interface CommerceNotificationIntent {
1044
1093
  * Stable key that prevents duplicate notification intents within a tenant.
1045
1094
  */
1046
1095
  dedupeKey: string;
1047
- event: 'orderPaid' | 'orderCanceled' | 'fulfillmentShipped' | 'orderDelivered' | 'returnRequested' | 'returnApproved' | 'returnRejected' | 'returnCanceled' | 'returnCompleted' | 'eventRegistrationConfirmed' | 'eventOccurrenceCanceled';
1096
+ event: 'orderPaid' | 'orderCanceled' | 'fulfillmentShipped' | 'orderDelivered' | 'returnRequested' | 'returnApproved' | 'returnRejected' | 'returnCanceled' | 'returnCompleted' | 'paymentReconciliationRequired' | 'paymentRefundRequiresAttention' | 'membershipActivated' | 'membershipPastDue' | 'membershipExpired' | 'membershipCancelled' | 'eventRegistrationConfirmed' | 'eventOccurrenceCanceled';
1048
1097
  status: 'queued' | 'processing' | 'sent' | 'failed' | 'canceled';
1049
1098
  /**
1050
- * Customer email address targeted by this notification.
1099
+ * Customer email target. Operator-only payment incident notifications leave this empty.
1051
1100
  */
1052
- recipientEmail: string;
1101
+ recipientEmail?: string | null;
1053
1102
  /**
1054
1103
  * Consent classification used by the send-time eligibility gate.
1055
1104
  */
@@ -1169,6 +1218,10 @@ interface Order {
1169
1218
  * Note left by customer at checkout
1170
1219
  */
1171
1220
  customerNote?: string | null;
1221
+ /**
1222
+ * Internal admin notes (not visible to customers)
1223
+ */
1224
+ adminNotes?: string | null;
1172
1225
  transactions?: {
1173
1226
  docs?: (string | Transaction)[];
1174
1227
  hasNextPage?: boolean;
@@ -1211,6 +1264,10 @@ interface Order {
1211
1264
  usageReserved: boolean;
1212
1265
  priority?: number | null;
1213
1266
  inputOrder?: number | null;
1267
+ conditionDigest?: string | null;
1268
+ customerEligibilityEvidence?: {
1269
+ [k: string]: unknown;
1270
+ } | unknown[] | string | number | boolean | null;
1214
1271
  id?: string | null;
1215
1272
  }[] | null;
1216
1273
  discountAmount?: number | null;
@@ -1268,10 +1325,6 @@ interface Order {
1268
1325
  integrationMetadata?: {
1269
1326
  [k: string]: unknown;
1270
1327
  } | unknown[] | string | number | boolean | null;
1271
- /**
1272
- * Internal admin notes (not visible to customers)
1273
- */
1274
- adminNotes?: string | null;
1275
1328
  source?: ('web' | 'app' | 'manual' | 'api' | 'import') | null;
1276
1329
  tags?: (string | OrderTag)[] | null;
1277
1330
  tagSlugs?: {
@@ -1308,8 +1361,8 @@ interface Customer {
1308
1361
  _customers_customers_order?: string | null;
1309
1362
  _order?: string | null;
1310
1363
  tenant?: (string | null) | Tenant;
1311
- name: string;
1312
1364
  email?: string | null;
1365
+ name: string;
1313
1366
  phone?: string | null;
1314
1367
  groups?: (string | CustomerGroup)[] | null;
1315
1368
  /**
@@ -1359,10 +1412,6 @@ interface Customer {
1359
1412
  customData?: {
1360
1413
  [k: string]: unknown;
1361
1414
  } | unknown[] | string | number | boolean | null;
1362
- /**
1363
- * Marks a minor customer. When enabled, guardian consent fields are managed as compliance evidence.
1364
- */
1365
- isMinor?: boolean | null;
1366
1415
  marketingConsent?: {
1367
1416
  email?: {
1368
1417
  state?: ('not_subscribed' | 'pending' | 'subscribed' | 'unsubscribed') | null;
@@ -1413,27 +1462,6 @@ interface Customer {
1413
1462
  unsubscribedAt?: string | null;
1414
1463
  };
1415
1464
  };
1416
- /**
1417
- * Guardian consent evidence for a minor customer. May contain guardian PII.
1418
- */
1419
- guardianConsent?: {
1420
- /**
1421
- * Whether guardian consent has been collected. Internal compliance marker for minor-customer handling.
1422
- */
1423
- hasGuardianConsent?: boolean | null;
1424
- /**
1425
- * Guardian name. Treat as guardian PII.
1426
- */
1427
- guardianName?: string | null;
1428
- /**
1429
- * Guardian phone number. Treat as guardian PII.
1430
- */
1431
- guardianPhone?: string | null;
1432
- /**
1433
- * Timestamp when guardian consent was recorded. Read-only audit evidence.
1434
- */
1435
- guardianConsentedAt?: string | null;
1436
- };
1437
1465
  acceptsTos?: boolean | null;
1438
1466
  tosVersion?: string | null;
1439
1467
  /**
@@ -1864,7 +1892,7 @@ interface Product {
1864
1892
  */
1865
1893
  generateSlug?: boolean | null;
1866
1894
  /**
1867
- * Slug used in product URLs.
1895
+ * Slug used in product URLs. It is fixed after creation.
1868
1896
  */
1869
1897
  slug?: string | null;
1870
1898
  /**
@@ -2949,7 +2977,7 @@ interface ShippingPolicy {
2949
2977
  */
2950
2978
  baseAmount?: number | null;
2951
2979
  /**
2952
- * Read-only rollout field. Set up free shipping with an order-amount rate row priced at 0, or with an automatic free_shipping discount that sets a minimum order amount. When you use a rate row, cap the existing paid row with Max Amount so both rows never apply together.
2980
+ * Read-only rollout field. Set up free shipping with an order-amount rate row priced at 0, or with an automatic free_shipping discount that sets a minimum order amount. When you use a rate row, change the existing paid row's Condition to Order amount and cap it with a Max order amount below the free-shipping threshold so both rows never apply together.
2953
2981
  */
2954
2982
  freeShippingMinAmount?: number | null;
2955
2983
  rates?: {
@@ -3218,6 +3246,10 @@ interface Checkout {
3218
3246
  usageReserved: boolean;
3219
3247
  priority?: number | null;
3220
3248
  inputOrder?: number | null;
3249
+ conditionDigest?: string | null;
3250
+ customerEligibilityEvidence?: {
3251
+ [k: string]: unknown;
3252
+ } | unknown[] | string | number | boolean | null;
3221
3253
  id?: string | null;
3222
3254
  }[] | null;
3223
3255
  discountAmount?: number | null;
@@ -3573,10 +3605,10 @@ interface PaymentSession {
3573
3605
  captureSequence?: number | null;
3574
3606
  providerObservedAt?: string | null;
3575
3607
  /**
3576
- * Immutable PortOne capture observation stored before local ledger finalization.
3608
+ * Immutable provider capture observation stored before local ledger finalization.
3577
3609
  */
3578
3610
  providerCaptureEvidence?: {
3579
- provider?: 'portone' | null;
3611
+ provider?: ('portone' | 'toss') | null;
3580
3612
  providerAccount?: (string | null) | CommercePaymentAccount;
3581
3613
  providerAccountKey?: string | null;
3582
3614
  environment?: ('test' | 'live') | null;
@@ -3586,7 +3618,7 @@ interface PaymentSession {
3586
3618
  currency?: string | null;
3587
3619
  observationId?: string | null;
3588
3620
  observedAt?: string | null;
3589
- verificationSource?: ('portone_authenticated_response' | 'portone_authoritative_lookup') | null;
3621
+ verificationSource?: ('portone_authenticated_response' | 'portone_authoritative_lookup' | 'toss_authenticated_response' | 'toss_authoritative_lookup') | null;
3590
3622
  };
3591
3623
  expiresAt?: string | null;
3592
3624
  captureInFlightAt?: string | null;
@@ -3633,12 +3665,12 @@ interface CommercePaymentAccount {
3633
3665
  markets: (string | Market)[];
3634
3666
  tossConfiguration?: {
3635
3667
  /**
3636
- * Toss client key. Must use the test_ / live_ prefix matching the registered environment.
3668
+ * Toss Widget client key. Must use the test_gck_ / live_gck_ prefix matching the registered environment.
3637
3669
  */
3638
3670
  clientKey: string;
3639
3671
  secretKey?: string | null;
3640
3672
  /**
3641
- * Encrypted on save and never shown again. Leave blank to keep the registered key.
3673
+ * Enter the test_gsk_ / live_gsk_ key matching the environment. It is encrypted on save and never shown again; leave blank to keep it.
3642
3674
  */
3643
3675
  secretKeyInput?: string | null;
3644
3676
  /**
@@ -3680,9 +3712,14 @@ interface CommercePaymentAccount {
3680
3712
  };
3681
3713
  };
3682
3714
  /**
3683
- * When enabled, this connection is eligible for new PaymentSessions.
3715
+ * Enabled only by the activation action after configuration attestation. Deactivation is always available.
3684
3716
  */
3685
3717
  isActive?: boolean | null;
3718
+ connectionReadinessState: 'pending' | 'configuration_attested' | 'pre_readiness_accepted';
3719
+ readinessCredentialVersion?: number | null;
3720
+ readinessConfigurationDigest?: string | null;
3721
+ readinessCheckedAt?: string | null;
3722
+ readinessReasonCode?: ('awaiting_verification' | 'configuration_changed' | 'credential_changed' | 'toss_configuration_attestation_v1' | 'toss_widget_render_failed_v1' | 'toss_provider_account_key_mismatch_v1' | 'portone_configuration_acknowledgement_v1' | 'pre_readiness_active_cutover') | null;
3686
3723
  credentialVersion?: number | null;
3687
3724
  credentialState: 'active' | 'archived_refundable' | 'revoked' | 'destruction_pending' | 'destroyed';
3688
3725
  rotatedAt?: string | null;
@@ -3756,6 +3793,15 @@ interface Event {
3756
3793
  */
3757
3794
  timezone?: string | null;
3758
3795
  isAllDay?: boolean | null;
3796
+ /**
3797
+ * Authoritative all-day start date (YYYY-MM-DD).
3798
+ */
3799
+ allDayStartDate?: string | null;
3800
+ /**
3801
+ * Authoritative exclusive all-day end date (YYYY-MM-DD).
3802
+ */
3803
+ allDayEndDateExclusive?: string | null;
3804
+ allDayAuthorityTimezone?: string | null;
3759
3805
  /**
3760
3806
  * Optional. Leave empty for a one-time event.
3761
3807
  */
@@ -3775,6 +3821,10 @@ interface Event {
3775
3821
  endMode?: ('never' | 'count' | 'until') | null;
3776
3822
  count?: number | null;
3777
3823
  until?: string | null;
3824
+ /**
3825
+ * Authoritative all-day recurrence end date. Enter YYYY-MM-DD.
3826
+ */
3827
+ untilDate?: string | null;
3778
3828
  /**
3779
3829
  * RFC 5545 RRULE string for advanced users. Use the repeat fields above for common schedules.
3780
3830
  */
@@ -3992,6 +4042,9 @@ interface EventOccurrence {
3992
4042
  */
3993
4043
  timezone?: string | null;
3994
4044
  isAllDay?: boolean | null;
4045
+ allDayStartDate?: string | null;
4046
+ allDayEndDateExclusive?: string | null;
4047
+ allDayAuthorityTimezone?: string | null;
3995
4048
  status?: ('scheduled' | 'canceled' | 'completed') | null;
3996
4049
  /**
3997
4050
  * Server-derived copy of whether the parent event is exposed to public reads. Follows the event status, visibility, and trashed state automatically.
@@ -4085,6 +4138,22 @@ interface EventRegistration {
4085
4138
  answer?: string | null;
4086
4139
  id?: string | null;
4087
4140
  }[] | null;
4141
+ /**
4142
+ * How this registration was created. Existing registrations may be empty and cannot be changed.
4143
+ */
4144
+ creationChannel?: ('public_registration' | 'commerce_materialization' | 'operator') | null;
4145
+ /**
4146
+ * User who added this registration in Console.
4147
+ */
4148
+ createdByOperator?: (string | null) | User;
4149
+ /**
4150
+ * Admission basis for an operator-added registration. It stores no price or payment evidence.
4151
+ */
4152
+ operatorAdmissionBasis?: ('standard' | 'complimentary' | 'external_sale_reported') | null;
4153
+ /**
4154
+ * Whether to send confirmation notifications for an operator-added registration. Applies to later transitions to going.
4155
+ */
4156
+ confirmationNotificationPolicy?: ('send' | 'suppress') | null;
4088
4157
  /**
4089
4158
  * Manual approval data, including approval time, approver, and internal note.
4090
4159
  */
@@ -4177,6 +4246,8 @@ interface EventAdmissionHold {
4177
4246
  admissionType: string | EventAdmissionType;
4178
4247
  checkout?: (string | null) | Checkout;
4179
4248
  checkoutItem?: (string | null) | CheckoutItem;
4249
+ ticketPurchase?: (string | null) | EventTicketPurchase;
4250
+ paymentKernelObligation?: (string | null) | PaymentKernelObligation;
4180
4251
  quantity: number;
4181
4252
  status: 'held' | 'bound' | 'expired' | 'confirmed' | 'released';
4182
4253
  expiresAt?: string | null;
@@ -4188,6 +4259,91 @@ interface EventAdmissionHold {
4188
4259
  createdAt: string;
4189
4260
  deletedAt?: string | null;
4190
4261
  }
4262
+ /**
4263
+ * This interface was referenced by `Config`'s JSON-Schema
4264
+ * via the `definition` "event-ticket-purchases".
4265
+ */
4266
+ interface EventTicketPurchase {
4267
+ id: string;
4268
+ tenant?: (string | null) | Tenant;
4269
+ idempotencyKey: string;
4270
+ principalMinor: number;
4271
+ currency: string;
4272
+ components: {
4273
+ [k: string]: unknown;
4274
+ } | unknown[] | string | number | boolean | null;
4275
+ resultEntries: {
4276
+ [k: string]: unknown;
4277
+ } | unknown[] | string | number | boolean | null;
4278
+ refundEntries: {
4279
+ [k: string]: unknown;
4280
+ } | unknown[] | string | number | boolean | null;
4281
+ updatedAt: string;
4282
+ createdAt: string;
4283
+ deletedAt?: string | null;
4284
+ }
4285
+ /**
4286
+ * This interface was referenced by `Config`'s JSON-Schema
4287
+ * via the `definition` "payment-kernel-obligations".
4288
+ */
4289
+ interface PaymentKernelObligation {
4290
+ id: string;
4291
+ tenant?: (string | null) | Tenant;
4292
+ ownerIdentity: string | PaymentKernelOwnerIdentity;
4293
+ ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
4294
+ ownerId: string;
4295
+ ownerCommandKind: string;
4296
+ ownerIdempotencyKey: string;
4297
+ requestFingerprint: string;
4298
+ amount: number;
4299
+ currency: string;
4300
+ executionOwner: 'console_managed' | 'integration_managed';
4301
+ provider: string;
4302
+ providerAccountKey: string;
4303
+ environment: 'test' | 'live';
4304
+ providerConnection?: (string | null) | PaymentKernelProviderConnection;
4305
+ externalIntegration?: (string | null) | PaymentKernelExternalIntegration;
4306
+ updatedAt: string;
4307
+ createdAt: string;
4308
+ }
4309
+ /**
4310
+ * This interface was referenced by `Config`'s JSON-Schema
4311
+ * via the `definition` "payment-kernel-owner-identities".
4312
+ */
4313
+ interface PaymentKernelOwnerIdentity {
4314
+ id: string;
4315
+ tenant?: (string | null) | Tenant;
4316
+ ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
4317
+ ownerId: string;
4318
+ updatedAt: string;
4319
+ createdAt: string;
4320
+ }
4321
+ /**
4322
+ * This interface was referenced by `Config`'s JSON-Schema
4323
+ * via the `definition` "payment-kernel-provider-connections".
4324
+ */
4325
+ interface PaymentKernelProviderConnection {
4326
+ id: string;
4327
+ tenant?: (string | null) | Tenant;
4328
+ provider: string;
4329
+ providerAccountKey: string;
4330
+ environment: 'test' | 'live';
4331
+ updatedAt: string;
4332
+ createdAt: string;
4333
+ }
4334
+ /**
4335
+ * This interface was referenced by `Config`'s JSON-Schema
4336
+ * via the `definition` "payment-kernel-external-integrations".
4337
+ */
4338
+ interface PaymentKernelExternalIntegration {
4339
+ id: string;
4340
+ tenant?: (string | null) | Tenant;
4341
+ integrationKey: string;
4342
+ actorId: string;
4343
+ actorNamespace: string;
4344
+ updatedAt: string;
4345
+ createdAt: string;
4346
+ }
4191
4347
  /**
4192
4348
  * This interface was referenced by `Config`'s JSON-Schema
4193
4349
  * via the `definition` "fulfillment-orders".
@@ -4487,7 +4643,7 @@ interface PersonalAccessToken {
4487
4643
  lastUsedIp?: string | null;
4488
4644
  revokedAt?: string | null;
4489
4645
  /**
4490
- * User who revoked the PAT for audit traceability.
4646
+ * User who revoked the PAT, retained as the revocation actor for audit traceability.
4491
4647
  */
4492
4648
  revokedBy?: (string | null) | User;
4493
4649
  /**
@@ -4529,6 +4685,10 @@ interface AuditLog {
4529
4685
  interface WebhookEvent {
4530
4686
  id: string;
4531
4687
  tenant?: (string | null) | Tenant;
4688
+ /**
4689
+ * New runtime rows require tenant or global. Null marks legacy/old-runtime evidence during expand and is treated as unresolved like unknown.
4690
+ */
4691
+ ownershipScope?: ('tenant' | 'global' | 'unknown') | null;
4532
4692
  /**
4533
4693
  * Provider
4534
4694
  */
@@ -4583,6 +4743,26 @@ interface WebhookDelivery {
4583
4743
  * Operation that produced this delivery attempt.
4584
4744
  */
4585
4745
  operation?: string | null;
4746
+ /**
4747
+ * Semantic event type, recorded for commerce notification deliveries only. Example: commerce.notification. Empty for ordinary collection deliveries.
4748
+ */
4749
+ eventType?: string | null;
4750
+ /**
4751
+ * Commerce notification event, e.g. orderCanceled. A 2xx receiver response does not prove the receiver handled this event.
4752
+ */
4753
+ notificationEvent?: string | null;
4754
+ /**
4755
+ * Notification intent identifier. With the dedupe key it forms the semantic idempotency identity.
4756
+ */
4757
+ notificationIntentId?: string | null;
4758
+ /**
4759
+ * Notification dedupe key. Distinct from delivery id, which identifies the delivery attempt only.
4760
+ */
4761
+ notificationDedupeKey?: string | null;
4762
+ /**
4763
+ * Identifier of the source object that produced this delivery. Its collection is the collection field.
4764
+ */
4765
+ sourceId?: string | null;
4586
4766
  /**
4587
4767
  * Path that produced the delivery attempt.
4588
4768
  */
@@ -4652,13 +4832,13 @@ interface Webhook {
4652
4832
  */
4653
4833
  secretRotatedBy?: (string | null) | User;
4654
4834
  /**
4655
- * Collections to subscribe to. Leave empty to receive every supported collection event.
4835
+ * Collections to subscribe to. Leaving this empty is a wildcard for ordinary collection create/update events only. Generic collections receive raw create/update; shaped-only entries receive semantic commerce notifications only. Commerce notifications for orders, fulfillments, returns, and customer-memberships require explicit selection.
4656
4836
  */
4657
4837
  subscriptions?: {
4658
4838
  /**
4659
- * Receives create/update events for this collection.
4839
+ * Receives create/update events for this collection, plus commerce notifications whose source is this collection.
4660
4840
  */
4661
- collection: 'tenant-metadata' | 'tenant-logos' | 'images' | 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-categories' | 'product-tags' | 'product-collections' | 'markets' | 'brands' | 'brand-logos' | 'orders' | 'order-items' | 'transactions' | 'fulfillment-orders' | 'fulfillment-order-items' | 'fulfillments' | 'fulfillment-items' | 'returns' | 'return-items' | 'carts' | 'cart-items' | 'discounts' | 'shipping-policies' | 'shipping-zones' | 'customers' | 'customer-profiles' | 'customer-addresses' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-items' | 'gallery-categories' | 'gallery-tags' | 'links' | 'link-categories' | 'link-tags' | 'forms' | 'form-submissions' | 'articles' | 'article-authors' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'canvases' | 'canvas-node-types' | 'canvas-edge-types' | 'canvas-categories' | 'canvas-tags' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'post-tags' | 'customer-profile-stats' | 'customer-profile-lists' | 'event-calendars' | 'events' | 'event-categories' | 'event-occurrences' | 'event-tags' | 'membership-plans' | 'membership-plan-prices' | 'canvas-nodes' | 'canvas-edges';
4841
+ collection: 'tenant-metadata' | 'tenant-logos' | 'images' | 'products' | 'product-variants' | 'product-options' | 'product-option-values' | 'product-categories' | 'product-tags' | 'product-collections' | 'markets' | 'brands' | 'brand-logos' | 'orders' | 'order-items' | 'transactions' | 'fulfillment-orders' | 'fulfillment-order-items' | 'fulfillments' | 'fulfillment-items' | 'returns' | 'return-items' | 'carts' | 'cart-items' | 'discounts' | 'shipping-policies' | 'shipping-zones' | 'customers' | 'customer-profiles' | 'customer-addresses' | 'playlists' | 'playlist-categories' | 'playlist-tags' | 'tracks' | 'track-categories' | 'track-tags' | 'galleries' | 'gallery-items' | 'gallery-categories' | 'gallery-tags' | 'links' | 'link-categories' | 'link-tags' | 'forms' | 'form-submissions' | 'articles' | 'article-authors' | 'article-categories' | 'article-tags' | 'documents' | 'document-categories' | 'document-types' | 'canvases' | 'canvas-node-types' | 'canvas-edge-types' | 'canvas-categories' | 'canvas-tags' | 'videos' | 'video-categories' | 'video-tags' | 'live-streams' | 'posts' | 'comments' | 'reactions' | 'reaction-types' | 'bookmarks' | 'post-categories' | 'post-tags' | 'customer-profile-stats' | 'customer-profile-lists' | 'event-calendars' | 'events' | 'event-categories' | 'event-occurrences' | 'event-tags' | 'membership-plans' | 'membership-plan-prices' | 'canvas-nodes' | 'canvas-edges' | 'payment-sessions' | 'payment-refund-attempts' | 'customer-memberships';
4662
4842
  id?: string | null;
4663
4843
  }[] | null;
4664
4844
  isActive?: boolean | null;
@@ -4999,6 +5179,10 @@ interface TenantEntitlement {
4999
5179
  */
5000
5180
  interface Subscription {
5001
5181
  id: string;
5182
+ /**
5183
+ * Project billing scope. The existing Live tenant relation remains the compatibility and evidence anchor.
5184
+ */
5185
+ project?: (string | null) | Project;
5002
5186
  tenant: string | Tenant;
5003
5187
  plan: 'starter' | 'basic' | 'pro';
5004
5188
  billingModel: 'flat' | 'usage';
@@ -5260,6 +5444,10 @@ interface UsageInvoice {
5260
5444
  interface ApiUsage {
5261
5445
  id: string;
5262
5446
  tenant?: (string | null) | Tenant;
5447
+ project?: (string | null) | Project;
5448
+ environmentKind: 'tenant' | 'live' | 'sandbox';
5449
+ environmentGeneration: number;
5450
+ billable: boolean;
5263
5451
  /**
5264
5452
  * YYYY-MM format
5265
5453
  */
@@ -5701,10 +5889,10 @@ interface PaymentRefundAttempt {
5701
5889
  tenant?: (string | null) | Tenant;
5702
5890
  status: 'provider_pending' | 'provider_succeeded' | 'reconciliation_required' | 'local_committed' | 'failed';
5703
5891
  order: string | Order;
5704
- paymentSession: string | PaymentSession;
5892
+ paymentSession?: (string | null) | PaymentSession;
5705
5893
  paymentTransaction: string | Transaction;
5706
- providerAccount: string | CommercePaymentAccount;
5707
- credentialVersion: number;
5894
+ providerAccount?: (string | null) | CommercePaymentAccount;
5895
+ credentialVersion?: number | null;
5708
5896
  provider: string;
5709
5897
  environment: string;
5710
5898
  providerOrderId: string;
@@ -5728,6 +5916,94 @@ interface PaymentRefundAttempt {
5728
5916
  localRefundedAmount?: number | null;
5729
5917
  localCommittedAt?: string | null;
5730
5918
  lastErrorCode?: string | null;
5919
+ returnOperation?: {
5920
+ version: 2;
5921
+ requestFingerprint: string;
5922
+ envelope: {
5923
+ version: 1;
5924
+ tenantId: string;
5925
+ orderId: string;
5926
+ orderNumber: string;
5927
+ source: {
5928
+ kind: 'existing_return';
5929
+ returnId: string;
5930
+ } | {
5931
+ kind: 'direct_return';
5932
+ };
5933
+ payment: {
5934
+ paymentTransactionId: string;
5935
+ paymentSessionId: null | string;
5936
+ providerAccountId: null | string;
5937
+ credentialVersion: null | number;
5938
+ provider: 'toss' | 'portone';
5939
+ environment: 'test' | 'live' | 'legacy';
5940
+ providerOrderId: string;
5941
+ paymentKey: string;
5942
+ pgPaymentId: string;
5943
+ currency: string;
5944
+ };
5945
+ /**
5946
+ * @minItems 1
5947
+ * @maxItems 100
5948
+ */
5949
+ items: [
5950
+ {
5951
+ orderItemId: string;
5952
+ quantity: number;
5953
+ restockAction: 'return_to_stock' | 'discard';
5954
+ restockingFee: number;
5955
+ },
5956
+ ...{
5957
+ orderItemId: string;
5958
+ quantity: number;
5959
+ restockAction: 'return_to_stock' | 'discard';
5960
+ restockingFee: number;
5961
+ }[]
5962
+ ];
5963
+ lineRefundAmount: number;
5964
+ returnShippingFee: number;
5965
+ initialShippingRefundAmount: number;
5966
+ restockingFeeTotal: number;
5967
+ providerRefundAmount: number;
5968
+ metadata: {
5969
+ initialShippingRefundOverrideNote: null | string;
5970
+ reason: null | string;
5971
+ reasonDetail: null | string;
5972
+ refundReceiptUrl: null | string;
5973
+ };
5974
+ actorFingerprint: string;
5975
+ };
5976
+ } | null;
5977
+ returnFinalizationStatus: 'not_applicable' | 'pending' | 'succeeded';
5978
+ finalizedReturn?: (string | null) | Return;
5979
+ returnRefundTransaction?: (string | null) | Transaction;
5980
+ returnFinalizedAt?: string | null;
5981
+ returnLastErrorCode?: string | null;
5982
+ returnSuccessResponse?: {
5983
+ version: 1;
5984
+ body: {
5985
+ return: {
5986
+ id: string;
5987
+ status: 'completed';
5988
+ refundAmount: number;
5989
+ returnShippingFee: number;
5990
+ initialShippingRefundAmount: number;
5991
+ completedAt: string;
5992
+ };
5993
+ transaction: {
5994
+ id: string;
5995
+ type: 'refund';
5996
+ kind: 'refund';
5997
+ status: 'refunded';
5998
+ amount: number;
5999
+ providerEventId: string | null;
6000
+ };
6001
+ refundSeq: number;
6002
+ };
6003
+ } | null;
6004
+ returnResponseOutcome?: {
6005
+ [k: string]: unknown;
6006
+ } | unknown[] | string | number | boolean | null;
5731
6007
  updatedAt: string;
5732
6008
  createdAt: string;
5733
6009
  }
@@ -5776,39 +6052,40 @@ interface PortonePaymentInteraction {
5776
6052
  }
5777
6053
  /**
5778
6054
  * This interface was referenced by `Config`'s JSON-Schema
5779
- * via the `definition` "payment-kernel-external-integrations".
5780
- */
5781
- interface PaymentKernelExternalIntegration {
5782
- id: string;
5783
- tenant?: (string | null) | Tenant;
5784
- integrationKey: string;
5785
- actorId: string;
5786
- actorNamespace: string;
5787
- updatedAt: string;
5788
- createdAt: string;
5789
- }
5790
- /**
5791
- * This interface was referenced by `Config`'s JSON-Schema
5792
- * via the `definition` "payment-kernel-owner-identities".
6055
+ * via the `definition` "commerce-payment-webhook-routes".
5793
6056
  */
5794
- interface PaymentKernelOwnerIdentity {
6057
+ interface CommercePaymentWebhookRoute {
5795
6058
  id: string;
5796
6059
  tenant?: (string | null) | Tenant;
5797
- ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
5798
- ownerId: string;
5799
- updatedAt: string;
5800
- createdAt: string;
5801
- }
5802
- /**
5803
- * This interface was referenced by `Config`'s JSON-Schema
5804
- * via the `definition` "payment-kernel-provider-connections".
5805
- */
5806
- interface PaymentKernelProviderConnection {
5807
- id: string;
5808
- tenant?: (string | null) | Tenant;
5809
- provider: string;
6060
+ provider: 'portone';
6061
+ /**
6062
+ * PortOne storeId this route serves.
6063
+ */
5810
6064
  providerAccountKey: string;
5811
- environment: 'test' | 'live';
6065
+ /**
6066
+ * Server-issued routing identifier for the PortOne console webhook URL path. Not an authentication token.
6067
+ */
6068
+ anchor: string;
6069
+ state: 'pending' | 'verified' | 'draining' | 'revoked';
6070
+ rotationReason: 'initial' | 'normal' | 'compromise';
6071
+ supersedesRoute?: (string | null) | CommercePaymentWebhookRoute;
6072
+ issuedAt?: string | null;
6073
+ verifiedAt?: string | null;
6074
+ testReadbackAttestedAt?: string | null;
6075
+ testLastSignedDeliveryAt?: string | null;
6076
+ liveReadbackAttestedAt?: string | null;
6077
+ liveLastSignedDeliveryAt?: string | null;
6078
+ storeKeyedLastSignedDeliveryAt?: string | null;
6079
+ drainStartedAt?: string | null;
6080
+ revokedAt?: string | null;
6081
+ /**
6082
+ * Webhook URL the operator read back from the PortOne console for that environment.
6083
+ */
6084
+ testReadbackUrl?: string | null;
6085
+ /**
6086
+ * Webhook URL the operator read back from the PortOne console for that environment.
6087
+ */
6088
+ liveReadbackUrl?: string | null;
5812
6089
  updatedAt: string;
5813
6090
  createdAt: string;
5814
6091
  }
@@ -5839,30 +6116,6 @@ interface PaymentKernelProviderObjectIdentity {
5839
6116
  updatedAt: string;
5840
6117
  createdAt: string;
5841
6118
  }
5842
- /**
5843
- * This interface was referenced by `Config`'s JSON-Schema
5844
- * via the `definition` "payment-kernel-obligations".
5845
- */
5846
- interface PaymentKernelObligation {
5847
- id: string;
5848
- tenant?: (string | null) | Tenant;
5849
- ownerIdentity: string | PaymentKernelOwnerIdentity;
5850
- ownerKind: 'commerce_checkout' | 'event_ticket_purchase';
5851
- ownerId: string;
5852
- ownerCommandKind: string;
5853
- ownerIdempotencyKey: string;
5854
- requestFingerprint: string;
5855
- amount: number;
5856
- currency: string;
5857
- executionOwner: 'console_managed' | 'integration_managed';
5858
- provider: string;
5859
- providerAccountKey: string;
5860
- environment: 'test' | 'live';
5861
- providerConnection?: (string | null) | PaymentKernelProviderConnection;
5862
- externalIntegration?: (string | null) | PaymentKernelExternalIntegration;
5863
- updatedAt: string;
5864
- createdAt: string;
5865
- }
5866
6119
  /**
5867
6120
  * This interface was referenced by `Config`'s JSON-Schema
5868
6121
  * via the `definition` "payment-kernel-operations".
@@ -6342,6 +6595,26 @@ interface CustomerProfileList {
6342
6595
  createdAt: string;
6343
6596
  deletedAt?: string | null;
6344
6597
  }
6598
+ /**
6599
+ * This interface was referenced by `Config`'s JSON-Schema
6600
+ * via the `definition` "customer-group-grants".
6601
+ */
6602
+ interface CustomerGroupGrant {
6603
+ id: string;
6604
+ tenant?: (string | null) | Tenant;
6605
+ customer: string | Customer;
6606
+ group: string | CustomerGroup;
6607
+ grantedAt: string;
6608
+ grantedByType: 'operator' | 'server-credential' | 'system' | 'migration';
6609
+ grantedById: string;
6610
+ reason?: string | null;
6611
+ revokedAt?: string | null;
6612
+ revokedByType?: ('operator' | 'server-credential' | 'system' | 'migration') | null;
6613
+ revokedById?: string | null;
6614
+ revision: number;
6615
+ updatedAt: string;
6616
+ createdAt: string;
6617
+ }
6345
6618
  /**
6346
6619
  * This interface was referenced by `Config`'s JSON-Schema
6347
6620
  * via the `definition` "draft-orders".
@@ -6540,6 +6813,9 @@ interface Article {
6540
6813
  * When enabled, the slug will auto-generate from the title field on save and autosave.
6541
6814
  */
6542
6815
  generateSlug?: boolean | null;
6816
+ /**
6817
+ * Slug used in article URLs. It is fixed after creation.
6818
+ */
6543
6819
  slug?: string | null;
6544
6820
  status?: ('draft' | 'published' | 'archived') | null;
6545
6821
  thumbnail?: (string | null) | Image;
@@ -8190,6 +8466,21 @@ interface EventCalendar {
8190
8466
  createdAt: string;
8191
8467
  deletedAt?: string | null;
8192
8468
  }
8469
+ /**
8470
+ * This interface was referenced by `Config`'s JSON-Schema
8471
+ * via the `definition` "event-ticket-purchase-prices".
8472
+ */
8473
+ interface EventTicketPurchasePrice {
8474
+ id: string;
8475
+ tenant?: (string | null) | Tenant;
8476
+ admissionType: string | EventAdmissionType;
8477
+ occurrence?: (string | null) | EventOccurrence;
8478
+ amountMinor: number;
8479
+ currency: string;
8480
+ updatedAt: string;
8481
+ createdAt: string;
8482
+ deletedAt?: string | null;
8483
+ }
8193
8484
  /**
8194
8485
  * Manage paid membership plans and benefit groups.
8195
8486
  *
@@ -8294,15 +8585,8 @@ interface CustomerPaymentMethod {
8294
8585
  /**
8295
8586
  * Pinned at issuance; the cron resolves the adapter from this
8296
8587
  */
8297
- mode: 'connect' | 'backend-charge' | 'delegated';
8298
- /**
8299
- * Encrypted payment token (written in P2)
8300
- */
8301
- token?: string | null;
8588
+ mode: 'delegated';
8302
8589
  customerRef?: string | null;
8303
- connectedAccountRef?: string | null;
8304
- submallRef?: string | null;
8305
- channelRef?: string | null;
8306
8590
  card?: {
8307
8591
  last4?: string | null;
8308
8592
  brand?: string | null;
@@ -8386,7 +8670,7 @@ interface MembershipCharge {
8386
8670
  id: string;
8387
8671
  tenant?: (string | null) | Tenant;
8388
8672
  membership: string | CustomerMembership;
8389
- customer?: (string | null) | Customer;
8673
+ customer: string | Customer;
8390
8674
  amount: number;
8391
8675
  currency: 'KRW' | 'USD' | 'EUR' | 'JPY';
8392
8676
  status: 'pending' | 'paid' | 'failed' | 'refunded' | 'voided' | 'disputed';
@@ -8395,10 +8679,12 @@ interface MembershipCharge {
8395
8679
  pgPaymentId?: string | null;
8396
8680
  pgRefundId?: string | null;
8397
8681
  pgProvider?: string | null;
8682
+ terminalDeclinePolicyVersion?: string | null;
8683
+ terminalDeclineReason?: string | null;
8398
8684
  periodStart: string;
8399
- periodEnd?: string | null;
8685
+ periodEnd: string;
8400
8686
  paidAt?: string | null;
8401
- idempotencyKey?: string | null;
8687
+ idempotencyKey: string;
8402
8688
  updatedAt: string;
8403
8689
  createdAt: string;
8404
8690
  }
@@ -8410,13 +8696,7 @@ interface TenantPaymentCredential {
8410
8696
  id: string;
8411
8697
  tenant?: (string | null) | Tenant;
8412
8698
  provider: string;
8413
- mode: 'connect' | 'backend-charge' | 'delegated';
8414
- connectedAccountRef?: string | null;
8415
- submallRef?: string | null;
8416
- secretKey?: string | null;
8417
- clientKey?: string | null;
8418
- storeId?: string | null;
8419
- channelKey?: string | null;
8699
+ mode: 'delegated';
8420
8700
  webhookSecret?: string | null;
8421
8701
  delegateChargeUrl?: string | null;
8422
8702
  isActive?: boolean | null;
@@ -9017,6 +9297,7 @@ interface AuditLogsSelect<T extends boolean = true> {
9017
9297
  */
9018
9298
  interface WebhookEventsSelect<T extends boolean = true> {
9019
9299
  tenant?: T;
9300
+ ownershipScope?: T;
9020
9301
  provider?: T;
9021
9302
  eventId?: T;
9022
9303
  receivedAt?: T;
@@ -9038,6 +9319,11 @@ interface WebhookDeliveriesSelect<T extends boolean = true> {
9038
9319
  endpointUrlHash?: T;
9039
9320
  collection?: T;
9040
9321
  operation?: T;
9322
+ eventType?: T;
9323
+ notificationEvent?: T;
9324
+ notificationIntentId?: T;
9325
+ notificationDedupeKey?: T;
9326
+ sourceId?: T;
9041
9327
  source?: T;
9042
9328
  statusCode?: T;
9043
9329
  errorKind?: T;
@@ -9078,12 +9364,29 @@ interface WebhookOutboxDeliveriesSelect<T extends boolean = true> {
9078
9364
  updatedAt?: T;
9079
9365
  createdAt?: T;
9080
9366
  }
9367
+ /**
9368
+ * This interface was referenced by `Config`'s JSON-Schema
9369
+ * via the `definition` "projects_select".
9370
+ */
9371
+ interface ProjectsSelect<T extends boolean = true> {
9372
+ name?: T;
9373
+ slug?: T;
9374
+ status?: T;
9375
+ authorityMode?: T;
9376
+ updatedAt?: T;
9377
+ createdAt?: T;
9378
+ }
9081
9379
  /**
9082
9380
  * This interface was referenced by `Config`'s JSON-Schema
9083
9381
  * via the `definition` "tenants_select".
9084
9382
  */
9085
9383
  interface TenantsSelect<T extends boolean = true> {
9086
9384
  webhookPurgeFencedAt?: T;
9385
+ project?: T;
9386
+ environmentKind?: T;
9387
+ environmentGeneration?: T;
9388
+ environmentState?: T;
9389
+ environmentIsCurrent?: T;
9087
9390
  name?: T;
9088
9391
  tenantPurpose?: T;
9089
9392
  testExpiresAt?: T;
@@ -9109,6 +9412,12 @@ interface TenantsSelect<T extends boolean = true> {
9109
9412
  origin?: T;
9110
9413
  id?: T;
9111
9414
  };
9415
+ embeddedAdminApp?: T | {
9416
+ enabled?: T;
9417
+ label?: T;
9418
+ origin?: T;
9419
+ path?: T;
9420
+ };
9112
9421
  senderIdentity?: T | {
9113
9422
  displayName?: T;
9114
9423
  replyTo?: T;
@@ -9251,6 +9560,7 @@ interface TenantPurgeJobsSelect<T extends boolean = true> {
9251
9560
  * via the `definition` "subscriptions_select".
9252
9561
  */
9253
9562
  interface SubscriptionsSelect<T extends boolean = true> {
9563
+ project?: T;
9254
9564
  tenant?: T;
9255
9565
  plan?: T;
9256
9566
  billingModel?: T;
@@ -9682,6 +9992,10 @@ interface AnalyticsEventSchemasSelect<T extends boolean = true> {
9682
9992
  */
9683
9993
  interface ApiUsageSelect<T extends boolean = true> {
9684
9994
  tenant?: T;
9995
+ project?: T;
9996
+ environmentKind?: T;
9997
+ environmentGeneration?: T;
9998
+ billable?: T;
9685
9999
  month?: T;
9686
10000
  apiCallCount?: T;
9687
10001
  plan?: T;
@@ -10124,6 +10438,7 @@ interface OrdersSelect<T extends boolean = true> {
10124
10438
  id?: T;
10125
10439
  };
10126
10440
  customerNote?: T;
10441
+ adminNotes?: T;
10127
10442
  transactions?: T;
10128
10443
  financialStatus?: T;
10129
10444
  reconciliationStatus?: T;
@@ -10150,6 +10465,8 @@ interface OrdersSelect<T extends boolean = true> {
10150
10465
  usageReserved?: T;
10151
10466
  priority?: T;
10152
10467
  inputOrder?: T;
10468
+ conditionDigest?: T;
10469
+ customerEligibilityEvidence?: T;
10153
10470
  id?: T;
10154
10471
  };
10155
10472
  discountAmount?: T;
@@ -10178,7 +10495,6 @@ interface OrdersSelect<T extends boolean = true> {
10178
10495
  };
10179
10496
  clientReferenceId?: T;
10180
10497
  integrationMetadata?: T;
10181
- adminNotes?: T;
10182
10498
  source?: T;
10183
10499
  tags?: T;
10184
10500
  tagSlugs?: T | {
@@ -10526,6 +10842,14 @@ interface PaymentRefundAttemptsSelect<T extends boolean = true> {
10526
10842
  localRefundedAmount?: T;
10527
10843
  localCommittedAt?: T;
10528
10844
  lastErrorCode?: T;
10845
+ returnOperation?: T;
10846
+ returnFinalizationStatus?: T;
10847
+ finalizedReturn?: T;
10848
+ returnRefundTransaction?: T;
10849
+ returnFinalizedAt?: T;
10850
+ returnLastErrorCode?: T;
10851
+ returnSuccessResponse?: T;
10852
+ returnResponseOutcome?: T;
10529
10853
  updatedAt?: T;
10530
10854
  createdAt?: T;
10531
10855
  }
@@ -10568,6 +10892,32 @@ interface PortonePaymentInteractionsSelect<T extends boolean = true> {
10568
10892
  updatedAt?: T;
10569
10893
  createdAt?: T;
10570
10894
  }
10895
+ /**
10896
+ * This interface was referenced by `Config`'s JSON-Schema
10897
+ * via the `definition` "commerce-payment-webhook-routes_select".
10898
+ */
10899
+ interface CommercePaymentWebhookRoutesSelect<T extends boolean = true> {
10900
+ tenant?: T;
10901
+ provider?: T;
10902
+ providerAccountKey?: T;
10903
+ anchor?: T;
10904
+ state?: T;
10905
+ rotationReason?: T;
10906
+ supersedesRoute?: T;
10907
+ issuedAt?: T;
10908
+ verifiedAt?: T;
10909
+ testReadbackAttestedAt?: T;
10910
+ testLastSignedDeliveryAt?: T;
10911
+ liveReadbackAttestedAt?: T;
10912
+ liveLastSignedDeliveryAt?: T;
10913
+ storeKeyedLastSignedDeliveryAt?: T;
10914
+ drainStartedAt?: T;
10915
+ revokedAt?: T;
10916
+ testReadbackUrl?: T;
10917
+ liveReadbackUrl?: T;
10918
+ updatedAt?: T;
10919
+ createdAt?: T;
10920
+ }
10571
10921
  /**
10572
10922
  * This interface was referenced by `Config`'s JSON-Schema
10573
10923
  * via the `definition` "payment-kernel-external-integrations_select".
@@ -11135,8 +11485,8 @@ interface CustomersSelect<T extends boolean = true> {
11135
11485
  _customers_customers_order?: T;
11136
11486
  _order?: T;
11137
11487
  tenant?: T;
11138
- name?: T;
11139
11488
  email?: T;
11489
+ name?: T;
11140
11490
  phone?: T;
11141
11491
  groups?: T;
11142
11492
  note?: T;
@@ -11157,7 +11507,6 @@ interface CustomersSelect<T extends boolean = true> {
11157
11507
  lastOrderAt?: T;
11158
11508
  profile?: T;
11159
11509
  customData?: T;
11160
- isMinor?: T;
11161
11510
  marketingConsent?: T | {
11162
11511
  email?: T | {
11163
11512
  state?: T;
@@ -11190,12 +11539,6 @@ interface CustomersSelect<T extends boolean = true> {
11190
11539
  unsubscribedAt?: T;
11191
11540
  };
11192
11541
  };
11193
- guardianConsent?: T | {
11194
- hasGuardianConsent?: T;
11195
- guardianName?: T;
11196
- guardianPhone?: T;
11197
- guardianConsentedAt?: T;
11198
- };
11199
11542
  acceptsTos?: T;
11200
11543
  tosVersion?: T;
11201
11544
  withdrawReason?: T;
@@ -11361,6 +11704,25 @@ interface CustomerGroupsSelect<T extends boolean = true> {
11361
11704
  createdAt?: T;
11362
11705
  deletedAt?: T;
11363
11706
  }
11707
+ /**
11708
+ * This interface was referenced by `Config`'s JSON-Schema
11709
+ * via the `definition` "customer-group-grants_select".
11710
+ */
11711
+ interface CustomerGroupGrantsSelect<T extends boolean = true> {
11712
+ tenant?: T;
11713
+ customer?: T;
11714
+ group?: T;
11715
+ grantedAt?: T;
11716
+ grantedByType?: T;
11717
+ grantedById?: T;
11718
+ reason?: T;
11719
+ revokedAt?: T;
11720
+ revokedByType?: T;
11721
+ revokedById?: T;
11722
+ revision?: T;
11723
+ updatedAt?: T;
11724
+ createdAt?: T;
11725
+ }
11364
11726
  /**
11365
11727
  * This interface was referenced by `Config`'s JSON-Schema
11366
11728
  * via the `definition` "carts_select".
@@ -11539,6 +11901,8 @@ interface CheckoutsSelect<T extends boolean = true> {
11539
11901
  usageReserved?: T;
11540
11902
  priority?: T;
11541
11903
  inputOrder?: T;
11904
+ conditionDigest?: T;
11905
+ customerEligibilityEvidence?: T;
11542
11906
  id?: T;
11543
11907
  };
11544
11908
  discountAmount?: T;
@@ -12757,6 +13121,9 @@ interface EventsSelect<T extends boolean = true> {
12757
13121
  endsAt?: T;
12758
13122
  timezone?: T;
12759
13123
  isAllDay?: T;
13124
+ allDayStartDate?: T;
13125
+ allDayEndDateExclusive?: T;
13126
+ allDayAuthorityTimezone?: T;
12760
13127
  recurrence?: T | {
12761
13128
  frequency?: T;
12762
13129
  interval?: T;
@@ -12764,6 +13131,7 @@ interface EventsSelect<T extends boolean = true> {
12764
13131
  endMode?: T;
12765
13132
  count?: T;
12766
13133
  until?: T;
13134
+ untilDate?: T;
12767
13135
  rrule?: T;
12768
13136
  rdates?: T | {
12769
13137
  date?: T;
@@ -12827,6 +13195,8 @@ interface EventAdmissionHoldsSelect<T extends boolean = true> {
12827
13195
  admissionType?: T;
12828
13196
  checkout?: T;
12829
13197
  checkoutItem?: T;
13198
+ ticketPurchase?: T;
13199
+ paymentKernelObligation?: T;
12830
13200
  quantity?: T;
12831
13201
  status?: T;
12832
13202
  expiresAt?: T;
@@ -12856,6 +13226,36 @@ interface EventAdmissionTypesSelect<T extends boolean = true> {
12856
13226
  createdAt?: T;
12857
13227
  deletedAt?: T;
12858
13228
  }
13229
+ /**
13230
+ * This interface was referenced by `Config`'s JSON-Schema
13231
+ * via the `definition` "event-ticket-purchases_select".
13232
+ */
13233
+ interface EventTicketPurchasesSelect<T extends boolean = true> {
13234
+ tenant?: T;
13235
+ idempotencyKey?: T;
13236
+ principalMinor?: T;
13237
+ currency?: T;
13238
+ components?: T;
13239
+ resultEntries?: T;
13240
+ refundEntries?: T;
13241
+ updatedAt?: T;
13242
+ createdAt?: T;
13243
+ deletedAt?: T;
13244
+ }
13245
+ /**
13246
+ * This interface was referenced by `Config`'s JSON-Schema
13247
+ * via the `definition` "event-ticket-purchase-prices_select".
13248
+ */
13249
+ interface EventTicketPurchasePricesSelect<T extends boolean = true> {
13250
+ tenant?: T;
13251
+ admissionType?: T;
13252
+ occurrence?: T;
13253
+ amountMinor?: T;
13254
+ currency?: T;
13255
+ updatedAt?: T;
13256
+ createdAt?: T;
13257
+ deletedAt?: T;
13258
+ }
12859
13259
  /**
12860
13260
  * This interface was referenced by `Config`'s JSON-Schema
12861
13261
  * via the `definition` "event-categories_select".
@@ -12904,6 +13304,9 @@ interface EventOccurrencesSelect<T extends boolean = true> {
12904
13304
  endsAt?: T;
12905
13305
  timezone?: T;
12906
13306
  isAllDay?: T;
13307
+ allDayStartDate?: T;
13308
+ allDayEndDateExclusive?: T;
13309
+ allDayAuthorityTimezone?: T;
12907
13310
  status?: T;
12908
13311
  parentPublic?: T;
12909
13312
  locationOverride?: T | {
@@ -12949,6 +13352,10 @@ interface EventRegistrationsSelect<T extends boolean = true> {
12949
13352
  answer?: T;
12950
13353
  id?: T;
12951
13354
  };
13355
+ creationChannel?: T;
13356
+ createdByOperator?: T;
13357
+ operatorAdmissionBasis?: T;
13358
+ confirmationNotificationPolicy?: T;
12952
13359
  approval?: T | {
12953
13360
  approvedAt?: T;
12954
13361
  approvedBy?: T;
@@ -13023,11 +13430,7 @@ interface CustomerPaymentMethodsSelect<T extends boolean = true> {
13023
13430
  customer?: T;
13024
13431
  provider?: T;
13025
13432
  mode?: T;
13026
- token?: T;
13027
13433
  customerRef?: T;
13028
- connectedAccountRef?: T;
13029
- submallRef?: T;
13030
- channelRef?: T;
13031
13434
  card?: T | {
13032
13435
  last4?: T;
13033
13436
  brand?: T;
@@ -13089,6 +13492,8 @@ interface MembershipChargesSelect<T extends boolean = true> {
13089
13492
  pgPaymentId?: T;
13090
13493
  pgRefundId?: T;
13091
13494
  pgProvider?: T;
13495
+ terminalDeclinePolicyVersion?: T;
13496
+ terminalDeclineReason?: T;
13092
13497
  periodStart?: T;
13093
13498
  periodEnd?: T;
13094
13499
  paidAt?: T;
@@ -13104,12 +13509,6 @@ interface TenantPaymentCredentialsSelect<T extends boolean = true> {
13104
13509
  tenant?: T;
13105
13510
  provider?: T;
13106
13511
  mode?: T;
13107
- connectedAccountRef?: T;
13108
- submallRef?: T;
13109
- secretKey?: T;
13110
- clientKey?: T;
13111
- storeId?: T;
13112
- channelKey?: T;
13113
13512
  webhookSecret?: T;
13114
13513
  delegateChargeUrl?: T;
13115
13514
  isActive?: T;
@@ -13151,6 +13550,11 @@ interface CommercePaymentAccountsSelect<T extends boolean = true> {
13151
13550
  };
13152
13551
  };
13153
13552
  isActive?: T;
13553
+ connectionReadinessState?: T;
13554
+ readinessCredentialVersion?: T;
13555
+ readinessConfigurationDigest?: T;
13556
+ readinessCheckedAt?: T;
13557
+ readinessReasonCode?: T;
13154
13558
  credentialVersion?: T;
13155
13559
  credentialState?: T;
13156
13560
  rotatedAt?: T;