@c1m-public/channel-client 0.27.0 → 0.28.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 { isChannelAPIError, createChannelClient } from './chunk-E5J5UOPS.js';
1
+ import { isChannelAPIError, createChannelClient } from './chunk-LBOYLZ4J.js';
2
2
  import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
3
3
  import 'server-only';
4
4
 
@@ -1,4 +1,4 @@
1
- import { createChannelClient } from './chunk-E5J5UOPS.js';
1
+ import { createChannelClient } from './chunk-LBOYLZ4J.js';
2
2
  import 'server-only';
3
3
 
4
4
  function narrow(client) {
@@ -6,6 +6,7 @@ function narrow(client) {
6
6
  ping: client.ping,
7
7
  geo: client.geo,
8
8
  dash: client.dash,
9
+ audience: client.audience,
9
10
  assetUrl: client.assetUrl,
10
11
  withVisitor: (visitor) => narrow(client.withVisitor(visitor))
11
12
  };
@@ -243,6 +243,21 @@ function createChannelClient(options) {
243
243
  }
244
244
  }
245
245
  }
246
+ async function linkRequest(path, body) {
247
+ try {
248
+ const result = await performRequest(transport, `${baseUrl}/api/v1/public/audience${path}`, {
249
+ method: "POST",
250
+ headers: { "Content-Type": "application/json" },
251
+ body: JSON.stringify(body),
252
+ cache: "no-store"
253
+ });
254
+ return result.payload;
255
+ } catch (error) {
256
+ if (!isTransportError(error)) throw error;
257
+ const { status, code, message, requestId } = error.failure;
258
+ throw new ChannelAPIError(message || "Audience link request failed", status, code || "audience_link_failed", requestId);
259
+ }
260
+ }
246
261
  function mutationHeaders(mutation) {
247
262
  return mutation?.idempotencyKey ? { "Idempotency-Key": mutation.idempotencyKey } : void 0;
248
263
  }
@@ -274,6 +289,11 @@ function createChannelClient(options) {
274
289
  { cache: "no-store" }
275
290
  )
276
291
  },
292
+ /** Confirmation and unsubscribe links from waitlist emails. */
293
+ audience: {
294
+ verify: (token2) => linkRequest("/verify", { token: required(token2, "token") }),
295
+ unsubscribe: (key) => linkRequest("/unsubscribe", { key: required(key, "key") })
296
+ },
277
297
  /** Tenant-level data exposed only to a dash-scoped channel token. */
278
298
  dash: {
279
299
  profile: () => request("channel.dash.profile", "/dash/profile"),
package/dist/dash-next.js CHANGED
@@ -1,6 +1,6 @@
1
- import { createNextChannelClient } from './chunk-HOR5MOYI.js';
2
- import { narrow } from './chunk-LRHQXWLD.js';
3
- import './chunk-E5J5UOPS.js';
1
+ import { createNextChannelClient } from './chunk-CPQT34K2.js';
2
+ import { narrow } from './chunk-KCYSLD37.js';
3
+ import './chunk-LBOYLZ4J.js';
4
4
  import './chunk-XPO7C3DW.js';
5
5
  import 'server-only';
6
6
 
package/dist/dash.d.ts CHANGED
@@ -12,9 +12,10 @@ import './webhooks.js';
12
12
  *
13
13
  * `ping` and `geo` are deliberately included: both are scope-agnostic on the
14
14
  * door (the credential self-check must answer for either scope, and geo lets
15
- * a dash site localise pricing).
15
+ * a dash site localise pricing). `audience` is the scope-free email-link
16
+ * surface every waitlist site needs.
16
17
  */
17
- type DashChannelClient = Pick<ReturnType<typeof createChannelClient>, "ping" | "geo" | "dash" | "assetUrl"> & {
18
+ type DashChannelClient = Pick<ReturnType<typeof createChannelClient>, "ping" | "geo" | "dash" | "audience" | "assetUrl"> & {
18
19
  /** Request-scoped clone carrying signed visitor metadata (see ChannelVisitor). */
19
20
  withVisitor(visitor: ChannelVisitor): DashChannelClient;
20
21
  };
package/dist/dash.js CHANGED
@@ -1,3 +1,3 @@
1
- export { createDashChannelClient, narrow as narrowToDash } from './chunk-LRHQXWLD.js';
2
- import './chunk-E5J5UOPS.js';
1
+ export { createDashChannelClient, narrow as narrowToDash } from './chunk-KCYSLD37.js';
2
+ import './chunk-LBOYLZ4J.js';
3
3
  import './chunk-XPO7C3DW.js';
package/dist/index.d.ts CHANGED
@@ -12,31 +12,57 @@ interface WorkspaceInfo {
12
12
  is_active: boolean;
13
13
  status?: string;
14
14
  }
15
- /** Public availability only; never participant data or an access grant. */
16
- interface WaitlistPublicStatus {
17
- enabled: boolean;
18
- accepting_entries: boolean;
19
- display: "page" | "block";
15
+ /**
16
+ * The server-decided public gate. Absent means visitors see the normal site.
17
+ * `page` placement redirects every non-exempt path to `path`; `block` keeps
18
+ * the site and lets a page embed the signup form. Never participant data.
19
+ */
20
+ interface PublicGate {
21
+ kind: "waitlist";
22
+ placement: "page" | "block";
23
+ path: string;
20
24
  }
21
- interface WaitlistPublicFormResponse {
22
- status: WaitlistPublicStatus;
25
+ interface WaitlistGateStatus {
26
+ gate?: PublicGate;
27
+ }
28
+ interface WaitlistFormSettings {
29
+ gate?: PublicGate;
23
30
  collect_marketing_consent: boolean;
24
31
  }
32
+ /** First-touch context captured by the site; every field is a bounded hint. */
33
+ interface WaitlistAttribution {
34
+ utm_source?: string;
35
+ utm_medium?: string;
36
+ utm_campaign?: string;
37
+ utm_term?: string;
38
+ utm_content?: string;
39
+ referrer_host?: string;
40
+ landing_path?: string;
41
+ country?: string;
42
+ locale?: string;
43
+ }
25
44
  interface WaitlistSubmission {
26
45
  email: string;
27
46
  name?: string;
28
- source?: string;
47
+ source?: "waitlist_page" | "waitlist_block";
29
48
  marketing_opt_in?: boolean;
49
+ attribution?: WaitlistAttribution;
30
50
  }
31
51
  interface WaitlistAcknowledgement {
32
52
  accepted: boolean;
33
53
  }
54
+ interface WaitlistVerification {
55
+ verified: boolean;
56
+ }
57
+ interface WaitlistUnsubscription {
58
+ unsubscribed: boolean;
59
+ }
34
60
  interface PublicWorkspaceInit {
35
61
  workspace: WorkspaceInfo;
36
62
  branding?: Record<string, unknown>;
37
63
  preferences?: Record<string, unknown>;
38
64
  profile?: Record<string, unknown>;
39
- waitlist?: WaitlistPublicStatus;
65
+ gate?: PublicGate;
40
66
  features?: Array<{
41
67
  key: string;
42
68
  name: string;
@@ -69,7 +95,7 @@ interface SiteRef {
69
95
  * (`menus.get`) and theme (`theme.get`) stay separate, parallel reads.
70
96
  */
71
97
  interface LightInitResponse {
72
- waitlist?: WaitlistPublicStatus;
98
+ gate?: PublicGate;
73
99
  workspace_id: string;
74
100
  workspace_name: string;
75
101
  workspace_slug?: string;
@@ -126,7 +152,7 @@ interface DashLocaleInfo {
126
152
  * `dash.profile()` remains for the full profile page (gallery, about template).
127
153
  */
128
154
  interface DashInitResponse {
129
- waitlist?: WaitlistPublicStatus;
155
+ gate?: PublicGate;
130
156
  tenant: DashTenantInfo;
131
157
  public_profile: DashPublicProfileInfo;
132
158
  branding?: DashBrandingInfo;
@@ -1449,13 +1475,18 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
1449
1475
  */
1450
1476
  readonly availability: () => Promise<PaymentCollectionAvailability>;
1451
1477
  };
1478
+ /** Confirmation and unsubscribe links from waitlist emails. */
1479
+ readonly audience: {
1480
+ readonly verify: (token: string) => Promise<WaitlistVerification>;
1481
+ readonly unsubscribe: (key: string) => Promise<WaitlistUnsubscription>;
1482
+ };
1452
1483
  /** Tenant-level data exposed only to a dash-scoped channel token. */
1453
1484
  readonly dash: {
1454
1485
  readonly profile: () => Promise<DashProfileResponse>;
1455
1486
  readonly init: () => Promise<DashInitResponse>;
1456
1487
  readonly waitlist: {
1457
- readonly status: () => Promise<WaitlistPublicStatus>;
1458
- readonly form: () => Promise<WaitlistPublicFormResponse>;
1488
+ readonly status: () => Promise<WaitlistGateStatus>;
1489
+ readonly form: () => Promise<WaitlistFormSettings>;
1459
1490
  readonly submit: (input: WaitlistSubmission, mutation?: ChannelMutationOptions) => Promise<WaitlistAcknowledgement>;
1460
1491
  };
1461
1492
  readonly plans: () => Promise<DashPlansResponse>;
@@ -1683,4 +1714,4 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
1683
1714
  };
1684
1715
  };
1685
1716
 
1686
- export { type AddCartItemInput, type BlogPost, type BlogPostResponse, type CartResponse, type CatalogBrand, type CatalogCategory, type CatalogCollection, type CatalogProduct, type CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, type ChannelGeo, type ChannelInvoiceListParams, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, type ChannelPing, type ChannelProductListParams, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionCancelParams, type ChannelSubscriptionListParams, type ChannelVisitor, type CheckoutAddress, type CheckoutAddressesInput, type CheckoutCancelInput, type CheckoutCustomerInput, type CheckoutFulfillmentInput, type CheckoutOptions, type CheckoutPayInput, type CheckoutPayResponse, type CheckoutStatus, type CheckoutStatusResponse, type CreateChannelClientOptions, type Customer, type CustomerAuthSession, type CustomerResponse, type CustomerSecurityActivity, type CustomerSecurityActivityPage, type CustomerSession, type CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, type DashBrandingInfo, type DashDirectoryEntry, type DashDirectoryListParams, type DashDirectoryProfile, type DashDirectoryProfileResponse, type DashDirectoryRegion, type DashInitResponse, type DashLead, type DashLeadPortalMatch, type DashLeadPortalMovingSummary, type DashLeadPortalRequest, type DashLeadPortalRequestLinkInput, type DashLeadPortalRequestLinkResponse, type DashLeadPortalRequestStatus, type DashLeadPortalView, type DashLocaleInfo, type DashPlan, type DashPlanPricing, type DashPlanRegion, type DashPlansResponse, type DashProfileResponse, type DashPublicPage, type DashPublicProfileInfo, type DashTenantInfo, type DiningAvailability, type DiningAvailabilityRule, type DiningComboChoice, type DiningComboGroup, type DiningItemSize, type DiningMenu, type DiningMenuItem, type DiningModifier, type DiningModifierGroup, type DiningOffer, type DiningOfferBadge, type GivingEntry, type GivingIntent, type GivingIntentListResponse, type LeadResponse, type LightInitResponse, type ListResponse, type Menu, type MenuItem, type MenuResponse, type MergeCartInput, type Order, type OrderItem, type OrderSummary, type PaymentCollectionAvailability, type PaymentLinkCheckoutInput, type PaymentLinkCheckoutResponse, type PaymentLinkRedemptionStatus, type PaymentLinkRedemptionStatusResponse, type PaymentMethodConfirmInput, type PaymentMethodMutationResponse, type PaymentMethodOption, type PaymentMethodSetupInput, type PaymentMethodSetupResult, type PaymentReadiness, type PrintBranding, type PrintIntakeInput, type PrintIntakeLimits, type PrintJob, type PrintJobFile, type PrintOptionsSelection, type PrintPaperSize, type PrintPerPagePricing, type PrintPriceBreakdown, type PrintPriceLine, type PrintPricing, type PrintPricingOption, type PrintQuoteResponse, type PrintSettingsResponse, type Product, type ProductAsset, type PublicPage, type PublicPageSummary, type PublicPaymentLink, type PublicPaymentLinkResponse, type PublicSubmitReviewInput, type PublicWorkspaceInit, type Review, type ReviewSummaryResponse, type SavedAddress, type SavedAddressInput, type SavedAddressResponse, type SavedAddressUpdateInput, type SavedPaymentMethod, type SendCodeResponse, type ShippingMethodOption, type SiteDocument, type SiteGatedDocument, type SiteRef, type SiteResolvedDocument, type SiteSubject, type StartGivingInput, type StartGivingResponse, type StartSubscriptionInput, type SubscriptionAgreement, type SubscriptionAgreementResponse, type SubscriptionInvoice, type SubscriptionInvoiceListResponse, type SubscriptionInvoiceResponse, type SubscriptionListResponse, type SubscriptionPlanListResponse, type SubscriptionPlanOffer, type SubscriptionPlanResponse, type SubscriptionSourceDisplay, type SubscriptionSourceResponse, type ThemeResponse, type UpdateCartItemInput, type WaitlistAcknowledgement, type WaitlistPublicFormResponse, type WaitlistPublicStatus, type WaitlistSubmission, type WorkspaceInfo, createChannelClient, isChannelAPIError, isChannelConfigurationError };
1717
+ export { type AddCartItemInput, type BlogPost, type BlogPostResponse, type CartResponse, type CatalogBrand, type CatalogCategory, type CatalogCollection, type CatalogProduct, type CatalogProductsResponse, ChannelAPIError, type ChannelCheckoutStatusParams, ChannelConfigurationError, type ChannelGeo, type ChannelInvoiceListParams, type ChannelLeadInput, type ChannelListParams, type ChannelMutationOptions, type ChannelOperation, type ChannelPing, type ChannelProductListParams, type ChannelRequestObservation, type ChannelRequestObserver, type ChannelRequestOutcome, type ChannelRetryPolicy, type ChannelSiteResolveParams, type ChannelSubscriptionCancelParams, type ChannelSubscriptionListParams, type ChannelVisitor, type CheckoutAddress, type CheckoutAddressesInput, type CheckoutCancelInput, type CheckoutCustomerInput, type CheckoutFulfillmentInput, type CheckoutOptions, type CheckoutPayInput, type CheckoutPayResponse, type CheckoutStatus, type CheckoutStatusResponse, type CreateChannelClientOptions, type Customer, type CustomerAuthSession, type CustomerResponse, type CustomerSecurityActivity, type CustomerSecurityActivityPage, type CustomerSession, type CustomerSignupResponse, DEFAULT_CHANNEL_API_URL, type DashBrandingInfo, type DashDirectoryEntry, type DashDirectoryListParams, type DashDirectoryProfile, type DashDirectoryProfileResponse, type DashDirectoryRegion, type DashInitResponse, type DashLead, type DashLeadPortalMatch, type DashLeadPortalMovingSummary, type DashLeadPortalRequest, type DashLeadPortalRequestLinkInput, type DashLeadPortalRequestLinkResponse, type DashLeadPortalRequestStatus, type DashLeadPortalView, type DashLocaleInfo, type DashPlan, type DashPlanPricing, type DashPlanRegion, type DashPlansResponse, type DashProfileResponse, type DashPublicPage, type DashPublicProfileInfo, type DashTenantInfo, type DiningAvailability, type DiningAvailabilityRule, type DiningComboChoice, type DiningComboGroup, type DiningItemSize, type DiningMenu, type DiningMenuItem, type DiningModifier, type DiningModifierGroup, type DiningOffer, type DiningOfferBadge, type GivingEntry, type GivingIntent, type GivingIntentListResponse, type LeadResponse, type LightInitResponse, type ListResponse, type Menu, type MenuItem, type MenuResponse, type MergeCartInput, type Order, type OrderItem, type OrderSummary, type PaymentCollectionAvailability, type PaymentLinkCheckoutInput, type PaymentLinkCheckoutResponse, type PaymentLinkRedemptionStatus, type PaymentLinkRedemptionStatusResponse, type PaymentMethodConfirmInput, type PaymentMethodMutationResponse, type PaymentMethodOption, type PaymentMethodSetupInput, type PaymentMethodSetupResult, type PaymentReadiness, type PrintBranding, type PrintIntakeInput, type PrintIntakeLimits, type PrintJob, type PrintJobFile, type PrintOptionsSelection, type PrintPaperSize, type PrintPerPagePricing, type PrintPriceBreakdown, type PrintPriceLine, type PrintPricing, type PrintPricingOption, type PrintQuoteResponse, type PrintSettingsResponse, type Product, type ProductAsset, type PublicGate, type PublicPage, type PublicPageSummary, type PublicPaymentLink, type PublicPaymentLinkResponse, type PublicSubmitReviewInput, type PublicWorkspaceInit, type Review, type ReviewSummaryResponse, type SavedAddress, type SavedAddressInput, type SavedAddressResponse, type SavedAddressUpdateInput, type SavedPaymentMethod, type SendCodeResponse, type ShippingMethodOption, type SiteDocument, type SiteGatedDocument, type SiteRef, type SiteResolvedDocument, type SiteSubject, type StartGivingInput, type StartGivingResponse, type StartSubscriptionInput, type SubscriptionAgreement, type SubscriptionAgreementResponse, type SubscriptionInvoice, type SubscriptionInvoiceListResponse, type SubscriptionInvoiceResponse, type SubscriptionListResponse, type SubscriptionPlanListResponse, type SubscriptionPlanOffer, type SubscriptionPlanResponse, type SubscriptionSourceDisplay, type SubscriptionSourceResponse, type ThemeResponse, type UpdateCartItemInput, type WaitlistAcknowledgement, type WaitlistAttribution, type WaitlistFormSettings, type WaitlistGateStatus, type WaitlistSubmission, type WaitlistUnsubscription, type WaitlistVerification, type WorkspaceInfo, createChannelClient, isChannelAPIError, isChannelConfigurationError };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-E5J5UOPS.js';
1
+ export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-LBOYLZ4J.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,4 +1,4 @@
1
- import { createChannelClient, Order, AddCartItemInput, CartResponse, CheckoutOptions, ChannelCheckoutStatusParams, CheckoutStatusResponse, CheckoutCustomerInput, CheckoutAddressesInput, CheckoutFulfillmentInput, CheckoutPayInput, ChannelMutationOptions, CheckoutPayResponse, CheckoutCancelInput, CreateChannelClientOptions, ChannelPing, ChannelVisitor, ChannelGeo, PaymentCollectionAvailability, DashProfileResponse, DashInitResponse, WaitlistPublicStatus, WaitlistPublicFormResponse, WaitlistSubmission, WaitlistAcknowledgement, DashPlansResponse, ListResponse, DashDirectoryRegion, DashDirectoryListParams, DashDirectoryEntry, DashDirectoryProfileResponse, ChannelLeadInput, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, ChannelSiteResolveParams, SiteDocument, PublicWorkspaceInit, LightInitResponse, ChannelListParams, PublicPageSummary, PublicPage, ChannelProductListParams, Product, ProductAsset, CatalogCategory, CatalogProductsResponse, CatalogCollection, CatalogBrand, UpdateCartItemInput, MergeCartInput, Review, ReviewSummaryResponse, PublicSubmitReviewInput, ThemeResponse, MenuResponse, BlogPost, BlogPostResponse, GivingEntry, StartGivingInput, StartGivingResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, PublicPaymentLinkResponse, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PrintSettingsResponse, PrintOptionsSelection, PrintQuoteResponse, PrintIntakeInput, PrintJob, DiningMenu, CustomerSignupResponse, SendCodeResponse, CustomerSession, CustomerResponse, CustomerAuthSession, CustomerSecurityActivityPage, OrderSummary, SavedAddress, SavedAddressResponse, SavedAddressInput, SavedAddressUpdateInput, SavedPaymentMethod, PaymentMethodSetupInput, PaymentMethodSetupResult, PaymentMethodConfirmInput, PaymentMethodMutationResponse, StartSubscriptionInput, SubscriptionAgreementResponse, ChannelSubscriptionListParams, SubscriptionListResponse, SubscriptionSourceResponse, ChannelSubscriptionCancelParams, ChannelInvoiceListParams, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, GivingIntentListResponse, LeadResponse } from './index.js';
1
+ import { createChannelClient, Order, AddCartItemInput, CartResponse, CheckoutOptions, ChannelCheckoutStatusParams, CheckoutStatusResponse, CheckoutCustomerInput, CheckoutAddressesInput, CheckoutFulfillmentInput, CheckoutPayInput, ChannelMutationOptions, CheckoutPayResponse, CheckoutCancelInput, CreateChannelClientOptions, ChannelPing, ChannelVisitor, ChannelGeo, PaymentCollectionAvailability, WaitlistVerification, WaitlistUnsubscription, DashProfileResponse, DashInitResponse, WaitlistGateStatus, WaitlistFormSettings, WaitlistSubmission, WaitlistAcknowledgement, DashPlansResponse, ListResponse, DashDirectoryRegion, DashDirectoryListParams, DashDirectoryEntry, DashDirectoryProfileResponse, ChannelLeadInput, DashLead, DashLeadPortalRequestLinkInput, DashLeadPortalRequestLinkResponse, DashLeadPortalView, ChannelSiteResolveParams, SiteDocument, PublicWorkspaceInit, LightInitResponse, ChannelListParams, PublicPageSummary, PublicPage, ChannelProductListParams, Product, ProductAsset, CatalogCategory, CatalogProductsResponse, CatalogCollection, CatalogBrand, UpdateCartItemInput, MergeCartInput, Review, ReviewSummaryResponse, PublicSubmitReviewInput, ThemeResponse, MenuResponse, BlogPost, BlogPostResponse, GivingEntry, StartGivingInput, StartGivingResponse, SubscriptionPlanListResponse, SubscriptionPlanResponse, PublicPaymentLinkResponse, PaymentLinkCheckoutInput, PaymentLinkCheckoutResponse, PaymentLinkRedemptionStatusResponse, PrintSettingsResponse, PrintOptionsSelection, PrintQuoteResponse, PrintIntakeInput, PrintJob, DiningMenu, CustomerSignupResponse, SendCodeResponse, CustomerSession, CustomerResponse, CustomerAuthSession, CustomerSecurityActivityPage, OrderSummary, SavedAddress, SavedAddressResponse, SavedAddressInput, SavedAddressUpdateInput, SavedPaymentMethod, PaymentMethodSetupInput, PaymentMethodSetupResult, PaymentMethodConfirmInput, PaymentMethodMutationResponse, StartSubscriptionInput, SubscriptionAgreementResponse, ChannelSubscriptionListParams, SubscriptionListResponse, SubscriptionSourceResponse, ChannelSubscriptionCancelParams, ChannelInvoiceListParams, SubscriptionInvoiceListResponse, SubscriptionInvoiceResponse, GivingIntentListResponse, LeadResponse } from './index.js';
2
2
  import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
3
3
 
4
4
  /**
@@ -289,12 +289,16 @@ declare function createNextChannelClient(options: CreateNextChannelClientOptions
289
289
  readonly payments: {
290
290
  readonly availability: () => Promise<PaymentCollectionAvailability>;
291
291
  };
292
+ readonly audience: {
293
+ readonly verify: (token: string) => Promise<WaitlistVerification>;
294
+ readonly unsubscribe: (key: string) => Promise<WaitlistUnsubscription>;
295
+ };
292
296
  readonly dash: {
293
297
  readonly profile: () => Promise<DashProfileResponse>;
294
298
  readonly init: () => Promise<DashInitResponse>;
295
299
  readonly waitlist: {
296
- readonly status: () => Promise<WaitlistPublicStatus>;
297
- readonly form: () => Promise<WaitlistPublicFormResponse>;
300
+ readonly status: () => Promise<WaitlistGateStatus>;
301
+ readonly form: () => Promise<WaitlistFormSettings>;
298
302
  readonly submit: (input: WaitlistSubmission, mutation?: ChannelMutationOptions) => Promise<WaitlistAcknowledgement>;
299
303
  };
300
304
  readonly plans: () => Promise<DashPlansResponse>;
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-HOR5MOYI.js';
2
- import './chunk-E5J5UOPS.js';
1
+ export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-CPQT34K2.js';
2
+ import './chunk-LBOYLZ4J.js';
3
3
  import './chunk-XPO7C3DW.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/channel-client",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Typed server-side client for the MML headless Channel API",