@01.software/sdk 0.46.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +75 -1
  2. package/README.md +81 -7
  3. package/dist/client.cjs +304 -63
  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 +304 -63
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-DolMjCoC.d.cts → collection-client-CBup9yOx.d.cts} +4 -4
  10. package/dist/{collection-client-D6kKrYdq.d.ts → collection-client-D3ExJU-7.d.ts} +4 -4
  11. package/dist/{const-BAG0MH0u.d.cts → const-BXEi1Kix.d.cts} +4 -4
  12. package/dist/{const-CaPq2AE4.d.ts → const-k9gHylYa.d.ts} +4 -4
  13. package/dist/errors.cjs +49 -1
  14. package/dist/errors.cjs.map +1 -1
  15. package/dist/errors.d.cts +3 -3
  16. package/dist/errors.d.ts +3 -3
  17. package/dist/errors.js +49 -1
  18. package/dist/errors.js.map +1 -1
  19. package/dist/{index-YGrZrxNn.d.cts → index-BCM9CTL7.d.cts} +3 -3
  20. package/dist/{index-BNICJxBL.d.ts → index-CHGGkcLj.d.ts} +3 -3
  21. package/dist/index.cjs +308 -64
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +7 -7
  24. package/dist/index.d.ts +7 -7
  25. package/dist/index.js +308 -64
  26. package/dist/index.js.map +1 -1
  27. package/dist/{payload-types-CJZuXcgF.d.cts → payload-types-B6AZQcB7.d.cts} +182 -15
  28. package/dist/{payload-types-CJZuXcgF.d.ts → payload-types-B6AZQcB7.d.ts} +182 -15
  29. package/dist/query.cjs +144 -43
  30. package/dist/query.cjs.map +1 -1
  31. package/dist/query.d.cts +5 -5
  32. package/dist/query.d.ts +5 -5
  33. package/dist/query.js +144 -43
  34. package/dist/query.js.map +1 -1
  35. package/dist/realtime.d.cts +2 -2
  36. package/dist/realtime.d.ts +2 -2
  37. package/dist/server.cjs +385 -63
  38. package/dist/server.cjs.map +1 -1
  39. package/dist/server.d.cts +7 -7
  40. package/dist/server.d.ts +7 -7
  41. package/dist/server.js +385 -63
  42. package/dist/server.js.map +1 -1
  43. package/dist/storefront-cache.cjs +49 -1
  44. package/dist/storefront-cache.cjs.map +1 -1
  45. package/dist/storefront-cache.js +49 -1
  46. package/dist/storefront-cache.js.map +1 -1
  47. package/dist/{types-D5p7-m1l.d.cts → types-8us-_C-Q.d.cts} +2 -2
  48. package/dist/{types-BC6rVmJa.d.ts → types-ByD2zii1.d.ts} +2 -2
  49. package/dist/{types-xlqBeW2N.d.cts → types-CM2je9Kw.d.cts} +84 -7
  50. package/dist/{types-C60vHIkY.d.ts → types-DbA5V3mt.d.ts} +84 -7
  51. package/dist/ui/form.d.cts +1 -1
  52. package/dist/ui/form.d.ts +1 -1
  53. package/dist/ui/video.d.cts +1 -1
  54. package/dist/ui/video.d.ts +1 -1
  55. package/dist/webhook.d.cts +4 -4
  56. package/dist/webhook.d.ts +4 -4
  57. package/package.json +6 -6
@@ -1,6 +1,6 @@
1
- import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-BAG0MH0u.cjs';
2
- import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-D5p7-m1l.cjs';
3
- import { O as Order, k as Transaction, l as Fulfillment, R as Return } from './payload-types-CJZuXcgF.cjs';
1
+ import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-BXEi1Kix.cjs';
2
+ import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-8us-_C-Q.cjs';
3
+ import { O as Order, k as Transaction, l as Fulfillment, R as Return } from './payload-types-B6AZQcB7.cjs';
4
4
 
5
5
  declare const operationBrand: unique symbol;
6
6
  type HttpOperation = {
@@ -8,6 +8,7 @@ type HttpOperation = {
8
8
  readonly collection: string | null;
9
9
  readonly method: 'get' | 'post' | 'patch' | 'delete';
10
10
  readonly path: `/${string}`;
11
+ readonly errorFamily?: 'commerce';
11
12
  };
12
13
 
13
14
  /**
@@ -204,8 +205,11 @@ type CommunityCommentMutationResponse = CommunityComment | RawCommunityComment;
204
205
  type CommunityReactionMutationResponse = Reaction | RawCommunityReaction;
205
206
  type CommunityBookmarkMutationResponse = Bookmark | RawCommunityBookmark;
206
207
  declare class CommunityClient extends RawCustomerScopedApi {
208
+ private readonly requiresSafePublicRawReads;
207
209
  constructor(options: CommunityClientOptions);
208
210
  private buildQuery;
211
+ private withSafePublicRawReadQuery;
212
+ private buildSafePublicRawListQuery;
209
213
  private buildPostsListQuery;
210
214
  private buildCommentsListQuery;
211
215
  private execute;
@@ -227,6 +231,13 @@ declare class CommunityClient extends RawCustomerScopedApi {
227
231
  tagId?: string;
228
232
  sort?: CommunityPostListSort;
229
233
  }): Promise<PaginatedResponse<CommunityPost>>;
234
+ /**
235
+ * Public post detail projected by the same allowlist as the public feed.
236
+ * Missing, hidden, and cross-tenant posts all resolve to `null`.
237
+ */
238
+ getPost(params: {
239
+ postId: string;
240
+ }): Promise<CommunityPost | null>;
230
241
  listPostCategories(params?: {
231
242
  page?: number;
232
243
  limit?: number;
@@ -2318,6 +2329,7 @@ type Money = {
2318
2329
  amountMinor: number;
2319
2330
  currency: Uppercase<string>;
2320
2331
  };
2332
+ type PortOneHostedPaymentMethod = 'CARD_KR' | 'N_PAY' | 'KAKAO_PAY' | 'TOSS_PAY' | 'CARD_INTERNATIONAL' | 'PAY_PAL' | 'UNION_PAY' | 'ALIPAY_CN' | 'ALIPAY_HK' | 'TRUE_MONEY' | 'DANA' | 'TOUCH_N_GO' | 'G_CASH' | 'WE_CHAT_PAY' | 'KLARNA' | 'E_CONTEXT' | 'GRAB_PAY_MY' | 'GRAB_PAY_SG' | 'SHOPEE_PAY_TH' | 'PAY_PAY' | 'BPI' | 'RABBIT_LINE_PAY' | 'CONVENIENCE_STORE_JP' | 'AMAZON_PAY' | 'RAKUTEN_PAY' | 'D_BARAI' | 'AU_PAY' | 'MERPAY';
2321
2333
  type CreatePaymentSessionParams = {
2322
2334
  checkoutToken: string;
2323
2335
  idempotencyKey: string;
@@ -2326,6 +2338,15 @@ type CreatePaymentSessionParams = {
2326
2338
  profile: 'widget_v2';
2327
2339
  };
2328
2340
  };
2341
+ type CreatePortOnePaymentSessionParams = {
2342
+ checkoutToken: string;
2343
+ idempotencyKey: string;
2344
+ provider: 'portone';
2345
+ providerOptions: {
2346
+ profile: 'hosted_v2';
2347
+ paymentMethod: PortOneHostedPaymentMethod;
2348
+ };
2349
+ };
2329
2350
  type RetrieveBrowserPaymentSessionParams = {
2330
2351
  paymentSessionId: string;
2331
2352
  checkoutToken: string;
@@ -2359,6 +2380,25 @@ type CustomPaymentSession = {
2359
2380
  providerSessionId: string;
2360
2381
  money: Money;
2361
2382
  };
2383
+ type RetrieveCustomPaymentSessionParams = {
2384
+ provider: string;
2385
+ by: {
2386
+ providerSessionId: string;
2387
+ } | {
2388
+ providerPaymentId: string;
2389
+ };
2390
+ };
2391
+ type RetrievedCustomPaymentSession = {
2392
+ id: string;
2393
+ provider: string;
2394
+ providerSessionId: string;
2395
+ providerPaymentId: string | null;
2396
+ status: 'pending' | 'captured' | 'failed' | 'canceled';
2397
+ providerStatus: PaymentProviderStatus;
2398
+ finalizationStatus: 'not_ready' | 'pending' | 'committed';
2399
+ money: Money;
2400
+ orderId: string | null;
2401
+ };
2362
2402
  type ConfirmCustomPaymentSessionParams = {
2363
2403
  provider: string;
2364
2404
  providerSessionId: string;
@@ -2383,7 +2423,7 @@ type ConfirmCustomPaymentSessionOptions = {
2383
2423
  /** Receives the exact JSON bytes the SDK will send. Required only where the Console custom-provider policy requires HMAC. */
2384
2424
  createProof?: (rawBody: string) => CustomPaymentSessionProof | Promise<CustomPaymentSessionProof>;
2385
2425
  };
2386
- type PaymentNextAction = {
2426
+ type TossPaymentNextAction = {
2387
2427
  type: 'toss_widget';
2388
2428
  clientKey: string;
2389
2429
  paymentMethodVariantKey: string;
@@ -2394,6 +2434,13 @@ type PaymentNextAction = {
2394
2434
  customerName?: string;
2395
2435
  customerEmail?: string;
2396
2436
  };
2437
+ type PortOnePaymentNextAction = {
2438
+ type: 'portone_checkout';
2439
+ checkoutUrl: string;
2440
+ };
2441
+ /** Existing Toss action surface retained for source compatibility. */
2442
+ type PaymentNextAction = TossPaymentNextAction;
2443
+ type ManagedPaymentNextAction = TossPaymentNextAction | PortOnePaymentNextAction;
2397
2444
  type PaymentSessionRole = 'active' | 'canonical_candidate' | 'canonical' | 'residual' | 'historical';
2398
2445
  type PaymentProviderStatus = 'requires_payment_method' | 'requires_action' | 'requires_confirmation' | 'initializing' | 'processing' | 'authorized' | 'canceling' | 'unknown' | 'captured' | 'failed' | 'canceled';
2399
2446
  type PaymentReconciliationReason = 'provider_outcome_unknown' | 'local_commit_ambiguous' | 'amount_mismatch' | 'currency_mismatch' | 'excess_capture_pending_order' | 'inventory_unavailable' | 'admission_unavailable' | 'excess_capture' | 'late_capture' | 'cross_checkout_duplicate';
@@ -2413,7 +2460,7 @@ type PublicPaymentSessionBase = {
2413
2460
  expiresAt: string | null;
2414
2461
  sessionRole: PaymentSessionRole;
2415
2462
  };
2416
- type PublicPaymentSessionState<Action extends PaymentNextAction> = ({
2463
+ type PublicPaymentSessionState<Action extends ManagedPaymentNextAction> = ({
2417
2464
  providerStatus: 'requires_payment_method' | 'requires_action';
2418
2465
  finalizationStatus: 'not_ready';
2419
2466
  reconciliation: {
@@ -2544,15 +2591,22 @@ type PublicPaymentSessionState<Action extends PaymentNextAction> = ({
2544
2591
  };
2545
2592
  type PublicPaymentSession = PublicPaymentSessionBase & {
2546
2593
  provider: 'toss';
2547
- } & PublicPaymentSessionState<PaymentNextAction>;
2594
+ } & PublicPaymentSessionState<TossPaymentNextAction>;
2595
+ type PortOnePublicPaymentSession = PublicPaymentSessionBase & {
2596
+ provider: 'portone';
2597
+ } & PublicPaymentSessionState<PortOnePaymentNextAction>;
2598
+ type ManagedPublicPaymentSession = PublicPaymentSession | PortOnePublicPaymentSession;
2548
2599
  declare class PaymentSessionApi extends CustomerScopedApi {
2549
2600
  private readonly serverTransport;
2550
2601
  constructor(options: PaymentSessionApiOptions);
2551
2602
  private post;
2552
2603
  private paymentSession;
2553
2604
  create(params: CreatePaymentSessionParams): Promise<PublicPaymentSession>;
2605
+ createPortOne(params: CreatePortOnePaymentSessionParams): Promise<PortOnePublicPaymentSession>;
2554
2606
  retrieve(params: RetrieveBrowserPaymentSessionParams | RetrieveServerPaymentSessionParams): Promise<PublicPaymentSession>;
2607
+ retrievePortOne(params: RetrieveBrowserPaymentSessionParams | RetrieveServerPaymentSessionParams): Promise<PortOnePublicPaymentSession>;
2555
2608
  cancel(params: CancelBrowserPaymentSessionParams | CancelServerPaymentSessionParams): Promise<PublicPaymentSession>;
2609
+ cancelPortOne(params: CancelBrowserPaymentSessionParams | CancelServerPaymentSessionParams): Promise<PortOnePublicPaymentSession>;
2556
2610
  confirm(params: ConfirmTossPaymentSessionParams): Promise<PublicPaymentSession>;
2557
2611
  }
2558
2612
 
@@ -2608,8 +2662,11 @@ declare class CommerceClient {
2608
2662
  };
2609
2663
  readonly paymentSessions: {
2610
2664
  create: (params: CreatePaymentSessionParams) => Promise<PublicPaymentSession>;
2665
+ createPortOne: (params: CreatePortOnePaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2611
2666
  retrieve: (params: RetrieveBrowserPaymentSessionParams) => Promise<PublicPaymentSession>;
2667
+ retrievePortOne: (params: RetrieveBrowserPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2612
2668
  cancel: (params: CancelBrowserPaymentSessionParams) => Promise<PublicPaymentSession>;
2669
+ cancelPortOne: (params: CancelBrowserPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2613
2670
  };
2614
2671
  readonly discounts: {
2615
2672
  validate: (params: ValidateDiscountParams) => Promise<ValidateDiscountResult>;
@@ -2758,11 +2815,15 @@ declare class ServerCommerceClient {
2758
2815
  };
2759
2816
  readonly paymentSessions: {
2760
2817
  create: (params: CreatePaymentSessionParams) => Promise<PublicPaymentSession>;
2818
+ createPortOne: (params: CreatePortOnePaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2761
2819
  retrieve: (params: RetrieveServerPaymentSessionParams) => Promise<PublicPaymentSession>;
2820
+ retrievePortOne: (params: RetrieveServerPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2762
2821
  cancel: (params: CancelServerPaymentSessionParams) => Promise<PublicPaymentSession>;
2822
+ cancelPortOne: (params: CancelServerPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2763
2823
  confirm: (params: ConfirmTossPaymentSessionParams) => Promise<PublicPaymentSession>;
2764
2824
  custom: {
2765
2825
  create: (params: CreateCustomPaymentSessionParams) => Promise<CustomPaymentSession>;
2826
+ retrieve: (params: RetrieveCustomPaymentSessionParams) => Promise<RetrievedCustomPaymentSession>;
2766
2827
  confirm: (params: ConfirmCustomPaymentSessionParams, options?: ConfirmCustomPaymentSessionOptions) => Promise<ConfirmCustomPaymentSessionResponse>;
2767
2828
  };
2768
2829
  };
@@ -3110,6 +3171,21 @@ interface CollectionFieldSchema {
3110
3171
  writable?: boolean;
3111
3172
  fields?: CollectionFieldSchema[];
3112
3173
  }
3174
+ type TenantCustomFieldType = 'text' | 'number' | 'select' | 'boolean' | 'date';
3175
+ type CollectionCustomFieldDefinition = {
3176
+ key: string;
3177
+ type: Exclude<TenantCustomFieldType, 'select'>;
3178
+ required?: true;
3179
+ } | {
3180
+ key: string;
3181
+ type: 'select';
3182
+ required?: true;
3183
+ options: string[];
3184
+ };
3185
+ interface CollectionCustomFields {
3186
+ storagePath: 'customData';
3187
+ definitions: CollectionCustomFieldDefinition[];
3188
+ }
3113
3189
  interface CollectionSchemaResponse {
3114
3190
  contractVersion: 1;
3115
3191
  mode: 'effective';
@@ -3124,6 +3200,7 @@ interface CollectionSchemaResponse {
3124
3200
  hiddenFields: string[];
3125
3201
  };
3126
3202
  fields: CollectionFieldSchema[];
3203
+ customFields?: CollectionCustomFields;
3127
3204
  };
3128
3205
  }
3129
3206
  interface TenantIntrospectionClient {
@@ -3452,4 +3529,4 @@ type DeepPartial<T> = {
3452
3529
  };
3453
3530
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
3454
3531
 
3455
- export { type PublicCartItemAdmission as $, type AddItemParams as A, type CreatePaymentSessionParams as B, CommerceClient as C, type CustomerSnapshot as D, EventsClient as E, type DebugConfig as F, type DeepPartial as G, type ExtractArrayType as H, type MembershipStatus as I, type Money as J, type PayloadMutationResponse as K, type PaymentFailureReason as L, MarketDiscovery as M, type PaymentNextAction as N, type OpenCheckoutPaymentState as O, type PayloadFindResponse as P, type PaymentProviderStatus as Q, type PaymentReconciliationReason as R, type PaymentSessionRole as S, type ProductUpsertInput as T, type ProductUpsertParams as U, type ProductUpsertResponse as V, type ProductUpsertVariantInput as W, type PublicAttribute as X, type PublicCaptureEvidence as Y, type PublicCart as Z, type PublicCartItem as _, CommunityClient as a, type CreateServerCheckoutParams as a$, type PublicCartMarket as a0, type PublicCartReference as a1, type PublicCheckout as a2, type PublicCheckoutItem as a3, type PublicMediaAsset as a4, type PublicMediaSize as a5, type PublicOrder as a6, type PublicOrderAmounts as a7, type PublicOrderItem as a8, type PublicOrderReference as a9, RawBaseApi as aA, type ServerApiOptions as aB, ServerCommerceClient as aC, type TenantIntrospectionClient as aD, type SubscribeMembershipParams as aE, type SubscribeMembershipResponse as aF, type BanCustomerParams as aG, type CommunityBan as aH, type UnbanCustomerParams as aI, type ClientServerConfig as aJ, type RootServerClientWithEvents as aK, type CancelServerPaymentSessionParams as aL, CartApi as aM, type CartApiOptions as aN, CheckoutApi as aO, type CheckoutApiOptions as aP, type CheckoutListItem as aQ, type CheckoutQueryParams as aR, type CheckoutQueryResult as aS, type CheckoutStatus as aT, type CollectionFieldSchema as aU, type CollectionSchemaResponse as aV, type ConfirmCustomPaymentSessionOptions as aW, type ConfirmCustomPaymentSessionParams as aX, type ConfirmCustomPaymentSessionResponse as aY, type ConfirmTossPaymentSessionParams as aZ, type CreateCustomPaymentSessionParams as a_, type PublicPaymentSession as aa, type ReconciliationRequired as ab, type RemoveItemParams as ac, type RetrieveBrowserPaymentSessionParams as ad, type RetrieveCartParams as ae, type RetrieveCheckoutParams as af, type RetryConfig as ag, type RootClient as ah, type RootCollectionClient as ai, type RootReadOnlyQueryBuilder as aj, type ShippingLine as ak, type Sort as al, type SpentCheckoutPaymentState as am, type StorefrontContentListOptions as an, type StorefrontContentReference as ao, type StorefrontGalleryItem as ap, type StorefrontGalleryItemsListOptions as aq, type StorefrontGalleryItemsSort as ar, type StorefrontLink as as, type StorefrontLinksListOptions as at, type StorefrontLinksSort as au, type UpdateCartAttributesParams as av, type UpdateDiscountCodesParams as aw, type UpdateItemParams as ax, type VariantInput as ay, type Where as az, ContentClient as b, type ProductListingPageCatalogParams as b$, type CreateServerCheckoutResult as b0, type CustomPaymentSession as b1, type CustomPaymentSessionProof as b2, type EventAdmissionAvailabilityParams as b3, type EventAdmissionAvailabilityResponse as b4, type EventAdmissionAvailabilityType as b5, type EventAdmissionPricePresentment as b6, type EventGuestCancelParams as b7, type EventGuestRegistration as b8, type EventGuestRegistrationResponse as b9, type TenantContextResponse as bA, type TenantFeatureProgressEvidenceValue as bB, type TenantFeatureProgressFeature as bC, type TenantFeatureProgressGroup as bD, type TenantFeatureProgressInput as bE, type TenantFeatureProgressItem as bF, type TenantFeatureProgressItemState as bG, type TenantFeatureProgressResponse as bH, type TenantFeatureProgressSeverity as bI, type TenantFeatureProgressStatus as bJ, type TenantFieldConfigState as bK, TenantIntrospectionApi as bL, type TenantIntrospectionApiOptions as bM, type ApiDeleteOptions as bN, type PublicReadQueryOptions as bO, CustomerAuth as bP, type CustomerProfile as bQ, type CustomerAuthResponse as bR, type CustomerLoginData as bS, type CustomerRegisterResponse as bT, type CustomerRegisterData as bU, type CustomerRefreshResponse as bV, type UpdateProfileData as bW, type ProductListingPageParams as bX, type ProductListingPageBaseParams as bY, type ProductDetailParams as bZ, type ProductDetailCatalogResult as b_, type EventRegistrationAnswerInput as ba, type EventRegistrationAttendeeInput as bb, type EventRegistrationPublic as bc, type EventRegistrationRegisterParams as bd, type EventRegistrationRegisterResponse as be, type EventsCalendarItem as bf, type EventsClientOptions as bg, type EventsDateParam as bh, type EventsExternalSource as bi, type EventsLocation as bj, type EventsOccurrenceLocation as bk, type EventsRangeEvent as bl, type EventsRangeOccurrence as bm, type EventsRangeParams as bn, type EventsRangeResponse as bo, type EventsTaxonomyItem as bp, ModerationApi as bq, PaymentSessionApi as br, type PaymentSessionApiOptions as bs, type RetrieveServerCheckoutParams as bt, type RetrieveServerPaymentSessionParams as bu, type RootServerClient as bv, type ServerCartMergeParams as bw, type ServerCartMineParams as bx, type ServerCheckout as by, type TenantContextInput as bz, CustomerNamespace as c, PRODUCT_UPSERT_READONLY_FIELD_REASON as c$, type ProductListingPageResult as c0, type ProductListingGroupsCatalogItem as c1, type ProductListingPageFullParams as c2, type ProductListingGroupsItem as c3, BaseApi as c4, type ProductDetail as c5, type ProductDetailCatalog as c6, type StockSnapshotResponse as c7, type ProductSelectionMediaSource as c8, type ProductDisplayMediaSource as c9, type CompatibilityProductSelectionParamEvent as cA, type CreateFulfillmentParams as cB, type CreateReturnParams as cC, type CustomerAuthOptions as cD, type CustomerAuthorizationUrlInput as cE, type CustomerAuthorizationUrlResult as cF, CustomerOAuth as cG, type CustomerOAuthCallbackResult as cH, type CustomerOAuthConfig as cI, type CustomerOAuthTokenSet as cJ, type CustomerOrderListOptions as cK, DiscountApi as cL, type DiscountApiOptions as cM, type DiscountErrorReasonCode as cN, type FeaturedImagePointerInput as cO, type GetOrderByPaymentIdParams as cP, type LegacyProductSelectionParamEvent as cQ, type ListingGroupsParams as cR, MAX_CART_LINE_ADMISSIONS as cS, type MarketDTO as cT, type MediaValue as cU, type NormalizedOptionSwatch as cV, type NormalizedProductSelection as cW, OrderApi as cX, type OrderApiOptions as cY, type OrderByPaymentResult as cZ, PRODUCT_PLP_FIND_OPTIONS as c_, type ResolveProductSelectionMediaInput as ca, type ResolveProductSelectionMediaResult as cb, type ProductSelectionMediaPointer as cc, type RootClientWithEvents as cd, type BulkImportFulfillmentsParams as ce, type BulkImportFulfillmentsResponse as cf, type CalculateShippingParams as cg, type CalculateShippingResult as ch, type CancelOrderParams as ci, type CancelOrderResponse as cj, type CancelReasonCode as ck, type CartDiscountCode as cl, type CartWarning as cm, type CartWarningCode as cn, type Comment as co, type CommerceClientOptions as cp, type CommunityClientOptions as cq, type CommunityComment as cr, type CommunityCommentListSort as cs, type CommunityPost as ct, type CommunityPostCategory as cu, type CommunityPostListSort as cv, type CommunityPostTag as cw, type CommunityPublicAuthorSnapshot as cx, type CommunityPublicMediaAsset as cy, type CommunityPublicReference as cz, type CustomerMembershipView as d, type ProductSelectionOptionValue as d$, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as d0, type PrepareFulfillmentOrderParams as d1, type PrepareFulfillmentOrderResponse as d2, ProductApi as d3, type ProductApiOptions as d4, type ProductDetailBrand as d5, type ProductDetailCatalogVariant as d6, type ProductDetailCategory as d7, type ProductDetailImage as d8, type ProductDetailImageMedia as d9, type ProductListingGroupsProduct as dA, type ProductListingGroupsResponse as dB, type ProductListingPageFilters as dC, type ProductListingPageSort as dD, type ProductListingProductShape as dE, type ProductListingSwatch as dF, type ProductLocaleOption as dG, type ProductLocaleReadParams as dH, type ProductLocalizedText as dI, type ProductLocalizedValue as dJ, type ProductMediaResolutionSource as dK, type ProductMoneyRange as dL, type ProductOptionMatrix as dM, type ProductOptionMatrixOption as dN, type ProductOptionMatrixValue as dO, type ProductOptionMatrixVariant as dP, type ProductOptionShape as dQ, type ProductOptionValueShape as dR, type ProductOptionValueSwatch as dS, type ProductOptionValueSwatchInput as dT, type ProductPriceRange as dU, type ProductSelectionAvailableSwatch as dV, type ProductSelectionAvailableValue as dW, type ProductSelectionByOptionValue as dX, ProductSelectionCodecError as dY, type ProductSelectionCodecOptions as dZ, type ProductSelectionInput as d_, type ProductDetailMedia as da, type ProductDetailOption as db, type ProductDetailOptionValue as dc, type ProductDetailResult as dd, type ProductDetailTag as de, type ProductDetailUnavailableReason as df, type ProductDetailVariant as dg, type ProductDetailVariantOptionValue as dh, type ProductDetailVideo as di, type ProductFallbackLocaleOption as dj, type ProductHrefGroup as dk, type ProductHrefOptions as dl, type ProductHrefProduct as dm, type ProductListingCard as dn, type ProductListingCardOptions as dp, type ProductListingCardPriceRange as dq, type ProductListingCardRepresentativeVariant as dr, type ProductListingGroup as ds, type ProductListingGroupCatalogSummary as dt, type ProductListingGroupCatalogVariant as du, type ProductListingGroupProjection as dv, type ProductListingGroupSummary as dw, type ProductListingGroupVariant as dx, type ProductListingGroupsCatalogProduct as dy, type ProductListingGroupsCatalogResponse as dz, type CancelMembershipParams as e, type ProductSelectionResolution as e0, type ProductSelectionResolutionContext as e1, type ProductSelectionUrlEmit as e2, type ProductSelectionVariant$1 as e3, type ProductUpsertFieldValidationErrorBody as e4, type ProductUpsertFieldValidationErrorReason as e5, type ProductVariantShape as e6, type PublicCheckoutBase as e7, type RequestOptions as e8, type ResolveCancelRefundFailedResponse as e9, buildProductListingCard as eA, buildProductListingGroupProjection as eB, buildProductListingGroupsByOption as eC, buildProductOptionMatrix as eD, buildProductOptionMatrixFromDetail as eE, createProductSelectionCodec as eF, getAvailableOptionValues as eG, getProductSelectionImages as eH, getSelectedValueByOptionId as eI, getVariantAvailableForSale as eJ, getVariantAvailableStock as eK, isProductUpsertFieldValidationErrorBody as eL, normalizeProductSelection as eM, normalizeProductSelectionFromMatrix as eN, normalizeSelectedValueIds as eO, parseProductSelection as eP, projectProductToListingShape as eQ, resolveFeaturedImagePointer as eR, resolveProductDisplayMedia as eS, resolveProductSelection as eT, resolveProductSelectionFromMatrix as eU, resolveProductSelectionMedia as eV, resolveVariantForSelection as eW, selectNext as eX, selectedSwatchMediaItemId as eY, stringifyProductSelection as eZ, toShopifyPriceRangeV2 as e_, type ResolveCancelRefundOutcome as ea, type ResolveCancelRefundParams as eb, type ResolveCancelRefundResponse as ec, type ResolveCancelRefundSucceededResponse as ed, type ResolveProductDisplayMediaInput as ee, type ResolveProductDisplayMediaResult as ef, type ResolvedCatalogPrice as eg, type ReturnCancellationReasonCode as eh, type ReturnItem as ei, type ReturnReason as ej, type ReturnWithRefundItem as ek, type ReturnWithRefundParams as el, ShippingApi as em, type ShippingApiOptions as en, type StockCheckParams as eo, type StockCheckResponse as ep, type StockCheckResult as eq, type StockSnapshotItem as er, type StockSnapshotParams as es, type UpdateFulfillmentParams as et, type UpdateOrderParams as eu, type UpdateReturnParams as ev, type ValidateDiscountParams as ew, type ValidateDiscountResult as ex, type WithIdempotencyKey as ey, buildProductHref as ez, type CancelMembershipResponse as f, type ClientState as g, type ClientConfig as h, type ApiQueryOptions as i, type CancelBrowserPaymentSessionParams as j, type CartMergeParams as k, type CartMergeResult as l, type CartMineResult as m, type CartMutationResult as n, type CheckoutAbandonedReason as o, type CheckoutAmounts as p, type CheckoutOrderReference as q, type CheckoutPaymentSessionRef as r, type CheckoutShippingAddress as s, type ClearCartParams as t, type ClientMetadata as u, type ContentClientOptions as v, type CreateCartParams as w, type CreateCartResult as x, type CreateCheckoutParams as y, type CreateCheckoutResult as z };
3532
+ export { type PublicAttribute as $, type AddItemParams as A, type CreatePaymentSessionParams as B, CommerceClient as C, type CreatePortOnePaymentSessionParams as D, EventsClient as E, type CustomerSnapshot as F, type DebugConfig as G, type DeepPartial as H, type ExtractArrayType as I, type MembershipStatus as J, type Money as K, type PayloadMutationResponse as L, MarketDiscovery as M, type PaymentFailureReason as N, type OpenCheckoutPaymentState as O, type PayloadFindResponse as P, type PaymentNextAction as Q, type PaymentProviderStatus as R, type PaymentReconciliationReason as S, type PaymentSessionRole as T, type PortOneHostedPaymentMethod as U, type PortOnePaymentNextAction as V, type PortOnePublicPaymentSession as W, type ProductUpsertInput as X, type ProductUpsertParams as Y, type ProductUpsertResponse as Z, type ProductUpsertVariantInput as _, CommunityClient as a, type CollectionSchemaResponse as a$, type PublicCaptureEvidence as a0, type PublicCart as a1, type PublicCartItem as a2, type PublicCartItemAdmission as a3, type PublicCartMarket as a4, type PublicCartReference as a5, type PublicCheckout as a6, type PublicCheckoutItem as a7, type PublicMediaAsset as a8, type PublicMediaSize as a9, type UpdateDiscountCodesParams as aA, type UpdateItemParams as aB, type VariantInput as aC, type Where as aD, RawBaseApi as aE, type ServerApiOptions as aF, ServerCommerceClient as aG, type TenantIntrospectionClient as aH, type SubscribeMembershipParams as aI, type SubscribeMembershipResponse as aJ, type BanCustomerParams as aK, type CommunityBan as aL, type UnbanCustomerParams as aM, type ClientServerConfig as aN, type RootServerClientWithEvents as aO, type CancelServerPaymentSessionParams as aP, CartApi as aQ, type CartApiOptions as aR, CheckoutApi as aS, type CheckoutApiOptions as aT, type CheckoutListItem as aU, type CheckoutQueryParams as aV, type CheckoutQueryResult as aW, type CheckoutStatus as aX, type CollectionCustomFieldDefinition as aY, type CollectionCustomFields as aZ, type CollectionFieldSchema as a_, type PublicOrder as aa, type PublicOrderAmounts as ab, type PublicOrderItem as ac, type PublicOrderReference as ad, type PublicPaymentSession as ae, type ReconciliationRequired as af, type RemoveItemParams as ag, type RetrieveBrowserPaymentSessionParams as ah, type RetrieveCartParams as ai, type RetrieveCheckoutParams as aj, type RetryConfig as ak, type RootClient as al, type RootCollectionClient as am, type RootReadOnlyQueryBuilder as an, type ShippingLine as ao, type Sort as ap, type SpentCheckoutPaymentState as aq, type StorefrontContentListOptions as ar, type StorefrontContentReference as as, type StorefrontGalleryItem as at, type StorefrontGalleryItemsListOptions as au, type StorefrontGalleryItemsSort as av, type StorefrontLink as aw, type StorefrontLinksListOptions as ax, type StorefrontLinksSort as ay, type UpdateCartAttributesParams as az, ContentClient as b, type CustomerLoginData as b$, type ConfirmCustomPaymentSessionOptions as b0, type ConfirmCustomPaymentSessionParams as b1, type ConfirmCustomPaymentSessionResponse as b2, type ConfirmTossPaymentSessionParams as b3, type CreateCustomPaymentSessionParams as b4, type CreateServerCheckoutParams as b5, type CreateServerCheckoutResult as b6, type CustomPaymentSession as b7, type CustomPaymentSessionProof as b8, type EventAdmissionAvailabilityParams as b9, type RetrieveServerCheckoutParams as bA, type RetrieveServerPaymentSessionParams as bB, type RetrievedCustomPaymentSession as bC, type RootServerClient as bD, type ServerCartMergeParams as bE, type ServerCartMineParams as bF, type ServerCheckout as bG, type TenantContextInput as bH, type TenantContextResponse as bI, type TenantCustomFieldType as bJ, type TenantFeatureProgressEvidenceValue as bK, type TenantFeatureProgressFeature as bL, type TenantFeatureProgressGroup as bM, type TenantFeatureProgressInput as bN, type TenantFeatureProgressItem as bO, type TenantFeatureProgressItemState as bP, type TenantFeatureProgressResponse as bQ, type TenantFeatureProgressSeverity as bR, type TenantFeatureProgressStatus as bS, type TenantFieldConfigState as bT, TenantIntrospectionApi as bU, type TenantIntrospectionApiOptions as bV, type ApiDeleteOptions as bW, type PublicReadQueryOptions as bX, CustomerAuth as bY, type CustomerProfile as bZ, type CustomerAuthResponse as b_, type EventAdmissionAvailabilityResponse as ba, type EventAdmissionAvailabilityType as bb, type EventAdmissionPricePresentment as bc, type EventGuestCancelParams as bd, type EventGuestRegistration as be, type EventGuestRegistrationResponse as bf, type EventRegistrationAnswerInput as bg, type EventRegistrationAttendeeInput as bh, type EventRegistrationPublic as bi, type EventRegistrationRegisterParams as bj, type EventRegistrationRegisterResponse as bk, type EventsCalendarItem as bl, type EventsClientOptions as bm, type EventsDateParam as bn, type EventsExternalSource as bo, type EventsLocation as bp, type EventsOccurrenceLocation as bq, type EventsRangeEvent as br, type EventsRangeOccurrence as bs, type EventsRangeParams as bt, type EventsRangeResponse as bu, type EventsTaxonomyItem as bv, ModerationApi as bw, PaymentSessionApi as bx, type PaymentSessionApiOptions as by, type RetrieveCustomPaymentSessionParams as bz, CustomerNamespace as c, MAX_CART_LINE_ADMISSIONS as c$, type CustomerRegisterResponse as c0, type CustomerRegisterData as c1, type CustomerRefreshResponse as c2, type UpdateProfileData as c3, type ProductListingPageParams as c4, type ProductListingPageBaseParams as c5, type ProductDetailParams as c6, type ProductDetailCatalogResult as c7, type ProductListingPageCatalogParams as c8, type ProductListingPageResult as c9, type CommunityComment as cA, type CommunityCommentListSort as cB, type CommunityPost as cC, type CommunityPostCategory as cD, type CommunityPostListSort as cE, type CommunityPostTag as cF, type CommunityPublicAuthorSnapshot as cG, type CommunityPublicMediaAsset as cH, type CommunityPublicReference as cI, type CompatibilityProductSelectionParamEvent as cJ, type CreateFulfillmentParams as cK, type CreateReturnParams as cL, type CustomerAuthOptions as cM, type CustomerAuthorizationUrlInput as cN, type CustomerAuthorizationUrlResult as cO, CustomerOAuth as cP, type CustomerOAuthCallbackResult as cQ, type CustomerOAuthConfig as cR, type CustomerOAuthTokenSet as cS, type CustomerOrderListOptions as cT, DiscountApi as cU, type DiscountApiOptions as cV, type DiscountErrorReasonCode as cW, type FeaturedImagePointerInput as cX, type GetOrderByPaymentIdParams as cY, type LegacyProductSelectionParamEvent as cZ, type ListingGroupsParams as c_, type ProductListingGroupsCatalogItem as ca, type ProductListingPageFullParams as cb, type ProductListingGroupsItem as cc, BaseApi as cd, type ProductDetail as ce, type ProductDetailCatalog as cf, type StockSnapshotResponse as cg, type ProductSelectionMediaSource as ch, type ProductDisplayMediaSource as ci, type ResolveProductSelectionMediaInput as cj, type ResolveProductSelectionMediaResult as ck, type ProductSelectionMediaPointer as cl, type RootClientWithEvents as cm, type BulkImportFulfillmentsParams as cn, type BulkImportFulfillmentsResponse as co, type CalculateShippingParams as cp, type CalculateShippingResult as cq, type CancelOrderParams as cr, type CancelOrderResponse as cs, type CancelReasonCode as ct, type CartDiscountCode as cu, type CartWarning as cv, type CartWarningCode as cw, type Comment as cx, type CommerceClientOptions as cy, type CommunityClientOptions as cz, type CustomerMembershipView as d, type ProductOptionShape as d$, type ManagedPaymentNextAction as d0, type ManagedPublicPaymentSession as d1, type MarketDTO as d2, type MediaValue as d3, type NormalizedOptionSwatch as d4, type NormalizedProductSelection as d5, OrderApi as d6, type OrderApiOptions as d7, type OrderByPaymentResult as d8, PRODUCT_PLP_FIND_OPTIONS as d9, type ProductListingCardOptions as dA, type ProductListingCardPriceRange as dB, type ProductListingCardRepresentativeVariant as dC, type ProductListingGroup as dD, type ProductListingGroupCatalogSummary as dE, type ProductListingGroupCatalogVariant as dF, type ProductListingGroupProjection as dG, type ProductListingGroupSummary as dH, type ProductListingGroupVariant as dI, type ProductListingGroupsCatalogProduct as dJ, type ProductListingGroupsCatalogResponse as dK, type ProductListingGroupsProduct as dL, type ProductListingGroupsResponse as dM, type ProductListingPageFilters as dN, type ProductListingPageSort as dO, type ProductListingProductShape as dP, type ProductListingSwatch as dQ, type ProductLocaleOption as dR, type ProductLocaleReadParams as dS, type ProductLocalizedText as dT, type ProductLocalizedValue as dU, type ProductMediaResolutionSource as dV, type ProductMoneyRange as dW, type ProductOptionMatrix as dX, type ProductOptionMatrixOption as dY, type ProductOptionMatrixValue as dZ, type ProductOptionMatrixVariant as d_, PRODUCT_UPSERT_READONLY_FIELD_REASON as da, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as db, type PrepareFulfillmentOrderParams as dc, type PrepareFulfillmentOrderResponse as dd, ProductApi as de, type ProductApiOptions as df, type ProductDetailBrand as dg, type ProductDetailCatalogVariant as dh, type ProductDetailCategory as di, type ProductDetailImage as dj, type ProductDetailImageMedia as dk, type ProductDetailMedia as dl, type ProductDetailOption as dm, type ProductDetailOptionValue as dn, type ProductDetailResult as dp, type ProductDetailTag as dq, type ProductDetailUnavailableReason as dr, type ProductDetailVariant as ds, type ProductDetailVariantOptionValue as dt, type ProductDetailVideo as du, type ProductFallbackLocaleOption as dv, type ProductHrefGroup as dw, type ProductHrefOptions as dx, type ProductHrefProduct as dy, type ProductListingCard as dz, type CancelMembershipParams as e, projectProductToListingShape as e$, type ProductOptionValueShape as e0, type ProductOptionValueSwatch as e1, type ProductOptionValueSwatchInput as e2, type ProductPriceRange as e3, type ProductSelectionAvailableSwatch as e4, type ProductSelectionAvailableValue as e5, type ProductSelectionByOptionValue as e6, ProductSelectionCodecError as e7, type ProductSelectionCodecOptions as e8, type ProductSelectionInput as e9, type StockCheckResponse as eA, type StockCheckResult as eB, type StockSnapshotItem as eC, type StockSnapshotParams as eD, type UpdateFulfillmentParams as eE, type UpdateOrderParams as eF, type UpdateReturnParams as eG, type ValidateDiscountParams as eH, type ValidateDiscountResult as eI, type WithIdempotencyKey as eJ, buildProductHref as eK, buildProductListingCard as eL, buildProductListingGroupProjection as eM, buildProductListingGroupsByOption as eN, buildProductOptionMatrix as eO, buildProductOptionMatrixFromDetail as eP, createProductSelectionCodec as eQ, getAvailableOptionValues as eR, getProductSelectionImages as eS, getSelectedValueByOptionId as eT, getVariantAvailableForSale as eU, getVariantAvailableStock as eV, isProductUpsertFieldValidationErrorBody as eW, normalizeProductSelection as eX, normalizeProductSelectionFromMatrix as eY, normalizeSelectedValueIds as eZ, parseProductSelection as e_, type ProductSelectionOptionValue as ea, type ProductSelectionResolution as eb, type ProductSelectionResolutionContext as ec, type ProductSelectionUrlEmit as ed, type ProductSelectionVariant$1 as ee, type ProductUpsertFieldValidationErrorBody as ef, type ProductUpsertFieldValidationErrorReason as eg, type ProductVariantShape as eh, type PublicCheckoutBase as ei, type RequestOptions as ej, type ResolveCancelRefundFailedResponse as ek, type ResolveCancelRefundOutcome as el, type ResolveCancelRefundParams as em, type ResolveCancelRefundResponse as en, type ResolveCancelRefundSucceededResponse as eo, type ResolveProductDisplayMediaInput as ep, type ResolveProductDisplayMediaResult as eq, type ResolvedCatalogPrice as er, type ReturnCancellationReasonCode as es, type ReturnItem as et, type ReturnReason as eu, type ReturnWithRefundItem as ev, type ReturnWithRefundParams as ew, ShippingApi as ex, type ShippingApiOptions as ey, type StockCheckParams as ez, type CancelMembershipResponse as f, resolveFeaturedImagePointer as f0, resolveProductDisplayMedia as f1, resolveProductSelection as f2, resolveProductSelectionFromMatrix as f3, resolveProductSelectionMedia as f4, resolveVariantForSelection as f5, selectNext as f6, selectedSwatchMediaItemId as f7, stringifyProductSelection as f8, toShopifyPriceRangeV2 as f9, type ClientState as g, type ClientConfig as h, type ApiQueryOptions as i, type CancelBrowserPaymentSessionParams as j, type CartMergeParams as k, type CartMergeResult as l, type CartMineResult as m, type CartMutationResult as n, type CheckoutAbandonedReason as o, type CheckoutAmounts as p, type CheckoutOrderReference as q, type CheckoutPaymentSessionRef as r, type CheckoutShippingAddress as s, type ClearCartParams as t, type ClientMetadata as u, type ContentClientOptions as v, type CreateCartParams as w, type CreateCartResult as x, type CreateCheckoutParams as y, type CreateCheckoutResult as z };
@@ -1,6 +1,6 @@
1
- import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-CaPq2AE4.js';
2
- import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-BC6rVmJa.js';
3
- import { O as Order, k as Transaction, l as Fulfillment, R as Return } from './payload-types-CJZuXcgF.js';
1
+ import { P as PublicCollection, C as Collection, S as ServerCollection } from './const-k9gHylYa.js';
2
+ import { C as CollectionType, a as PublicProduct, P as PublicMarket } from './types-ByD2zii1.js';
3
+ import { O as Order, k as Transaction, l as Fulfillment, R as Return } from './payload-types-B6AZQcB7.js';
4
4
 
5
5
  declare const operationBrand: unique symbol;
6
6
  type HttpOperation = {
@@ -8,6 +8,7 @@ type HttpOperation = {
8
8
  readonly collection: string | null;
9
9
  readonly method: 'get' | 'post' | 'patch' | 'delete';
10
10
  readonly path: `/${string}`;
11
+ readonly errorFamily?: 'commerce';
11
12
  };
12
13
 
13
14
  /**
@@ -204,8 +205,11 @@ type CommunityCommentMutationResponse = CommunityComment | RawCommunityComment;
204
205
  type CommunityReactionMutationResponse = Reaction | RawCommunityReaction;
205
206
  type CommunityBookmarkMutationResponse = Bookmark | RawCommunityBookmark;
206
207
  declare class CommunityClient extends RawCustomerScopedApi {
208
+ private readonly requiresSafePublicRawReads;
207
209
  constructor(options: CommunityClientOptions);
208
210
  private buildQuery;
211
+ private withSafePublicRawReadQuery;
212
+ private buildSafePublicRawListQuery;
209
213
  private buildPostsListQuery;
210
214
  private buildCommentsListQuery;
211
215
  private execute;
@@ -227,6 +231,13 @@ declare class CommunityClient extends RawCustomerScopedApi {
227
231
  tagId?: string;
228
232
  sort?: CommunityPostListSort;
229
233
  }): Promise<PaginatedResponse<CommunityPost>>;
234
+ /**
235
+ * Public post detail projected by the same allowlist as the public feed.
236
+ * Missing, hidden, and cross-tenant posts all resolve to `null`.
237
+ */
238
+ getPost(params: {
239
+ postId: string;
240
+ }): Promise<CommunityPost | null>;
230
241
  listPostCategories(params?: {
231
242
  page?: number;
232
243
  limit?: number;
@@ -2318,6 +2329,7 @@ type Money = {
2318
2329
  amountMinor: number;
2319
2330
  currency: Uppercase<string>;
2320
2331
  };
2332
+ type PortOneHostedPaymentMethod = 'CARD_KR' | 'N_PAY' | 'KAKAO_PAY' | 'TOSS_PAY' | 'CARD_INTERNATIONAL' | 'PAY_PAL' | 'UNION_PAY' | 'ALIPAY_CN' | 'ALIPAY_HK' | 'TRUE_MONEY' | 'DANA' | 'TOUCH_N_GO' | 'G_CASH' | 'WE_CHAT_PAY' | 'KLARNA' | 'E_CONTEXT' | 'GRAB_PAY_MY' | 'GRAB_PAY_SG' | 'SHOPEE_PAY_TH' | 'PAY_PAY' | 'BPI' | 'RABBIT_LINE_PAY' | 'CONVENIENCE_STORE_JP' | 'AMAZON_PAY' | 'RAKUTEN_PAY' | 'D_BARAI' | 'AU_PAY' | 'MERPAY';
2321
2333
  type CreatePaymentSessionParams = {
2322
2334
  checkoutToken: string;
2323
2335
  idempotencyKey: string;
@@ -2326,6 +2338,15 @@ type CreatePaymentSessionParams = {
2326
2338
  profile: 'widget_v2';
2327
2339
  };
2328
2340
  };
2341
+ type CreatePortOnePaymentSessionParams = {
2342
+ checkoutToken: string;
2343
+ idempotencyKey: string;
2344
+ provider: 'portone';
2345
+ providerOptions: {
2346
+ profile: 'hosted_v2';
2347
+ paymentMethod: PortOneHostedPaymentMethod;
2348
+ };
2349
+ };
2329
2350
  type RetrieveBrowserPaymentSessionParams = {
2330
2351
  paymentSessionId: string;
2331
2352
  checkoutToken: string;
@@ -2359,6 +2380,25 @@ type CustomPaymentSession = {
2359
2380
  providerSessionId: string;
2360
2381
  money: Money;
2361
2382
  };
2383
+ type RetrieveCustomPaymentSessionParams = {
2384
+ provider: string;
2385
+ by: {
2386
+ providerSessionId: string;
2387
+ } | {
2388
+ providerPaymentId: string;
2389
+ };
2390
+ };
2391
+ type RetrievedCustomPaymentSession = {
2392
+ id: string;
2393
+ provider: string;
2394
+ providerSessionId: string;
2395
+ providerPaymentId: string | null;
2396
+ status: 'pending' | 'captured' | 'failed' | 'canceled';
2397
+ providerStatus: PaymentProviderStatus;
2398
+ finalizationStatus: 'not_ready' | 'pending' | 'committed';
2399
+ money: Money;
2400
+ orderId: string | null;
2401
+ };
2362
2402
  type ConfirmCustomPaymentSessionParams = {
2363
2403
  provider: string;
2364
2404
  providerSessionId: string;
@@ -2383,7 +2423,7 @@ type ConfirmCustomPaymentSessionOptions = {
2383
2423
  /** Receives the exact JSON bytes the SDK will send. Required only where the Console custom-provider policy requires HMAC. */
2384
2424
  createProof?: (rawBody: string) => CustomPaymentSessionProof | Promise<CustomPaymentSessionProof>;
2385
2425
  };
2386
- type PaymentNextAction = {
2426
+ type TossPaymentNextAction = {
2387
2427
  type: 'toss_widget';
2388
2428
  clientKey: string;
2389
2429
  paymentMethodVariantKey: string;
@@ -2394,6 +2434,13 @@ type PaymentNextAction = {
2394
2434
  customerName?: string;
2395
2435
  customerEmail?: string;
2396
2436
  };
2437
+ type PortOnePaymentNextAction = {
2438
+ type: 'portone_checkout';
2439
+ checkoutUrl: string;
2440
+ };
2441
+ /** Existing Toss action surface retained for source compatibility. */
2442
+ type PaymentNextAction = TossPaymentNextAction;
2443
+ type ManagedPaymentNextAction = TossPaymentNextAction | PortOnePaymentNextAction;
2397
2444
  type PaymentSessionRole = 'active' | 'canonical_candidate' | 'canonical' | 'residual' | 'historical';
2398
2445
  type PaymentProviderStatus = 'requires_payment_method' | 'requires_action' | 'requires_confirmation' | 'initializing' | 'processing' | 'authorized' | 'canceling' | 'unknown' | 'captured' | 'failed' | 'canceled';
2399
2446
  type PaymentReconciliationReason = 'provider_outcome_unknown' | 'local_commit_ambiguous' | 'amount_mismatch' | 'currency_mismatch' | 'excess_capture_pending_order' | 'inventory_unavailable' | 'admission_unavailable' | 'excess_capture' | 'late_capture' | 'cross_checkout_duplicate';
@@ -2413,7 +2460,7 @@ type PublicPaymentSessionBase = {
2413
2460
  expiresAt: string | null;
2414
2461
  sessionRole: PaymentSessionRole;
2415
2462
  };
2416
- type PublicPaymentSessionState<Action extends PaymentNextAction> = ({
2463
+ type PublicPaymentSessionState<Action extends ManagedPaymentNextAction> = ({
2417
2464
  providerStatus: 'requires_payment_method' | 'requires_action';
2418
2465
  finalizationStatus: 'not_ready';
2419
2466
  reconciliation: {
@@ -2544,15 +2591,22 @@ type PublicPaymentSessionState<Action extends PaymentNextAction> = ({
2544
2591
  };
2545
2592
  type PublicPaymentSession = PublicPaymentSessionBase & {
2546
2593
  provider: 'toss';
2547
- } & PublicPaymentSessionState<PaymentNextAction>;
2594
+ } & PublicPaymentSessionState<TossPaymentNextAction>;
2595
+ type PortOnePublicPaymentSession = PublicPaymentSessionBase & {
2596
+ provider: 'portone';
2597
+ } & PublicPaymentSessionState<PortOnePaymentNextAction>;
2598
+ type ManagedPublicPaymentSession = PublicPaymentSession | PortOnePublicPaymentSession;
2548
2599
  declare class PaymentSessionApi extends CustomerScopedApi {
2549
2600
  private readonly serverTransport;
2550
2601
  constructor(options: PaymentSessionApiOptions);
2551
2602
  private post;
2552
2603
  private paymentSession;
2553
2604
  create(params: CreatePaymentSessionParams): Promise<PublicPaymentSession>;
2605
+ createPortOne(params: CreatePortOnePaymentSessionParams): Promise<PortOnePublicPaymentSession>;
2554
2606
  retrieve(params: RetrieveBrowserPaymentSessionParams | RetrieveServerPaymentSessionParams): Promise<PublicPaymentSession>;
2607
+ retrievePortOne(params: RetrieveBrowserPaymentSessionParams | RetrieveServerPaymentSessionParams): Promise<PortOnePublicPaymentSession>;
2555
2608
  cancel(params: CancelBrowserPaymentSessionParams | CancelServerPaymentSessionParams): Promise<PublicPaymentSession>;
2609
+ cancelPortOne(params: CancelBrowserPaymentSessionParams | CancelServerPaymentSessionParams): Promise<PortOnePublicPaymentSession>;
2556
2610
  confirm(params: ConfirmTossPaymentSessionParams): Promise<PublicPaymentSession>;
2557
2611
  }
2558
2612
 
@@ -2608,8 +2662,11 @@ declare class CommerceClient {
2608
2662
  };
2609
2663
  readonly paymentSessions: {
2610
2664
  create: (params: CreatePaymentSessionParams) => Promise<PublicPaymentSession>;
2665
+ createPortOne: (params: CreatePortOnePaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2611
2666
  retrieve: (params: RetrieveBrowserPaymentSessionParams) => Promise<PublicPaymentSession>;
2667
+ retrievePortOne: (params: RetrieveBrowserPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2612
2668
  cancel: (params: CancelBrowserPaymentSessionParams) => Promise<PublicPaymentSession>;
2669
+ cancelPortOne: (params: CancelBrowserPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2613
2670
  };
2614
2671
  readonly discounts: {
2615
2672
  validate: (params: ValidateDiscountParams) => Promise<ValidateDiscountResult>;
@@ -2758,11 +2815,15 @@ declare class ServerCommerceClient {
2758
2815
  };
2759
2816
  readonly paymentSessions: {
2760
2817
  create: (params: CreatePaymentSessionParams) => Promise<PublicPaymentSession>;
2818
+ createPortOne: (params: CreatePortOnePaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2761
2819
  retrieve: (params: RetrieveServerPaymentSessionParams) => Promise<PublicPaymentSession>;
2820
+ retrievePortOne: (params: RetrieveServerPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2762
2821
  cancel: (params: CancelServerPaymentSessionParams) => Promise<PublicPaymentSession>;
2822
+ cancelPortOne: (params: CancelServerPaymentSessionParams) => Promise<PortOnePublicPaymentSession>;
2763
2823
  confirm: (params: ConfirmTossPaymentSessionParams) => Promise<PublicPaymentSession>;
2764
2824
  custom: {
2765
2825
  create: (params: CreateCustomPaymentSessionParams) => Promise<CustomPaymentSession>;
2826
+ retrieve: (params: RetrieveCustomPaymentSessionParams) => Promise<RetrievedCustomPaymentSession>;
2766
2827
  confirm: (params: ConfirmCustomPaymentSessionParams, options?: ConfirmCustomPaymentSessionOptions) => Promise<ConfirmCustomPaymentSessionResponse>;
2767
2828
  };
2768
2829
  };
@@ -3110,6 +3171,21 @@ interface CollectionFieldSchema {
3110
3171
  writable?: boolean;
3111
3172
  fields?: CollectionFieldSchema[];
3112
3173
  }
3174
+ type TenantCustomFieldType = 'text' | 'number' | 'select' | 'boolean' | 'date';
3175
+ type CollectionCustomFieldDefinition = {
3176
+ key: string;
3177
+ type: Exclude<TenantCustomFieldType, 'select'>;
3178
+ required?: true;
3179
+ } | {
3180
+ key: string;
3181
+ type: 'select';
3182
+ required?: true;
3183
+ options: string[];
3184
+ };
3185
+ interface CollectionCustomFields {
3186
+ storagePath: 'customData';
3187
+ definitions: CollectionCustomFieldDefinition[];
3188
+ }
3113
3189
  interface CollectionSchemaResponse {
3114
3190
  contractVersion: 1;
3115
3191
  mode: 'effective';
@@ -3124,6 +3200,7 @@ interface CollectionSchemaResponse {
3124
3200
  hiddenFields: string[];
3125
3201
  };
3126
3202
  fields: CollectionFieldSchema[];
3203
+ customFields?: CollectionCustomFields;
3127
3204
  };
3128
3205
  }
3129
3206
  interface TenantIntrospectionClient {
@@ -3452,4 +3529,4 @@ type DeepPartial<T> = {
3452
3529
  };
3453
3530
  type ExtractArrayType<T> = T extends (infer U)[] ? U : never;
3454
3531
 
3455
- export { type PublicCartItemAdmission as $, type AddItemParams as A, type CreatePaymentSessionParams as B, CommerceClient as C, type CustomerSnapshot as D, EventsClient as E, type DebugConfig as F, type DeepPartial as G, type ExtractArrayType as H, type MembershipStatus as I, type Money as J, type PayloadMutationResponse as K, type PaymentFailureReason as L, MarketDiscovery as M, type PaymentNextAction as N, type OpenCheckoutPaymentState as O, type PayloadFindResponse as P, type PaymentProviderStatus as Q, type PaymentReconciliationReason as R, type PaymentSessionRole as S, type ProductUpsertInput as T, type ProductUpsertParams as U, type ProductUpsertResponse as V, type ProductUpsertVariantInput as W, type PublicAttribute as X, type PublicCaptureEvidence as Y, type PublicCart as Z, type PublicCartItem as _, CommunityClient as a, type CreateServerCheckoutParams as a$, type PublicCartMarket as a0, type PublicCartReference as a1, type PublicCheckout as a2, type PublicCheckoutItem as a3, type PublicMediaAsset as a4, type PublicMediaSize as a5, type PublicOrder as a6, type PublicOrderAmounts as a7, type PublicOrderItem as a8, type PublicOrderReference as a9, RawBaseApi as aA, type ServerApiOptions as aB, ServerCommerceClient as aC, type TenantIntrospectionClient as aD, type SubscribeMembershipParams as aE, type SubscribeMembershipResponse as aF, type BanCustomerParams as aG, type CommunityBan as aH, type UnbanCustomerParams as aI, type ClientServerConfig as aJ, type RootServerClientWithEvents as aK, type CancelServerPaymentSessionParams as aL, CartApi as aM, type CartApiOptions as aN, CheckoutApi as aO, type CheckoutApiOptions as aP, type CheckoutListItem as aQ, type CheckoutQueryParams as aR, type CheckoutQueryResult as aS, type CheckoutStatus as aT, type CollectionFieldSchema as aU, type CollectionSchemaResponse as aV, type ConfirmCustomPaymentSessionOptions as aW, type ConfirmCustomPaymentSessionParams as aX, type ConfirmCustomPaymentSessionResponse as aY, type ConfirmTossPaymentSessionParams as aZ, type CreateCustomPaymentSessionParams as a_, type PublicPaymentSession as aa, type ReconciliationRequired as ab, type RemoveItemParams as ac, type RetrieveBrowserPaymentSessionParams as ad, type RetrieveCartParams as ae, type RetrieveCheckoutParams as af, type RetryConfig as ag, type RootClient as ah, type RootCollectionClient as ai, type RootReadOnlyQueryBuilder as aj, type ShippingLine as ak, type Sort as al, type SpentCheckoutPaymentState as am, type StorefrontContentListOptions as an, type StorefrontContentReference as ao, type StorefrontGalleryItem as ap, type StorefrontGalleryItemsListOptions as aq, type StorefrontGalleryItemsSort as ar, type StorefrontLink as as, type StorefrontLinksListOptions as at, type StorefrontLinksSort as au, type UpdateCartAttributesParams as av, type UpdateDiscountCodesParams as aw, type UpdateItemParams as ax, type VariantInput as ay, type Where as az, ContentClient as b, type ProductListingPageCatalogParams as b$, type CreateServerCheckoutResult as b0, type CustomPaymentSession as b1, type CustomPaymentSessionProof as b2, type EventAdmissionAvailabilityParams as b3, type EventAdmissionAvailabilityResponse as b4, type EventAdmissionAvailabilityType as b5, type EventAdmissionPricePresentment as b6, type EventGuestCancelParams as b7, type EventGuestRegistration as b8, type EventGuestRegistrationResponse as b9, type TenantContextResponse as bA, type TenantFeatureProgressEvidenceValue as bB, type TenantFeatureProgressFeature as bC, type TenantFeatureProgressGroup as bD, type TenantFeatureProgressInput as bE, type TenantFeatureProgressItem as bF, type TenantFeatureProgressItemState as bG, type TenantFeatureProgressResponse as bH, type TenantFeatureProgressSeverity as bI, type TenantFeatureProgressStatus as bJ, type TenantFieldConfigState as bK, TenantIntrospectionApi as bL, type TenantIntrospectionApiOptions as bM, type ApiDeleteOptions as bN, type PublicReadQueryOptions as bO, CustomerAuth as bP, type CustomerProfile as bQ, type CustomerAuthResponse as bR, type CustomerLoginData as bS, type CustomerRegisterResponse as bT, type CustomerRegisterData as bU, type CustomerRefreshResponse as bV, type UpdateProfileData as bW, type ProductListingPageParams as bX, type ProductListingPageBaseParams as bY, type ProductDetailParams as bZ, type ProductDetailCatalogResult as b_, type EventRegistrationAnswerInput as ba, type EventRegistrationAttendeeInput as bb, type EventRegistrationPublic as bc, type EventRegistrationRegisterParams as bd, type EventRegistrationRegisterResponse as be, type EventsCalendarItem as bf, type EventsClientOptions as bg, type EventsDateParam as bh, type EventsExternalSource as bi, type EventsLocation as bj, type EventsOccurrenceLocation as bk, type EventsRangeEvent as bl, type EventsRangeOccurrence as bm, type EventsRangeParams as bn, type EventsRangeResponse as bo, type EventsTaxonomyItem as bp, ModerationApi as bq, PaymentSessionApi as br, type PaymentSessionApiOptions as bs, type RetrieveServerCheckoutParams as bt, type RetrieveServerPaymentSessionParams as bu, type RootServerClient as bv, type ServerCartMergeParams as bw, type ServerCartMineParams as bx, type ServerCheckout as by, type TenantContextInput as bz, CustomerNamespace as c, PRODUCT_UPSERT_READONLY_FIELD_REASON as c$, type ProductListingPageResult as c0, type ProductListingGroupsCatalogItem as c1, type ProductListingPageFullParams as c2, type ProductListingGroupsItem as c3, BaseApi as c4, type ProductDetail as c5, type ProductDetailCatalog as c6, type StockSnapshotResponse as c7, type ProductSelectionMediaSource as c8, type ProductDisplayMediaSource as c9, type CompatibilityProductSelectionParamEvent as cA, type CreateFulfillmentParams as cB, type CreateReturnParams as cC, type CustomerAuthOptions as cD, type CustomerAuthorizationUrlInput as cE, type CustomerAuthorizationUrlResult as cF, CustomerOAuth as cG, type CustomerOAuthCallbackResult as cH, type CustomerOAuthConfig as cI, type CustomerOAuthTokenSet as cJ, type CustomerOrderListOptions as cK, DiscountApi as cL, type DiscountApiOptions as cM, type DiscountErrorReasonCode as cN, type FeaturedImagePointerInput as cO, type GetOrderByPaymentIdParams as cP, type LegacyProductSelectionParamEvent as cQ, type ListingGroupsParams as cR, MAX_CART_LINE_ADMISSIONS as cS, type MarketDTO as cT, type MediaValue as cU, type NormalizedOptionSwatch as cV, type NormalizedProductSelection as cW, OrderApi as cX, type OrderApiOptions as cY, type OrderByPaymentResult as cZ, PRODUCT_PLP_FIND_OPTIONS as c_, type ResolveProductSelectionMediaInput as ca, type ResolveProductSelectionMediaResult as cb, type ProductSelectionMediaPointer as cc, type RootClientWithEvents as cd, type BulkImportFulfillmentsParams as ce, type BulkImportFulfillmentsResponse as cf, type CalculateShippingParams as cg, type CalculateShippingResult as ch, type CancelOrderParams as ci, type CancelOrderResponse as cj, type CancelReasonCode as ck, type CartDiscountCode as cl, type CartWarning as cm, type CartWarningCode as cn, type Comment as co, type CommerceClientOptions as cp, type CommunityClientOptions as cq, type CommunityComment as cr, type CommunityCommentListSort as cs, type CommunityPost as ct, type CommunityPostCategory as cu, type CommunityPostListSort as cv, type CommunityPostTag as cw, type CommunityPublicAuthorSnapshot as cx, type CommunityPublicMediaAsset as cy, type CommunityPublicReference as cz, type CustomerMembershipView as d, type ProductSelectionOptionValue as d$, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as d0, type PrepareFulfillmentOrderParams as d1, type PrepareFulfillmentOrderResponse as d2, ProductApi as d3, type ProductApiOptions as d4, type ProductDetailBrand as d5, type ProductDetailCatalogVariant as d6, type ProductDetailCategory as d7, type ProductDetailImage as d8, type ProductDetailImageMedia as d9, type ProductListingGroupsProduct as dA, type ProductListingGroupsResponse as dB, type ProductListingPageFilters as dC, type ProductListingPageSort as dD, type ProductListingProductShape as dE, type ProductListingSwatch as dF, type ProductLocaleOption as dG, type ProductLocaleReadParams as dH, type ProductLocalizedText as dI, type ProductLocalizedValue as dJ, type ProductMediaResolutionSource as dK, type ProductMoneyRange as dL, type ProductOptionMatrix as dM, type ProductOptionMatrixOption as dN, type ProductOptionMatrixValue as dO, type ProductOptionMatrixVariant as dP, type ProductOptionShape as dQ, type ProductOptionValueShape as dR, type ProductOptionValueSwatch as dS, type ProductOptionValueSwatchInput as dT, type ProductPriceRange as dU, type ProductSelectionAvailableSwatch as dV, type ProductSelectionAvailableValue as dW, type ProductSelectionByOptionValue as dX, ProductSelectionCodecError as dY, type ProductSelectionCodecOptions as dZ, type ProductSelectionInput as d_, type ProductDetailMedia as da, type ProductDetailOption as db, type ProductDetailOptionValue as dc, type ProductDetailResult as dd, type ProductDetailTag as de, type ProductDetailUnavailableReason as df, type ProductDetailVariant as dg, type ProductDetailVariantOptionValue as dh, type ProductDetailVideo as di, type ProductFallbackLocaleOption as dj, type ProductHrefGroup as dk, type ProductHrefOptions as dl, type ProductHrefProduct as dm, type ProductListingCard as dn, type ProductListingCardOptions as dp, type ProductListingCardPriceRange as dq, type ProductListingCardRepresentativeVariant as dr, type ProductListingGroup as ds, type ProductListingGroupCatalogSummary as dt, type ProductListingGroupCatalogVariant as du, type ProductListingGroupProjection as dv, type ProductListingGroupSummary as dw, type ProductListingGroupVariant as dx, type ProductListingGroupsCatalogProduct as dy, type ProductListingGroupsCatalogResponse as dz, type CancelMembershipParams as e, type ProductSelectionResolution as e0, type ProductSelectionResolutionContext as e1, type ProductSelectionUrlEmit as e2, type ProductSelectionVariant$1 as e3, type ProductUpsertFieldValidationErrorBody as e4, type ProductUpsertFieldValidationErrorReason as e5, type ProductVariantShape as e6, type PublicCheckoutBase as e7, type RequestOptions as e8, type ResolveCancelRefundFailedResponse as e9, buildProductListingCard as eA, buildProductListingGroupProjection as eB, buildProductListingGroupsByOption as eC, buildProductOptionMatrix as eD, buildProductOptionMatrixFromDetail as eE, createProductSelectionCodec as eF, getAvailableOptionValues as eG, getProductSelectionImages as eH, getSelectedValueByOptionId as eI, getVariantAvailableForSale as eJ, getVariantAvailableStock as eK, isProductUpsertFieldValidationErrorBody as eL, normalizeProductSelection as eM, normalizeProductSelectionFromMatrix as eN, normalizeSelectedValueIds as eO, parseProductSelection as eP, projectProductToListingShape as eQ, resolveFeaturedImagePointer as eR, resolveProductDisplayMedia as eS, resolveProductSelection as eT, resolveProductSelectionFromMatrix as eU, resolveProductSelectionMedia as eV, resolveVariantForSelection as eW, selectNext as eX, selectedSwatchMediaItemId as eY, stringifyProductSelection as eZ, toShopifyPriceRangeV2 as e_, type ResolveCancelRefundOutcome as ea, type ResolveCancelRefundParams as eb, type ResolveCancelRefundResponse as ec, type ResolveCancelRefundSucceededResponse as ed, type ResolveProductDisplayMediaInput as ee, type ResolveProductDisplayMediaResult as ef, type ResolvedCatalogPrice as eg, type ReturnCancellationReasonCode as eh, type ReturnItem as ei, type ReturnReason as ej, type ReturnWithRefundItem as ek, type ReturnWithRefundParams as el, ShippingApi as em, type ShippingApiOptions as en, type StockCheckParams as eo, type StockCheckResponse as ep, type StockCheckResult as eq, type StockSnapshotItem as er, type StockSnapshotParams as es, type UpdateFulfillmentParams as et, type UpdateOrderParams as eu, type UpdateReturnParams as ev, type ValidateDiscountParams as ew, type ValidateDiscountResult as ex, type WithIdempotencyKey as ey, buildProductHref as ez, type CancelMembershipResponse as f, type ClientState as g, type ClientConfig as h, type ApiQueryOptions as i, type CancelBrowserPaymentSessionParams as j, type CartMergeParams as k, type CartMergeResult as l, type CartMineResult as m, type CartMutationResult as n, type CheckoutAbandonedReason as o, type CheckoutAmounts as p, type CheckoutOrderReference as q, type CheckoutPaymentSessionRef as r, type CheckoutShippingAddress as s, type ClearCartParams as t, type ClientMetadata as u, type ContentClientOptions as v, type CreateCartParams as w, type CreateCartResult as x, type CreateCheckoutParams as y, type CreateCheckoutResult as z };
3532
+ export { type PublicAttribute as $, type AddItemParams as A, type CreatePaymentSessionParams as B, CommerceClient as C, type CreatePortOnePaymentSessionParams as D, EventsClient as E, type CustomerSnapshot as F, type DebugConfig as G, type DeepPartial as H, type ExtractArrayType as I, type MembershipStatus as J, type Money as K, type PayloadMutationResponse as L, MarketDiscovery as M, type PaymentFailureReason as N, type OpenCheckoutPaymentState as O, type PayloadFindResponse as P, type PaymentNextAction as Q, type PaymentProviderStatus as R, type PaymentReconciliationReason as S, type PaymentSessionRole as T, type PortOneHostedPaymentMethod as U, type PortOnePaymentNextAction as V, type PortOnePublicPaymentSession as W, type ProductUpsertInput as X, type ProductUpsertParams as Y, type ProductUpsertResponse as Z, type ProductUpsertVariantInput as _, CommunityClient as a, type CollectionSchemaResponse as a$, type PublicCaptureEvidence as a0, type PublicCart as a1, type PublicCartItem as a2, type PublicCartItemAdmission as a3, type PublicCartMarket as a4, type PublicCartReference as a5, type PublicCheckout as a6, type PublicCheckoutItem as a7, type PublicMediaAsset as a8, type PublicMediaSize as a9, type UpdateDiscountCodesParams as aA, type UpdateItemParams as aB, type VariantInput as aC, type Where as aD, RawBaseApi as aE, type ServerApiOptions as aF, ServerCommerceClient as aG, type TenantIntrospectionClient as aH, type SubscribeMembershipParams as aI, type SubscribeMembershipResponse as aJ, type BanCustomerParams as aK, type CommunityBan as aL, type UnbanCustomerParams as aM, type ClientServerConfig as aN, type RootServerClientWithEvents as aO, type CancelServerPaymentSessionParams as aP, CartApi as aQ, type CartApiOptions as aR, CheckoutApi as aS, type CheckoutApiOptions as aT, type CheckoutListItem as aU, type CheckoutQueryParams as aV, type CheckoutQueryResult as aW, type CheckoutStatus as aX, type CollectionCustomFieldDefinition as aY, type CollectionCustomFields as aZ, type CollectionFieldSchema as a_, type PublicOrder as aa, type PublicOrderAmounts as ab, type PublicOrderItem as ac, type PublicOrderReference as ad, type PublicPaymentSession as ae, type ReconciliationRequired as af, type RemoveItemParams as ag, type RetrieveBrowserPaymentSessionParams as ah, type RetrieveCartParams as ai, type RetrieveCheckoutParams as aj, type RetryConfig as ak, type RootClient as al, type RootCollectionClient as am, type RootReadOnlyQueryBuilder as an, type ShippingLine as ao, type Sort as ap, type SpentCheckoutPaymentState as aq, type StorefrontContentListOptions as ar, type StorefrontContentReference as as, type StorefrontGalleryItem as at, type StorefrontGalleryItemsListOptions as au, type StorefrontGalleryItemsSort as av, type StorefrontLink as aw, type StorefrontLinksListOptions as ax, type StorefrontLinksSort as ay, type UpdateCartAttributesParams as az, ContentClient as b, type CustomerLoginData as b$, type ConfirmCustomPaymentSessionOptions as b0, type ConfirmCustomPaymentSessionParams as b1, type ConfirmCustomPaymentSessionResponse as b2, type ConfirmTossPaymentSessionParams as b3, type CreateCustomPaymentSessionParams as b4, type CreateServerCheckoutParams as b5, type CreateServerCheckoutResult as b6, type CustomPaymentSession as b7, type CustomPaymentSessionProof as b8, type EventAdmissionAvailabilityParams as b9, type RetrieveServerCheckoutParams as bA, type RetrieveServerPaymentSessionParams as bB, type RetrievedCustomPaymentSession as bC, type RootServerClient as bD, type ServerCartMergeParams as bE, type ServerCartMineParams as bF, type ServerCheckout as bG, type TenantContextInput as bH, type TenantContextResponse as bI, type TenantCustomFieldType as bJ, type TenantFeatureProgressEvidenceValue as bK, type TenantFeatureProgressFeature as bL, type TenantFeatureProgressGroup as bM, type TenantFeatureProgressInput as bN, type TenantFeatureProgressItem as bO, type TenantFeatureProgressItemState as bP, type TenantFeatureProgressResponse as bQ, type TenantFeatureProgressSeverity as bR, type TenantFeatureProgressStatus as bS, type TenantFieldConfigState as bT, TenantIntrospectionApi as bU, type TenantIntrospectionApiOptions as bV, type ApiDeleteOptions as bW, type PublicReadQueryOptions as bX, CustomerAuth as bY, type CustomerProfile as bZ, type CustomerAuthResponse as b_, type EventAdmissionAvailabilityResponse as ba, type EventAdmissionAvailabilityType as bb, type EventAdmissionPricePresentment as bc, type EventGuestCancelParams as bd, type EventGuestRegistration as be, type EventGuestRegistrationResponse as bf, type EventRegistrationAnswerInput as bg, type EventRegistrationAttendeeInput as bh, type EventRegistrationPublic as bi, type EventRegistrationRegisterParams as bj, type EventRegistrationRegisterResponse as bk, type EventsCalendarItem as bl, type EventsClientOptions as bm, type EventsDateParam as bn, type EventsExternalSource as bo, type EventsLocation as bp, type EventsOccurrenceLocation as bq, type EventsRangeEvent as br, type EventsRangeOccurrence as bs, type EventsRangeParams as bt, type EventsRangeResponse as bu, type EventsTaxonomyItem as bv, ModerationApi as bw, PaymentSessionApi as bx, type PaymentSessionApiOptions as by, type RetrieveCustomPaymentSessionParams as bz, CustomerNamespace as c, MAX_CART_LINE_ADMISSIONS as c$, type CustomerRegisterResponse as c0, type CustomerRegisterData as c1, type CustomerRefreshResponse as c2, type UpdateProfileData as c3, type ProductListingPageParams as c4, type ProductListingPageBaseParams as c5, type ProductDetailParams as c6, type ProductDetailCatalogResult as c7, type ProductListingPageCatalogParams as c8, type ProductListingPageResult as c9, type CommunityComment as cA, type CommunityCommentListSort as cB, type CommunityPost as cC, type CommunityPostCategory as cD, type CommunityPostListSort as cE, type CommunityPostTag as cF, type CommunityPublicAuthorSnapshot as cG, type CommunityPublicMediaAsset as cH, type CommunityPublicReference as cI, type CompatibilityProductSelectionParamEvent as cJ, type CreateFulfillmentParams as cK, type CreateReturnParams as cL, type CustomerAuthOptions as cM, type CustomerAuthorizationUrlInput as cN, type CustomerAuthorizationUrlResult as cO, CustomerOAuth as cP, type CustomerOAuthCallbackResult as cQ, type CustomerOAuthConfig as cR, type CustomerOAuthTokenSet as cS, type CustomerOrderListOptions as cT, DiscountApi as cU, type DiscountApiOptions as cV, type DiscountErrorReasonCode as cW, type FeaturedImagePointerInput as cX, type GetOrderByPaymentIdParams as cY, type LegacyProductSelectionParamEvent as cZ, type ListingGroupsParams as c_, type ProductListingGroupsCatalogItem as ca, type ProductListingPageFullParams as cb, type ProductListingGroupsItem as cc, BaseApi as cd, type ProductDetail as ce, type ProductDetailCatalog as cf, type StockSnapshotResponse as cg, type ProductSelectionMediaSource as ch, type ProductDisplayMediaSource as ci, type ResolveProductSelectionMediaInput as cj, type ResolveProductSelectionMediaResult as ck, type ProductSelectionMediaPointer as cl, type RootClientWithEvents as cm, type BulkImportFulfillmentsParams as cn, type BulkImportFulfillmentsResponse as co, type CalculateShippingParams as cp, type CalculateShippingResult as cq, type CancelOrderParams as cr, type CancelOrderResponse as cs, type CancelReasonCode as ct, type CartDiscountCode as cu, type CartWarning as cv, type CartWarningCode as cw, type Comment as cx, type CommerceClientOptions as cy, type CommunityClientOptions as cz, type CustomerMembershipView as d, type ProductOptionShape as d$, type ManagedPaymentNextAction as d0, type ManagedPublicPaymentSession as d1, type MarketDTO as d2, type MediaValue as d3, type NormalizedOptionSwatch as d4, type NormalizedProductSelection as d5, OrderApi as d6, type OrderApiOptions as d7, type OrderByPaymentResult as d8, PRODUCT_PLP_FIND_OPTIONS as d9, type ProductListingCardOptions as dA, type ProductListingCardPriceRange as dB, type ProductListingCardRepresentativeVariant as dC, type ProductListingGroup as dD, type ProductListingGroupCatalogSummary as dE, type ProductListingGroupCatalogVariant as dF, type ProductListingGroupProjection as dG, type ProductListingGroupSummary as dH, type ProductListingGroupVariant as dI, type ProductListingGroupsCatalogProduct as dJ, type ProductListingGroupsCatalogResponse as dK, type ProductListingGroupsProduct as dL, type ProductListingGroupsResponse as dM, type ProductListingPageFilters as dN, type ProductListingPageSort as dO, type ProductListingProductShape as dP, type ProductListingSwatch as dQ, type ProductLocaleOption as dR, type ProductLocaleReadParams as dS, type ProductLocalizedText as dT, type ProductLocalizedValue as dU, type ProductMediaResolutionSource as dV, type ProductMoneyRange as dW, type ProductOptionMatrix as dX, type ProductOptionMatrixOption as dY, type ProductOptionMatrixValue as dZ, type ProductOptionMatrixVariant as d_, PRODUCT_UPSERT_READONLY_FIELD_REASON as da, PRODUCT_UPSERT_UNKNOWN_FIELD_REASON as db, type PrepareFulfillmentOrderParams as dc, type PrepareFulfillmentOrderResponse as dd, ProductApi as de, type ProductApiOptions as df, type ProductDetailBrand as dg, type ProductDetailCatalogVariant as dh, type ProductDetailCategory as di, type ProductDetailImage as dj, type ProductDetailImageMedia as dk, type ProductDetailMedia as dl, type ProductDetailOption as dm, type ProductDetailOptionValue as dn, type ProductDetailResult as dp, type ProductDetailTag as dq, type ProductDetailUnavailableReason as dr, type ProductDetailVariant as ds, type ProductDetailVariantOptionValue as dt, type ProductDetailVideo as du, type ProductFallbackLocaleOption as dv, type ProductHrefGroup as dw, type ProductHrefOptions as dx, type ProductHrefProduct as dy, type ProductListingCard as dz, type CancelMembershipParams as e, projectProductToListingShape as e$, type ProductOptionValueShape as e0, type ProductOptionValueSwatch as e1, type ProductOptionValueSwatchInput as e2, type ProductPriceRange as e3, type ProductSelectionAvailableSwatch as e4, type ProductSelectionAvailableValue as e5, type ProductSelectionByOptionValue as e6, ProductSelectionCodecError as e7, type ProductSelectionCodecOptions as e8, type ProductSelectionInput as e9, type StockCheckResponse as eA, type StockCheckResult as eB, type StockSnapshotItem as eC, type StockSnapshotParams as eD, type UpdateFulfillmentParams as eE, type UpdateOrderParams as eF, type UpdateReturnParams as eG, type ValidateDiscountParams as eH, type ValidateDiscountResult as eI, type WithIdempotencyKey as eJ, buildProductHref as eK, buildProductListingCard as eL, buildProductListingGroupProjection as eM, buildProductListingGroupsByOption as eN, buildProductOptionMatrix as eO, buildProductOptionMatrixFromDetail as eP, createProductSelectionCodec as eQ, getAvailableOptionValues as eR, getProductSelectionImages as eS, getSelectedValueByOptionId as eT, getVariantAvailableForSale as eU, getVariantAvailableStock as eV, isProductUpsertFieldValidationErrorBody as eW, normalizeProductSelection as eX, normalizeProductSelectionFromMatrix as eY, normalizeSelectedValueIds as eZ, parseProductSelection as e_, type ProductSelectionOptionValue as ea, type ProductSelectionResolution as eb, type ProductSelectionResolutionContext as ec, type ProductSelectionUrlEmit as ed, type ProductSelectionVariant$1 as ee, type ProductUpsertFieldValidationErrorBody as ef, type ProductUpsertFieldValidationErrorReason as eg, type ProductVariantShape as eh, type PublicCheckoutBase as ei, type RequestOptions as ej, type ResolveCancelRefundFailedResponse as ek, type ResolveCancelRefundOutcome as el, type ResolveCancelRefundParams as em, type ResolveCancelRefundResponse as en, type ResolveCancelRefundSucceededResponse as eo, type ResolveProductDisplayMediaInput as ep, type ResolveProductDisplayMediaResult as eq, type ResolvedCatalogPrice as er, type ReturnCancellationReasonCode as es, type ReturnItem as et, type ReturnReason as eu, type ReturnWithRefundItem as ev, type ReturnWithRefundParams as ew, ShippingApi as ex, type ShippingApiOptions as ey, type StockCheckParams as ez, type CancelMembershipResponse as f, resolveFeaturedImagePointer as f0, resolveProductDisplayMedia as f1, resolveProductSelection as f2, resolveProductSelectionFromMatrix as f3, resolveProductSelectionMedia as f4, resolveVariantForSelection as f5, selectNext as f6, selectedSwatchMediaItemId as f7, stringifyProductSelection as f8, toShopifyPriceRangeV2 as f9, type ClientState as g, type ClientConfig as h, type ApiQueryOptions as i, type CancelBrowserPaymentSessionParams as j, type CartMergeParams as k, type CartMergeResult as l, type CartMineResult as m, type CartMutationResult as n, type CheckoutAbandonedReason as o, type CheckoutAmounts as p, type CheckoutOrderReference as q, type CheckoutPaymentSessionRef as r, type CheckoutShippingAddress as s, type ClearCartParams as t, type ClientMetadata as u, type ContentClientOptions as v, type CreateCartParams as w, type CreateCartResult as x, type CreateCheckoutParams as y, type CreateCheckoutResult as z };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-CJZuXcgF.cjs';
2
+ import { F as Form } from '../payload-types-B6AZQcB7.cjs';
3
3
  import { RichTextData } from './rich-text.cjs';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
package/dist/ui/form.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { F as Form } from '../payload-types-CJZuXcgF.js';
2
+ import { F as Form } from '../payload-types-B6AZQcB7.js';
3
3
  import { RichTextData } from './rich-text.js';
4
4
  import '@payloadcms/richtext-lexical';
5
5
  import '@payloadcms/richtext-lexical/lexical';
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-CJZuXcgF.cjs';
4
+ import { V as Video } from '../payload-types-B6AZQcB7.cjs';
5
5
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from '../video-WR_TFO9a.cjs';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,7 +1,7 @@
1
1
  import React, { CSSProperties } from 'react';
2
2
  import { MuxPlayerProps, MuxPlayerRefAttributes } from '@mux/mux-player-react';
3
3
  export { MuxPlayerRefAttributes as VideoPlayerRef } from '@mux/mux-player-react';
4
- import { V as Video } from '../payload-types-CJZuXcgF.js';
4
+ import { V as Video } from '../payload-types-B6AZQcB7.js';
5
5
  export { V as VideoGifOptions, a as VideoThumbnailOptions, g as getVideoGif, b as getVideoMp4Url, c as getVideoStoryboard, d as getVideoStreamUrl, e as getVideoThumbnail } from '../video-WR_TFO9a.js';
6
6
 
7
7
  interface VideoPlayerCSSProperties extends CSSProperties {
@@ -1,7 +1,7 @@
1
- export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-YGrZrxNn.cjs';
2
- import { W as Webhook } from './payload-types-CJZuXcgF.cjs';
3
- import './const-BAG0MH0u.cjs';
4
- import './types-D5p7-m1l.cjs';
1
+ export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-BCM9CTL7.cjs';
2
+ import { W as Webhook } from './payload-types-B6AZQcB7.cjs';
3
+ import './const-BXEi1Kix.cjs';
4
+ import './types-8us-_C-Q.cjs';
5
5
 
6
6
  /**
7
7
  * Webhook records returned from ordinary list/find — `secret` is encrypted at
package/dist/webhook.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-BNICJxBL.js';
2
- import { W as Webhook } from './payload-types-CJZuXcgF.js';
3
- import './const-CaPq2AE4.js';
4
- import './types-BC6rVmJa.js';
1
+ export { C as COMMERCE_NOTIFICATION_EVENTS, a as COMMERCE_NOTIFICATION_EVENT_TYPE, b as COMMERCE_NOTIFICATION_OPERATION, c as CUSTOMER_PASSWORD_RESET_OPERATION, d as CollectionWebhookOperation, e as CommerceEmailChannel, f as CommerceEmailConfig, g as CommerceEmailEventConfig, h as CommerceEmailEventHandlers, i as CommerceEmailHandlerContext, j as CommerceNotification, k as CommerceNotificationData, l as CommerceNotificationEventHandlers, m as CommerceNotificationEventName, n as CommerceNotificationHandlerContext, o as CommerceNotificationSource, p as CommerceNotificationSourceCollection, q as CommerceNotificationWebhookEvent, r as CustomerAuthWebhookEvent, s as CustomerAuthWebhookHandlers, t as CustomerPasswordResetWebhookData, u as CustomerPasswordResetWebhookEvent, O as ORDER_CHANGED_EVENT_TYPE, v as OrderChangedWebhookEvent, W as WebhookChange, w as WebhookCommerceNotificationChange, x as WebhookEvent, y as WebhookHandler, z as WebhookKnownOperation, A as WebhookOperation, B as WebhookOptions, D as WebhookOrderChange, E as WebhookOrderMoved, F as WebhookOrderScope, G as createCommerceEmailWebhookHandler, H as createCommerceNotificationWebhookHandler, I as createCustomerAuthWebhookHandler, J as createTypedWebhookHandler, K as defineCommerceEmailConfig, L as getCommerceNotificationIdempotencyKey, M as handleWebhook, N as isCommerceNotificationWebhookEvent, P as isCustomerPasswordResetWebhookEvent, Q as isOrderChangedWebhookEvent, R as isValidWebhookEvent, S as isWebhookCollection, T as isWebhookOperation } from './index-CHGGkcLj.js';
2
+ import { W as Webhook } from './payload-types-B6AZQcB7.js';
3
+ import './const-k9gHylYa.js';
4
+ import './types-ByD2zii1.js';
5
5
 
6
6
  /**
7
7
  * Webhook records returned from ordinary list/find — `secret` is encrypted at