@c1m-public/channel-client 1.0.0 → 3.0.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.
@@ -1,4 +1,4 @@
1
- import { createChannelClient } from './chunk-FBTHKZOP.js';
1
+ import { createChannelClient } from './chunk-ZEWL4PBM.js';
2
2
  import 'server-only';
3
3
 
4
4
  function narrow(client) {
@@ -1,4 +1,4 @@
1
- import { isChannelAPIError, createChannelClient } from './chunk-FBTHKZOP.js';
1
+ import { isChannelAPIError, createChannelClient } from './chunk-ZEWL4PBM.js';
2
2
  import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
3
3
  import 'server-only';
4
4
 
@@ -191,6 +191,9 @@ async function visitorHeaders(token, method, path, visitor) {
191
191
  };
192
192
  }
193
193
  function createChannelClient(options) {
194
+ return buildChannelClient(options);
195
+ }
196
+ function buildChannelClient(options, viewer) {
194
197
  const baseUrl = (options.baseUrl === void 0 ? DEFAULT_CHANNEL_API_URL : required(options.baseUrl, "baseUrl")).replace(/\/+$/, "");
195
198
  const token = required(options.token, "token");
196
199
  if (!token.startsWith(CHANNEL_TOKEN_PREFIX)) throw new ChannelConfigurationError("token must start with sk_chan_");
@@ -215,12 +218,13 @@ function createChannelClient(options) {
215
218
  if (signedVisitor) {
216
219
  for (const [key, value] of Object.entries(signedVisitor)) headers.set(key, value);
217
220
  }
218
- if (session) headers.set("X-End-User-Token", session);
221
+ const effectiveSession = session ?? viewer;
222
+ if (effectiveSession) headers.set("X-End-User-Token", effectiveSession);
219
223
  if (init.body !== void 0 && !isFormDataBody(init.body) && !headers.has("Content-Type")) {
220
224
  headers.set("Content-Type", "application/json");
221
225
  }
222
226
  const requestInit = { ...init, method, headers };
223
- if (method !== "GET" || session) {
227
+ if (method !== "GET" || effectiveSession) {
224
228
  requestInit.cache = "no-store";
225
229
  }
226
230
  try {
@@ -278,7 +282,15 @@ function createChannelClient(options) {
278
282
  */
279
283
  ping: (challenge) => request("channel.ping", appendQuery("/ping", { challenge })),
280
284
  /** Return a request-scoped client that signs trusted edge visitor metadata. */
281
- withVisitor: (visitor) => createChannelClient({ ...options, visitor }),
285
+ withVisitor: (visitor) => buildChannelClient({ ...options, visitor }, viewer),
286
+ /**
287
+ * The full client for a member of a private site: every call carries the
288
+ * viewer's session (`X-End-User-Token`) and is never cached, so pages,
289
+ * catalog, menus, theme and the rest are served per viewer. Pass the
290
+ * session per request, as with `withCustomer`; do not keep the result
291
+ * across visitors. `withCustomer(session)` stays the account-only surface.
292
+ */
293
+ withViewer: (session) => buildChannelClient(options, required(session, "session")),
282
294
  geo: {
283
295
  detect: () => request("channel.geo.detect", "/geo/detect")
284
296
  },
@@ -294,11 +306,49 @@ function createChannelClient(options) {
294
306
  { cache: "no-store" }
295
307
  )
296
308
  },
297
- /** Confirmation and unsubscribe links from waitlist emails (any scope). */
309
+ /**
310
+ * The workspace waitlist (workspace token): its gate, form settings and
311
+ * signups. A Dash token uses `dash.waitlist`. `verify` and `unsubscribe`
312
+ * follow the links in waitlist emails and work with any scope.
313
+ */
298
314
  waitlist: {
315
+ status: () => request("channel.waitlist.status", "/waitlist", { cache: "no-store" }),
316
+ form: () => request("channel.waitlist.form", "/waitlist/form", { cache: "no-store" }),
317
+ submit: (input, mutation) => request("channel.waitlist.submit", "/waitlist/entries", {
318
+ method: "POST",
319
+ headers: mutationHeaders(mutation),
320
+ body: JSON.stringify(input)
321
+ }),
299
322
  verify: (token2) => linkRequest("/verify", { token: required(token2, "token") }),
300
323
  unsubscribe: (key) => linkRequest("/unsubscribe", { key: required(key, "key") })
301
324
  },
325
+ /**
326
+ * Lead file requests (workspace token, `leads.write`). The requester's
327
+ * token is the credential and travels in the JSON body. `begin` returns a
328
+ * presigned `upload_url`: the site PUTs the file there itself with
329
+ * `Content-Type: application/octet-stream`, then calls `complete`.
330
+ */
331
+ fileRequests: {
332
+ view: (token2) => request("channel.file_requests.view", "/file-requests/view", {
333
+ method: "POST",
334
+ body: JSON.stringify({ token: required(token2, "token") })
335
+ }),
336
+ begin: (input, mutation) => request("channel.file_requests.uploads.begin", "/file-requests/uploads", {
337
+ method: "POST",
338
+ headers: mutationHeaders(mutation),
339
+ body: JSON.stringify({ ...input, token: required(input.token, "token") })
340
+ }),
341
+ complete: (input, mutation) => request("channel.file_requests.uploads.complete", "/file-requests/uploads/complete", {
342
+ method: "POST",
343
+ headers: mutationHeaders(mutation),
344
+ body: JSON.stringify({ ...input, token: required(input.token, "token") })
345
+ }),
346
+ close: (token2, mutation) => request("channel.file_requests.close", "/file-requests/close", {
347
+ method: "POST",
348
+ headers: mutationHeaders(mutation),
349
+ body: JSON.stringify({ token: required(token2, "token") })
350
+ })
351
+ },
302
352
  /** Tenant-level data exposed only to a dash-scoped channel token. */
303
353
  dash: {
304
354
  profile: () => request("channel.dash.profile", "/dash/profile"),
@@ -356,6 +406,8 @@ function createChannelClient(options) {
356
406
  },
357
407
  assetUrl: (pathOrUrl) => new URL(required(pathOrUrl, "asset URL"), `${baseUrl}/`).toString(),
358
408
  site: {
409
+ /** Whether the site is private; `member` is always false without a session. Use `withCustomer(session).site.access()` for a viewer. */
410
+ access: () => request("channel.site.access", "/site/access", { cache: "no-store" }),
359
411
  resolve: (params = {}) => request("channel.site.resolve", appendQuery("/site/resolve", params))
360
412
  },
361
413
  init: {
@@ -527,7 +579,12 @@ function createChannelClient(options) {
527
579
  method: "POST",
528
580
  headers: mutationHeaders(mutation)
529
581
  }),
530
- get: (token2) => request("channel.book.holds.get", `/book/holds/${encodePath(token2)}`)
582
+ get: (token2) => request("channel.book.holds.get", `/book/holds/${encodePath(token2)}`),
583
+ // Free the slot when the customer leaves checkout and chooses another time.
584
+ release: (token2, mutation) => request("channel.book.holds.release", `/book/holds/${encodePath(token2)}/release`, {
585
+ method: "POST",
586
+ headers: mutationHeaders(mutation)
587
+ })
531
588
  }
532
589
  },
533
590
  paymentLinks: {
@@ -594,6 +651,10 @@ function createChannelClient(options) {
594
651
  withCustomer(session) {
595
652
  const customerSession = required(session, "session");
596
653
  return {
654
+ site: {
655
+ /** Whether this viewer is an invited, unbanned member who may see a private site. */
656
+ access: () => request("channel.site.access", "/site/access", { cache: "no-store" }, customerSession)
657
+ },
597
658
  me: () => request("channel.auth.me", "/auth/me", {}, customerSession),
598
659
  updateProfile: (input) => request("channel.auth.me.update", "/auth/me", { method: "PUT", body: JSON.stringify(input) }, customerSession),
599
660
  logout: () => request("channel.auth.logout", "/auth/logout", { method: "POST" }, customerSession),
@@ -666,21 +727,13 @@ function createChannelClient(options) {
666
727
  method: "POST",
667
728
  headers: mutationHeaders(mutation)
668
729
  }, customerSession),
669
- pause: (agreementId, mutation) => request("channel.account.subscriptions.pause", `/account/subscriptions/${encodePath(agreementId)}/pause`, {
670
- method: "POST",
671
- headers: mutationHeaders(mutation)
672
- }, customerSession),
673
- resume: (agreementId, mutation) => request("channel.account.subscriptions.resume", `/account/subscriptions/${encodePath(agreementId)}/resume`, {
730
+ portal: (input = {}, mutation) => request("channel.account.subscriptions.portal", "/account/subscriptions/portal", {
674
731
  method: "POST",
675
- headers: mutationHeaders(mutation)
732
+ headers: mutationHeaders(mutation),
733
+ body: JSON.stringify(input)
676
734
  }, customerSession),
677
735
  invoices: {
678
- list: (agreementId, params = {}) => request("channel.account.subscriptions.invoices.list", appendQuery(`/account/subscriptions/${encodePath(agreementId)}/invoices`, params), {}, customerSession),
679
- get: (invoiceId) => request("channel.account.subscriptions.invoices.get", `/account/subscriptions/invoices/${encodePath(invoiceId)}`, {}, customerSession),
680
- payNow: (invoiceId, mutation) => request("channel.account.subscriptions.invoices.pay_now", `/account/subscriptions/invoices/${encodePath(invoiceId)}/pay-now`, {
681
- method: "POST",
682
- headers: mutationHeaders(mutation)
683
- }, customerSession)
736
+ list: (agreementId, params = {}) => request("channel.account.subscriptions.invoices.list", appendQuery(`/account/subscriptions/${encodePath(agreementId)}/invoices`, params), {}, customerSession)
684
737
  }
685
738
  },
686
739
  giving: {
@@ -1,7 +1,7 @@
1
1
  import { DashChannelClient } from './dash.js';
2
2
  import { CreateNextChannelClientOptions } from './next.js';
3
3
  import './index.js';
4
- import './types-CgleEp97.js';
4
+ import './types-Iuoc_GMq.js';
5
5
  import './webhooks.js';
6
6
 
7
7
  /**
package/dist/dash-next.js CHANGED
@@ -1,6 +1,6 @@
1
- import { createNextChannelClient } from './chunk-GWOZY23T.js';
2
- import { narrow } from './chunk-BOZTNLMF.js';
3
- import './chunk-FBTHKZOP.js';
1
+ import { createNextChannelClient } from './chunk-IESKKOTS.js';
2
+ import { narrow } from './chunk-2VFLXYHH.js';
3
+ import './chunk-ZEWL4PBM.js';
4
4
  import './chunk-XPO7C3DW.js';
5
5
  import 'server-only';
6
6
 
package/dist/dash.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createChannelClient, ChannelVisitor, CreateChannelClientOptions } from './index.js';
2
- import './types-CgleEp97.js';
2
+ import './types-Iuoc_GMq.js';
3
3
  import './webhooks.js';
4
4
 
5
5
  /**
package/dist/dash.js CHANGED
@@ -1,3 +1,3 @@
1
- export { createDashChannelClient, narrow as narrowToDash } from './chunk-BOZTNLMF.js';
2
- import './chunk-FBTHKZOP.js';
1
+ export { createDashChannelClient, narrow as narrowToDash } from './chunk-2VFLXYHH.js';
2
+ import './chunk-ZEWL4PBM.js';
3
3
  import './chunk-XPO7C3DW.js';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as SlotsResponse, Q as DownloadResponse, aV as BeginUploadInput, U as UploadTicket, aW as CompleteUploadInput, R as ArtworkMutationReceipt, aX as DecisionInput, T as PublicConfiguration, V as PublicConfigurationQuoteInput, X as PublicConfigurationQuote, Y as CatalogCategory, Z as CatalogProductsResponse, _ as CatalogCollection, $ as CatalogBrand, a0 as CartLookupResponse, A as AddCartItemInput, C as CartResponse, a1 as UpdateCartItemInput, a2 as MergeCartInput, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, a3 as Review, a4 as ReviewSummaryResponse, a5 as PublicSubmitReviewInput, a6 as ThemeResponse, a7 as MenuResponse, a8 as BlogPost, a9 as BlogPostResponse, aa as GivingEntry, ab as StartGivingInput, ac as StartGivingResponse, ad as SubscriptionPlanListResponse, ae as SubscriptionPlanResponse, af as BookingService, ag as BookingServiceResponse, ah as BookingAvailabilityParams, ai as BookingAvailabilityResponse, aj as BookingQuoteParams, ak as BookingQuoteResponse, al as CreateBookingHoldInput, am as BookingHoldResponse, an as PublicPaymentLinkResponse, ao as PaymentLinkCheckoutInput, ap as PaymentLinkCheckoutResponse, aq as PaymentLinkRedemptionStatusResponse, ar as PrintSettingsResponse, as as PrintOptionsSelection, at as PrintQuoteResponse, au as PrintIntakeInput, av as PrintJob, aw as DiningMenu, ax as CustomerSignupResponse, ay as SendCodeResponse, az as CustomerSession, aA as CustomerResponse, aB as CustomerAuthSession, aC as CustomerSecurityActivityPage, O as Order, aD as OrderSummary, aE as SavedAddress, aF as SavedAddressResponse, aG as SavedAddressInput, aH as SavedAddressUpdateInput, aI as SavedPaymentMethod, aJ as PaymentMethodSetupInput, aK as PaymentMethodSetupResult, aL as PaymentMethodConfirmInput, aM as PaymentMethodMutationResponse, aN as StartSubscriptionInput, aO as SubscriptionAgreementResponse, aP as SubscriptionListResponse, aQ as SubscriptionSourceResponse, aR as SubscriptionInvoiceListResponse, aS as SubscriptionInvoiceResponse, aT as GivingIntentListResponse, aU as LeadResponse, aY as Slot } from './types-CgleEp97.js';
2
- export { aZ as BookingAvailability, a_ as BookingCancellationPolicy, a$ as BookingCustomerInput, b0 as BookingFreeSpan, b1 as BookingHold, b2 as BookingIntakeQuestion, b3 as BookingPriceQuote, b4 as BookingServicePricing, b5 as BookingTimeRange, b6 as CatalogProduct, b7 as CheckoutAddress, b8 as CheckoutStatus, b9 as ConfigDocument, ba as ConfigQuote, bb as ConfigSelectionRequest, bc as Customer, bd as CustomerSecurityActivity, be as DashBrandingInfo, bf as DashDirectoryProfile, bg as DashLeadPortalMatch, bh as DashLeadPortalMovingSummary, bi as DashLeadPortalRequest, bj as DashLeadPortalRequestStatus, bk as DashLocaleInfo, bl as DashPlan, bm as DashPlanPricing, bn as DashPlanRegion, bo as DashPublicPage, bp as DashPublicProfileInfo, bq as DashTenantInfo, br as DiningAvailability, bs as DiningAvailabilityRule, bt as DiningComboChoice, bu as DiningComboGroup, bv as DiningItemSize, bw as DiningMenuItem, bx as DiningModifier, by as DiningModifierGroup, bz as DiningOffer, bA as DiningOfferBadge, bB as GivingIntent, bC as Menu, bD as MenuItem, bE as OrderItem, bF as PaymentLinkRedemptionStatus, bG as PaymentMethodOption, bH as PaymentReadiness, bI as PrintBranding, bJ as PrintIntakeLimits, bK as PrintJobFile, bL as PrintPaperSize, bM as PrintPerPagePricing, bN as PrintPriceBreakdown, bO as PrintPriceLine, bP as PrintPricing, bQ as PrintPricingOption, bR as ProductLineConfiguration, bS as PublicGate, bT as PublicPaymentLink, bU as PublicSiteSignals, bV as ShippingMethodOption, bW as SiteGatedDocument, bX as SiteRef, bY as SiteResolvedDocument, bZ as SiteSubject, b_ as SubscriptionAgreement, b$ as SubscriptionInvoice, c0 as SubscriptionPlanOffer, c1 as SubscriptionSourceDisplay, c2 as WaitlistAttribution, c3 as WorkspaceInfo } from './types-CgleEp97.js';
1
+ import { i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, D as DashProfileResponse, u as DashInitResponse, v as DashPlansResponse, L as ListResponse, w as DashDirectoryRegion, x as DashDirectoryEntry, y as DashDirectoryProfileResponse, z as DashLead, B as DashLeadPortalRequestLinkInput, E as DashLeadPortalRequestLinkResponse, G as DashLeadPortalView, H as DashMovingQuoteInput, I as DashMovingQuoteReceipt, J as DashMovingAddressList, K as DashMovingAddress, M as DashMovingDistance, S as SiteAccess, N as SiteDocument, Q as PublicWorkspaceInit, R as LightInitResponse, T as PublicPageSummary, U as PublicPage, V as Product, X as ProductAsset, Y as SlotsResponse, Z as DownloadResponse, b0 as BeginUploadInput, b1 as CompleteUploadInput, _ as ArtworkMutationReceipt, b2 as DecisionInput, $ as PublicConfiguration, a0 as PublicConfigurationQuoteInput, a1 as PublicConfigurationQuote, a2 as CatalogCategory, a3 as CatalogProductsResponse, a4 as CatalogCollection, a5 as CatalogBrand, a6 as CartLookupResponse, A as AddCartItemInput, C as CartResponse, a7 as UpdateCartItemInput, a8 as MergeCartInput, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, a9 as Review, aa as ReviewSummaryResponse, ab as PublicSubmitReviewInput, ac as ThemeResponse, ad as MenuResponse, ae as BlogPost, af as BlogPostResponse, ag as GivingEntry, ah as StartGivingInput, ai as StartGivingResponse, aj as SubscriptionPlanListResponse, ak as SubscriptionPlanResponse, al as BookingService, am as BookingServiceResponse, an as BookingAvailabilityParams, ao as BookingAvailabilityResponse, ap as BookingQuoteParams, aq as BookingQuoteResponse, ar as CreateBookingHoldInput, as as BookingHoldResponse, at as PublicPaymentLinkResponse, au as PaymentLinkCheckoutInput, av as PaymentLinkCheckoutResponse, aw as PaymentLinkRedemptionStatusResponse, ax as PrintSettingsResponse, ay as PrintOptionsSelection, az as PrintQuoteResponse, aA as PrintIntakeInput, aB as PrintJob, aC as DiningMenu, aD as CustomerSignupResponse, aE as SendCodeResponse, aF as CustomerSession, aG as CustomerResponse, aH as CustomerAuthSession, aI as CustomerSecurityActivityPage, O as Order, aJ as OrderSummary, aK as SavedAddress, aL as SavedAddressResponse, aM as SavedAddressInput, aN as SavedAddressUpdateInput, aO as SavedPaymentMethod, aP as PaymentMethodSetupInput, aQ as PaymentMethodSetupResult, aR as PaymentMethodConfirmInput, aS as PaymentMethodMutationResponse, aT as StartSubscriptionInput, aU as SubscriptionAgreementResponse, aV as SubscriptionListResponse, aW as SubscriptionSourceResponse, aX as SubscriptionPortalInput, aY as SubscriptionPortalResponse, aZ as SubscriptionInvoiceListResponse, a_ as GivingIntentListResponse, a$ as LeadResponse, b3 as Slot } from './types-Iuoc_GMq.js';
2
+ export { b4 as BookingAvailability, b5 as BookingCancellationPolicy, b6 as BookingCustomerInput, b7 as BookingFreeSpan, b8 as BookingHold, b9 as BookingIntakeQuestion, ba as BookingPriceQuote, bb as BookingServicePricing, bc as BookingTimeRange, bd as CatalogProduct, be as CheckoutAddress, bf as CheckoutStatus, bg as ConfigDocument, bh as ConfigQuote, bi as ConfigSelectionRequest, bj as Customer, bk as CustomerSecurityActivity, bl as DashBrandingInfo, bm as DashDirectoryProfile, bn as DashLeadPortalMatch, bo as DashLeadPortalMovingSummary, bp as DashLeadPortalRequest, bq as DashLeadPortalRequestStatus, br as DashLocaleInfo, bs as DashPlan, bt as DashPlanLimitValue, bu as DashPlanPricing, bv as DashPublicPage, bw as DashPublicProfileInfo, bx as DashTenantInfo, by as DiningAvailability, bz as DiningAvailabilityRule, bA as DiningComboChoice, bB as DiningComboGroup, bC as DiningItemSize, bD as DiningMenuItem, bE as DiningModifier, bF as DiningModifierGroup, bG as DiningOffer, bH as DiningOfferBadge, bI as FileRequestTokenInput, bJ as GivingIntent, bK as Menu, bL as MenuItem, bM as OrderItem, bN as PaymentLinkRedemptionStatus, bO as PaymentMethodOption, bP as PaymentReadiness, bQ as PrintBranding, bR as PrintIntakeLimits, bS as PrintJobFile, bT as PrintPaperSize, bU as PrintPerPagePricing, bV as PrintPriceBreakdown, bW as PrintPriceLine, bX as PrintPricing, bY as PrintPricingOption, bZ as ProductLineConfiguration, b_ as PublicGate, b$ as PublicPaymentLink, c0 as PublicSiteSignals, c1 as ShippingMethodOption, c2 as SiteGatedDocument, c3 as SiteRef, c4 as SiteResolvedDocument, c5 as SiteSubject, c6 as SubscriptionAgreement, c7 as SubscriptionInvoice, c8 as SubscriptionPlanOffer, c9 as SubscriptionSourceDisplay, ca as WaitlistAttribution, cb as WorkspaceInfo } from './types-Iuoc_GMq.js';
3
3
  export { AnyChannelWebhookEvent, CHANNEL_WEBHOOK_EVENT_ID_HEADER, CHANNEL_WEBHOOK_EVENT_TYPES, CHANNEL_WEBHOOK_SIGNATURE_HEADER, CHANNEL_WEBHOOK_TIMESTAMP_HEADER, ChannelWebhookEvent, ChannelWebhookEventDataMap, ChannelWebhookEventType, ChannelWebhookVerificationCode, ChannelWebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, FulfillmentEventData, LeadCreatedEventData, MenuUpdatedEventData, OrderEventData, PagePublishedEventData, ParseChannelWebhookEventOptions, ParsedChannelWebhookEvent, ProductEventData, ReviewPublishedEventData, ReviewSubmittedEventData, UnknownChannelWebhookEvent, VerifyChannelWebhookSignatureOptions, isChannelWebhookEventType, isChannelWebhookVerificationError, isKnownChannelWebhookEvent, parseChannelWebhookEvent, verifyChannelWebhookSignature } from './webhooks.js';
4
4
 
5
5
  /**
@@ -26,6 +26,13 @@ type ArtworkCompleteInput = CompleteUploadInput & {
26
26
  };
27
27
  type ArtworkProofDecision = DecisionInput;
28
28
 
29
+ /** The artwork upload ticket. Written out here: the generated schema is `artwork_UploadTicket` upstream, to keep it apart from the file-request ticket. */
30
+ interface UploadTicket {
31
+ expires_at: string;
32
+ upload_id: string;
33
+ upload_url: string;
34
+ }
35
+
29
36
  declare const DEFAULT_CHANNEL_API_URL = "https://api.saasdash.app";
30
37
  interface ChannelRetryPolicy {
31
38
  /** Additional attempts after the first (default 1). */
@@ -69,7 +76,7 @@ interface ChannelVisitor {
69
76
  userAgent?: string;
70
77
  }
71
78
  type ChannelRequestOutcome = "success" | "api_error" | "network_error" | "timeout" | "invalid_response" | "cancelled";
72
- type ChannelOperation = "channel.commerce.artwork.list" | "channel.commerce.artwork.download" | "channel.commerce.artwork.decide" | "channel.commerce.artwork.uploads.begin" | "channel.commerce.artwork.uploads.complete" | "channel.ping" | "channel.geo.detect" | "channel.site.resolve" | "channel.init.get" | "channel.init.light" | "channel.pages.list" | "channel.pages.get" | "channel.catalog.products.list" | "channel.catalog.products.get" | "channel.catalog.products.media" | "channel.catalog.products.configuration.get" | "channel.catalog.products.configuration.quote" | "channel.reviews.list" | "channel.reviews.summary" | "channel.reviews.submit" | "channel.theme.get" | "channel.menus.get" | "channel.blog.get" | "channel.blog.list" | "channel.payments.availability" | "channel.giving.entries.list" | "channel.giving.entries.get" | "channel.giving.start" | "channel.subscriptions.plans.list" | "channel.subscriptions.plans.get" | "channel.subscriptions.start" | "channel.book.services.list" | "channel.book.services.get" | "channel.book.availability.get" | "channel.book.quote.get" | "channel.book.holds.create" | "channel.book.holds.checkout" | "channel.book.holds.get" | "channel.payment_links.get" | "channel.payment_links.checkout" | "channel.payment_links.redemptions.get" | "channel.print.settings" | "channel.print.quote" | "channel.print.intake" | "channel.menu.boards.menu" | "channel.auth.check" | "channel.auth.signup" | "channel.auth.send_code" | "channel.auth.verify_code" | "channel.auth.refresh" | "channel.auth.me" | "channel.auth.me.update" | "channel.auth.logout" | "channel.auth.sessions.list" | "channel.auth.sessions.revoke" | "channel.auth.sessions.revoke_others" | "channel.auth.sessions.revoke_all" | "channel.auth.security_activity.list" | "channel.account.addresses.list" | "channel.account.addresses.create" | "channel.account.addresses.get" | "channel.account.addresses.update" | "channel.account.addresses.delete" | "channel.account.addresses.set_default" | "channel.account.giving.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.payment_methods.list" | "channel.account.payment_methods.setup" | "channel.account.payment_methods.confirm" | "channel.account.payment_methods.default" | "channel.account.payment_methods.delete" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "channel.account.subscriptions.cancel" | "channel.account.subscriptions.pause" | "channel.account.subscriptions.resume" | "channel.account.subscriptions.invoices.list" | "channel.account.subscriptions.invoices.get" | "channel.account.subscriptions.invoices.pay_now" | "channel.catalog.brands.list" | "channel.catalog.categories.list" | "channel.catalog.categories.products" | "channel.catalog.collections.list" | "channel.catalog.collections.products" | "channel.catalog.collections.get" | "channel.cart.get" | "channel.cart.items.add" | "channel.cart.items.update" | "channel.cart.items.remove" | "channel.cart.clear" | "channel.cart.merge" | "channel.checkout.options" | "channel.checkout.status" | "channel.checkout.customer.set" | "channel.checkout.addresses.set" | "channel.checkout.fulfillment.set" | "channel.checkout.pay" | "channel.checkout.cancel" | "channel.dash.profile" | "channel.dash.init" | "channel.dash.waitlist.status" | "channel.dash.waitlist.form" | "channel.dash.waitlist.submit" | "channel.dash.plans" | "channel.dash.directory.regions" | "channel.dash.directory.browse" | "channel.dash.directory.get" | "channel.dash.leads.capture" | "channel.dash.lead_portal.my_quotes" | "channel.dash.lead_portal.request_link" | "channel.dash.quote_requests.moving.capture" | "channel.dash.addresses.lookup" | "channel.dash.addresses.resolve" | "channel.dash.addresses.distance" | "channel.leads.capture";
79
+ type ChannelOperation = "channel.commerce.artwork.list" | "channel.commerce.artwork.download" | "channel.commerce.artwork.decide" | "channel.commerce.artwork.uploads.begin" | "channel.commerce.artwork.uploads.complete" | "channel.ping" | "channel.geo.detect" | "channel.site.access" | "channel.site.resolve" | "channel.init.get" | "channel.init.light" | "channel.pages.list" | "channel.pages.get" | "channel.catalog.products.list" | "channel.catalog.products.get" | "channel.catalog.products.media" | "channel.catalog.products.configuration.get" | "channel.catalog.products.configuration.quote" | "channel.reviews.list" | "channel.reviews.summary" | "channel.reviews.submit" | "channel.theme.get" | "channel.menus.get" | "channel.blog.get" | "channel.blog.list" | "channel.payments.availability" | "channel.giving.entries.list" | "channel.giving.entries.get" | "channel.giving.start" | "channel.subscriptions.plans.list" | "channel.subscriptions.plans.get" | "channel.subscriptions.start" | "channel.book.services.list" | "channel.book.services.get" | "channel.book.availability.get" | "channel.book.quote.get" | "channel.book.holds.create" | "channel.book.holds.checkout" | "channel.book.holds.get" | "channel.book.holds.release" | "channel.payment_links.get" | "channel.payment_links.checkout" | "channel.payment_links.redemptions.get" | "channel.print.settings" | "channel.print.quote" | "channel.print.intake" | "channel.menu.boards.menu" | "channel.auth.check" | "channel.auth.signup" | "channel.auth.send_code" | "channel.auth.verify_code" | "channel.auth.refresh" | "channel.auth.me" | "channel.auth.me.update" | "channel.auth.logout" | "channel.auth.sessions.list" | "channel.auth.sessions.revoke" | "channel.auth.sessions.revoke_others" | "channel.auth.sessions.revoke_all" | "channel.auth.security_activity.list" | "channel.account.addresses.list" | "channel.account.addresses.create" | "channel.account.addresses.get" | "channel.account.addresses.update" | "channel.account.addresses.delete" | "channel.account.addresses.set_default" | "channel.account.giving.list" | "channel.account.orders.list" | "channel.account.orders.summary" | "channel.account.orders.get" | "channel.account.payment_methods.list" | "channel.account.payment_methods.setup" | "channel.account.payment_methods.confirm" | "channel.account.payment_methods.default" | "channel.account.payment_methods.delete" | "channel.account.subscriptions.list" | "channel.account.subscriptions.get" | "channel.account.subscriptions.source" | "channel.account.subscriptions.cancel" | "channel.account.subscriptions.portal" | "channel.account.subscriptions.invoices.list" | "channel.catalog.brands.list" | "channel.catalog.categories.list" | "channel.catalog.categories.products" | "channel.catalog.collections.list" | "channel.catalog.collections.products" | "channel.catalog.collections.get" | "channel.cart.get" | "channel.cart.items.add" | "channel.cart.items.update" | "channel.cart.items.remove" | "channel.cart.clear" | "channel.cart.merge" | "channel.checkout.options" | "channel.checkout.status" | "channel.checkout.customer.set" | "channel.checkout.addresses.set" | "channel.checkout.fulfillment.set" | "channel.checkout.pay" | "channel.checkout.cancel" | "channel.dash.profile" | "channel.dash.init" | "channel.waitlist.status" | "channel.waitlist.form" | "channel.waitlist.submit" | "channel.file_requests.view" | "channel.file_requests.uploads.begin" | "channel.file_requests.uploads.complete" | "channel.file_requests.close" | "channel.dash.waitlist.status" | "channel.dash.waitlist.form" | "channel.dash.waitlist.submit" | "channel.dash.plans" | "channel.dash.directory.regions" | "channel.dash.directory.browse" | "channel.dash.directory.get" | "channel.dash.leads.capture" | "channel.dash.lead_portal.my_quotes" | "channel.dash.lead_portal.request_link" | "channel.dash.quote_requests.moving.capture" | "channel.dash.addresses.lookup" | "channel.dash.addresses.resolve" | "channel.dash.addresses.distance" | "channel.leads.capture";
73
80
  interface ChannelRequestObservation {
74
81
  operation: ChannelOperation;
75
82
  method: string;
@@ -150,6 +157,14 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
150
157
  readonly ping: (challenge?: string) => Promise<ChannelPing>;
151
158
  /** Return a request-scoped client that signs trusted edge visitor metadata. */
152
159
  readonly withVisitor: (visitor: ChannelVisitor) => /*elided*/ any;
160
+ /**
161
+ * The full client for a member of a private site: every call carries the
162
+ * viewer's session (`X-End-User-Token`) and is never cached, so pages,
163
+ * catalog, menus, theme and the rest are served per viewer. Pass the
164
+ * session per request, as with `withCustomer`; do not keep the result
165
+ * across visitors. `withCustomer(session)` stays the account-only surface.
166
+ */
167
+ readonly withViewer: (session: string) => /*elided*/ any;
153
168
  readonly geo: {
154
169
  readonly detect: () => Promise<ChannelGeo>;
155
170
  };
@@ -161,11 +176,30 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
161
176
  */
162
177
  readonly availability: () => Promise<PaymentCollectionAvailability>;
163
178
  };
164
- /** Confirmation and unsubscribe links from waitlist emails (any scope). */
179
+ /**
180
+ * The workspace waitlist (workspace token): its gate, form settings and
181
+ * signups. A Dash token uses `dash.waitlist`. `verify` and `unsubscribe`
182
+ * follow the links in waitlist emails and work with any scope.
183
+ */
165
184
  readonly waitlist: {
185
+ readonly status: () => Promise<WaitlistGateStatus>;
186
+ readonly form: () => Promise<WaitlistFormSettings>;
187
+ readonly submit: (input: WaitlistSubmission, mutation?: ChannelMutationOptions) => Promise<WaitlistAcknowledgement>;
166
188
  readonly verify: (token: string) => Promise<WaitlistVerification>;
167
189
  readonly unsubscribe: (key: string) => Promise<WaitlistUnsubscription>;
168
190
  };
191
+ /**
192
+ * Lead file requests (workspace token, `leads.write`). The requester's
193
+ * token is the credential and travels in the JSON body. `begin` returns a
194
+ * presigned `upload_url`: the site PUTs the file there itself with
195
+ * `Content-Type: application/octet-stream`, then calls `complete`.
196
+ */
197
+ readonly fileRequests: {
198
+ readonly view: (token: string) => Promise<FileRequestView>;
199
+ readonly begin: (input: FileRequestUploadInput, mutation?: ChannelMutationOptions) => Promise<FileRequestUploadTicket>;
200
+ readonly complete: (input: FileRequestCompleteInput, mutation?: ChannelMutationOptions) => Promise<FileRequestReceivedFile>;
201
+ readonly close: (token: string, mutation?: ChannelMutationOptions) => Promise<FileRequestClosed>;
202
+ };
169
203
  /** Tenant-level data exposed only to a dash-scoped channel token. */
170
204
  readonly dash: {
171
205
  readonly profile: () => Promise<DashProfileResponse>;
@@ -201,6 +235,8 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
201
235
  };
202
236
  readonly assetUrl: (pathOrUrl: string) => string;
203
237
  readonly site: {
238
+ /** Whether the site is private; `member` is always false without a session. Use `withCustomer(session).site.access()` for a viewer. */
239
+ readonly access: () => Promise<SiteAccess>;
204
240
  readonly resolve: (params?: ChannelSiteResolveParams) => Promise<SiteDocument>;
205
241
  };
206
242
  readonly init: {
@@ -307,6 +343,7 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
307
343
  readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
308
344
  readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
309
345
  readonly get: (token: string) => Promise<BookingHoldResponse>;
346
+ readonly release: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
310
347
  };
311
348
  };
312
349
  readonly paymentLinks: {
@@ -354,6 +391,10 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
354
391
  * channel's workspace — another customer's order id returns 404.
355
392
  */
356
393
  readonly withCustomer: (session: string) => {
394
+ readonly site: {
395
+ /** Whether this viewer is an invited, unbanned member who may see a private site. */
396
+ readonly access: () => Promise<SiteAccess>;
397
+ };
357
398
  readonly me: () => Promise<CustomerResponse>;
358
399
  readonly updateProfile: (input: {
359
400
  name?: string;
@@ -412,12 +453,9 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
412
453
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
413
454
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
414
455
  readonly cancel: (agreementId: string, params?: ChannelSubscriptionCancelParams, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
415
- readonly pause: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
416
- readonly resume: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
456
+ readonly portal: (input?: SubscriptionPortalInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionPortalResponse>;
417
457
  readonly invoices: {
418
458
  readonly list: (agreementId: string, params?: ChannelInvoiceListParams) => Promise<SubscriptionInvoiceListResponse>;
419
- readonly get: (invoiceId: string) => Promise<SubscriptionInvoiceResponse>;
420
- readonly payNow: (invoiceId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionInvoiceResponse>;
421
459
  };
422
460
  };
423
461
  readonly giving: {
@@ -432,4 +470,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
432
470
  };
433
471
  };
434
472
 
435
- export { AddCartItemInput, type ArtworkCompleteInput, ArtworkMutationReceipt, type ArtworkProofDecision, type ArtworkSlot, type ArtworkSlotsResponse, type ArtworkUploadInput, type ArtworkUploadTicket, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelInvoiceListParams, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionCancelParams, type ChannelSubscriptionListParams, type ChannelVisitor, CheckoutAddressesInput, CheckoutCancelInput, CheckoutCustomerInput, CheckoutFulfillmentInput, CheckoutOptions, CheckoutPayInput, CheckoutPayResponse, CheckoutStatusResponse, CreateBookingHoldInput, type CreateChannelClientOptions, CustomerAuthSession, CustomerResponse, CustomerSecurityActivityPage, CustomerSession, CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, DashDirectoryEntry, type DashDirectoryListParams, DashDirectoryProfileResponse, DashDirectoryRegion, DashInitResponse, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, DashMovingAddress, DashMovingAddressList, DashMovingDistance, DashMovingQuoteInput, DashMovingQuoteReceipt, DashPlansResponse, DashProfileResponse, DiningMenu, DownloadResponse, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PaymentMethodConfirmInput, PaymentMethodMutationResponse, PaymentMethodSetupInput, PaymentMethodSetupResult, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicConfiguration, PublicConfigurationQuote, PublicConfigurationQuoteInput, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SavedPaymentMethod, SendCodeResponse, SiteDocument, SlotsResponse, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, UploadTicket, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
473
+ export { AddCartItemInput, type ArtworkCompleteInput, ArtworkMutationReceipt, type ArtworkProofDecision, type ArtworkSlot, type ArtworkSlotsResponse, type ArtworkUploadInput, type ArtworkUploadTicket, BlogPost, BlogPostResponse, BookingAvailabilityParams, BookingAvailabilityResponse, BookingHoldResponse, BookingQuoteParams, BookingQuoteResponse, BookingService, BookingServiceResponse, CartLookupResponse, CartResponse, CatalogBrand, CatalogCategory, CatalogCollection, CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, ChannelGeo, type ChannelInvoiceListParams, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, ChannelPing, type ChannelProductListParams, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionCancelParams, type ChannelSubscriptionListParams, type ChannelVisitor, CheckoutAddressesInput, CheckoutCancelInput, CheckoutCustomerInput, CheckoutFulfillmentInput, CheckoutOptions, CheckoutPayInput, CheckoutPayResponse, CheckoutStatusResponse, CreateBookingHoldInput, type CreateChannelClientOptions, CustomerAuthSession, CustomerResponse, CustomerSecurityActivityPage, CustomerSession, CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, DashDirectoryEntry, type DashDirectoryListParams, DashDirectoryProfileResponse, DashDirectoryRegion, DashInitResponse, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, DashMovingAddress, DashMovingAddressList, DashMovingDistance, DashMovingQuoteInput, DashMovingQuoteReceipt, DashPlansResponse, DashProfileResponse, DiningMenu, DownloadResponse, FileRequestClosed, FileRequestCompleteInput, FileRequestReceivedFile, FileRequestUploadInput, FileRequestUploadTicket, FileRequestView, GivingEntry, GivingIntentListResponse, LeadResponse, LightInitResponse, ListResponse, MenuResponse, MergeCartInput, Order, OrderSummary, PaymentCollectionAvailability, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PaymentMethodConfirmInput, PaymentMethodMutationResponse, PaymentMethodSetupInput, PaymentMethodSetupResult, PrintIntakeInput, PrintJob, PrintOptionsSelection, PrintQuoteResponse, PrintSettingsResponse, Product, ProductAsset, PublicConfiguration, PublicConfigurationQuote, PublicConfigurationQuoteInput, PublicPage, PublicPageSummary, PublicPaymentLinkResponse, PublicSubmitReviewInput, PublicWorkspaceInit, type RequiredIdempotency, Review, ReviewSummaryResponse, SavedAddress, SavedAddressInput, SavedAddressResponse, SavedAddressUpdateInput, SavedPaymentMethod, SendCodeResponse, SiteAccess, SiteDocument, SlotsResponse, StartGivingInput, StartGivingResponse, StartSubscriptionInput, SubscriptionAgreementResponse, SubscriptionInvoiceListResponse, SubscriptionListResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, SubscriptionPortalInput, SubscriptionPortalResponse, SubscriptionSourceResponse, ThemeResponse, UpdateCartItemInput, type UploadTicket, WaitlistAcknowledgement, WaitlistFormSettings, WaitlistGateStatus, WaitlistSubmission, WaitlistUnsubscription, WaitlistVerification, createChannelClient, isChannelAPIError, isChannelConfigurationError };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-FBTHKZOP.js';
1
+ export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-ZEWL4PBM.js';
2
2
  export { CHANNEL_WEBHOOK_EVENT_ID_HEADER, CHANNEL_WEBHOOK_EVENT_TYPES, CHANNEL_WEBHOOK_SIGNATURE_HEADER, CHANNEL_WEBHOOK_TIMESTAMP_HEADER, ChannelConfigurationError, ChannelWebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, isChannelConfigurationError, isChannelWebhookEventType, isChannelWebhookVerificationError, isKnownChannelWebhookEvent, parseChannelWebhookEvent, verifyChannelWebhookSignature } from './chunk-XPO7C3DW.js';
package/dist/next.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, ArtworkUploadInput, ArtworkCompleteInput, ArtworkProofDecision, RequiredIdempotency, ChannelSubscriptionListParams, ChannelSubscriptionCancelParams, ChannelInvoiceListParams } from './index.js';
2
- import { O as Order, A as AddCartItemInput, C as CartResponse, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistVerification, k as WaitlistUnsubscription, D as DashProfileResponse, l as DashInitResponse, m as WaitlistGateStatus, n as WaitlistFormSettings, o as WaitlistSubmission, p as WaitlistAcknowledgement, q as DashPlansResponse, L as ListResponse, r as DashDirectoryRegion, s as DashDirectoryEntry, t as DashDirectoryProfileResponse, u as DashLead, v as DashLeadPortalRequestLinkInput, w as DashLeadPortalRequestLinkResponse, x as DashLeadPortalView, y as DashMovingQuoteInput, z as DashMovingQuoteReceipt, B as DashMovingAddressList, E as DashMovingAddress, F as DashMovingDistance, S as SiteDocument, G as PublicWorkspaceInit, H as LightInitResponse, I as PublicPageSummary, J as PublicPage, K as Product, M as ProductAsset, N as SlotsResponse, Q as DownloadResponse, U as UploadTicket, R as ArtworkMutationReceipt, T as PublicConfiguration, V as PublicConfigurationQuoteInput, X as PublicConfigurationQuote, Y as CatalogCategory, Z as CatalogProductsResponse, _ as CatalogCollection, $ as CatalogBrand, a0 as CartLookupResponse, a1 as UpdateCartItemInput, a2 as MergeCartInput, a3 as Review, a4 as ReviewSummaryResponse, a5 as PublicSubmitReviewInput, a6 as ThemeResponse, a7 as MenuResponse, a8 as BlogPost, a9 as BlogPostResponse, aa as GivingEntry, ab as StartGivingInput, ac as StartGivingResponse, ad as SubscriptionPlanListResponse, ae as SubscriptionPlanResponse, af as BookingService, ag as BookingServiceResponse, ah as BookingAvailabilityParams, ai as BookingAvailabilityResponse, aj as BookingQuoteParams, ak as BookingQuoteResponse, al as CreateBookingHoldInput, am as BookingHoldResponse, an as PublicPaymentLinkResponse, ao as PaymentLinkCheckoutInput, ap as PaymentLinkCheckoutResponse, aq as PaymentLinkRedemptionStatusResponse, ar as PrintSettingsResponse, as as PrintOptionsSelection, at as PrintQuoteResponse, au as PrintIntakeInput, av as PrintJob, aw as DiningMenu, ax as CustomerSignupResponse, ay as SendCodeResponse, az as CustomerSession, aA as CustomerResponse, aB as CustomerAuthSession, aC as CustomerSecurityActivityPage, aD as OrderSummary, aE as SavedAddress, aF as SavedAddressResponse, aG as SavedAddressInput, aH as SavedAddressUpdateInput, aI as SavedPaymentMethod, aJ as PaymentMethodSetupInput, aK as PaymentMethodSetupResult, aL as PaymentMethodConfirmInput, aM as PaymentMethodMutationResponse, aN as StartSubscriptionInput, aO as SubscriptionAgreementResponse, aP as SubscriptionListResponse, aQ as SubscriptionSourceResponse, aR as SubscriptionInvoiceListResponse, aS as SubscriptionInvoiceResponse, aT as GivingIntentListResponse, aU as LeadResponse } from './types-CgleEp97.js';
1
+ import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, ArtworkUploadInput, UploadTicket, ArtworkCompleteInput, ArtworkProofDecision, RequiredIdempotency, ChannelSubscriptionListParams, ChannelSubscriptionCancelParams, ChannelInvoiceListParams } from './index.js';
2
+ import { O as Order, A as AddCartItemInput, C as CartResponse, a as CheckoutOptions, b as CheckoutStatusResponse, c as CheckoutCustomerInput, d as CheckoutAddressesInput, e as CheckoutFulfillmentInput, f as CheckoutPayInput, g as CheckoutPayResponse, h as CheckoutCancelInput, i as ChannelPing, j as ChannelGeo, P as PaymentCollectionAvailability, W as WaitlistGateStatus, k as WaitlistFormSettings, l as WaitlistSubmission, m as WaitlistAcknowledgement, n as WaitlistVerification, o as WaitlistUnsubscription, F as FileRequestView, p as FileRequestUploadInput, q as FileRequestUploadTicket, r as FileRequestCompleteInput, s as FileRequestReceivedFile, t as FileRequestClosed, D as DashProfileResponse, u as DashInitResponse, v as DashPlansResponse, L as ListResponse, w as DashDirectoryRegion, x as DashDirectoryEntry, y as DashDirectoryProfileResponse, z as DashLead, B as DashLeadPortalRequestLinkInput, E as DashLeadPortalRequestLinkResponse, G as DashLeadPortalView, H as DashMovingQuoteInput, I as DashMovingQuoteReceipt, J as DashMovingAddressList, K as DashMovingAddress, M as DashMovingDistance, S as SiteAccess, N as SiteDocument, Q as PublicWorkspaceInit, R as LightInitResponse, T as PublicPageSummary, U as PublicPage, V as Product, X as ProductAsset, Y as SlotsResponse, Z as DownloadResponse, _ as ArtworkMutationReceipt, $ as PublicConfiguration, a0 as PublicConfigurationQuoteInput, a1 as PublicConfigurationQuote, a2 as CatalogCategory, a3 as CatalogProductsResponse, a4 as CatalogCollection, a5 as CatalogBrand, a6 as CartLookupResponse, a7 as UpdateCartItemInput, a8 as MergeCartInput, a9 as Review, aa as ReviewSummaryResponse, ab as PublicSubmitReviewInput, ac as ThemeResponse, ad as MenuResponse, ae as BlogPost, af as BlogPostResponse, ag as GivingEntry, ah as StartGivingInput, ai as StartGivingResponse, aj as SubscriptionPlanListResponse, ak as SubscriptionPlanResponse, al as BookingService, am as BookingServiceResponse, an as BookingAvailabilityParams, ao as BookingAvailabilityResponse, ap as BookingQuoteParams, aq as BookingQuoteResponse, ar as CreateBookingHoldInput, as as BookingHoldResponse, at as PublicPaymentLinkResponse, au as PaymentLinkCheckoutInput, av as PaymentLinkCheckoutResponse, aw as PaymentLinkRedemptionStatusResponse, ax as PrintSettingsResponse, ay as PrintOptionsSelection, az as PrintQuoteResponse, aA as PrintIntakeInput, aB as PrintJob, aC as DiningMenu, aD as CustomerSignupResponse, aE as SendCodeResponse, aF as CustomerSession, aG as CustomerResponse, aH as CustomerAuthSession, aI as CustomerSecurityActivityPage, aJ as OrderSummary, aK as SavedAddress, aL as SavedAddressResponse, aM as SavedAddressInput, aN as SavedAddressUpdateInput, aO as SavedPaymentMethod, aP as PaymentMethodSetupInput, aQ as PaymentMethodSetupResult, aR as PaymentMethodConfirmInput, aS as PaymentMethodMutationResponse, aT as StartSubscriptionInput, aU as SubscriptionAgreementResponse, aV as SubscriptionListResponse, aW as SubscriptionSourceResponse, aX as SubscriptionPortalInput, aY as SubscriptionPortalResponse, aZ as SubscriptionInvoiceListResponse, a_ as GivingIntentListResponse, a$ as LeadResponse } from './types-Iuoc_GMq.js';
3
3
  import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
4
4
 
5
5
  /**
@@ -284,6 +284,7 @@ declare function defaultChannelCacheTags(pathname: string): string[];
284
284
  declare function createNextChannelClient(options: CreateNextChannelClientOptions): {
285
285
  readonly ping: (challenge?: string) => Promise<ChannelPing>;
286
286
  readonly withVisitor: (visitor: ChannelVisitor) => /*elided*/ any;
287
+ readonly withViewer: (session: string) => /*elided*/ any;
287
288
  readonly geo: {
288
289
  readonly detect: () => Promise<ChannelGeo>;
289
290
  };
@@ -291,9 +292,18 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
291
292
  readonly availability: () => Promise<PaymentCollectionAvailability>;
292
293
  };
293
294
  readonly waitlist: {
295
+ readonly status: () => Promise<WaitlistGateStatus>;
296
+ readonly form: () => Promise<WaitlistFormSettings>;
297
+ readonly submit: (input: WaitlistSubmission, mutation?: ChannelMutationOptions) => Promise<WaitlistAcknowledgement>;
294
298
  readonly verify: (token: string) => Promise<WaitlistVerification>;
295
299
  readonly unsubscribe: (key: string) => Promise<WaitlistUnsubscription>;
296
300
  };
301
+ readonly fileRequests: {
302
+ readonly view: (token: string) => Promise<FileRequestView>;
303
+ readonly begin: (input: FileRequestUploadInput, mutation?: ChannelMutationOptions) => Promise<FileRequestUploadTicket>;
304
+ readonly complete: (input: FileRequestCompleteInput, mutation?: ChannelMutationOptions) => Promise<FileRequestReceivedFile>;
305
+ readonly close: (token: string, mutation?: ChannelMutationOptions) => Promise<FileRequestClosed>;
306
+ };
297
307
  readonly dash: {
298
308
  readonly profile: () => Promise<DashProfileResponse>;
299
309
  readonly init: () => Promise<DashInitResponse>;
@@ -328,6 +338,7 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
328
338
  };
329
339
  readonly assetUrl: (pathOrUrl: string) => string;
330
340
  readonly site: {
341
+ readonly access: () => Promise<SiteAccess>;
331
342
  readonly resolve: (params?: ChannelSiteResolveParams) => Promise<SiteDocument>;
332
343
  };
333
344
  readonly init: {
@@ -434,6 +445,7 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
434
445
  readonly create: (input: CreateBookingHoldInput, mutation: RequiredIdempotency) => Promise<BookingHoldResponse>;
435
446
  readonly checkout: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
436
447
  readonly get: (token: string) => Promise<BookingHoldResponse>;
448
+ readonly release: (token: string, mutation?: ChannelMutationOptions) => Promise<BookingHoldResponse>;
437
449
  };
438
450
  };
439
451
  readonly paymentLinks: {
@@ -470,6 +482,9 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
470
482
  readonly refresh: (refreshToken: string) => Promise<CustomerSession>;
471
483
  };
472
484
  readonly withCustomer: (session: string) => {
485
+ readonly site: {
486
+ readonly access: () => Promise<SiteAccess>;
487
+ };
473
488
  readonly me: () => Promise<CustomerResponse>;
474
489
  readonly updateProfile: (input: {
475
490
  name?: string;
@@ -528,12 +543,9 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
528
543
  readonly get: (agreementId: string) => Promise<SubscriptionAgreementResponse>;
529
544
  readonly source: (agreementId: string) => Promise<SubscriptionSourceResponse>;
530
545
  readonly cancel: (agreementId: string, params?: ChannelSubscriptionCancelParams, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
531
- readonly pause: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
532
- readonly resume: (agreementId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionAgreementResponse>;
546
+ readonly portal: (input?: SubscriptionPortalInput, mutation?: ChannelMutationOptions) => Promise<SubscriptionPortalResponse>;
533
547
  readonly invoices: {
534
548
  readonly list: (agreementId: string, params?: ChannelInvoiceListParams) => Promise<SubscriptionInvoiceListResponse>;
535
- readonly get: (invoiceId: string) => Promise<SubscriptionInvoiceResponse>;
536
- readonly payNow: (invoiceId: string, mutation?: ChannelMutationOptions) => Promise<SubscriptionInvoiceResponse>;
537
549
  };
538
550
  };
539
551
  readonly giving: {
package/dist/next.js CHANGED
@@ -1,3 +1,3 @@
1
- export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-GWOZY23T.js';
2
- import './chunk-FBTHKZOP.js';
1
+ export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-IESKKOTS.js';
2
+ import './chunk-ZEWL4PBM.js';
3
3
  import './chunk-XPO7C3DW.js';
package/dist/site.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { bX as SiteRef, bS as PublicGate, bU as PublicSiteSignals } from './types-CgleEp97.js';
1
+ import { c3 as SiteRef, b_ as PublicGate, c0 as PublicSiteSignals } from './types-Iuoc_GMq.js';
2
2
 
3
3
  /**
4
4
  * Site signals: what a public site serves, decided from the `signals` block
@@ -76,13 +76,15 @@ type SiteDecision = {
76
76
  * Decides one request, in the server's order: no public site, then an
77
77
  * inactive owner, then the gate. Exempt paths are always served, and a
78
78
  * waitlist or maintenance gate never takes over `UNAVAILABLE_PATH` or
79
- * `PRIVATE_PATH`. `private` means nobody but the owner may see the site:
80
- * neither this nor site/resolve checks membership, and only a signed editor
81
- * preview bypasses a private site. `siteResponse` turns the decision into what
82
- * a proxy does.
79
+ * `PRIVATE_PATH`. `private` means only invited members and the owner's signed
80
+ * editor preview may see the site. `/init` is shared-cached, so signals cannot
81
+ * carry membership: a frontend learns it from `site.access()` with the
82
+ * viewer's session and passes `member: true`, which serves a private site.
83
+ * `siteResponse` turns the decision into what a proxy does.
83
84
  */
84
85
  declare function siteDecision(signals: SiteSignals, pathname: string, options?: {
85
86
  exempt?: readonly string[];
87
+ member?: boolean;
86
88
  }): SiteDecision;
87
89
  /** What a proxy does with a request: serve it, redirect it, or rewrite it in place. */
88
90
  type SiteResponse = {
package/dist/site.js CHANGED
@@ -59,7 +59,7 @@ function siteDecision(signals, pathname, options = {}) {
59
59
  if (signals.lifecycle !== "active") return { type: "inactive", lifecycle: signals.lifecycle };
60
60
  const gate = signals.gate;
61
61
  if (!gate || gate.placement !== "page") return { type: "serve" };
62
- if (gate.kind === "private") return { type: "private" };
62
+ if (gate.kind === "private") return options.member === true ? { type: "serve" } : { type: "private" };
63
63
  if (underPath(pathname, gate.path)) return { type: "gate-page", gate };
64
64
  if (SITE_STATE_PATHS.some((prefix) => underPath(pathname, prefix))) return { type: "serve" };
65
65
  if (gate.enforcement === "rewrite") {
@@ -110,7 +110,7 @@ function withSiteModeChoice(base, choice) {
110
110
  function describeLiveGate(gate) {
111
111
  if (!gate) return "Live \xB7 visitors see the normal site";
112
112
  if (gate.kind === "maintenance") return "Maintenance \xB7 visitors see the maintenance notice";
113
- if (gate.kind === "private") return "Private \xB7 only the owner can preview the site";
113
+ if (gate.kind === "private") return "Private \xB7 only invited members can see the site";
114
114
  return gate.placement === "page" ? "Waitlist \xB7 every page redirects to /waitlist" : "Waitlist \xB7 the site stays open with a signup form";
115
115
  }
116
116
  function toDateTimeLocal(value) {
@@ -144,7 +144,7 @@ interface PriceBreak {
144
144
  }
145
145
  interface PriceChange {
146
146
  amount: number;
147
- kind: string;
147
+ kind: "fixed" | "per_unit" | "per_pack" | "percent" | "surcharge";
148
148
  pack_size?: number;
149
149
  }
150
150
  interface PublicConfiguration {
@@ -194,11 +194,6 @@ interface Slot {
194
194
  interface SlotsResponse {
195
195
  items: Slot[];
196
196
  }
197
- interface UploadTicket {
198
- expires_at: string;
199
- upload_id: string;
200
- upload_url: string;
201
- }
202
197
 
203
198
  interface ListResponse<T> {
204
199
  items: T[];
@@ -279,6 +274,46 @@ interface WaitlistVerification {
279
274
  interface WaitlistUnsubscription {
280
275
  unsubscribed: boolean;
281
276
  }
277
+ /** A lead file request, as the requester sees it (`channel.file_requests.view`). */
278
+ interface FileRequestView {
279
+ business_name: string;
280
+ message?: string;
281
+ files_left: number;
282
+ max_file_bytes: number;
283
+ expires_at: string;
284
+ closed: boolean;
285
+ }
286
+ /** The request token rides in the JSON body of every file-request call. */
287
+ interface FileRequestTokenInput {
288
+ token: string;
289
+ }
290
+ interface FileRequestUploadInput {
291
+ token: string;
292
+ file_name: string;
293
+ content_type?: string;
294
+ size_bytes: number;
295
+ }
296
+ /** `PUT` the file to `upload_url` with `Content-Type: application/octet-stream`. */
297
+ interface FileRequestUploadTicket {
298
+ upload_id: string;
299
+ upload_url: string;
300
+ content_type: string;
301
+ expires_at: string;
302
+ }
303
+ interface FileRequestCompleteInput {
304
+ token: string;
305
+ upload_id: string;
306
+ }
307
+ interface FileRequestReceivedFile {
308
+ file_name: string;
309
+ content_type: string;
310
+ size_bytes: number;
311
+ files_left: number;
312
+ closed: boolean;
313
+ }
314
+ interface FileRequestClosed {
315
+ closed: boolean;
316
+ }
282
317
  interface PublicWorkspaceInit {
283
318
  signals?: PublicSiteSignals;
284
319
  workspace: WorkspaceInfo;
@@ -421,33 +456,29 @@ interface DashProfileResponse {
421
456
  }
422
457
  interface DashPlanPricing {
423
458
  currency: string;
424
- currency_symbol?: string;
425
459
  monthly_price: number;
460
+ region_code: string;
426
461
  yearly_price: number;
427
462
  }
463
+ interface DashPlanLimitValue {
464
+ value: number;
465
+ unlimited: boolean;
466
+ }
428
467
  interface DashPlan {
468
+ transaction_fee_bps: number;
429
469
  id: string;
430
470
  name: string;
431
471
  description: string;
432
472
  level: number;
433
- is_public: boolean;
434
473
  is_free: boolean;
435
474
  trial_days?: number;
475
+ trial_without_card?: boolean;
436
476
  highlights: string[];
437
- limits: Record<string, number>;
438
- pricing: Record<string, DashPlanPricing>;
439
- }
440
- interface DashPlanRegion {
441
- code: string;
442
- name: string;
443
- currency: string;
444
- locale: string;
445
- timezone: string;
446
- market_code?: string;
477
+ limit_values: Record<string, DashPlanLimitValue>;
478
+ price?: DashPlanPricing;
447
479
  }
448
480
  interface DashPlansResponse {
449
481
  plans: DashPlan[];
450
- regions: DashPlanRegion[];
451
482
  default_region: string;
452
483
  }
453
484
  interface DashDirectoryRegion {
@@ -821,6 +852,13 @@ interface SiteGatedDocument {
821
852
  };
822
853
  }
823
854
  type SiteDocument = SiteResolvedDocument | SiteGatedDocument;
855
+ /** What the viewer's session may see of the site (`channel.site.access`). */
856
+ interface SiteAccess {
857
+ /** The site is private. */
858
+ private: boolean;
859
+ /** The viewer is an invited, unbanned member of the workspace. */
860
+ member: boolean;
861
+ }
824
862
  interface MenuItem {
825
863
  id: string;
826
864
  parent_id?: string;
@@ -971,22 +1009,20 @@ interface SubscriptionAgreement {
971
1009
  provider_ref?: string;
972
1010
  provider_customer_ref?: string;
973
1011
  plan_id?: string;
974
- initial_invoice_id?: string;
975
- currency: string;
976
- amount_cents: number;
977
- interval: string;
978
- current_period_start?: string;
979
1012
  current_period_end?: string;
980
- trial_ends_at?: string;
981
1013
  cancel_at_period_end: boolean;
982
- canceled_at?: string;
983
- meta?: Record<string, unknown>;
984
1014
  created_at: string;
985
1015
  updated_at: string;
986
1016
  }
987
1017
  interface SubscriptionAgreementResponse {
988
1018
  agreement: SubscriptionAgreement;
989
1019
  }
1020
+ interface SubscriptionPortalInput {
1021
+ return_url?: string;
1022
+ }
1023
+ interface SubscriptionPortalResponse {
1024
+ url: string;
1025
+ }
990
1026
  interface SubscriptionListResponse {
991
1027
  items: SubscriptionAgreement[];
992
1028
  has_more: boolean;
@@ -1007,19 +1043,11 @@ interface SubscriptionInvoice {
1007
1043
  paid_cents: number;
1008
1044
  period_start?: string;
1009
1045
  period_end?: string;
1010
- due_at?: string;
1011
1046
  paid_at?: string;
1012
1047
  payment_id?: string;
1013
- attempt_count: number;
1014
- failure_code?: string;
1015
- failure_message?: string;
1016
- meta?: Record<string, unknown>;
1017
1048
  created_at: string;
1018
1049
  updated_at: string;
1019
1050
  }
1020
- interface SubscriptionInvoiceResponse {
1021
- invoice: SubscriptionInvoice;
1022
- }
1023
1051
  interface SubscriptionInvoiceListResponse {
1024
1052
  items: SubscriptionInvoice[];
1025
1053
  has_more: boolean;
@@ -1752,4 +1780,4 @@ interface BookingQuoteParams {
1752
1780
  endsAt?: string;
1753
1781
  }
1754
1782
 
1755
- export type { CatalogBrand as $, AddCartItemInput as A, DashMovingAddressList as B, CartResponse as C, DashProfileResponse as D, DashMovingAddress as E, DashMovingDistance as F, PublicWorkspaceInit as G, LightInitResponse as H, PublicPageSummary as I, PublicPage as J, Product as K, ListResponse as L, ProductAsset as M, SlotsResponse as N, Order as O, PaymentCollectionAvailability as P, DownloadResponse as Q, ArtworkMutationReceipt as R, SiteDocument as S, PublicConfiguration as T, UploadTicket as U, PublicConfigurationQuoteInput as V, WaitlistVerification as W, PublicConfigurationQuote as X, CatalogCategory as Y, CatalogProductsResponse as Z, CatalogCollection as _, CheckoutOptions as a, BookingCustomerInput as a$, CartLookupResponse as a0, UpdateCartItemInput as a1, MergeCartInput as a2, Review as a3, ReviewSummaryResponse as a4, PublicSubmitReviewInput as a5, ThemeResponse as a6, MenuResponse as a7, BlogPost as a8, BlogPostResponse as a9, CustomerResponse as aA, CustomerAuthSession as aB, CustomerSecurityActivityPage as aC, OrderSummary as aD, SavedAddress as aE, SavedAddressResponse as aF, SavedAddressInput as aG, SavedAddressUpdateInput as aH, SavedPaymentMethod as aI, PaymentMethodSetupInput as aJ, PaymentMethodSetupResult as aK, PaymentMethodConfirmInput as aL, PaymentMethodMutationResponse as aM, StartSubscriptionInput as aN, SubscriptionAgreementResponse as aO, SubscriptionListResponse as aP, SubscriptionSourceResponse as aQ, SubscriptionInvoiceListResponse as aR, SubscriptionInvoiceResponse as aS, GivingIntentListResponse as aT, LeadResponse as aU, BeginUploadInput as aV, CompleteUploadInput as aW, DecisionInput as aX, Slot as aY, BookingAvailability as aZ, BookingCancellationPolicy as a_, GivingEntry as aa, StartGivingInput as ab, StartGivingResponse as ac, SubscriptionPlanListResponse as ad, SubscriptionPlanResponse as ae, BookingService as af, BookingServiceResponse as ag, BookingAvailabilityParams as ah, BookingAvailabilityResponse as ai, BookingQuoteParams as aj, BookingQuoteResponse as ak, CreateBookingHoldInput as al, BookingHoldResponse as am, PublicPaymentLinkResponse as an, PaymentLinkCheckoutInput as ao, PaymentLinkCheckoutResponse as ap, PaymentLinkRedemptionStatusResponse as aq, PrintSettingsResponse as ar, PrintOptionsSelection as as, PrintQuoteResponse as at, PrintIntakeInput as au, PrintJob as av, DiningMenu as aw, CustomerSignupResponse as ax, SendCodeResponse as ay, CustomerSession as az, CheckoutStatusResponse as b, SubscriptionInvoice as b$, BookingFreeSpan as b0, BookingHold as b1, BookingIntakeQuestion as b2, BookingPriceQuote as b3, BookingServicePricing as b4, BookingTimeRange as b5, CatalogProduct as b6, CheckoutAddress as b7, CheckoutStatus as b8, ConfigDocument as b9, DiningOfferBadge as bA, GivingIntent as bB, Menu as bC, MenuItem as bD, OrderItem as bE, PaymentLinkRedemptionStatus as bF, PaymentMethodOption as bG, PaymentReadiness as bH, PrintBranding as bI, PrintIntakeLimits as bJ, PrintJobFile as bK, PrintPaperSize as bL, PrintPerPagePricing as bM, PrintPriceBreakdown as bN, PrintPriceLine as bO, PrintPricing as bP, PrintPricingOption as bQ, ProductLineConfiguration as bR, PublicGate as bS, PublicPaymentLink as bT, PublicSiteSignals as bU, ShippingMethodOption as bV, SiteGatedDocument as bW, SiteRef as bX, SiteResolvedDocument as bY, SiteSubject as bZ, SubscriptionAgreement as b_, ConfigQuote as ba, ConfigSelectionRequest as bb, Customer as bc, CustomerSecurityActivity as bd, DashBrandingInfo as be, DashDirectoryProfile as bf, DashLeadPortalMatch as bg, DashLeadPortalMovingSummary as bh, DashLeadPortalRequest as bi, DashLeadPortalRequestStatus as bj, DashLocaleInfo as bk, DashPlan as bl, DashPlanPricing as bm, DashPlanRegion as bn, DashPublicPage as bo, DashPublicProfileInfo as bp, DashTenantInfo as bq, DiningAvailability as br, DiningAvailabilityRule as bs, DiningComboChoice as bt, DiningComboGroup as bu, DiningItemSize as bv, DiningMenuItem as bw, DiningModifier as bx, DiningModifierGroup as by, DiningOffer as bz, CheckoutCustomerInput as c, SubscriptionPlanOffer as c0, SubscriptionSourceDisplay as c1, WaitlistAttribution as c2, WorkspaceInfo as c3, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistUnsubscription as k, DashInitResponse as l, WaitlistGateStatus as m, WaitlistFormSettings as n, WaitlistSubmission as o, WaitlistAcknowledgement as p, DashPlansResponse as q, DashDirectoryRegion as r, DashDirectoryEntry as s, DashDirectoryProfileResponse as t, DashLead as u, DashLeadPortalRequestLinkInput as v, DashLeadPortalRequestLinkResponse as w, DashLeadPortalView as x, DashMovingQuoteInput as y, DashMovingQuoteReceipt as z };
1783
+ export type { PublicConfiguration as $, AddCartItemInput as A, DashLeadPortalRequestLinkInput as B, CartResponse as C, DashProfileResponse as D, DashLeadPortalRequestLinkResponse as E, FileRequestView as F, DashLeadPortalView as G, DashMovingQuoteInput as H, DashMovingQuoteReceipt as I, DashMovingAddressList as J, DashMovingAddress as K, ListResponse as L, DashMovingDistance as M, SiteDocument as N, Order as O, PaymentCollectionAvailability as P, PublicWorkspaceInit as Q, LightInitResponse as R, SiteAccess as S, PublicPageSummary as T, PublicPage as U, Product as V, WaitlistGateStatus as W, ProductAsset as X, SlotsResponse as Y, DownloadResponse as Z, ArtworkMutationReceipt as _, CheckoutOptions as a, LeadResponse as a$, PublicConfigurationQuoteInput as a0, PublicConfigurationQuote as a1, CatalogCategory as a2, CatalogProductsResponse as a3, CatalogCollection as a4, CatalogBrand as a5, CartLookupResponse as a6, UpdateCartItemInput as a7, MergeCartInput as a8, Review as a9, PrintIntakeInput as aA, PrintJob as aB, DiningMenu as aC, CustomerSignupResponse as aD, SendCodeResponse as aE, CustomerSession as aF, CustomerResponse as aG, CustomerAuthSession as aH, CustomerSecurityActivityPage as aI, OrderSummary as aJ, SavedAddress as aK, SavedAddressResponse as aL, SavedAddressInput as aM, SavedAddressUpdateInput as aN, SavedPaymentMethod as aO, PaymentMethodSetupInput as aP, PaymentMethodSetupResult as aQ, PaymentMethodConfirmInput as aR, PaymentMethodMutationResponse as aS, StartSubscriptionInput as aT, SubscriptionAgreementResponse as aU, SubscriptionListResponse as aV, SubscriptionSourceResponse as aW, SubscriptionPortalInput as aX, SubscriptionPortalResponse as aY, SubscriptionInvoiceListResponse as aZ, GivingIntentListResponse as a_, ReviewSummaryResponse as aa, PublicSubmitReviewInput as ab, ThemeResponse as ac, MenuResponse as ad, BlogPost as ae, BlogPostResponse as af, GivingEntry as ag, StartGivingInput as ah, StartGivingResponse as ai, SubscriptionPlanListResponse as aj, SubscriptionPlanResponse as ak, BookingService as al, BookingServiceResponse as am, BookingAvailabilityParams as an, BookingAvailabilityResponse as ao, BookingQuoteParams as ap, BookingQuoteResponse as aq, CreateBookingHoldInput as ar, BookingHoldResponse as as, PublicPaymentLinkResponse as at, PaymentLinkCheckoutInput as au, PaymentLinkCheckoutResponse as av, PaymentLinkRedemptionStatusResponse as aw, PrintSettingsResponse as ax, PrintOptionsSelection as ay, PrintQuoteResponse as az, CheckoutStatusResponse as b, PublicPaymentLink as b$, BeginUploadInput as b0, CompleteUploadInput as b1, DecisionInput as b2, Slot as b3, BookingAvailability as b4, BookingCancellationPolicy as b5, BookingCustomerInput as b6, BookingFreeSpan as b7, BookingHold as b8, BookingIntakeQuestion as b9, DiningComboChoice as bA, DiningComboGroup as bB, DiningItemSize as bC, DiningMenuItem as bD, DiningModifier as bE, DiningModifierGroup as bF, DiningOffer as bG, DiningOfferBadge as bH, FileRequestTokenInput as bI, GivingIntent as bJ, Menu as bK, MenuItem as bL, OrderItem as bM, PaymentLinkRedemptionStatus as bN, PaymentMethodOption as bO, PaymentReadiness as bP, PrintBranding as bQ, PrintIntakeLimits as bR, PrintJobFile as bS, PrintPaperSize as bT, PrintPerPagePricing as bU, PrintPriceBreakdown as bV, PrintPriceLine as bW, PrintPricing as bX, PrintPricingOption as bY, ProductLineConfiguration as bZ, PublicGate as b_, BookingPriceQuote as ba, BookingServicePricing as bb, BookingTimeRange as bc, CatalogProduct as bd, CheckoutAddress as be, CheckoutStatus as bf, ConfigDocument as bg, ConfigQuote as bh, ConfigSelectionRequest as bi, Customer as bj, CustomerSecurityActivity as bk, DashBrandingInfo as bl, DashDirectoryProfile as bm, DashLeadPortalMatch as bn, DashLeadPortalMovingSummary as bo, DashLeadPortalRequest as bp, DashLeadPortalRequestStatus as bq, DashLocaleInfo as br, DashPlan as bs, DashPlanLimitValue as bt, DashPlanPricing as bu, DashPublicPage as bv, DashPublicProfileInfo as bw, DashTenantInfo as bx, DiningAvailability as by, DiningAvailabilityRule as bz, CheckoutCustomerInput as c, PublicSiteSignals as c0, ShippingMethodOption as c1, SiteGatedDocument as c2, SiteRef as c3, SiteResolvedDocument as c4, SiteSubject as c5, SubscriptionAgreement as c6, SubscriptionInvoice as c7, SubscriptionPlanOffer as c8, SubscriptionSourceDisplay as c9, WaitlistAttribution as ca, WorkspaceInfo as cb, CheckoutAddressesInput as d, CheckoutFulfillmentInput as e, CheckoutPayInput as f, CheckoutPayResponse as g, CheckoutCancelInput as h, ChannelPing as i, ChannelGeo as j, WaitlistFormSettings as k, WaitlistSubmission as l, WaitlistAcknowledgement as m, WaitlistVerification as n, WaitlistUnsubscription as o, FileRequestUploadInput as p, FileRequestUploadTicket as q, FileRequestCompleteInput as r, FileRequestReceivedFile as s, FileRequestClosed as t, DashInitResponse as u, DashPlansResponse as v, DashDirectoryRegion as w, DashDirectoryEntry as x, DashDirectoryProfileResponse as y, DashLead as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/channel-client",
3
- "version": "1.0.0",
3
+ "version": "3.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Typed server-side client for the MML headless Channel API",