@01.software/sdk 0.72.1 → 0.73.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 +34 -0
  2. package/README.md +40 -0
  3. package/dist/client.cjs +9 -2
  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 +9 -2
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-B3CnqMDQ.d.cts → collection-client-BH4dIZ6c.d.cts} +4 -4
  10. package/dist/{collection-client-uOgS_1bC.d.ts → collection-client-lLAl3xCZ.d.ts} +4 -4
  11. package/dist/{const-_ZfJjRQG.d.cts → const-BS2EaIp4.d.cts} +1 -1
  12. package/dist/{const-BJBK7jBl.d.ts → const-CCvoknRY.d.ts} +1 -1
  13. package/dist/{index-CI_LFWiG.d.cts → index-CHdrzJ8-.d.cts} +3 -3
  14. package/dist/{index-CBaP4q8r.d.ts → index-DVqNpmsc.d.ts} +3 -3
  15. package/dist/index.cjs +10 -3
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +14 -11
  18. package/dist/index.d.ts +14 -11
  19. package/dist/index.js +10 -3
  20. package/dist/index.js.map +1 -1
  21. package/dist/{payload-types-BRg8Yary.d.cts → payload-types-PXkmefhZ.d.cts} +77 -20
  22. package/dist/{payload-types-BRg8Yary.d.ts → payload-types-PXkmefhZ.d.ts} +77 -20
  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 +39 -10
  28. package/dist/server.cjs.map +1 -1
  29. package/dist/server.d.cts +8 -7
  30. package/dist/server.d.ts +8 -7
  31. package/dist/server.js +39 -10
  32. package/dist/server.js.map +1 -1
  33. package/dist/{types-DLjSqL0P.d.ts → types-CQRsG6sA.d.ts} +2 -2
  34. package/dist/{types-CnkJQUez.d.cts → types-Chwgg4CQ.d.cts} +21 -4
  35. package/dist/{types-FyklqLAk.d.cts → types-CyMz0Kzc.d.cts} +2 -2
  36. package/dist/{types-Cmnxxvuv.d.ts → types-lbzbJSZh.d.ts} +21 -4
  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 +1 -1
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-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';
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 BillingCustodyContextParams, h as BillingCustodyContextResponse, i as CustomerGroupApi, j as ExternalEffectClaimsApi, I as InstallationCredentialsApi, k as ExternalCustomerLinksApi, l as BenefitVouchersApi, m as CreditsApi, V as VideoPlaybackClient, n as CommunityClient, o as BanCustomerParams, p as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, q as ClientState, r as ClientServerConfig, s as RootServerClientWithEvents } from './types-Chwgg4CQ.cjs';
2
+ export { A as AddItemParams, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, x as CancelServerPaymentSessionParams, y as CaptureExternalCustomerPreviousStateParams, z as CartApi, D as CartApiOptions, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, L as CheckoutApi, N as CheckoutApiOptions, O as CheckoutListItem, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, W as CheckoutQueryParams, X as CheckoutQueryResult, Y as CheckoutShippingAddress, Z as CheckoutStatus, _ as ClaimExternalEffectParams, $ as ClearCartParams, a0 as CollectionCustomFieldDefinition, a1 as CollectionCustomFields, a2 as CollectionFieldSchema, a3 as CollectionSchemaResponse, a4 as ConfirmCustomPaymentSessionOptions, a5 as ConfirmCustomPaymentSessionParams, a6 as ConfirmCustomPaymentSessionResponse, a7 as ConfirmTossPaymentSessionParams, a8 as ConnectExternalCustomerLinkParams, a9 as CreateCartParams, aa as CreateCartResult, ab as CreateCustomPaymentSessionParams, ac as CreateInstallationCredentialParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, af as CreateServerCheckoutParams, ag as CreateServerCheckoutResult, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, aj as CustomPaymentSession, ak as CustomPaymentSessionProof, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, aw as CustomerMembershipView, ax as CustomerSnapshot, ay as DisposeInstallationCredentialParams, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, a_ as ExternalCustomerLink, a$ as ExternalCustomerLinkListResponse, b0 as ExternalCustomerPreviousState, b1 as ExternalEffectClaimErrorReason, b2 as ExternalEffectClaimSnapshot, b3 as ExternalEffectClaimState, b4 as ExternalEffectLeaseParams, b5 as ExternalEffectLocator, b6 as FindPortOnePaymentParams, b7 as FindPortOnePaymentResult, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, bb as GetExternalCustomerLinkParams, bc as GetExternalEffectClaimParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bf as InstallationCredentialIdentity, bg as InstallationCredentialSnapshot, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bn as ListExternalCustomerLinksParams, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, bq as MembershipStatus, br as ModerationApi, bs as Money, bt as MutateBenefitVoucherResponse, bu as MutateExternalCustomerLinkParams, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, bz as OpenCheckoutPaymentState, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bE as PaymentSessionApi, bF as PaymentSessionApiOptions, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bI as PortOnePaymentCurrentState, bJ as PortOnePaymentNextAction, bK as PortOnePaymentReconciliationApi, bL as PortOnePaymentSelector, bM as PortOnePublicPaymentSession, bN as PortOneReconciliationDisposition, bO as ProductGraphRevisionParams, bP as ProductGraphRevisionResponse, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, c8 as ReconcilePortOnePaymentParams, c9 as ReconcilePortOnePaymentResult, ca as ReconciliationRequired, cb as RecordExternalEffectRecoveryParams, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, ce as ReplaceInstallationCredentialParams, cf as ReportExternalEffectParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, ci as RetrieveCustomPaymentSessionParams, cj as RetrieveServerCheckoutParams, ck as RetrieveServerPaymentSessionParams, cl as RetrievedCustomPaymentSession, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, cp as RootServerClient, cq as ServerAddItemParams, cr as ServerCartMergeParams, cs as ServerCartMineParams, ct as ServerCheckout, cu as ServerUpdateItemParams, cv as ShippingLine, cw as SpentCheckoutPaymentState, cx as TENANT_CONTEXT_PATH, cy as TenantContextInput, cz as TenantContextResponse, cA as TenantCustomFieldType, cB as TenantFeatureProgressEvidenceValue, cC as TenantFeatureProgressFeature, cD as TenantFeatureProgressGroup, cE as TenantFeatureProgressInput, cF as TenantFeatureProgressItem, cG as TenantFeatureProgressItemState, cH as TenantFeatureProgressResponse, cI as TenantFeatureProgressSeverity, cJ as TenantFeatureProgressStatus, cK as TenantFieldConfigState, cL as TenantIntrospectionApi, cM as TenantIntrospectionApiOptions, cN as UpdateCartAttributesParams, cO as UpdateDiscountCodesParams, cP as UpdateItemParams, cQ as VariantInput, cR as VariantPricesUpdateInput, cS as VariantPricesUpdateParams, cT as VariantPricesUpdateResponse, cU as VoidBenefitVoucherRequest, cV as getExternalEffectClaimErrorReason, cW as invalidBenefitVoucherResponse, cX as parseBenefitVoucher, cY as parseBenefitVoucherList, cZ as parseCustomerCreditAccount, c_ as parseCustomerCreditGrant, c$ as parseMyCustomerCreditHistory, d0 as parseMyCustomerCredits, d1 as parseRevokeCustomerCredit } from './types-Chwgg4CQ.cjs';
3
+ import { S as ServerCollectionClient } from './collection-client-BH4dIZ6c.cjs';
4
+ export { C as CollectionClient } from './collection-client-BH4dIZ6c.cjs';
5
+ import './payload-types-PXkmefhZ.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-_ZfJjRQG.cjs';
8
- import './types-FyklqLAk.cjs';
7
+ import './const-BS2EaIp4.cjs';
8
+ import './types-CyMz0Kzc.cjs';
9
9
  import './metadata.cjs';
10
10
 
11
11
  type PreviewDetailParams = {
@@ -37,6 +37,7 @@ declare class ServerClient {
37
37
  endSubscribeIntent: (params: EndSubscribeIntentParams) => Promise<EndSubscribeIntentResponse>;
38
38
  cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
39
39
  billingCustody: (params: BillingCustodyParams) => Promise<BillingCustodyResponse>;
40
+ billingCustodyContext: (params: BillingCustodyContextParams) => Promise<BillingCustodyContextResponse>;
40
41
  };
41
42
  customerGroups: CustomerGroupApi;
42
43
  externalEffectClaims: ExternalEffectClaimsApi;
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-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';
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 BillingCustodyContextParams, h as BillingCustodyContextResponse, i as CustomerGroupApi, j as ExternalEffectClaimsApi, I as InstallationCredentialsApi, k as ExternalCustomerLinksApi, l as BenefitVouchersApi, m as CreditsApi, V as VideoPlaybackClient, n as CommunityClient, o as BanCustomerParams, p as CommunityBan, U as UnbanCustomerParams, M as MarketDiscovery, q as ClientState, r as ClientServerConfig, s as RootServerClientWithEvents } from './types-lbzbJSZh.js';
2
+ export { A as AddItemParams, t as BENEFIT_VOUCHER_ERROR_REASONS, u as BENEFIT_VOUCHER_VOID_REASONS, v as BenefitVoucher, w as BenefitVoucherErrorReason, x as CancelServerPaymentSessionParams, y as CaptureExternalCustomerPreviousStateParams, z as CartApi, D as CartApiOptions, F as CartMergeResult, G as CartMineResult, H as CartMutationResult, J as CheckoutAbandonedReason, K as CheckoutAmounts, L as CheckoutApi, N as CheckoutApiOptions, O as CheckoutListItem, P as CheckoutOrderReference, Q as CheckoutPaymentSessionRef, W as CheckoutQueryParams, X as CheckoutQueryResult, Y as CheckoutShippingAddress, Z as CheckoutStatus, _ as ClaimExternalEffectParams, $ as ClearCartParams, a0 as CollectionCustomFieldDefinition, a1 as CollectionCustomFields, a2 as CollectionFieldSchema, a3 as CollectionSchemaResponse, a4 as ConfirmCustomPaymentSessionOptions, a5 as ConfirmCustomPaymentSessionParams, a6 as ConfirmCustomPaymentSessionResponse, a7 as ConfirmTossPaymentSessionParams, a8 as ConnectExternalCustomerLinkParams, a9 as CreateCartParams, aa as CreateCartResult, ab as CreateCustomPaymentSessionParams, ac as CreateInstallationCredentialParams, ad as CreatePaymentSessionParams, ae as CreatePortOnePaymentSessionParams, af as CreateServerCheckoutParams, ag as CreateServerCheckoutResult, ah as CreateServerPaymentSessionParams, ai as CreateServerPortOnePaymentSessionParams, aj as CustomPaymentSession, ak as CustomPaymentSessionProof, al as CustomerBenefitVoucher, am as CustomerCreditAccountResponse, an as CustomerCreditBalances, ao as CustomerCreditGrant, ap as CustomerGroupApiOptions, aq as CustomerGroupManualSource, ar as CustomerGroupMember, as as CustomerGroupMemberCommandResponse, at as CustomerGroupMemberSource, au as CustomerGroupMembershipSource, av as CustomerGroupMembershipState, aw as CustomerMembershipView, ax as CustomerSnapshot, ay as DisposeInstallationCredentialParams, az as EventAdmissionAvailabilityParams, aA as EventAdmissionAvailabilityResponse, aB as EventAdmissionAvailabilityType, aC as EventAdmissionPricePresentment, aD as EventGuestCancelParams, aE as EventGuestRegistration, aF as EventGuestRegistrationResponse, aG as EventMyRegistration, aH as EventMyRegistrationsParams, aI as EventMyRegistrationsResponse, aJ as EventRegistrationAnswerInput, aK as EventRegistrationAttendeeInput, aL as EventRegistrationPublic, aM as EventRegistrationRegisterParams, aN as EventRegistrationRegisterResponse, aO as EventsCalendarItem, aP as EventsClient, aQ as EventsClientOptions, aR as EventsDateParam, aS as EventsExternalSource, aT as EventsLocation, aU as EventsOccurrenceLocation, aV as EventsRangeEvent, aW as EventsRangeOccurrence, aX as EventsRangeParams, aY as EventsRangeResponse, aZ as EventsTaxonomyItem, a_ as ExternalCustomerLink, a$ as ExternalCustomerLinkListResponse, b0 as ExternalCustomerPreviousState, b1 as ExternalEffectClaimErrorReason, b2 as ExternalEffectClaimSnapshot, b3 as ExternalEffectClaimState, b4 as ExternalEffectLeaseParams, b5 as ExternalEffectLocator, b6 as FindPortOnePaymentParams, b7 as FindPortOnePaymentResult, b8 as GetBenefitVoucherRequest, b9 as GetCustomerCreditAccountRequest, ba as GetCustomerCreditGrantRequest, bb as GetExternalCustomerLinkParams, bc as GetExternalEffectClaimParams, bd as GrantCustomerCreditRequest, be as GrantCustomerGroupMemberParams, bf as InstallationCredentialIdentity, bg as InstallationCredentialSnapshot, bh as IssueBenefitVoucherRequest, bi as IssueBenefitVoucherResponse, bj as ListBenefitVouchersRequest, bk as ListBenefitVouchersResponse, bl as ListCustomerGroupMembersParams, bm as ListCustomerGroupMembersResponse, bn as ListExternalCustomerLinksParams, bo as ListMyBenefitVouchersRequest, bp as ListMyBenefitVouchersResponse, bq as MembershipStatus, br as ModerationApi, bs as Money, bt as MutateBenefitVoucherResponse, bu as MutateExternalCustomerLinkParams, bv as MyCustomerCreditHistoryRequest, bw as MyCustomerCreditHistoryResponse, bx as MyCustomerCreditsRequest, by as MyCustomerCreditsResponse, bz as OpenCheckoutPaymentState, bA as PaymentFailureReason, bB as PaymentNextAction, bC as PaymentProviderStatus, bD as PaymentReconciliationReason, bE as PaymentSessionApi, bF as PaymentSessionApiOptions, bG as PaymentSessionRole, bH as PortOneHostedPaymentMethod, bI as PortOnePaymentCurrentState, bJ as PortOnePaymentNextAction, bK as PortOnePaymentReconciliationApi, bL as PortOnePaymentSelector, bM as PortOnePublicPaymentSession, bN as PortOneReconciliationDisposition, bO as ProductGraphRevisionParams, bP as ProductGraphRevisionResponse, bQ as ProductUpsertInput, bR as ProductUpsertParams, bS as ProductUpsertResponse, bT as ProductUpsertVariantInput, bU as PublicAttribute, bV as PublicCaptureEvidence, bW as PublicCart, bX as PublicCartItem, bY as PublicCartItemAdmission, bZ as PublicCartMarket, b_ as PublicCartReference, b$ as PublicCheckout, c0 as PublicCheckoutItem, c1 as PublicMediaAsset, c2 as PublicMediaSize, c3 as PublicOrder, c4 as PublicOrderAmounts, c5 as PublicOrderItem, c6 as PublicOrderReference, c7 as PublicPaymentSession, c8 as ReconcilePortOnePaymentParams, c9 as ReconcilePortOnePaymentResult, ca as ReconciliationRequired, cb as RecordExternalEffectRecoveryParams, cc as RedeemBenefitVoucherRequest, cd as RemoveItemParams, ce as ReplaceInstallationCredentialParams, cf as ReportExternalEffectParams, cg as RetrieveCartParams, ch as RetrieveCheckoutParams, ci as RetrieveCustomPaymentSessionParams, cj as RetrieveServerCheckoutParams, ck as RetrieveServerPaymentSessionParams, cl as RetrievedCustomPaymentSession, cm as RevokeCustomerCreditRequest, cn as RevokeCustomerCreditResponse, co as RevokeCustomerGroupMemberParams, cp as RootServerClient, cq as ServerAddItemParams, cr as ServerCartMergeParams, cs as ServerCartMineParams, ct as ServerCheckout, cu as ServerUpdateItemParams, cv as ShippingLine, cw as SpentCheckoutPaymentState, cx as TENANT_CONTEXT_PATH, cy as TenantContextInput, cz as TenantContextResponse, cA as TenantCustomFieldType, cB as TenantFeatureProgressEvidenceValue, cC as TenantFeatureProgressFeature, cD as TenantFeatureProgressGroup, cE as TenantFeatureProgressInput, cF as TenantFeatureProgressItem, cG as TenantFeatureProgressItemState, cH as TenantFeatureProgressResponse, cI as TenantFeatureProgressSeverity, cJ as TenantFeatureProgressStatus, cK as TenantFieldConfigState, cL as TenantIntrospectionApi, cM as TenantIntrospectionApiOptions, cN as UpdateCartAttributesParams, cO as UpdateDiscountCodesParams, cP as UpdateItemParams, cQ as VariantInput, cR as VariantPricesUpdateInput, cS as VariantPricesUpdateParams, cT as VariantPricesUpdateResponse, cU as VoidBenefitVoucherRequest, cV as getExternalEffectClaimErrorReason, cW as invalidBenefitVoucherResponse, cX as parseBenefitVoucher, cY as parseBenefitVoucherList, cZ as parseCustomerCreditAccount, c_ as parseCustomerCreditGrant, c$ as parseMyCustomerCreditHistory, d0 as parseMyCustomerCredits, d1 as parseRevokeCustomerCredit } from './types-lbzbJSZh.js';
3
+ import { S as ServerCollectionClient } from './collection-client-lLAl3xCZ.js';
4
+ export { C as CollectionClient } from './collection-client-lLAl3xCZ.js';
5
+ import './payload-types-PXkmefhZ.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-BJBK7jBl.js';
8
- import './types-DLjSqL0P.js';
7
+ import './const-CCvoknRY.js';
8
+ import './types-CQRsG6sA.js';
9
9
  import './metadata.js';
10
10
 
11
11
  type PreviewDetailParams = {
@@ -37,6 +37,7 @@ declare class ServerClient {
37
37
  endSubscribeIntent: (params: EndSubscribeIntentParams) => Promise<EndSubscribeIntentResponse>;
38
38
  cancel: (params: CancelMembershipParams) => Promise<CancelMembershipResponse>;
39
39
  billingCustody: (params: BillingCustodyParams) => Promise<BillingCustodyResponse>;
40
+ billingCustodyContext: (params: BillingCustodyContextParams) => Promise<BillingCustodyContextResponse>;
40
41
  };
41
42
  customerGroups: CustomerGroupApi;
42
43
  externalEffectClaims: ExternalEffectClaimsApi;
package/dist/server.js CHANGED
@@ -853,7 +853,7 @@ async function httpFetch(url, options) {
853
853
  );
854
854
  const usageError = attachRequestId(
855
855
  createUsageLimitError(
856
- `Monthly API usage limit exceeded (${current.toLocaleString()}/${limit.toLocaleString()})`,
856
+ `Monthly API usage limit exceeded (${current.toLocaleString("en-US")}/${limit.toLocaleString("en-US")})`,
857
857
  { limit, current, remaining },
858
858
  {
859
859
  url,
@@ -4910,6 +4910,11 @@ function getRelationID(value) {
4910
4910
  }
4911
4911
  return void 0;
4912
4912
  }
4913
+ function compareOrdinal(left, right) {
4914
+ if (left < right) return -1;
4915
+ if (left > right) return 1;
4916
+ return 0;
4917
+ }
4913
4918
  function extractEntityId(value) {
4914
4919
  if (typeof value === "string") return value;
4915
4920
  if (typeof value === "number") return String(value);
@@ -5522,7 +5527,7 @@ function compareVariantOrder(a, b) {
5522
5527
  }
5523
5528
  const aId = String(getRelationID(a.id) ?? "");
5524
5529
  const bId = String(getRelationID(b.id) ?? "");
5525
- return aId.localeCompare(bId);
5530
+ return compareOrdinal(aId, bId);
5526
5531
  }
5527
5532
  function getVariantAvailableForSale(variant) {
5528
5533
  if (variant.isActive === false) return false;
@@ -6729,6 +6734,8 @@ function buildRangeEndpoint(params) {
6729
6734
  function buildAdmissionAvailabilityEndpoint(params) {
6730
6735
  const urlParams = new URLSearchParams();
6731
6736
  urlParams.set("occurrence", params.occurrence);
6737
+ const normalizedMarket2 = params.market?.trim();
6738
+ if (normalizedMarket2) urlParams.set("market", normalizedMarket2);
6732
6739
  return resolveOperationPath(
6733
6740
  EVENTS_ENDPOINT_OPERATIONS.occurrences.admissionAvailability,
6734
6741
  { query: urlParams }
@@ -6931,16 +6938,37 @@ var MembershipApi = class extends BaseApi {
6931
6938
  }
6932
6939
  /**
6933
6940
  * Store/read only app-encrypted billing ciphertext for the Membership's
6934
- * method. The tenant server receives the non-secret restore generation from
6935
- * its platform operator's integration configuration; it is not discovered
6936
- * from an unauthenticated endpoint.
6941
+ * method. Obtain generation from billingCustodyContext before a new upload
6942
+ * or read, and retain that same generation for every mutation based on the
6943
+ * read. Never rediscover and retry a mutation after a generation mismatch.
6937
6944
  */
6938
6945
  async billingCustody(params) {
6939
6946
  const { webhookSecret, ...input } = params;
6940
- const body = {
6941
- kind: "billing-custody.v1",
6942
- ...input
6943
- };
6947
+ return this.requestBillingCustody(
6948
+ {
6949
+ kind: "billing-custody.v1",
6950
+ ...input
6951
+ },
6952
+ webhookSecret
6953
+ );
6954
+ }
6955
+ /** Requires the same server key, Membership and delegated HMAC as custody. */
6956
+ async billingCustodyContext(params) {
6957
+ const result = await this.requestBillingCustody(
6958
+ {
6959
+ kind: "billing-custody.v1",
6960
+ action: "context",
6961
+ membershipId: params.membershipId
6962
+ },
6963
+ params.webhookSecret
6964
+ );
6965
+ if (!result || typeof result !== "object" || Array.isArray(result) || Object.keys(result).length !== 2 || !("action" in result) || result.action !== "context" || !("generation" in result) || typeof result.generation !== "string" || !/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(
6966
+ result.generation
6967
+ ))
6968
+ throw new Error("Invalid billing custody context response");
6969
+ return { action: "context", generation: result.generation };
6970
+ }
6971
+ async requestBillingCustody(body, webhookSecret) {
6944
6972
  const timestamp2 = Date.now().toString();
6945
6973
  const deliveryId = crypto.randomUUID();
6946
6974
  const signature = await custodySignature(
@@ -7304,7 +7332,8 @@ var ServerClient = class _ServerClient {
7304
7332
  subscribe: membershipApi.subscribe.bind(membershipApi),
7305
7333
  endSubscribeIntent: membershipApi.endSubscribeIntent.bind(membershipApi),
7306
7334
  cancel: membershipApi.cancel.bind(membershipApi),
7307
- billingCustody: membershipApi.billingCustody.bind(membershipApi)
7335
+ billingCustody: membershipApi.billingCustody.bind(membershipApi),
7336
+ billingCustodyContext: membershipApi.billingCustodyContext.bind(membershipApi)
7308
7337
  };
7309
7338
  this.customerGroups = new CustomerGroupApi(serverOptions);
7310
7339
  this.externalEffectClaims = new ExternalEffectClaimsApi(serverOptions);