@01.software/sdk 0.71.0 → 0.72.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 (43) hide show
  1. package/CHANGELOG.md +84 -0
  2. package/README.md +31 -1
  3. package/dist/client.cjs +74 -7
  4. package/dist/client.cjs.map +1 -1
  5. package/dist/client.d.cts +6 -6
  6. package/dist/client.d.ts +6 -6
  7. package/dist/client.js +74 -7
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-D18xyUq_.d.cts → collection-client-B3CnqMDQ.d.cts} +4 -4
  10. package/dist/{collection-client-CUGJcTpl.d.ts → collection-client-uOgS_1bC.d.ts} +4 -4
  11. package/dist/{const-Dlu0mXmj.d.ts → const-BJBK7jBl.d.ts} +1 -1
  12. package/dist/{const-oGEoxCXZ.d.cts → const-_ZfJjRQG.d.cts} +1 -1
  13. package/dist/{index-Ccd4NYTL.d.ts → index-CBaP4q8r.d.ts} +3 -3
  14. package/dist/{index-HHVtIKXs.d.cts → index-CI_LFWiG.d.cts} +3 -3
  15. package/dist/index.cjs +74 -7
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +7 -7
  18. package/dist/index.d.ts +7 -7
  19. package/dist/index.js +74 -7
  20. package/dist/index.js.map +1 -1
  21. package/dist/{payload-types-BgOEk6Y9.d.cts → payload-types-BRg8Yary.d.cts} +191 -166
  22. package/dist/{payload-types-BgOEk6Y9.d.ts → payload-types-BRg8Yary.d.ts} +191 -166
  23. package/dist/query.d.cts +5 -5
  24. package/dist/query.d.ts +5 -5
  25. package/dist/realtime.d.cts +2 -2
  26. package/dist/realtime.d.ts +2 -2
  27. package/dist/server.cjs +74 -7
  28. package/dist/server.cjs.map +1 -1
  29. package/dist/server.d.cts +7 -7
  30. package/dist/server.d.ts +7 -7
  31. package/dist/server.js +74 -7
  32. package/dist/server.js.map +1 -1
  33. package/dist/{types-nyOvcO0K.d.ts → types-Cmnxxvuv.d.ts} +46 -7
  34. package/dist/{types-DLHEIsAx.d.cts → types-CnkJQUez.d.cts} +46 -7
  35. package/dist/{types-CSvp2fJ_.d.ts → types-DLjSqL0P.d.ts} +2 -2
  36. package/dist/{types-BzG3NO7R.d.cts → types-FyklqLAk.d.cts} +2 -2
  37. package/dist/ui/form.d.cts +1 -1
  38. package/dist/ui/form.d.ts +1 -1
  39. package/dist/ui/video.d.cts +1 -1
  40. package/dist/ui/video.d.ts +1 -1
  41. package/dist/webhook.d.cts +5 -5
  42. package/dist/webhook.d.ts +5 -5
  43. package/package.json +2 -4
package/dist/server.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as CustomerGroupApi, h as ExternalEffectClaimsApi, I as InstallationCredentialsApi, i as ExternalCustomerLinksApi, j as BenefitVouchersApi, k as CreditsApi, V as VideoPlaybackClient, l as CommunityClient, m as BanCustomerParams, n as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, o as ClientState, p as ClientServerConfig, q as RootServerClientWithEvents } from './types-DLHEIsAx.cjs';
2
- export { A as AddItemParams, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, v as CancelServerPaymentSessionParams, w as CaptureExternalCustomerPreviousStateParams, x as CartApi, y as CartApiOptions, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, G as CheckoutAbandonedReason, H as CheckoutAmounts, J as CheckoutApi, K as CheckoutApiOptions, L as CheckoutListItem, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, P as CheckoutQueryParams, Q as CheckoutQueryResult, W as CheckoutShippingAddress, X as CheckoutStatus, Y as ClaimExternalEffectParams, Z as ClearCartParams, _ as CollectionCustomFieldDefinition, $ as CollectionCustomFields, a0 as CollectionFieldSchema, a1 as CollectionSchemaResponse, a2 as ConfirmCustomPaymentSessionOptions, a3 as ConfirmCustomPaymentSessionParams, a4 as ConfirmCustomPaymentSessionResponse, a5 as ConfirmTossPaymentSessionParams, a6 as ConnectExternalCustomerLinkParams, a7 as CreateCartParams, a8 as CreateCartResult, a9 as CreateCustomPaymentSessionParams, aa as CreateInstallationCredentialParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, ad as CreateServerCheckoutParams, ae as CreateServerCheckoutResult, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, ah as CustomPaymentSession, ai as CustomPaymentSessionProof, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, au as CustomerMembershipView, av as CustomerSnapshot, aw as DisposeInstallationCredentialParams, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, aY as ExternalCustomerLink, aZ as ExternalCustomerLinkListResponse, a_ as ExternalCustomerPreviousState, a$ as ExternalEffectClaimErrorReason, b0 as ExternalEffectClaimSnapshot, b1 as ExternalEffectClaimState, b2 as ExternalEffectLeaseParams, b3 as ExternalEffectLocator, b4 as FindPortOnePaymentParams, b5 as FindPortOnePaymentResult, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, b9 as GetExternalCustomerLinkParams, ba as GetExternalEffectClaimParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bd as InstallationCredentialIdentity, be as InstallationCredentialSnapshot, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bl as ListExternalCustomerLinksParams, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, bo as MembershipStatus, bp as ModerationApi, bq as Money, br as MutateBenefitVoucherResponse, bs as MutateExternalCustomerLinkParams, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, bx as OpenCheckoutPaymentState, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bC as PaymentSessionApi, bD as PaymentSessionApiOptions, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bG as PortOnePaymentCurrentState, bH as PortOnePaymentNextAction, bI as PortOnePaymentReconciliationApi, bJ as PortOnePaymentSelector, bK as PortOnePublicPaymentSession, bL as PortOneReconciliationDisposition, bM as ProductGraphRevisionParams, bN as ProductGraphRevisionResponse, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, c6 as ReconcilePortOnePaymentParams, c7 as ReconcilePortOnePaymentResult, c8 as ReconciliationRequired, c9 as RecordExternalEffectRecoveryParams, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, cc as ReplaceInstallationCredentialParams, cd as ReportExternalEffectParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, cg as RetrieveCustomPaymentSessionParams, ch as RetrieveServerCheckoutParams, ci as RetrieveServerPaymentSessionParams, cj as RetrievedCustomPaymentSession, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, cn as RootServerClient, co as ServerAddItemParams, cp as ServerCartMergeParams, cq as ServerCartMineParams, cr as ServerCheckout, cs as ServerUpdateItemParams, ct as ShippingLine, cu as SpentCheckoutPaymentState, cv as TENANT_CONTEXT_PATH, cw as TenantContextInput, cx as TenantContextResponse, cy as TenantCustomFieldType, cz as TenantFeatureProgressEvidenceValue, cA as TenantFeatureProgressFeature, cB as TenantFeatureProgressGroup, cC as TenantFeatureProgressInput, cD as TenantFeatureProgressItem, cE as TenantFeatureProgressItemState, cF as TenantFeatureProgressResponse, cG as TenantFeatureProgressSeverity, cH as TenantFeatureProgressStatus, cI as TenantFieldConfigState, cJ as TenantIntrospectionApi, cK as TenantIntrospectionApiOptions, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, cN as UpdateItemParams, cO as VariantInput, cP as VariantPricesUpdateInput, cQ as VariantPricesUpdateParams, cR as VariantPricesUpdateResponse, cS as VoidBenefitVoucherRequest, cT as getExternalEffectClaimErrorReason, cU as invalidBenefitVoucherResponse, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, c$ as parseRevokeCustomerCredit } from './types-DLHEIsAx.cjs';
3
- import { S as ServerCollectionClient } from './collection-client-D18xyUq_.cjs';
4
- export { C as CollectionClient } from './collection-client-D18xyUq_.cjs';
5
- import './payload-types-BgOEk6Y9.cjs';
1
+ import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as CustomerGroupApi, h as ExternalEffectClaimsApi, I as InstallationCredentialsApi, i as ExternalCustomerLinksApi, j as BenefitVouchersApi, k as CreditsApi, V as VideoPlaybackClient, l as CommunityClient, m as BanCustomerParams, n as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, o as ClientState, p as ClientServerConfig, q as RootServerClientWithEvents } from './types-CnkJQUez.cjs';
2
+ export { A as AddItemParams, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, v as CancelServerPaymentSessionParams, w as CaptureExternalCustomerPreviousStateParams, x as CartApi, y as CartApiOptions, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, G as CheckoutAbandonedReason, H as CheckoutAmounts, J as CheckoutApi, K as CheckoutApiOptions, L as CheckoutListItem, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, P as CheckoutQueryParams, Q as CheckoutQueryResult, W as CheckoutShippingAddress, X as CheckoutStatus, Y as ClaimExternalEffectParams, Z as ClearCartParams, _ as CollectionCustomFieldDefinition, $ as CollectionCustomFields, a0 as CollectionFieldSchema, a1 as CollectionSchemaResponse, a2 as ConfirmCustomPaymentSessionOptions, a3 as ConfirmCustomPaymentSessionParams, a4 as ConfirmCustomPaymentSessionResponse, a5 as ConfirmTossPaymentSessionParams, a6 as ConnectExternalCustomerLinkParams, a7 as CreateCartParams, a8 as CreateCartResult, a9 as CreateCustomPaymentSessionParams, aa as CreateInstallationCredentialParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, ad as CreateServerCheckoutParams, ae as CreateServerCheckoutResult, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, ah as CustomPaymentSession, ai as CustomPaymentSessionProof, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, au as CustomerMembershipView, av as CustomerSnapshot, aw as DisposeInstallationCredentialParams, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, aY as ExternalCustomerLink, aZ as ExternalCustomerLinkListResponse, a_ as ExternalCustomerPreviousState, a$ as ExternalEffectClaimErrorReason, b0 as ExternalEffectClaimSnapshot, b1 as ExternalEffectClaimState, b2 as ExternalEffectLeaseParams, b3 as ExternalEffectLocator, b4 as FindPortOnePaymentParams, b5 as FindPortOnePaymentResult, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, b9 as GetExternalCustomerLinkParams, ba as GetExternalEffectClaimParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bd as InstallationCredentialIdentity, be as InstallationCredentialSnapshot, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bl as ListExternalCustomerLinksParams, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, bo as MembershipStatus, bp as ModerationApi, bq as Money, br as MutateBenefitVoucherResponse, bs as MutateExternalCustomerLinkParams, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, bx as OpenCheckoutPaymentState, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bC as PaymentSessionApi, bD as PaymentSessionApiOptions, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bG as PortOnePaymentCurrentState, bH as PortOnePaymentNextAction, bI as PortOnePaymentReconciliationApi, bJ as PortOnePaymentSelector, bK as PortOnePublicPaymentSession, bL as PortOneReconciliationDisposition, bM as ProductGraphRevisionParams, bN as ProductGraphRevisionResponse, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, c6 as ReconcilePortOnePaymentParams, c7 as ReconcilePortOnePaymentResult, c8 as ReconciliationRequired, c9 as RecordExternalEffectRecoveryParams, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, cc as ReplaceInstallationCredentialParams, cd as ReportExternalEffectParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, cg as RetrieveCustomPaymentSessionParams, ch as RetrieveServerCheckoutParams, ci as RetrieveServerPaymentSessionParams, cj as RetrievedCustomPaymentSession, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, cn as RootServerClient, co as ServerAddItemParams, cp as ServerCartMergeParams, cq as ServerCartMineParams, cr as ServerCheckout, cs as ServerUpdateItemParams, ct as ShippingLine, cu as SpentCheckoutPaymentState, cv as TENANT_CONTEXT_PATH, cw as TenantContextInput, cx as TenantContextResponse, cy as TenantCustomFieldType, cz as TenantFeatureProgressEvidenceValue, cA as TenantFeatureProgressFeature, cB as TenantFeatureProgressGroup, cC as TenantFeatureProgressInput, cD as TenantFeatureProgressItem, cE as TenantFeatureProgressItemState, cF as TenantFeatureProgressResponse, cG as TenantFeatureProgressSeverity, cH as TenantFeatureProgressStatus, cI as TenantFieldConfigState, cJ as TenantIntrospectionApi, cK as TenantIntrospectionApiOptions, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, cN as UpdateItemParams, cO as VariantInput, cP as VariantPricesUpdateInput, cQ as VariantPricesUpdateParams, cR as VariantPricesUpdateResponse, cS as VoidBenefitVoucherRequest, cT as getExternalEffectClaimErrorReason, cU as invalidBenefitVoucherResponse, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, c$ as parseRevokeCustomerCredit } from './types-CnkJQUez.cjs';
3
+ import { S as ServerCollectionClient } from './collection-client-B3CnqMDQ.cjs';
4
+ export { C as CollectionClient } from './collection-client-B3CnqMDQ.cjs';
5
+ import './payload-types-BRg8Yary.cjs';
6
6
  export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
7
- import './const-oGEoxCXZ.cjs';
8
- import './types-BzG3NO7R.cjs';
7
+ import './const-_ZfJjRQG.cjs';
8
+ import './types-FyklqLAk.cjs';
9
9
  import './metadata.cjs';
10
10
 
11
11
  type PreviewDetailParams = {
package/dist/server.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as CustomerGroupApi, h as ExternalEffectClaimsApi, I as InstallationCredentialsApi, i as ExternalCustomerLinksApi, j as BenefitVouchersApi, k as CreditsApi, V as VideoPlaybackClient, l as CommunityClient, m as BanCustomerParams, n as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, o as ClientState, p as ClientServerConfig, q as RootServerClientWithEvents } from './types-nyOvcO0K.js';
2
- export { A as AddItemParams, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, v as CancelServerPaymentSessionParams, w as CaptureExternalCustomerPreviousStateParams, x as CartApi, y as CartApiOptions, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, G as CheckoutAbandonedReason, H as CheckoutAmounts, J as CheckoutApi, K as CheckoutApiOptions, L as CheckoutListItem, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, P as CheckoutQueryParams, Q as CheckoutQueryResult, W as CheckoutShippingAddress, X as CheckoutStatus, Y as ClaimExternalEffectParams, Z as ClearCartParams, _ as CollectionCustomFieldDefinition, $ as CollectionCustomFields, a0 as CollectionFieldSchema, a1 as CollectionSchemaResponse, a2 as ConfirmCustomPaymentSessionOptions, a3 as ConfirmCustomPaymentSessionParams, a4 as ConfirmCustomPaymentSessionResponse, a5 as ConfirmTossPaymentSessionParams, a6 as ConnectExternalCustomerLinkParams, a7 as CreateCartParams, a8 as CreateCartResult, a9 as CreateCustomPaymentSessionParams, aa as CreateInstallationCredentialParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, ad as CreateServerCheckoutParams, ae as CreateServerCheckoutResult, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, ah as CustomPaymentSession, ai as CustomPaymentSessionProof, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, au as CustomerMembershipView, av as CustomerSnapshot, aw as DisposeInstallationCredentialParams, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, aY as ExternalCustomerLink, aZ as ExternalCustomerLinkListResponse, a_ as ExternalCustomerPreviousState, a$ as ExternalEffectClaimErrorReason, b0 as ExternalEffectClaimSnapshot, b1 as ExternalEffectClaimState, b2 as ExternalEffectLeaseParams, b3 as ExternalEffectLocator, b4 as FindPortOnePaymentParams, b5 as FindPortOnePaymentResult, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, b9 as GetExternalCustomerLinkParams, ba as GetExternalEffectClaimParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bd as InstallationCredentialIdentity, be as InstallationCredentialSnapshot, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bl as ListExternalCustomerLinksParams, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, bo as MembershipStatus, bp as ModerationApi, bq as Money, br as MutateBenefitVoucherResponse, bs as MutateExternalCustomerLinkParams, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, bx as OpenCheckoutPaymentState, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bC as PaymentSessionApi, bD as PaymentSessionApiOptions, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bG as PortOnePaymentCurrentState, bH as PortOnePaymentNextAction, bI as PortOnePaymentReconciliationApi, bJ as PortOnePaymentSelector, bK as PortOnePublicPaymentSession, bL as PortOneReconciliationDisposition, bM as ProductGraphRevisionParams, bN as ProductGraphRevisionResponse, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, c6 as ReconcilePortOnePaymentParams, c7 as ReconcilePortOnePaymentResult, c8 as ReconciliationRequired, c9 as RecordExternalEffectRecoveryParams, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, cc as ReplaceInstallationCredentialParams, cd as ReportExternalEffectParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, cg as RetrieveCustomPaymentSessionParams, ch as RetrieveServerCheckoutParams, ci as RetrieveServerPaymentSessionParams, cj as RetrievedCustomPaymentSession, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, cn as RootServerClient, co as ServerAddItemParams, cp as ServerCartMergeParams, cq as ServerCartMineParams, cr as ServerCheckout, cs as ServerUpdateItemParams, ct as ShippingLine, cu as SpentCheckoutPaymentState, cv as TENANT_CONTEXT_PATH, cw as TenantContextInput, cx as TenantContextResponse, cy as TenantCustomFieldType, cz as TenantFeatureProgressEvidenceValue, cA as TenantFeatureProgressFeature, cB as TenantFeatureProgressGroup, cC as TenantFeatureProgressInput, cD as TenantFeatureProgressItem, cE as TenantFeatureProgressItemState, cF as TenantFeatureProgressResponse, cG as TenantFeatureProgressSeverity, cH as TenantFeatureProgressStatus, cI as TenantFieldConfigState, cJ as TenantIntrospectionApi, cK as TenantIntrospectionApiOptions, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, cN as UpdateItemParams, cO as VariantInput, cP as VariantPricesUpdateInput, cQ as VariantPricesUpdateParams, cR as VariantPricesUpdateResponse, cS as VoidBenefitVoucherRequest, cT as getExternalEffectClaimErrorReason, cU as invalidBenefitVoucherResponse, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, c$ as parseRevokeCustomerCredit } from './types-nyOvcO0K.js';
3
- import { S as ServerCollectionClient } from './collection-client-CUGJcTpl.js';
4
- export { C as CollectionClient } from './collection-client-CUGJcTpl.js';
5
- import './payload-types-BgOEk6Y9.js';
1
+ import { R as RawBaseApi, S as ServerApiOptions, a as ServerCommerceClient, T as TenantIntrospectionClient, b as SubscribeMembershipParams, c as SubscribeMembershipResponse, E as EndSubscribeIntentParams, d as EndSubscribeIntentResponse, C as CancelMembershipParams, e as CancelMembershipResponse, B as BillingCustodyParams, f as BillingCustodyResponse, g as CustomerGroupApi, h as ExternalEffectClaimsApi, I as InstallationCredentialsApi, i as ExternalCustomerLinksApi, j as BenefitVouchersApi, k as CreditsApi, V as VideoPlaybackClient, l as CommunityClient, m as BanCustomerParams, n as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, o as ClientState, p as ClientServerConfig, q as RootServerClientWithEvents } from './types-Cmnxxvuv.js';
2
+ export { A as AddItemParams, r as BENEFIT_VOUCHER_ERROR_REASONS, s as BENEFIT_VOUCHER_VOID_REASONS, t as BenefitVoucher, u as BenefitVoucherErrorReason, v as CancelServerPaymentSessionParams, w as CaptureExternalCustomerPreviousStateParams, x as CartApi, y as CartApiOptions, z as CartMergeResult, D as CartMineResult, F as CartMutationResult, G as CheckoutAbandonedReason, H as CheckoutAmounts, J as CheckoutApi, K as CheckoutApiOptions, L as CheckoutListItem, N as CheckoutOrderReference, O as CheckoutPaymentSessionRef, P as CheckoutQueryParams, Q as CheckoutQueryResult, W as CheckoutShippingAddress, X as CheckoutStatus, Y as ClaimExternalEffectParams, Z as ClearCartParams, _ as CollectionCustomFieldDefinition, $ as CollectionCustomFields, a0 as CollectionFieldSchema, a1 as CollectionSchemaResponse, a2 as ConfirmCustomPaymentSessionOptions, a3 as ConfirmCustomPaymentSessionParams, a4 as ConfirmCustomPaymentSessionResponse, a5 as ConfirmTossPaymentSessionParams, a6 as ConnectExternalCustomerLinkParams, a7 as CreateCartParams, a8 as CreateCartResult, a9 as CreateCustomPaymentSessionParams, aa as CreateInstallationCredentialParams, ab as CreatePaymentSessionParams, ac as CreatePortOnePaymentSessionParams, ad as CreateServerCheckoutParams, ae as CreateServerCheckoutResult, af as CreateServerPaymentSessionParams, ag as CreateServerPortOnePaymentSessionParams, ah as CustomPaymentSession, ai as CustomPaymentSessionProof, aj as CustomerBenefitVoucher, ak as CustomerCreditAccountResponse, al as CustomerCreditBalances, am as CustomerCreditGrant, an as CustomerGroupApiOptions, ao as CustomerGroupManualSource, ap as CustomerGroupMember, aq as CustomerGroupMemberCommandResponse, ar as CustomerGroupMemberSource, as as CustomerGroupMembershipSource, at as CustomerGroupMembershipState, au as CustomerMembershipView, av as CustomerSnapshot, aw as DisposeInstallationCredentialParams, ax as EventAdmissionAvailabilityParams, ay as EventAdmissionAvailabilityResponse, az as EventAdmissionAvailabilityType, aA as EventAdmissionPricePresentment, aB as EventGuestCancelParams, aC as EventGuestRegistration, aD as EventGuestRegistrationResponse, aE as EventMyRegistration, aF as EventMyRegistrationsParams, aG as EventMyRegistrationsResponse, aH as EventRegistrationAnswerInput, aI as EventRegistrationAttendeeInput, aJ as EventRegistrationPublic, aK as EventRegistrationRegisterParams, aL as EventRegistrationRegisterResponse, aM as EventsCalendarItem, aN as EventsClient, aO as EventsClientOptions, aP as EventsDateParam, aQ as EventsExternalSource, aR as EventsLocation, aS as EventsOccurrenceLocation, aT as EventsRangeEvent, aU as EventsRangeOccurrence, aV as EventsRangeParams, aW as EventsRangeResponse, aX as EventsTaxonomyItem, aY as ExternalCustomerLink, aZ as ExternalCustomerLinkListResponse, a_ as ExternalCustomerPreviousState, a$ as ExternalEffectClaimErrorReason, b0 as ExternalEffectClaimSnapshot, b1 as ExternalEffectClaimState, b2 as ExternalEffectLeaseParams, b3 as ExternalEffectLocator, b4 as FindPortOnePaymentParams, b5 as FindPortOnePaymentResult, b6 as GetBenefitVoucherRequest, b7 as GetCustomerCreditAccountRequest, b8 as GetCustomerCreditGrantRequest, b9 as GetExternalCustomerLinkParams, ba as GetExternalEffectClaimParams, bb as GrantCustomerCreditRequest, bc as GrantCustomerGroupMemberParams, bd as InstallationCredentialIdentity, be as InstallationCredentialSnapshot, bf as IssueBenefitVoucherRequest, bg as IssueBenefitVoucherResponse, bh as ListBenefitVouchersRequest, bi as ListBenefitVouchersResponse, bj as ListCustomerGroupMembersParams, bk as ListCustomerGroupMembersResponse, bl as ListExternalCustomerLinksParams, bm as ListMyBenefitVouchersRequest, bn as ListMyBenefitVouchersResponse, bo as MembershipStatus, bp as ModerationApi, bq as Money, br as MutateBenefitVoucherResponse, bs as MutateExternalCustomerLinkParams, bt as MyCustomerCreditHistoryRequest, bu as MyCustomerCreditHistoryResponse, bv as MyCustomerCreditsRequest, bw as MyCustomerCreditsResponse, bx as OpenCheckoutPaymentState, by as PaymentFailureReason, bz as PaymentNextAction, bA as PaymentProviderStatus, bB as PaymentReconciliationReason, bC as PaymentSessionApi, bD as PaymentSessionApiOptions, bE as PaymentSessionRole, bF as PortOneHostedPaymentMethod, bG as PortOnePaymentCurrentState, bH as PortOnePaymentNextAction, bI as PortOnePaymentReconciliationApi, bJ as PortOnePaymentSelector, bK as PortOnePublicPaymentSession, bL as PortOneReconciliationDisposition, bM as ProductGraphRevisionParams, bN as ProductGraphRevisionResponse, bO as ProductUpsertInput, bP as ProductUpsertParams, bQ as ProductUpsertResponse, bR as ProductUpsertVariantInput, bS as PublicAttribute, bT as PublicCaptureEvidence, bU as PublicCart, bV as PublicCartItem, bW as PublicCartItemAdmission, bX as PublicCartMarket, bY as PublicCartReference, bZ as PublicCheckout, b_ as PublicCheckoutItem, b$ as PublicMediaAsset, c0 as PublicMediaSize, c1 as PublicOrder, c2 as PublicOrderAmounts, c3 as PublicOrderItem, c4 as PublicOrderReference, c5 as PublicPaymentSession, c6 as ReconcilePortOnePaymentParams, c7 as ReconcilePortOnePaymentResult, c8 as ReconciliationRequired, c9 as RecordExternalEffectRecoveryParams, ca as RedeemBenefitVoucherRequest, cb as RemoveItemParams, cc as ReplaceInstallationCredentialParams, cd as ReportExternalEffectParams, ce as RetrieveCartParams, cf as RetrieveCheckoutParams, cg as RetrieveCustomPaymentSessionParams, ch as RetrieveServerCheckoutParams, ci as RetrieveServerPaymentSessionParams, cj as RetrievedCustomPaymentSession, ck as RevokeCustomerCreditRequest, cl as RevokeCustomerCreditResponse, cm as RevokeCustomerGroupMemberParams, cn as RootServerClient, co as ServerAddItemParams, cp as ServerCartMergeParams, cq as ServerCartMineParams, cr as ServerCheckout, cs as ServerUpdateItemParams, ct as ShippingLine, cu as SpentCheckoutPaymentState, cv as TENANT_CONTEXT_PATH, cw as TenantContextInput, cx as TenantContextResponse, cy as TenantCustomFieldType, cz as TenantFeatureProgressEvidenceValue, cA as TenantFeatureProgressFeature, cB as TenantFeatureProgressGroup, cC as TenantFeatureProgressInput, cD as TenantFeatureProgressItem, cE as TenantFeatureProgressItemState, cF as TenantFeatureProgressResponse, cG as TenantFeatureProgressSeverity, cH as TenantFeatureProgressStatus, cI as TenantFieldConfigState, cJ as TenantIntrospectionApi, cK as TenantIntrospectionApiOptions, cL as UpdateCartAttributesParams, cM as UpdateDiscountCodesParams, cN as UpdateItemParams, cO as VariantInput, cP as VariantPricesUpdateInput, cQ as VariantPricesUpdateParams, cR as VariantPricesUpdateResponse, cS as VoidBenefitVoucherRequest, cT as getExternalEffectClaimErrorReason, cU as invalidBenefitVoucherResponse, cV as parseBenefitVoucher, cW as parseBenefitVoucherList, cX as parseCustomerCreditAccount, cY as parseCustomerCreditGrant, cZ as parseMyCustomerCreditHistory, c_ as parseMyCustomerCredits, c$ as parseRevokeCustomerCredit } from './types-Cmnxxvuv.js';
3
+ import { S as ServerCollectionClient } from './collection-client-uOgS_1bC.js';
4
+ export { C as CollectionClient } from './collection-client-uOgS_1bC.js';
5
+ import './payload-types-BRg8Yary.js';
6
6
  export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
7
- import './const-Dlu0mXmj.js';
8
- import './types-CSvp2fJ_.js';
7
+ import './const-BJBK7jBl.js';
8
+ import './types-DLjSqL0P.js';
9
9
  import './metadata.js';
10
10
 
11
11
  type PreviewDetailParams = {
package/dist/server.js CHANGED
@@ -2932,7 +2932,18 @@ var ABANDONED_REASONS = ["expired", "customer", "operator"];
2932
2932
  function managedPaymentProviders(providers) {
2933
2933
  return providers;
2934
2934
  }
2935
- var PAYMENT_PROVIDERS = managedPaymentProviders(["toss", "portone"]);
2935
+ var PAYMENT_PROVIDERS = managedPaymentProviders([
2936
+ "toss",
2937
+ "portone",
2938
+ "stripe"
2939
+ ]);
2940
+ var CANCEL_RECOVERY_METHODS = {
2941
+ toss: "cancel()",
2942
+ portone: "cancelPortOne()",
2943
+ stripe: null
2944
+ };
2945
+ var STRIPE_RETURN_URL_RAW_CHARACTERS = /^[^\s\u0000-\u001F\u007F\\]+$/;
2946
+ var STRIPE_RETURN_URL_AUTHORITY = /^[A-Za-z][A-Za-z0-9+.-]*:\/\/[^/?#@]+(?:[/?#]|$)/;
2936
2947
  var PAYMENT_PROVIDER_STATUSES = [
2937
2948
  "requires_payment_method",
2938
2949
  "requires_action",
@@ -2993,11 +3004,8 @@ function fail(resource, path, expected) {
2993
3004
  invalidCanonicalResponse(resource, { path, expected });
2994
3005
  }
2995
3006
  function providerMismatch(resource, expected, actual, operation2) {
2996
- if (operation2 === "cancel") {
2997
- const method = {
2998
- toss: "cancel()",
2999
- portone: "cancelPortOne()"
3000
- }[actual];
3007
+ const method = CANCEL_RECOVERY_METHODS[actual];
3008
+ if (operation2 === "cancel" && method !== null) {
3001
3009
  throw createApiError(
3002
3010
  `Canonical ${resource} response provider mismatch: expected ${expected}, received ${actual}.`,
3003
3011
  502,
@@ -4188,6 +4196,65 @@ function validateRequiredReconciliation(value, allowed, resource, path) {
4188
4196
  }
4189
4197
  function validateNextAction(value, provider, resource, path) {
4190
4198
  const action = record(value, resource, path);
4199
+ if (provider === "stripe") {
4200
+ exact(
4201
+ action,
4202
+ ["type", "clientSecret", "publishableKey", "returnUrl"],
4203
+ [],
4204
+ resource,
4205
+ path
4206
+ );
4207
+ if (action.type !== "stripe_payment_element")
4208
+ fail(resource, `${path}.type`, "stripe_payment_element");
4209
+ const clientSecret = boundedString(
4210
+ action.clientSecret,
4211
+ 255,
4212
+ resource,
4213
+ `${path}.clientSecret`
4214
+ );
4215
+ if (!/^pi_[A-Za-z0-9]+_secret_[A-Za-z0-9]+$/.test(clientSecret)) {
4216
+ fail(
4217
+ resource,
4218
+ `${path}.clientSecret`,
4219
+ "Stripe PaymentIntent client secret"
4220
+ );
4221
+ }
4222
+ const publishableKey = boundedString(
4223
+ action.publishableKey,
4224
+ 255,
4225
+ resource,
4226
+ `${path}.publishableKey`
4227
+ );
4228
+ if (!/^pk_(?:test|live)_[A-Za-z0-9]+$/.test(publishableKey)) {
4229
+ fail(resource, `${path}.publishableKey`, "Stripe publishable key");
4230
+ }
4231
+ const returnUrl = boundedString(
4232
+ action.returnUrl,
4233
+ 2048,
4234
+ resource,
4235
+ `${path}.returnUrl`
4236
+ );
4237
+ if (!STRIPE_RETURN_URL_RAW_CHARACTERS.test(returnUrl) || !STRIPE_RETURN_URL_AUTHORITY.test(returnUrl)) {
4238
+ fail(
4239
+ resource,
4240
+ `${path}.returnUrl`,
4241
+ "HTTPS or loopback URL without embedded credentials"
4242
+ );
4243
+ }
4244
+ try {
4245
+ const parsed = new URL(returnUrl);
4246
+ const loopback = parsed.protocol === "http:" && (parsed.hostname === "localhost" || parsed.hostname === "127.0.0.1");
4247
+ if (!loopback && parsed.protocol !== "https:" || parsed.username || parsed.password)
4248
+ throw new Error("unsafe return URL");
4249
+ } catch {
4250
+ fail(
4251
+ resource,
4252
+ `${path}.returnUrl`,
4253
+ "HTTPS or loopback URL without embedded credentials"
4254
+ );
4255
+ }
4256
+ return;
4257
+ }
4191
4258
  if (provider === "portone") {
4192
4259
  if (action.type === "portone_sdk") {
4193
4260
  const hasCancelable = "cancelable" in action;
@@ -4563,7 +4630,7 @@ function validatePublicPaymentSession(value, expectedProvider, operation2) {
4563
4630
  );
4564
4631
  }
4565
4632
  if (expectedProvider !== void 0 && provider !== expectedProvider) {
4566
- if (operation2 === "cancel" && status !== "canceling" && status !== "canceled") {
4633
+ if (operation2 === "cancel" && CANCEL_RECOVERY_METHODS[provider] !== null && status !== "canceling" && status !== "canceled") {
4567
4634
  fail(
4568
4635
  resource,
4569
4636
  "$.providerStatus",