@c1m-public/channel-client 0.35.0 → 0.36.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.
- package/dist/{chunk-SMEO3KMT.js → chunk-6UWL4X4P.js} +1 -1
- package/dist/{chunk-NJ4HX7ID.js → chunk-EBITC4YV.js} +1 -1
- package/dist/{chunk-HVMDHL3V.js → chunk-HS72FUTN.js} +1 -1
- package/dist/dash-next.d.ts +1 -1
- package/dist/dash-next.js +3 -3
- package/dist/dash.d.ts +1 -1
- package/dist/dash.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/next.d.ts +2 -2
- package/dist/next.js +2 -2
- package/dist/site.d.ts +1 -1
- package/dist/{types-CEoHH8eN.d.ts → types-A7bs15BP.d.ts} +4 -0
- package/dist/webhooks.d.ts +1 -1
- package/package.json +3 -3
|
@@ -266,7 +266,7 @@ function createChannelClient(options) {
|
|
|
266
266
|
* Verify the channel token and see what it points at.
|
|
267
267
|
*
|
|
268
268
|
* The cheapest call on the door — it does no database work server-side. Use
|
|
269
|
-
* it as a deployment health check: a 200 means
|
|
269
|
+
* it as a deployment health check: a 200 means the channel token (SAASDASH_CHANNEL_TOKEN in dash sites) is right and
|
|
270
270
|
* aimed at the scope you expect. A ChannelAPIError with status 401 means
|
|
271
271
|
* the token is bad, revoked, or the channel is disabled (the door will not
|
|
272
272
|
* say which). A 503 means C1M is unavailable — NOT that your token is wrong.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isChannelAPIError, createChannelClient } from './chunk-
|
|
1
|
+
import { isChannelAPIError, createChannelClient } from './chunk-6UWL4X4P.js';
|
|
2
2
|
import { parseChannelWebhookEvent, isChannelWebhookVerificationError, isChannelWebhookEventType, ChannelConfigurationError } from './chunk-XPO7C3DW.js';
|
|
3
3
|
import 'server-only';
|
|
4
4
|
|
package/dist/dash-next.d.ts
CHANGED
package/dist/dash-next.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createNextChannelClient } from './chunk-
|
|
2
|
-
import { narrow } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { createNextChannelClient } from './chunk-EBITC4YV.js';
|
|
2
|
+
import { narrow } from './chunk-HS72FUTN.js';
|
|
3
|
+
import './chunk-6UWL4X4P.js';
|
|
4
4
|
import './chunk-XPO7C3DW.js';
|
|
5
5
|
import 'server-only';
|
|
6
6
|
|
package/dist/dash.d.ts
CHANGED
package/dist/dash.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createDashChannelClient, narrow as narrowToDash } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { createDashChannelClient, narrow as narrowToDash } from './chunk-HS72FUTN.js';
|
|
2
|
+
import './chunk-6UWL4X4P.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 CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, A as AddCartItemInput, C as CartResponse, V as UpdateCartItemInput, X 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, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as PublicPaymentLinkResponse, a9 as PaymentLinkCheckoutInput, aa as PaymentLinkCheckoutResponse, ab as PaymentLinkRedemptionStatusResponse, ac as PrintSettingsResponse, ad as PrintOptionsSelection, ae as PrintQuoteResponse, af as PrintIntakeInput, ag as PrintJob, ah as DiningMenu, ai as CustomerSignupResponse, aj as SendCodeResponse, ak as CustomerSession, al as CustomerResponse, am as CustomerAuthSession, an as CustomerSecurityActivityPage, O as Order, ao as OrderSummary, ap as SavedAddress, aq as SavedAddressResponse, ar as SavedAddressInput, as as SavedAddressUpdateInput, at as SavedPaymentMethod, au as PaymentMethodSetupInput, av as PaymentMethodSetupResult, aw as PaymentMethodConfirmInput, ax as PaymentMethodMutationResponse, ay as StartSubscriptionInput, az as SubscriptionAgreementResponse, aA as SubscriptionListResponse, aB as SubscriptionSourceResponse, aC as SubscriptionInvoiceListResponse, aD as SubscriptionInvoiceResponse, aE as GivingIntentListResponse, aF as LeadResponse } from './types-
|
|
2
|
-
export { aG as CatalogProduct, aH as CheckoutAddress, aI as CheckoutStatus, aJ as Customer, aK as CustomerSecurityActivity, aL as DashBrandingInfo, aM as DashDirectoryProfile, aN as DashLeadPortalMatch, aO as DashLeadPortalMovingSummary, aP as DashLeadPortalRequest, aQ as DashLeadPortalRequestStatus, aR as DashLocaleInfo, aS as DashPlan, aT as DashPlanPricing, aU as DashPlanRegion, aV as DashPublicPage, aW as DashPublicProfileInfo, aX as DashTenantInfo, aY as DiningAvailability, aZ as DiningAvailabilityRule, a_ as DiningComboChoice, a$ as DiningComboGroup, b0 as DiningItemSize, b1 as DiningMenuItem, b2 as DiningModifier, b3 as DiningModifierGroup, b4 as DiningOffer, b5 as DiningOfferBadge, b6 as GivingIntent, b7 as Menu, b8 as MenuItem, b9 as OrderItem, ba as PaymentLinkRedemptionStatus, bb as PaymentMethodOption, bc as PaymentReadiness, bd as PrintBranding, be as PrintIntakeLimits, bf as PrintJobFile, bg as PrintPaperSize, bh as PrintPerPagePricing, bi as PrintPriceBreakdown, bj as PrintPriceLine, bk as PrintPricing, bl as PrintPricingOption, bm as PublicGate, bn as PublicPaymentLink, bo as PublicSiteSignals, bp as ShippingMethodOption, bq as SiteGatedDocument, br as SiteRef, bs as SiteResolvedDocument, bt as SiteSubject, bu as SubscriptionAgreement, bv as SubscriptionInvoice, bw as SubscriptionPlanOffer, bx as SubscriptionSourceDisplay, by as WaitlistAttribution, bz as WorkspaceInfo } from './types-
|
|
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 CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, A as AddCartItemInput, C as CartResponse, V as UpdateCartItemInput, X 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, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as PublicPaymentLinkResponse, a9 as PaymentLinkCheckoutInput, aa as PaymentLinkCheckoutResponse, ab as PaymentLinkRedemptionStatusResponse, ac as PrintSettingsResponse, ad as PrintOptionsSelection, ae as PrintQuoteResponse, af as PrintIntakeInput, ag as PrintJob, ah as DiningMenu, ai as CustomerSignupResponse, aj as SendCodeResponse, ak as CustomerSession, al as CustomerResponse, am as CustomerAuthSession, an as CustomerSecurityActivityPage, O as Order, ao as OrderSummary, ap as SavedAddress, aq as SavedAddressResponse, ar as SavedAddressInput, as as SavedAddressUpdateInput, at as SavedPaymentMethod, au as PaymentMethodSetupInput, av as PaymentMethodSetupResult, aw as PaymentMethodConfirmInput, ax as PaymentMethodMutationResponse, ay as StartSubscriptionInput, az as SubscriptionAgreementResponse, aA as SubscriptionListResponse, aB as SubscriptionSourceResponse, aC as SubscriptionInvoiceListResponse, aD as SubscriptionInvoiceResponse, aE as GivingIntentListResponse, aF as LeadResponse } from './types-A7bs15BP.js';
|
|
2
|
+
export { aG as CatalogProduct, aH as CheckoutAddress, aI as CheckoutStatus, aJ as Customer, aK as CustomerSecurityActivity, aL as DashBrandingInfo, aM as DashDirectoryProfile, aN as DashLeadPortalMatch, aO as DashLeadPortalMovingSummary, aP as DashLeadPortalRequest, aQ as DashLeadPortalRequestStatus, aR as DashLocaleInfo, aS as DashPlan, aT as DashPlanPricing, aU as DashPlanRegion, aV as DashPublicPage, aW as DashPublicProfileInfo, aX as DashTenantInfo, aY as DiningAvailability, aZ as DiningAvailabilityRule, a_ as DiningComboChoice, a$ as DiningComboGroup, b0 as DiningItemSize, b1 as DiningMenuItem, b2 as DiningModifier, b3 as DiningModifierGroup, b4 as DiningOffer, b5 as DiningOfferBadge, b6 as GivingIntent, b7 as Menu, b8 as MenuItem, b9 as OrderItem, ba as PaymentLinkRedemptionStatus, bb as PaymentMethodOption, bc as PaymentReadiness, bd as PrintBranding, be as PrintIntakeLimits, bf as PrintJobFile, bg as PrintPaperSize, bh as PrintPerPagePricing, bi as PrintPriceBreakdown, bj as PrintPriceLine, bk as PrintPricing, bl as PrintPricingOption, bm as PublicGate, bn as PublicPaymentLink, bo as PublicSiteSignals, bp as ShippingMethodOption, bq as SiteGatedDocument, br as SiteRef, bs as SiteResolvedDocument, bt as SiteSubject, bu as SubscriptionAgreement, bv as SubscriptionInvoice, bw as SubscriptionPlanOffer, bx as SubscriptionSourceDisplay, by as WaitlistAttribution, bz as WorkspaceInfo } from './types-A7bs15BP.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
|
/**
|
|
@@ -127,7 +127,7 @@ declare function createChannelClient(options: CreateChannelClientOptions): {
|
|
|
127
127
|
* Verify the channel token and see what it points at.
|
|
128
128
|
*
|
|
129
129
|
* The cheapest call on the door — it does no database work server-side. Use
|
|
130
|
-
* it as a deployment health check: a 200 means
|
|
130
|
+
* it as a deployment health check: a 200 means the channel token (SAASDASH_CHANNEL_TOKEN in dash sites) is right and
|
|
131
131
|
* aimed at the scope you expect. A ChannelAPIError with status 401 means
|
|
132
132
|
* the token is bad, revoked, or the channel is disabled (the door will not
|
|
133
133
|
* say which). A 503 means C1M is unavailable — NOT that your token is wrong.
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-
|
|
1
|
+
export { ChannelAPIError, DEFAULT_CHANNEL_API_URL, createChannelClient, isChannelAPIError } from './chunk-6UWL4X4P.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
1
|
import { createChannelClient, ChannelCheckoutStatusParams, ChannelMutationOptions, CreateChannelClientOptions, ChannelVisitor, DashDirectoryListParams, ChannelLeadInput, ChannelSiteResolveParams, ChannelListParams, ChannelProductListParams, 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 CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, V as UpdateCartItemInput, X as MergeCartInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as PublicPaymentLinkResponse, a9 as PaymentLinkCheckoutInput, aa as PaymentLinkCheckoutResponse, ab as PaymentLinkRedemptionStatusResponse, ac as PrintSettingsResponse, ad as PrintOptionsSelection, ae as PrintQuoteResponse, af as PrintIntakeInput, ag as PrintJob, ah as DiningMenu, ai as CustomerSignupResponse, aj as SendCodeResponse, ak as CustomerSession, al as CustomerResponse, am as CustomerAuthSession, an as CustomerSecurityActivityPage, ao as OrderSummary, ap as SavedAddress, aq as SavedAddressResponse, ar as SavedAddressInput, as as SavedAddressUpdateInput, at as SavedPaymentMethod, au as PaymentMethodSetupInput, av as PaymentMethodSetupResult, aw as PaymentMethodConfirmInput, ax as PaymentMethodMutationResponse, ay as StartSubscriptionInput, az as SubscriptionAgreementResponse, aA as SubscriptionListResponse, aB as SubscriptionSourceResponse, aC as SubscriptionInvoiceListResponse, aD as SubscriptionInvoiceResponse, aE as GivingIntentListResponse, aF as LeadResponse } from './types-
|
|
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 CatalogCategory, Q as CatalogProductsResponse, R as CatalogCollection, T as CatalogBrand, U as CartLookupResponse, V as UpdateCartItemInput, X as MergeCartInput, Y as Review, Z as ReviewSummaryResponse, _ as PublicSubmitReviewInput, $ as ThemeResponse, a0 as MenuResponse, a1 as BlogPost, a2 as BlogPostResponse, a3 as GivingEntry, a4 as StartGivingInput, a5 as StartGivingResponse, a6 as SubscriptionPlanListResponse, a7 as SubscriptionPlanResponse, a8 as PublicPaymentLinkResponse, a9 as PaymentLinkCheckoutInput, aa as PaymentLinkCheckoutResponse, ab as PaymentLinkRedemptionStatusResponse, ac as PrintSettingsResponse, ad as PrintOptionsSelection, ae as PrintQuoteResponse, af as PrintIntakeInput, ag as PrintJob, ah as DiningMenu, ai as CustomerSignupResponse, aj as SendCodeResponse, ak as CustomerSession, al as CustomerResponse, am as CustomerAuthSession, an as CustomerSecurityActivityPage, ao as OrderSummary, ap as SavedAddress, aq as SavedAddressResponse, ar as SavedAddressInput, as as SavedAddressUpdateInput, at as SavedPaymentMethod, au as PaymentMethodSetupInput, av as PaymentMethodSetupResult, aw as PaymentMethodConfirmInput, ax as PaymentMethodMutationResponse, ay as StartSubscriptionInput, az as SubscriptionAgreementResponse, aA as SubscriptionListResponse, aB as SubscriptionSourceResponse, aC as SubscriptionInvoiceListResponse, aD as SubscriptionInvoiceResponse, aE as GivingIntentListResponse, aF as LeadResponse } from './types-A7bs15BP.js';
|
|
3
3
|
import { ChannelWebhookEventDataMap, ChannelWebhookEvent } from './webhooks.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -125,7 +125,7 @@ type CustomerSessionKit = ReturnType<typeof createCustomerSession>;
|
|
|
125
125
|
*
|
|
126
126
|
* import { revalidatePath, revalidateTag } from "next/cache";
|
|
127
127
|
* export const POST = createChannelWebhookRoute({
|
|
128
|
-
* secret: () => process.env.
|
|
128
|
+
* secret: () => process.env.SAASDASH_CHANNEL_WEBHOOK_SECRET!,
|
|
129
129
|
* invalidate: { revalidatePath, revalidateTag },
|
|
130
130
|
* });
|
|
131
131
|
*
|
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-
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { CHANNEL_CATALOG_CACHE_TAG, CHANNEL_SITE_CACHE_TAG, cartCookie, createCart, createChannelWebhookRoute, createCustomerSession, createNextChannelClient, defaultChannelCacheTags, safePublishedPath, sessionCookie } from './chunk-EBITC4YV.js';
|
|
2
|
+
import './chunk-6UWL4X4P.js';
|
|
3
3
|
import './chunk-XPO7C3DW.js';
|
package/dist/site.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { br as SiteRef, bm as PublicGate, bo as PublicSiteSignals } from './types-
|
|
1
|
+
import { br as SiteRef, bm as PublicGate, bo as PublicSiteSignals } from './types-A7bs15BP.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Site signals: what a public site serves, decided from the `signals` block
|
|
@@ -153,8 +153,12 @@ interface DashPublicProfileInfo {
|
|
|
153
153
|
pricing_summary?: string;
|
|
154
154
|
}
|
|
155
155
|
interface DashBrandingInfo {
|
|
156
|
+
/** Resolved brand name: profile display name, then dash name, then slug. */
|
|
157
|
+
name?: string;
|
|
156
158
|
primary_color?: string;
|
|
157
159
|
logo_url?: string;
|
|
160
|
+
/** Wide logo for dark surfaces; absent when the dash has none. */
|
|
161
|
+
logo_dark_url?: string;
|
|
158
162
|
logo_square_url?: string;
|
|
159
163
|
favicon_url?: string;
|
|
160
164
|
cover_url?: string;
|
package/dist/webhooks.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ interface ParseChannelWebhookEventOptions {
|
|
|
177
177
|
* export async function POST(request: Request) {
|
|
178
178
|
* let event;
|
|
179
179
|
* try {
|
|
180
|
-
* event = await parseChannelWebhookEvent(request, { secret: process.env.
|
|
180
|
+
* event = await parseChannelWebhookEvent(request, { secret: process.env.SAASDASH_CHANNEL_WEBHOOK_SECRET! });
|
|
181
181
|
* } catch {
|
|
182
182
|
* return new Response("invalid signature", { status: 400 });
|
|
183
183
|
* }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c1m-public/channel-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Typed server-side client for the MML headless Channel API",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"typescript": "5.9.3",
|
|
76
76
|
"vitest": "^4.1.4",
|
|
77
77
|
"zod": "^4.3.6",
|
|
78
|
-
"@c1m-public/
|
|
79
|
-
"@c1m-public/
|
|
78
|
+
"@c1m-public/resilience": "0.1.0",
|
|
79
|
+
"@c1m-public/transport": "0.0.0"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|