@stewardhq/sdk 0.1.0-rc.0 → 0.3.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,5 +1,5 @@
1
- import { D as API_VERSION, L as ErrorResponseSchema, O as ActorRefSchema, p as AccountDeleteResponseSchema, w as EntitlementSnapshotSchema, y as AccountStateSchema } from "./events.js";
2
- import { $ as HEADER_SDK, B as AccountDetailSchema, C as WebhookEndpointListSchema, Et as CheckoutSessionCreatedSchema, H as BillingProfileResponseSchema, I as ResyncResultSchema, J as GrantCreateResponseSchema, Jt as AccountsRefreshResultSchema, K as EventListSchema, P as PlanSetResponseSchema, Q as HEADER_REQUEST_ID, R as errorCodeSpec, T as WebhookEndpointSchema, U as CancelSubscriptionResponseSchema, V as AccountUpsertResponseSchema, W as CheckoutSessionResponseSchema, X as HEADER_API_VERSION, Y as HEADER_ACTOR_REF, Yt as CatalogSchema, Z as HEADER_IDEMPOTENCY_KEY, Zt as CatalogSyncResultSchema, _t as StatsSchema, et as InvoiceIssueResponseSchema, nt as ManualInvoiceResponseSchema, q as EventRecordSchema, tt as InvoiceVoidResponseSchema, u as DoctorReportSchema, xt as PortalSessionSchema, zt as ProductSettingsSchema } from "./src.js";
1
+ import { X as ActorRefSchema, Y as API_VERSION, at as ErrorResponseSchema, b as AccountStateSchema, p as AccountDeleteResponseSchema } from "./events.js";
2
+ import { $ as InvoiceVoidResponseSchema, B as errorCodeSpec, D as WebhookEndpointSchema, G as CheckoutSessionResponseSchema, Gt as AccountsRefreshResultSchema, H as AccountDetailSchema, I as PlanSetResponseSchema, It as ProductSettingsSchema, J as HEADER_API_VERSION, Jt as CatalogSyncResultSchema, K as GrantCreateResponseSchema, Kt as CatalogSchema, Q as InvoiceIssueResponseSchema, R as ResyncResultSchema, T as WebhookEndpointListSchema, U as AccountUpsertResponseSchema, W as CancelSubscriptionResponseSchema, X as HEADER_REQUEST_ID, Y as HEADER_IDEMPOTENCY_KEY, Z as HEADER_SDK, d as DoctorReportSchema, et as ManualInvoiceResponseSchema, ht as StatsSchema, q as HEADER_ACTOR_REF, wt as CheckoutSessionCreatedSchema, yt as PortalSessionSchema } from "./src.js";
3
3
  import { a as StewardNetworkError, n as StewardConfigError, r as StewardContractError, t as StewardApiError } from "./errors.js";
4
4
  import { z } from "zod";
5
5
  //#region ../contract/src/client.ts
@@ -127,7 +127,6 @@ function createBillingClient(options) {
127
127
  syncCatalog: (input, opts) => call(CatalogSyncResultSchema, "PUT", "/v1/admin/catalog", input, opts),
128
128
  upsertAccount: (accountRef, input, opts) => call(AccountUpsertResponseSchema, "PUT", `/v1/accounts/${ref(accountRef)}`, input, opts),
129
129
  getAccount: (accountRef, include = []) => call(AccountDetailSchema, "GET", `/v1/accounts/${ref(accountRef)}${include.length ? `?include=${include.join(",")}` : ""}`),
130
- getEntitlements: (accountRef) => call(EntitlementSnapshotSchema, "GET", `/v1/accounts/${ref(accountRef)}/entitlements`),
131
130
  /**
132
131
  * Hesap durumu (`AccountState`). ETag = `"<version>"`; önceki yanıtın
133
132
  * `etag`'i verilirse ve durum değişmediyse 304 → `{notModified: true}`.
@@ -153,7 +152,6 @@ function createBillingClient(options) {
153
152
  state: parsed.data
154
153
  });
155
154
  },
156
- putBillingProfile: (accountRef, profile, opts) => call(BillingProfileResponseSchema, "PUT", `/v1/accounts/${ref(accountRef)}/billing-profile`, profile, opts),
157
155
  /** Atomik plan (K6): aktif plan grant'leri → tek plan grant'i (`planCode: null` kaldırır); `strict`'te 409 `subscription_plan_higher`. */
158
156
  setPlan: (accountRef, input, opts) => call(PlanSetResponseSchema, "PUT", `/v1/accounts/${ref(accountRef)}/plan`, input, opts),
159
157
  /** Saklı durumu `account.state_changed` (`cause: "resync"`) olarak yeniden yayınlar; version değişmez (202). */
@@ -183,15 +181,6 @@ function createBillingClient(options) {
183
181
  bytes: new Uint8Array(await res.arrayBuffer())
184
182
  });
185
183
  },
186
- listEvents: (query = {}) => {
187
- const params = new URLSearchParams();
188
- if (query.accountRef) params.set("account", query.accountRef);
189
- if (query.cursor) params.set("cursor", query.cursor);
190
- if (query.limit) params.set("limit", String(query.limit));
191
- const qs = params.toString();
192
- return call(EventListSchema, "GET", `/v1/events${qs ? `?${qs}` : ""}`);
193
- },
194
- redeliverEvent: (id, opts) => call(EventRecordSchema, "POST", `/v1/events/${ref(id)}/redeliver`, void 0, opts),
195
184
  getSettings: () => call(ProductSettingsSchema, "GET", "/v1/admin/settings"),
196
185
  updateSettings: (patch, opts) => call(ProductSettingsSchema, "PATCH", "/v1/admin/settings", patch, opts),
197
186
  listWebhookEndpoints: () => call(WebhookEndpointListSchema, "GET", "/v1/admin/webhook-endpoints"),
@@ -256,11 +245,15 @@ async function withRetries(request, policy, send) {
256
245
  }
257
246
  //#endregion
258
247
  //#region src/steward.ts
259
- const SDK_HEADER = `@stewardhq/sdk/0.1.0-rc.0`;
248
+ const SDK_HEADER = `@stewardhq/sdk/0.3.0`;
260
249
  const MeSchema = z.object({
261
250
  product: z.string(),
262
251
  keyName: z.string(),
263
- scope: z.enum(["product", "admin"])
252
+ scope: z.enum([
253
+ "product",
254
+ "admin",
255
+ "checkout"
256
+ ])
264
257
  });
265
258
  const defaultEnv = () => globalThis.process?.env ?? {};
266
259
  function isHttpUrl(value) {
@@ -322,10 +315,10 @@ function createSteward(options = {}) {
322
315
  apiKey
323
316
  } : null;
324
317
  const missingProduct = (name) => new StewardConfigError({ message: `steward.${name}: STEWARD_URL (baseUrl) ve STEWARD_API_KEY (apiKey) tanımlı değil; istemci yalnızca admin.* için yapılandırıldı` });
325
- const raw = productTarget !== null ? createBillingClient(clientOptions(productTarget)) : rejectAll(createBillingClient(clientOptions({
318
+ const raw = createBillingClient(clientOptions(productTarget ?? {
326
319
  baseUrl: "http://steward.invalid",
327
320
  apiKey: "-"
328
- })), (name) => missingProduct(`raw.${name}`));
321
+ }));
329
322
  const eitherTarget = productTarget ?? adminTarget;
330
323
  const eitherClient = productTarget !== null ? raw : adminClient;
331
324
  function requireAdmin() {
@@ -495,8 +488,6 @@ function createSteward(options = {}) {
495
488
  return result.state;
496
489
  },
497
490
  readState: (ref, opts = {}) => read(() => raw.getAccountState(ref, opts.etag !== void 0 ? { etag: opts.etag } : {})),
498
- entitlements: (ref) => read(() => raw.getEntitlements(ref)),
499
- putBillingProfile: (ref, profile, call) => run("PUT", call, (c) => raw.putBillingProfile(ref, profile, c)),
500
491
  setPlan: (ref, input, call) => run("PUT", call, (c) => raw.setPlan(ref, input, c)),
501
492
  resync: (ref, call) => run("POST", call, (c) => raw.resync(ref, c)),
502
493
  delete: (ref, call) => run("DELETE", call, (c) => raw.deleteAccount(ref, c))
@@ -523,10 +514,6 @@ function createSteward(options = {}) {
523
514
  get: () => read(() => raw.getCatalog()),
524
515
  read: (opts = {}) => read(() => readCatalog(opts.etag))
525
516
  },
526
- events: {
527
- list: (query = {}) => read(() => raw.listEvents(query)),
528
- redeliver: (id, call) => run("POST", call, (c) => raw.redeliverEvent(id, c))
529
- },
530
517
  stats: () => read(() => raw.getStats())
531
518
  };
532
519
  return {
@@ -570,9 +557,8 @@ function createSteward(options = {}) {
570
557
  return run("POST", call, (c) => client.deactivateWebhookEndpoint(id, c));
571
558
  }
572
559
  }
573
- },
574
- raw
560
+ }
575
561
  };
576
562
  }
577
563
  //#endregion
578
- export { createBillingClient as n, parseRetryAfter as r, createSteward as t };
564
+ export { createSteward as t };
@@ -1,4 +1,4 @@
1
- import { $ as DEFAULT_CHECKOUT_TTL_MINUTES, $n as CheckoutPrefillSchema, $r as IdSchema, $t as EventRecord, A as hostedReadinessOf, An as CancelSubscriptionInput, Ar as PlanDef, At as ResolvedEntitlements, B as WebhookEndpointRotateInput, Bn as Subscription, Br as Currency, Bt as AccountDetailSchema, C as DoctorUnsellablePriceSchema, Cn as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Cr as CatalogSyncInput, Ct as PlanSetWarningSchema, D as DoctorWarningSchema, Dn as ManualInvoiceLineInputSchema, Dr as FeatureDef, Dt as EntitlementRulesGrant, E as DoctorWarningCode, En as ManualInvoiceLineInput, Er as CatalogSyncResultSchema, Et as EntitlementRulesCatalog, F as WebhookEndpoint, Fn as GrantSchema, Fr as PriceSchema, Ft as ErrorCode, G as WebhookLastDelivery, Gn as PortalSessionCreateInputSchema, Gr as EntitlementValueSchema, Gt as CancelSubscriptionResponse, H as WebhookEndpointSchema, Hn as PORTAL_SESSION_ERRORS, Hr as DateTimeSchema, Ht as AccountUpsertResponseSchema, I as WebhookEndpointCreateInput, In as Payment, Ir as API_VERSION, It as ErrorCodeSpec, J as generateWebhookSecret, Jn as CHECKOUT_ERRORS, Jr as ErrorCategory, Jt as CheckoutSessionResponseSchema, K as WebhookLastDeliverySchema, Kn as PortalSessionError, Kr as Entitlements, Kt as CancelSubscriptionResponseSchema, L as WebhookEndpointCreateInputSchema, Ln as PaymentSchema, Lr as ActorRefSchema, Lt as errorCodeSpec, M as EventTypeSchema, Mn as Grant, Mr as Price, Mt as isLiveSubscriptionStatus, N as WEBHOOK_ENDPOINT_STATUSES, Nn as GrantCreateInput, Nr as PriceDef, Nt as resolveEntitlements, O as buildDoctorReport, On as manualInvoiceTotals, Or as FeatureDefSchema, Ot as LIVE_SUBSCRIPTION_STATUSES, P as WEBHOOK_SECRET_PREFIX, Pn as GrantCreateInputSchema, Pr as PriceDefSchema, Pt as ERROR_CODES, Q as BrandingSchema, Qn as CheckoutPrefill, Qr as ExternalRefSchema, Qt as EventListSchema, R as WebhookEndpointList, Rn as Stats, Rr as AmountMinorSchema, Rt as isKnownErrorCode, S as DoctorUnsellablePrice, Sn as InvoiceVoidInputSchema, Sr as CatalogSchema, St as PlanSetWarningCode, T as DoctorWarning, Tn as ManualInvoiceInputSchema, Tr as CatalogSyncResult, Tt as ResyncResultSchema, U as WebhookEndpointStatus, Un as PortalSession, Ur as ERROR_CATEGORIES, Ut as BillingProfileResponse, V as WebhookEndpointRotateInputSchema, Vn as SubscriptionSchema, Vr as CurrencySchema, Vt as AccountUpsertResponse, W as WebhookEndpointStatusSchema, Wn as PortalSessionCreateInput, Wr as EntitlementValue, Wt as BillingProfileResponseSchema, X as Branding, Xn as CheckoutConsentInputSchema, Xr as ErrorResponse, Xt as DeliverySchema, Y as webhookEndpointUrlProblem, Yn as CheckoutConsentInput, Yr as ErrorCategorySchema, Yt as Delivery, Z as BrandingPatchSchema, Zn as CheckoutError, Zr as ErrorResponseSchema, Zt as EventList, _ as DoctorReportSchema, _n as InvoiceLine, _r as checkoutRedirectUrl, _t as PlanSetMode, a as DOCTOR_SEVERITIES, an as HEADER_IDEMPOTENCY_KEY, ar as CheckoutSessionCreateParsed, at as ReturnOriginSchema, b as DoctorSeverity, bn as InvoiceStatusSchema, br as AccountsRefreshResultSchema, bt as PlanSetResponseSchema, c as DoctorEndpoint, cn as InvoiceIssueResponse, cr as CheckoutSessionSchema, ct as SettingsLocaleSchema, d as DoctorFacts, dn as InvoiceVoidResponseSchema, dr as Consent, dt as applySettingsPatch, ei as Interval, en as EventRecordSchema, er as CheckoutRedirectTarget, et as DEFAULT_PORTAL_TTL_MINUTES, f as DoctorHosted, fn as ManualInvoiceResponse, fr as ConsentSchema, ft as isReturnUrlAllowed, g as DoctorReport, gn as InvoiceIssueInputSchema, gr as ProviderPayloadSchema, gt as PlanSetInputSchema, h as DoctorProviderSchema, hn as InvoiceIssueInput, hr as ProviderPayload, ht as PlanSetInput, i as DOCTOR_REQUIRED_LEGAL_LINKS, in as HEADER_API_VERSION, ir as CheckoutSessionCreateInputSchema, it as ProductSettingsSchema, j as DEFAULT_ENDPOINT_EVENT_TYPES, jn as CancelSubscriptionInputSchema, jr as PlanDefSchema, jt as isGrantActive, k as endpointDiagnosisOf, kn as splitInclusiveTax, kr as FeatureTypeSchema, kt as ResolveEntitlementsInput, l as DoctorEndpointDiagnosis, ln as InvoiceIssueResponseSchema, lr as CheckoutStatus, lt as TtlMinutesSchema, m as DoctorProvider, mn as Invoice, mr as MAX_CHECKOUT_CONSENT_DOCS, mt as PLAN_SET_MODES, n as DOCTOR_PROVIDER_ENVIRONMENTS, ni as MetadataSchema, nn as GrantCreateResponseSchema, nr as CheckoutSession, nt as ProductSettingsPatch, o as DoctorCatalog, on as HEADER_REQUEST_ID, or as CheckoutSessionCreated, ot as SETTINGS_LOCALES, p as DoctorHostedSchema, pn as ManualInvoiceResponseSchema, pr as LegacyCheckoutSessionCreateParsed, pt as returnOriginsOf, q as WebhookSecretSchema, qn as PortalSessionSchema, qr as EntitlementsSchema, qt as CheckoutSessionResponse, r as DOCTOR_REQUIRED_BRANDING, rn as HEADER_ACTOR_REF, rr as CheckoutSessionCreateInput, rt as ProductSettingsPatchSchema, s as DoctorCatalogSchema, sn as HEADER_SDK, sr as CheckoutSessionCreatedSchema, st as SettingsLocale, t as DOCTOR_PENDING_BACKLOG_MS, ti as IntervalSchema, tn as GrantCreateResponse, tr as CheckoutReturnStatus, tt as ProductSettings, u as DoctorEndpointSchema, un as InvoiceVoidResponse, ur as CheckoutStatusSchema, ut as WebUrlSchema, v as DoctorSettings, vn as InvoiceLineSchema, vr as isLegacyCheckoutInput, vt as PlanSetModeSchema, w as DoctorUnsellableReason, wn as ManualInvoiceInput, wr as CatalogSyncInputSchema, wt as ResyncResult, x as DoctorSeveritySchema, xn as InvoiceVoidInput, xr as Catalog, xt as PlanSetWarning, y as DoctorSettingsSchema, yn as InvoiceSchema, yr as AccountsRefreshResult, yt as PlanSetResponse, z as WebhookEndpointListSchema, zn as StatsSchema, zr as CodeSchema, zt as AccountDetail } from "./_chunks/index.js";
2
- import { A as AccountProfileState, B as AccountUpsertInputSchema, C as AccountDeleteResponse, D as AccountInclude, E as AccountDunningStateSchema, F as AccountState, G as EntitlementSnapshot, H as BillingProfileInput, I as AccountStateSchema, J as SubscriptionStatusSchema, K as EntitlementSnapshotSchema, L as AccountSubscriptionState, M as AccountScheduledChange, N as AccountScheduledChangeSchema, O as AccountOpenCheckout, P as AccountSchema, R as AccountSubscriptionStateSchema, S as Account, T as AccountDunningState, U as BillingProfileKindSchema, V as BillingProfile, W as BillingProfileSchema, X as SubscriptionSummarySchema, Y as SubscriptionSummary, _ as PingSchema, a as BillingEvent, b as AccessState, c as EVENT_DETAIL_SCHEMAS, d as EventIdSchema, f as EventType, g as Ping, h as PING_EVENT_TYPE, i as ApiVersionSchema, j as AccountProfileStateSchema, k as AccountOpenCheckoutSchema, l as EVENT_TYPES, m as LegacyEventType, n as AnyBillingEvent, o as BillingEventOf, p as LEGACY_EVENT_TYPES, q as SubscriptionStatus, r as AnyBillingEventSchema, s as BillingEventSchema, t as AccountStateChangeCause, u as EventDetail, v as isEventType, w as AccountDeleteResponseSchema, x as AccessStateSchema, y as ACCOUNT_INCLUDES, z as AccountUpsertInput } from "./_chunks/events.js";
1
+ import { $ as Branding, $n as CancelSubscriptionInputSchema, $r as PriceDef, $t as PlanSetWarningSchema, A as buildDoctorReport, An as InvoiceIssueResponse, Ar as CheckoutSessionSchema, At as EmailTemplate, B as WebhookEndpointCreateInputSchema, Bn as InvoiceLineSchema, Br as AccountsRefreshResultSchema, Bt as emailTemplateOf, C as DoctorSeveritySchema, Cn as GrantCreateResponse, Cr as CheckoutReturnStatus, Ct as EmailLocale, D as DoctorWarning, Dn as HEADER_IDEMPOTENCY_KEY, Dr as CheckoutSessionCreateParsed, Dt as EmailSettingsPatch, E as DoctorUnsellableReason, En as HEADER_API_VERSION, Er as CheckoutSessionCreateInputSchema, Et as EmailSettings, F as EventTypeSchema, Fn as ManualInvoiceResponseSchema, Fr as MAX_CHECKOUT_CONSENT_DOCS, Ft as NotificationEmailsSchema, G as WebhookEndpointSchema, Gn as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Gr as CatalogSyncResult, Gt as PlanSetInput, H as WebhookEndpointListSchema, Hn as InvoiceStatusSchema, Hr as CatalogSchema, Ht as isEmailRelevant, I as WEBHOOK_ENDPOINT_STATUSES, In as Invoice, Ir as ProviderPayload, It as applyEmailSettingsPatch, J as WebhookLastDelivery, Jn as ManualInvoiceLineInput, Jr as FeatureDefSchema, Jt as PlanSetModeSchema, K as WebhookEndpointStatus, Kn as ManualInvoiceInput, Kr as CatalogSyncResultSchema, Kt as PlanSetInputSchema, L as WEBHOOK_SECRET_PREFIX, Ln as InvoiceIssueInput, Lr as ProviderPayloadSchema, Lt as billingPageUrl, M as endpointDiagnosisOf, Mn as InvoiceVoidResponse, Mr as CheckoutStatusSchema, Mt as EmailTemplateSettings, N as hostedReadinessOf, Nn as InvoiceVoidResponseSchema, Nr as Consent, Nt as EmailTemplateSettingsSchema, O as DoctorWarningCode, On as HEADER_REQUEST_ID, Or as CheckoutSessionCreated, Ot as EmailSettingsPatchSchema, P as DEFAULT_ENDPOINT_EVENT_TYPES, Pn as ManualInvoiceResponse, Pr as ConsentSchema, Pt as MAX_NOTIFICATION_EMAILS, Q as webhookEndpointUrlProblem, Qn as CancelSubscriptionInput, Qr as Price, Qt as PlanSetWarningCode, R as WebhookEndpoint, Rn as InvoiceIssueInputSchema, Rr as checkoutRedirectUrl, Rt as emailLocaleOf, S as DoctorSeverity, Si as MetadataSchema, Sn as CheckoutSessionResponseSchema, Sr as CheckoutRedirectTarget, St as EmailExtraTextSchema, T as DoctorUnsellablePriceSchema, Tn as HEADER_ACTOR_REF, Tr as CheckoutSessionCreateInput, Tt as EmailSenderSchema, U as WebhookEndpointRotateInput, Un as InvoiceVoidInput, Ur as CatalogSyncInput, Ut as uniqueEmails, V as WebhookEndpointList, Vn as InvoiceSchema, Vr as Catalog, Vt as emailTemplateSettings, W as WebhookEndpointRotateInputSchema, Wn as InvoiceVoidInputSchema, Wr as CatalogSyncInputSchema, Wt as PLAN_SET_MODES, X as WebhookSecretSchema, Xn as manualInvoiceTotals, Xr as PlanDef, Xt as PlanSetResponseSchema, Y as WebhookLastDeliverySchema, Yn as ManualInvoiceLineInputSchema, Yr as FeatureTypeSchema, Yt as PlanSetResponse, Z as generateWebhookSecret, Zn as splitInclusiveTax, Zr as PlanDefSchema, Zt as PlanSetWarning, _ as DoctorProviderSchema, _i as ErrorResponseSchema, _n as AccountUpsertResponse, _r as CheckoutConsentInput, _t as BILLING_PATH_PLACEHOLDERS, a as DOCTOR_SEVERITIES, ai as CodeSchema, an as ResolveEntitlementsInput, ar as PaymentSchema, at as ProductSettingsPatch, b as DoctorSettings, bi as Interval, bn as CancelSubscriptionResponseSchema, br as CheckoutPrefill, bt as EMAIL_TEMPLATES, c as DoctorEmails, ci as DateTimeSchema, cn as isLiveSubscriptionStatus, cr as Subscription, ct as ReturnOriginSchema, d as DoctorEndpointDiagnosis, di as EntitlementValueSchema, dn as ErrorCode, dr as PortalSession, dt as SettingsLocaleSchema, ei as PriceDefSchema, en as ResyncResult, er as Grant, et as BrandingPatchSchema, f as DoctorEndpointSchema, fi as Entitlements, fn as ErrorCodeSpec, fr as PortalSessionCreateInput, ft as TtlMinutesSchema, g as DoctorProvider, gi as ErrorResponse, gn as AccountDetailSchema, gr as CHECKOUT_ERRORS, gt as returnOriginsOf, h as DoctorHostedSchema, hi as ErrorCategorySchema, hn as AccountDetail, hr as PortalSessionSchema, ht as isReturnUrlAllowed, i as DOCTOR_REQUIRED_LEGAL_LINKS, ii as AmountMinorSchema, in as LIVE_SUBSCRIPTION_STATUSES, ir as Payment, it as ProductSettings, j as emailReadinessOf, jn as InvoiceIssueResponseSchema, jr as CheckoutStatus, jt as EmailTemplateSchema, k as DoctorWarningSchema, kn as HEADER_SDK, kr as CheckoutSessionCreatedSchema, kt as EmailSettingsSchema, l as DoctorEmailsSchema, li as ERROR_CATEGORIES, ln as resolveEntitlements, lr as SubscriptionSchema, lt as SETTINGS_LOCALES, m as DoctorHosted, mi as ErrorCategory, mn as isKnownErrorCode, mr as PortalSessionError, mt as applySettingsPatch, n as DOCTOR_PROVIDER_ENVIRONMENTS, ni as API_VERSION, nn as EntitlementRulesCatalog, nr as GrantCreateInputSchema, nt as DEFAULT_CHECKOUT_TTL_MINUTES, o as DoctorCatalog, oi as Currency, on as ResolvedEntitlements, or as Stats, ot as ProductSettingsPatchSchema, p as DoctorFacts, pi as EntitlementsSchema, pn as errorCodeSpec, pr as PortalSessionCreateInputSchema, pt as WebUrlSchema, q as WebhookEndpointStatusSchema, qn as ManualInvoiceInputSchema, qr as FeatureDef, qt as PlanSetMode, r as DOCTOR_REQUIRED_BRANDING, ri as ActorRefSchema, rn as EntitlementRulesGrant, rr as GrantSchema, rt as DEFAULT_PORTAL_TTL_MINUTES, s as DoctorCatalogSchema, si as CurrencySchema, sn as isGrantActive, sr as StatsSchema, st as ProductSettingsSchema, t as DOCTOR_PENDING_BACKLOG_MS, ti as PriceSchema, tn as ResyncResultSchema, tr as GrantCreateInput, tt as BrandingSchema, u as DoctorEndpoint, ui as EntitlementValue, un as ERROR_CODES, ur as PORTAL_SESSION_ERRORS, ut as SettingsLocale, v as DoctorReport, vi as ExternalRefSchema, vn as AccountUpsertResponseSchema, vr as CheckoutConsentInputSchema, vt as BillingPathSchema, w as DoctorUnsellablePrice, wn as GrantCreateResponseSchema, wr as CheckoutSession, wt as EmailRelevanceFacts, x as DoctorSettingsSchema, xi as IntervalSchema, xn as CheckoutSessionResponse, xr as CheckoutPrefillSchema, xt as EMAIL_TEMPLATE_BY_EVENT, y as DoctorReportSchema, yi as IdSchema, yn as CancelSubscriptionResponse, yr as CheckoutError, yt as EMAIL_LOCALES, z as WebhookEndpointCreateInput, zn as InvoiceLine, zr as AccountsRefreshResult, zt as emailRecipients } from "./_chunks/index.js";
2
+ import { A as AccountOpenCheckoutSchema, B as AccountUpsertInput, C as AccountDeleteResponse, D as AccountInclude, E as AccountDunningStateSchema, F as AccountSchema, G as BillingProfileSchema, H as BillingProfile, I as AccountState, J as SubscriptionStatus, K as EntitlementSnapshot, L as AccountStateSchema, M as AccountProfileStateSchema, N as AccountScheduledChange, O as AccountLocaleSchema, P as AccountScheduledChangeSchema, R as AccountSubscriptionState, S as Account, T as AccountDunningState, U as BillingProfileInput, V as AccountUpsertInputSchema, W as BillingProfileKindSchema, X as SubscriptionSummary, Y as SubscriptionStatusSchema, Z as SubscriptionSummarySchema, _ as PingSchema, a as BillingEvent, b as AccessState, c as EVENT_DETAIL_SCHEMAS, d as EventIdSchema, f as EventType, g as Ping, h as PING_EVENT_TYPE, i as ApiVersionSchema, j as AccountProfileState, k as AccountOpenCheckout, l as EVENT_TYPES, m as LegacyEventType, n as AnyBillingEvent, o as BillingEventOf, p as LEGACY_EVENT_TYPES, q as EntitlementSnapshotSchema, r as AnyBillingEventSchema, s as BillingEventSchema, t as AccountStateChangeCause, u as EventDetail, v as isEventType, w as AccountDeleteResponseSchema, x as AccessStateSchema, y as ACCOUNT_INCLUDES, z as AccountSubscriptionStateSchema } from "./_chunks/events.js";
3
3
  import { n as isValidTckn, r as isValidVkn, t as isE164 } from "./_chunks/validators.js";
4
- export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BillingEvent, BillingEventOf, BillingEventSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileResponse, BillingProfileResponseSchema, BillingProfileSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, Currency, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, Delivery, DeliverySchema, DoctorCatalog, DoctorCatalogSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EntitlementRulesCatalog, EntitlementRulesGrant, EntitlementSnapshot, EntitlementSnapshotSchema, EntitlementValue, EntitlementValueSchema, Entitlements, EntitlementsSchema, ErrorCategory, ErrorCategorySchema, ErrorCode, ErrorCodeSpec, ErrorResponse, ErrorResponseSchema, EventDetail, EventIdSchema, EventList, EventListSchema, EventRecord, EventRecordSchema, EventType, EventTypeSchema, ExternalRefSchema, FeatureDef, FeatureDefSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, IdSchema, Interval, IntervalSchema, Invoice, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LegacyCheckoutSessionCreateParsed, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MetadataSchema, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveEntitlementsInput, ResolvedEntitlements, ResyncResult, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, Subscription, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, applySettingsPatch, buildDoctorReport, checkoutRedirectUrl, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, isE164, isEventType, isGrantActive, isKnownErrorCode, isLegacyCheckoutInput, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, resolveEntitlements, returnOriginsOf, splitInclusiveTax, webhookEndpointUrlProblem };
4
+ export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BILLING_PATH_PLACEHOLDERS, BillingEvent, BillingEventOf, BillingEventSchema, BillingPathSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, Currency, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, DoctorCatalog, DoctorCatalogSchema, DoctorEmails, DoctorEmailsSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EmailExtraTextSchema, EmailLocale, EmailRelevanceFacts, EmailSenderSchema, EmailSettings, EmailSettingsPatch, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplate, EmailTemplateSchema, EmailTemplateSettings, EmailTemplateSettingsSchema, EntitlementRulesCatalog, EntitlementRulesGrant, EntitlementSnapshot, EntitlementSnapshotSchema, EntitlementValue, EntitlementValueSchema, Entitlements, EntitlementsSchema, ErrorCategory, ErrorCategorySchema, ErrorCode, ErrorCodeSpec, ErrorResponse, ErrorResponseSchema, EventDetail, EventIdSchema, EventType, EventTypeSchema, ExternalRefSchema, FeatureDef, FeatureDefSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, IdSchema, Interval, IntervalSchema, Invoice, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, MAX_NOTIFICATION_EMAILS, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MetadataSchema, NotificationEmailsSchema, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveEntitlementsInput, ResolvedEntitlements, ResyncResult, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, Subscription, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, buildDoctorReport, checkoutRedirectUrl, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, isE164, isEmailRelevant, isEventType, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, resolveEntitlements, returnOriginsOf, splitInclusiveTax, uniqueEmails, webhookEndpointUrlProblem };
package/dist/contract.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as CodeSchema, B as IntervalSchema, C as BillingProfileSchema, D as API_VERSION, E as SubscriptionSummarySchema, F as EntitlementsSchema, I as ErrorCategorySchema, L as ErrorResponseSchema, M as DateTimeSchema, N as ERROR_CATEGORIES, O as ActorRefSchema, P as EntitlementValueSchema, R as ExternalRefSchema, S as BillingProfileKindSchema, T as SubscriptionStatusSchema, V as MetadataSchema, _ as AccountScheduledChangeSchema, a as EVENT_TYPES, b as AccountSubscriptionStateSchema, c as PING_EVENT_TYPE, d as ACCOUNT_INCLUDES, f as AccessStateSchema, g as AccountProfileStateSchema, h as AccountOpenCheckoutSchema, i as EVENT_DETAIL_SCHEMAS, j as CurrencySchema, k as AmountMinorSchema, l as PingSchema, m as AccountDunningStateSchema, n as ApiVersionSchema, o as EventIdSchema, p as AccountDeleteResponseSchema, r as BillingEventSchema, s as LEGACY_EVENT_TYPES, t as AnyBillingEventSchema, u as isEventType, v as AccountSchema, w as EntitlementSnapshotSchema, x as AccountUpsertInputSchema, y as AccountStateSchema, z as IdSchema } from "./_chunks/events.js";
2
- import { $ as HEADER_SDK, $t as FeatureTypeSchema, A as webhookEndpointUrlProblem, At as MAX_CHECKOUT_CONSENT_DOCS, B as AccountDetailSchema, Bt as ReturnOriginSchema, C as WebhookEndpointListSchema, Ct as CheckoutConsentInputSchema, D as WebhookLastDeliverySchema, Dt as CheckoutSessionSchema, E as WebhookEndpointStatusSchema, Et as CheckoutSessionCreatedSchema, F as PlanSetWarningSchema, Ft as BrandingSchema, G as DeliverySchema, Gt as applySettingsPatch, H as BillingProfileResponseSchema, Ht as SettingsLocaleSchema, I as ResyncResultSchema, It as DEFAULT_CHECKOUT_TTL_MINUTES, J as GrantCreateResponseSchema, Jt as AccountsRefreshResultSchema, K as EventListSchema, Kt as isReturnUrlAllowed, L as ERROR_CODES, Lt as DEFAULT_PORTAL_TTL_MINUTES, M as PlanSetInputSchema, Mt as checkoutRedirectUrl, N as PlanSetModeSchema, Nt as isLegacyCheckoutInput, O as WebhookSecretSchema, Ot as CheckoutStatusSchema, P as PlanSetResponseSchema, Pt as BrandingPatchSchema, Q as HEADER_REQUEST_ID, Qt as FeatureDefSchema, R as errorCodeSpec, Rt as ProductSettingsPatchSchema, S as WebhookEndpointCreateInputSchema, St as CHECKOUT_ERRORS, T as WebhookEndpointSchema, Tt as CheckoutSessionCreateInputSchema, U as CancelSubscriptionResponseSchema, Ut as TtlMinutesSchema, V as AccountUpsertResponseSchema, Vt as SETTINGS_LOCALES, W as CheckoutSessionResponseSchema, Wt as WebUrlSchema, X as HEADER_API_VERSION, Xt as CatalogSyncInputSchema, Y as HEADER_ACTOR_REF, Yt as CatalogSchema, Z as HEADER_IDEMPOTENCY_KEY, Zt as CatalogSyncResultSchema, _ as hostedReadinessOf, _t as StatsSchema, a as DOCTOR_SEVERITIES, at as InvoiceSchema, b as WEBHOOK_ENDPOINT_STATUSES, bt as PortalSessionCreateInputSchema, c as DoctorHostedSchema, ct as MANUAL_INVOICE_MAX_AMOUNT_MINOR, d as DoctorSettingsSchema, dt as manualInvoiceTotals, en as PlanDefSchema, et as InvoiceIssueResponseSchema, f as DoctorSeveritySchema, ft as splitInclusiveTax, g as endpointDiagnosisOf, gt as PaymentSchema, h as buildDoctorReport, ht as GrantSchema, i as DOCTOR_REQUIRED_LEGAL_LINKS, it as InvoiceLineSchema, j as PLAN_SET_MODES, jt as ProviderPayloadSchema, k as generateWebhookSecret, kt as ConsentSchema, l as DoctorProviderSchema, lt as ManualInvoiceInputSchema, m as DoctorWarningSchema, mt as GrantCreateInputSchema, n as DOCTOR_PROVIDER_ENVIRONMENTS, nn as PriceSchema, nt as ManualInvoiceResponseSchema, o as DoctorCatalogSchema, ot as InvoiceStatusSchema, p as DoctorUnsellablePriceSchema, pt as CancelSubscriptionInputSchema, q as EventRecordSchema, qt as returnOriginsOf, r as DOCTOR_REQUIRED_BRANDING, rt as InvoiceIssueInputSchema, s as DoctorEndpointSchema, st as InvoiceVoidInputSchema, t as DOCTOR_PENDING_BACKLOG_MS, tn as PriceDefSchema, tt as InvoiceVoidResponseSchema, u as DoctorReportSchema, ut as ManualInvoiceLineInputSchema, v as DEFAULT_ENDPOINT_EVENT_TYPES, vt as SubscriptionSchema, w as WebhookEndpointRotateInputSchema, wt as CheckoutPrefillSchema, x as WEBHOOK_SECRET_PREFIX, xt as PortalSessionSchema, y as EventTypeSchema, yt as PORTAL_SESSION_ERRORS, z as isKnownErrorCode, zt as ProductSettingsSchema } from "./_chunks/src.js";
1
+ import { $ as CurrencySchema, A as EMAIL_LOCALES, B as NotificationEmailsSchema, C as BillingProfileKindSchema, D as SubscriptionSummarySchema, E as SubscriptionStatusSchema, F as EmailSettingsPatchSchema, G as emailTemplateOf, H as billingPageUrl, I as EmailSettingsSchema, J as uniqueEmails, K as emailTemplateSettings, L as EmailTemplateSchema, M as EMAIL_TEMPLATE_BY_EVENT, N as EmailExtraTextSchema, O as BILLING_PATH_PLACEHOLDERS, P as EmailSenderSchema, Q as CodeSchema, R as EmailTemplateSettingsSchema, S as AccountUpsertInputSchema, T as EntitlementSnapshotSchema, U as emailLocaleOf, V as applyEmailSettingsPatch, W as emailRecipients, X as ActorRefSchema, Y as API_VERSION, Z as AmountMinorSchema, _ as AccountProfileStateSchema, a as EVENT_TYPES, at as ErrorResponseSchema, b as AccountStateSchema, c as PING_EVENT_TYPE, ct as IntervalSchema, d as ACCOUNT_INCLUDES, et as DateTimeSchema, f as AccessStateSchema, g as AccountOpenCheckoutSchema, h as AccountLocaleSchema, i as EVENT_DETAIL_SCHEMAS, it as ErrorCategorySchema, j as EMAIL_TEMPLATES, k as BillingPathSchema, l as PingSchema, lt as MetadataSchema, m as AccountDunningStateSchema, n as ApiVersionSchema, nt as EntitlementValueSchema, o as EventIdSchema, ot as ExternalRefSchema, p as AccountDeleteResponseSchema, q as isEmailRelevant, r as BillingEventSchema, rt as EntitlementsSchema, s as LEGACY_EVENT_TYPES, st as IdSchema, t as AnyBillingEventSchema, tt as ERROR_CATEGORIES, u as isEventType, v as AccountScheduledChangeSchema, w as BillingProfileSchema, x as AccountSubscriptionStateSchema, y as AccountSchema, z as MAX_NOTIFICATION_EMAILS } from "./_chunks/events.js";
2
+ import { $ as InvoiceVoidResponseSchema, $t as PriceSchema, A as WebhookSecretSchema, At as checkoutRedirectUrl, B as errorCodeSpec, Bt as TtlMinutesSchema, C as WEBHOOK_SECRET_PREFIX, Ct as CheckoutSessionCreateInputSchema, D as WebhookEndpointSchema, Dt as ConsentSchema, E as WebhookEndpointRotateInputSchema, Et as CheckoutStatusSchema, F as PlanSetModeSchema, Ft as ProductSettingsPatchSchema, G as CheckoutSessionResponseSchema, Gt as AccountsRefreshResultSchema, H as AccountDetailSchema, Ht as applySettingsPatch, I as PlanSetResponseSchema, It as ProductSettingsSchema, J as HEADER_API_VERSION, Jt as CatalogSyncResultSchema, K as GrantCreateResponseSchema, Kt as CatalogSchema, L as PlanSetWarningSchema, Lt as ReturnOriginSchema, M as webhookEndpointUrlProblem, Mt as BrandingSchema, N as PLAN_SET_MODES, Nt as DEFAULT_CHECKOUT_TTL_MINUTES, O as WebhookEndpointStatusSchema, Ot as MAX_CHECKOUT_CONSENT_DOCS, P as PlanSetInputSchema, Pt as DEFAULT_PORTAL_TTL_MINUTES, Q as InvoiceIssueResponseSchema, Qt as PriceDefSchema, R as ResyncResultSchema, Rt as SETTINGS_LOCALES, S as WEBHOOK_ENDPOINT_STATUSES, St as CheckoutPrefillSchema, T as WebhookEndpointListSchema, Tt as CheckoutSessionSchema, U as AccountUpsertResponseSchema, Ut as isReturnUrlAllowed, V as isKnownErrorCode, Vt as WebUrlSchema, W as CancelSubscriptionResponseSchema, Wt as returnOriginsOf, X as HEADER_REQUEST_ID, Xt as FeatureTypeSchema, Y as HEADER_IDEMPOTENCY_KEY, Yt as FeatureDefSchema, Z as HEADER_SDK, Zt as PlanDefSchema, _ as emailReadinessOf, _t as PORTAL_SESSION_ERRORS, a as DOCTOR_SEVERITIES, at as InvoiceVoidInputSchema, b as DEFAULT_ENDPOINT_EVENT_TYPES, bt as CHECKOUT_ERRORS, c as DoctorEndpointSchema, ct as ManualInvoiceLineInputSchema, d as DoctorReportSchema, dt as CancelSubscriptionInputSchema, et as ManualInvoiceResponseSchema, f as DoctorSettingsSchema, ft as GrantCreateInputSchema, g as buildDoctorReport, gt as SubscriptionSchema, h as DoctorWarningSchema, ht as StatsSchema, i as DOCTOR_REQUIRED_LEGAL_LINKS, it as InvoiceStatusSchema, j as generateWebhookSecret, jt as BrandingPatchSchema, k as WebhookLastDeliverySchema, kt as ProviderPayloadSchema, l as DoctorHostedSchema, lt as manualInvoiceTotals, m as DoctorUnsellablePriceSchema, mt as PaymentSchema, n as DOCTOR_PROVIDER_ENVIRONMENTS, nt as InvoiceLineSchema, o as DoctorCatalogSchema, ot as MANUAL_INVOICE_MAX_AMOUNT_MINOR, p as DoctorSeveritySchema, pt as GrantSchema, q as HEADER_ACTOR_REF, qt as CatalogSyncInputSchema, r as DOCTOR_REQUIRED_BRANDING, rt as InvoiceSchema, s as DoctorEmailsSchema, st as ManualInvoiceInputSchema, t as DOCTOR_PENDING_BACKLOG_MS, tt as InvoiceIssueInputSchema, u as DoctorProviderSchema, ut as splitInclusiveTax, v as endpointDiagnosisOf, vt as PortalSessionCreateInputSchema, w as WebhookEndpointCreateInputSchema, wt as CheckoutSessionCreatedSchema, x as EventTypeSchema, xt as CheckoutConsentInputSchema, y as hostedReadinessOf, yt as PortalSessionSchema, z as ERROR_CODES, zt as SettingsLocaleSchema } from "./_chunks/src.js";
3
3
  import { a as isGrantActive, i as LIVE_SUBSCRIPTION_STATUSES, n as isValidTckn, o as isLiveSubscriptionStatus, r as isValidVkn, s as resolveEntitlements, t as isE164 } from "./_chunks/validators.js";
4
- export { ACCOUNT_INCLUDES, API_VERSION, AccessStateSchema, AccountDeleteResponseSchema, AccountDetailSchema, AccountDunningStateSchema, AccountOpenCheckoutSchema, AccountProfileStateSchema, AccountScheduledChangeSchema, AccountSchema, AccountStateSchema, AccountSubscriptionStateSchema, AccountUpsertInputSchema, AccountUpsertResponseSchema, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEventSchema, ApiVersionSchema, BillingEventSchema, BillingProfileKindSchema, BillingProfileResponseSchema, BillingProfileSchema, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInputSchema, CancelSubscriptionResponseSchema, CatalogSchema, CatalogSyncInputSchema, CatalogSyncResultSchema, CheckoutConsentInputSchema, CheckoutPrefillSchema, CheckoutSessionCreateInputSchema, CheckoutSessionCreatedSchema, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatusSchema, CodeSchema, ConsentSchema, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, DeliverySchema, DoctorCatalogSchema, DoctorEndpointSchema, DoctorHostedSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventIdSchema, EventListSchema, EventRecordSchema, EventTypeSchema, ExternalRefSchema, FeatureDefSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, IdSchema, IntervalSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, ManualInvoiceInputSchema, ManualInvoiceLineInputSchema, ManualInvoiceResponseSchema, MetadataSchema, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, PaymentSchema, PingSchema, PlanDefSchema, PlanSetInputSchema, PlanSetModeSchema, PlanSetResponseSchema, PlanSetWarningSchema, PortalSessionCreateInputSchema, PortalSessionSchema, PriceDefSchema, PriceSchema, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayloadSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocaleSchema, StatsSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, applySettingsPatch, buildDoctorReport, checkoutRedirectUrl, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, isE164, isEventType, isGrantActive, isKnownErrorCode, isLegacyCheckoutInput, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, resolveEntitlements, returnOriginsOf, splitInclusiveTax, webhookEndpointUrlProblem };
4
+ export { ACCOUNT_INCLUDES, API_VERSION, AccessStateSchema, AccountDeleteResponseSchema, AccountDetailSchema, AccountDunningStateSchema, AccountLocaleSchema, AccountOpenCheckoutSchema, AccountProfileStateSchema, AccountScheduledChangeSchema, AccountSchema, AccountStateSchema, AccountSubscriptionStateSchema, AccountUpsertInputSchema, AccountUpsertResponseSchema, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEventSchema, ApiVersionSchema, BILLING_PATH_PLACEHOLDERS, BillingEventSchema, BillingPathSchema, BillingProfileKindSchema, BillingProfileSchema, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInputSchema, CancelSubscriptionResponseSchema, CatalogSchema, CatalogSyncInputSchema, CatalogSyncResultSchema, CheckoutConsentInputSchema, CheckoutPrefillSchema, CheckoutSessionCreateInputSchema, CheckoutSessionCreatedSchema, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatusSchema, CodeSchema, ConsentSchema, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, DoctorCatalogSchema, DoctorEmailsSchema, DoctorEndpointSchema, DoctorHostedSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EmailExtraTextSchema, EmailSenderSchema, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplateSchema, EmailTemplateSettingsSchema, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventIdSchema, EventTypeSchema, ExternalRefSchema, FeatureDefSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, IdSchema, IntervalSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, MAX_NOTIFICATION_EMAILS, ManualInvoiceInputSchema, ManualInvoiceLineInputSchema, ManualInvoiceResponseSchema, MetadataSchema, NotificationEmailsSchema, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, PaymentSchema, PingSchema, PlanDefSchema, PlanSetInputSchema, PlanSetModeSchema, PlanSetResponseSchema, PlanSetWarningSchema, PortalSessionCreateInputSchema, PortalSessionSchema, PriceDefSchema, PriceSchema, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayloadSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocaleSchema, StatsSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, buildDoctorReport, checkoutRedirectUrl, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, isE164, isEmailRelevant, isEventType, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, resolveEntitlements, returnOriginsOf, splitInclusiveTax, uniqueEmails, webhookEndpointUrlProblem };
package/dist/index.d.ts CHANGED
@@ -1,22 +1,8 @@
1
- import { $ as DEFAULT_CHECKOUT_TTL_MINUTES, $n as CheckoutPrefillSchema, $r as IdSchema, $t as EventRecord, A as hostedReadinessOf, An as CancelSubscriptionInput, Ar as PlanDef, At as ResolvedEntitlements, B as WebhookEndpointRotateInput, Bn as Subscription, Br as Currency, Bt as AccountDetailSchema, C as DoctorUnsellablePriceSchema, Cn as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Cr as CatalogSyncInput, Ct as PlanSetWarningSchema, D as DoctorWarningSchema, Dn as ManualInvoiceLineInputSchema, Dr as FeatureDef, Dt as EntitlementRulesGrant, E as DoctorWarningCode, En as ManualInvoiceLineInput, Er as CatalogSyncResultSchema, Et as EntitlementRulesCatalog, F as WebhookEndpoint, Fn as GrantSchema, Fr as PriceSchema, Ft as ErrorCode, G as WebhookLastDelivery, Gn as PortalSessionCreateInputSchema, Gr as EntitlementValueSchema, Gt as CancelSubscriptionResponse, H as WebhookEndpointSchema, Hn as PORTAL_SESSION_ERRORS, Hr as DateTimeSchema, Ht as AccountUpsertResponseSchema, I as WebhookEndpointCreateInput, In as Payment, Ir as API_VERSION, It as ErrorCodeSpec, J as generateWebhookSecret, Jn as CHECKOUT_ERRORS, Jr as ErrorCategory, Jt as CheckoutSessionResponseSchema, K as WebhookLastDeliverySchema, Kn as PortalSessionError, Kr as Entitlements, Kt as CancelSubscriptionResponseSchema, L as WebhookEndpointCreateInputSchema, Ln as PaymentSchema, Lr as ActorRefSchema, Lt as errorCodeSpec, M as EventTypeSchema, Mn as Grant, Mr as Price, Mt as isLiveSubscriptionStatus, N as WEBHOOK_ENDPOINT_STATUSES, Nn as GrantCreateInput, Nr as PriceDef, Nt as resolveEntitlements, O as buildDoctorReport, On as manualInvoiceTotals, Or as FeatureDefSchema, Ot as LIVE_SUBSCRIPTION_STATUSES, P as WEBHOOK_SECRET_PREFIX, Pn as GrantCreateInputSchema, Pr as PriceDefSchema, Pt as ERROR_CODES, Q as BrandingSchema, Qn as CheckoutPrefill, Qr as ExternalRefSchema, Qt as EventListSchema, R as WebhookEndpointList, Rn as Stats, Rr as AmountMinorSchema, Rt as isKnownErrorCode, S as DoctorUnsellablePrice, Sn as InvoiceVoidInputSchema, Sr as CatalogSchema, St as PlanSetWarningCode, T as DoctorWarning, Tn as ManualInvoiceInputSchema, Tr as CatalogSyncResult, Tt as ResyncResultSchema, U as WebhookEndpointStatus, Un as PortalSession, Ur as ERROR_CATEGORIES, Ut as BillingProfileResponse, V as WebhookEndpointRotateInputSchema, Vn as SubscriptionSchema, Vr as CurrencySchema, Vt as AccountUpsertResponse, W as WebhookEndpointStatusSchema, Wn as PortalSessionCreateInput, Wr as EntitlementValue, Wt as BillingProfileResponseSchema, X as Branding, Xn as CheckoutConsentInputSchema, Xr as ErrorResponse, Xt as DeliverySchema, Y as webhookEndpointUrlProblem, Yn as CheckoutConsentInput, Yr as ErrorCategorySchema, Yt as Delivery, Z as BrandingPatchSchema, Zn as CheckoutError, Zr as ErrorResponseSchema, Zt as EventList, _ as DoctorReportSchema, _n as InvoiceLine, _r as checkoutRedirectUrl, _t as PlanSetMode, a as DOCTOR_SEVERITIES, an as HEADER_IDEMPOTENCY_KEY, ar as CheckoutSessionCreateParsed, at as ReturnOriginSchema, b as DoctorSeverity, bn as InvoiceStatusSchema, br as AccountsRefreshResultSchema, bt as PlanSetResponseSchema, c as DoctorEndpoint, cn as InvoiceIssueResponse, cr as CheckoutSessionSchema, ct as SettingsLocaleSchema, d as DoctorFacts, dn as InvoiceVoidResponseSchema, dr as Consent, dt as applySettingsPatch, ei as Interval, en as EventRecordSchema, er as CheckoutRedirectTarget, et as DEFAULT_PORTAL_TTL_MINUTES, f as DoctorHosted, fn as ManualInvoiceResponse, fr as ConsentSchema, ft as isReturnUrlAllowed, g as DoctorReport, gn as InvoiceIssueInputSchema, gr as ProviderPayloadSchema, gt as PlanSetInputSchema, h as DoctorProviderSchema, hn as InvoiceIssueInput, hr as ProviderPayload, ht as PlanSetInput, i as DOCTOR_REQUIRED_LEGAL_LINKS, in as HEADER_API_VERSION, ir as CheckoutSessionCreateInputSchema, it as ProductSettingsSchema, j as DEFAULT_ENDPOINT_EVENT_TYPES, jn as CancelSubscriptionInputSchema, jr as PlanDefSchema, jt as isGrantActive, k as endpointDiagnosisOf, kn as splitInclusiveTax, kr as FeatureTypeSchema, kt as ResolveEntitlementsInput, l as DoctorEndpointDiagnosis, ln as InvoiceIssueResponseSchema, lr as CheckoutStatus, lt as TtlMinutesSchema, m as DoctorProvider, mn as Invoice, mr as MAX_CHECKOUT_CONSENT_DOCS, mt as PLAN_SET_MODES, n as DOCTOR_PROVIDER_ENVIRONMENTS, ni as MetadataSchema, nn as GrantCreateResponseSchema, nr as CheckoutSession, nt as ProductSettingsPatch, o as DoctorCatalog, on as HEADER_REQUEST_ID, or as CheckoutSessionCreated, ot as SETTINGS_LOCALES, p as DoctorHostedSchema, pn as ManualInvoiceResponseSchema, pr as LegacyCheckoutSessionCreateParsed, pt as returnOriginsOf, q as WebhookSecretSchema, qn as PortalSessionSchema, qr as EntitlementsSchema, qt as CheckoutSessionResponse, r as DOCTOR_REQUIRED_BRANDING, rn as HEADER_ACTOR_REF, rr as CheckoutSessionCreateInput, rt as ProductSettingsPatchSchema, s as DoctorCatalogSchema, sn as HEADER_SDK, sr as CheckoutSessionCreatedSchema, st as SettingsLocale, t as DOCTOR_PENDING_BACKLOG_MS, ti as IntervalSchema, tn as GrantCreateResponse, tr as CheckoutReturnStatus, tt as ProductSettings, u as DoctorEndpointSchema, un as InvoiceVoidResponse, ur as CheckoutStatusSchema, ut as WebUrlSchema, v as DoctorSettings, vn as InvoiceLineSchema, vr as isLegacyCheckoutInput, vt as PlanSetModeSchema, w as DoctorUnsellableReason, wn as ManualInvoiceInput, wr as CatalogSyncInputSchema, wt as ResyncResult, x as DoctorSeveritySchema, xn as InvoiceVoidInput, xr as Catalog, xt as PlanSetWarning, y as DoctorSettingsSchema, yn as InvoiceSchema, yr as AccountsRefreshResult, yt as PlanSetResponse, z as WebhookEndpointListSchema, zn as StatsSchema, zr as CodeSchema, zt as AccountDetail } from "./_chunks/index.js";
2
- import { A as AccountProfileState, B as AccountUpsertInputSchema, C as AccountDeleteResponse, D as AccountInclude, E as AccountDunningStateSchema, F as AccountState, G as EntitlementSnapshot, H as BillingProfileInput, I as AccountStateSchema, J as SubscriptionStatusSchema, K as EntitlementSnapshotSchema, L as AccountSubscriptionState, M as AccountScheduledChange, N as AccountScheduledChangeSchema, O as AccountOpenCheckout, P as AccountSchema, R as AccountSubscriptionStateSchema, S as Account, T as AccountDunningState, U as BillingProfileKindSchema, V as BillingProfile, W as BillingProfileSchema, X as SubscriptionSummarySchema, Y as SubscriptionSummary, _ as PingSchema, a as BillingEvent, b as AccessState, c as EVENT_DETAIL_SCHEMAS, d as EventIdSchema, f as EventType, g as Ping, h as PING_EVENT_TYPE, i as ApiVersionSchema, j as AccountProfileStateSchema, k as AccountOpenCheckoutSchema, l as EVENT_TYPES, m as LegacyEventType, n as AnyBillingEvent, o as BillingEventOf, p as LEGACY_EVENT_TYPES, q as SubscriptionStatus, r as AnyBillingEventSchema, s as BillingEventSchema, t as AccountStateChangeCause, u as EventDetail, v as isEventType, w as AccountDeleteResponseSchema, x as AccessStateSchema, y as ACCOUNT_INCLUDES, z as AccountUpsertInput } from "./_chunks/events.js";
1
+ import { $ as Branding, $n as CancelSubscriptionInputSchema, $r as PriceDef, $t as PlanSetWarningSchema, A as buildDoctorReport, An as InvoiceIssueResponse, Ar as CheckoutSessionSchema, At as EmailTemplate, B as WebhookEndpointCreateInputSchema, Bn as InvoiceLineSchema, Br as AccountsRefreshResultSchema, Bt as emailTemplateOf, C as DoctorSeveritySchema, Cn as GrantCreateResponse, Cr as CheckoutReturnStatus, Ct as EmailLocale, D as DoctorWarning, Dn as HEADER_IDEMPOTENCY_KEY, Dr as CheckoutSessionCreateParsed, Dt as EmailSettingsPatch, E as DoctorUnsellableReason, En as HEADER_API_VERSION, Er as CheckoutSessionCreateInputSchema, Et as EmailSettings, F as EventTypeSchema, Fn as ManualInvoiceResponseSchema, Fr as MAX_CHECKOUT_CONSENT_DOCS, Ft as NotificationEmailsSchema, G as WebhookEndpointSchema, Gn as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Gr as CatalogSyncResult, Gt as PlanSetInput, H as WebhookEndpointListSchema, Hn as InvoiceStatusSchema, Hr as CatalogSchema, Ht as isEmailRelevant, I as WEBHOOK_ENDPOINT_STATUSES, In as Invoice, Ir as ProviderPayload, It as applyEmailSettingsPatch, J as WebhookLastDelivery, Jn as ManualInvoiceLineInput, Jr as FeatureDefSchema, Jt as PlanSetModeSchema, K as WebhookEndpointStatus, Kn as ManualInvoiceInput, Kr as CatalogSyncResultSchema, Kt as PlanSetInputSchema, L as WEBHOOK_SECRET_PREFIX, Ln as InvoiceIssueInput, Lr as ProviderPayloadSchema, Lt as billingPageUrl, M as endpointDiagnosisOf, Mn as InvoiceVoidResponse, Mr as CheckoutStatusSchema, Mt as EmailTemplateSettings, N as hostedReadinessOf, Nn as InvoiceVoidResponseSchema, Nr as Consent, Nt as EmailTemplateSettingsSchema, O as DoctorWarningCode, On as HEADER_REQUEST_ID, Or as CheckoutSessionCreated, Ot as EmailSettingsPatchSchema, P as DEFAULT_ENDPOINT_EVENT_TYPES, Pn as ManualInvoiceResponse, Pr as ConsentSchema, Pt as MAX_NOTIFICATION_EMAILS, Q as webhookEndpointUrlProblem, Qn as CancelSubscriptionInput, Qr as Price, Qt as PlanSetWarningCode, R as WebhookEndpoint, Rn as InvoiceIssueInputSchema, Rr as checkoutRedirectUrl, Rt as emailLocaleOf, S as DoctorSeverity, Si as MetadataSchema, Sn as CheckoutSessionResponseSchema, Sr as CheckoutRedirectTarget, St as EmailExtraTextSchema, T as DoctorUnsellablePriceSchema, Tn as HEADER_ACTOR_REF, Tr as CheckoutSessionCreateInput, Tt as EmailSenderSchema, U as WebhookEndpointRotateInput, Un as InvoiceVoidInput, Ur as CatalogSyncInput, Ut as uniqueEmails, V as WebhookEndpointList, Vn as InvoiceSchema, Vr as Catalog, Vt as emailTemplateSettings, W as WebhookEndpointRotateInputSchema, Wn as InvoiceVoidInputSchema, Wr as CatalogSyncInputSchema, Wt as PLAN_SET_MODES, X as WebhookSecretSchema, Xn as manualInvoiceTotals, Xr as PlanDef, Xt as PlanSetResponseSchema, Y as WebhookLastDeliverySchema, Yn as ManualInvoiceLineInputSchema, Yr as FeatureTypeSchema, Yt as PlanSetResponse, Z as generateWebhookSecret, Zn as splitInclusiveTax, Zr as PlanDefSchema, Zt as PlanSetWarning, _ as DoctorProviderSchema, _i as ErrorResponseSchema, _n as AccountUpsertResponse, _r as CheckoutConsentInput, _t as BILLING_PATH_PLACEHOLDERS, a as DOCTOR_SEVERITIES, ai as CodeSchema, an as ResolveEntitlementsInput, ar as PaymentSchema, at as ProductSettingsPatch, b as DoctorSettings, bi as Interval, bn as CancelSubscriptionResponseSchema, br as CheckoutPrefill, bt as EMAIL_TEMPLATES, c as DoctorEmails, ci as DateTimeSchema, cn as isLiveSubscriptionStatus, cr as Subscription, ct as ReturnOriginSchema, d as DoctorEndpointDiagnosis, di as EntitlementValueSchema, dn as ErrorCode, dr as PortalSession, dt as SettingsLocaleSchema, ei as PriceDefSchema, en as ResyncResult, er as Grant, et as BrandingPatchSchema, f as DoctorEndpointSchema, fi as Entitlements, fn as ErrorCodeSpec, fr as PortalSessionCreateInput, ft as TtlMinutesSchema, g as DoctorProvider, gi as ErrorResponse, gn as AccountDetailSchema, gr as CHECKOUT_ERRORS, gt as returnOriginsOf, h as DoctorHostedSchema, hi as ErrorCategorySchema, hn as AccountDetail, hr as PortalSessionSchema, ht as isReturnUrlAllowed, i as DOCTOR_REQUIRED_LEGAL_LINKS, ii as AmountMinorSchema, in as LIVE_SUBSCRIPTION_STATUSES, ir as Payment, it as ProductSettings, j as emailReadinessOf, jn as InvoiceIssueResponseSchema, jr as CheckoutStatus, jt as EmailTemplateSchema, k as DoctorWarningSchema, kn as HEADER_SDK, kr as CheckoutSessionCreatedSchema, kt as EmailSettingsSchema, l as DoctorEmailsSchema, li as ERROR_CATEGORIES, ln as resolveEntitlements, lr as SubscriptionSchema, lt as SETTINGS_LOCALES, m as DoctorHosted, mi as ErrorCategory, mn as isKnownErrorCode, mr as PortalSessionError, mt as applySettingsPatch, n as DOCTOR_PROVIDER_ENVIRONMENTS, ni as API_VERSION, nn as EntitlementRulesCatalog, nr as GrantCreateInputSchema, nt as DEFAULT_CHECKOUT_TTL_MINUTES, o as DoctorCatalog, oi as Currency, on as ResolvedEntitlements, or as Stats, ot as ProductSettingsPatchSchema, p as DoctorFacts, pi as EntitlementsSchema, pn as errorCodeSpec, pr as PortalSessionCreateInputSchema, pt as WebUrlSchema, q as WebhookEndpointStatusSchema, qn as ManualInvoiceInputSchema, qr as FeatureDef, qt as PlanSetMode, r as DOCTOR_REQUIRED_BRANDING, ri as ActorRefSchema, rn as EntitlementRulesGrant, rr as GrantSchema, rt as DEFAULT_PORTAL_TTL_MINUTES, s as DoctorCatalogSchema, si as CurrencySchema, sn as isGrantActive, sr as StatsSchema, st as ProductSettingsSchema, t as DOCTOR_PENDING_BACKLOG_MS, ti as PriceSchema, tn as ResyncResultSchema, tr as GrantCreateInput, tt as BrandingSchema, u as DoctorEndpoint, ui as EntitlementValue, un as ERROR_CODES, ur as PORTAL_SESSION_ERRORS, ut as SettingsLocale, v as DoctorReport, vi as ExternalRefSchema, vn as AccountUpsertResponseSchema, vr as CheckoutConsentInputSchema, vt as BillingPathSchema, w as DoctorUnsellablePrice, wn as GrantCreateResponseSchema, wr as CheckoutSession, wt as EmailRelevanceFacts, x as DoctorSettingsSchema, xi as IntervalSchema, xn as CheckoutSessionResponse, xr as CheckoutPrefillSchema, xt as EMAIL_TEMPLATE_BY_EVENT, y as DoctorReportSchema, yi as IdSchema, yn as CancelSubscriptionResponse, yr as CheckoutError, yt as EMAIL_LOCALES, z as WebhookEndpointCreateInput, zn as InvoiceLine, zr as AccountsRefreshResult, zt as emailRecipients } from "./_chunks/index.js";
2
+ import { A as AccountOpenCheckoutSchema, B as AccountUpsertInput, C as AccountDeleteResponse, D as AccountInclude, E as AccountDunningStateSchema, F as AccountSchema, G as BillingProfileSchema, H as BillingProfile, I as AccountState, J as SubscriptionStatus, K as EntitlementSnapshot, L as AccountStateSchema, M as AccountProfileStateSchema, N as AccountScheduledChange, O as AccountLocaleSchema, P as AccountScheduledChangeSchema, R as AccountSubscriptionState, S as Account, T as AccountDunningState, U as BillingProfileInput, V as AccountUpsertInputSchema, W as BillingProfileKindSchema, X as SubscriptionSummary, Y as SubscriptionStatusSchema, Z as SubscriptionSummarySchema, _ as PingSchema, a as BillingEvent, b as AccessState, c as EVENT_DETAIL_SCHEMAS, d as EventIdSchema, f as EventType, g as Ping, h as PING_EVENT_TYPE, i as ApiVersionSchema, j as AccountProfileState, k as AccountOpenCheckout, l as EVENT_TYPES, m as LegacyEventType, n as AnyBillingEvent, o as BillingEventOf, p as LEGACY_EVENT_TYPES, q as EntitlementSnapshotSchema, r as AnyBillingEventSchema, s as BillingEventSchema, t as AccountStateChangeCause, u as EventDetail, v as isEventType, w as AccountDeleteResponseSchema, x as AccessStateSchema, y as ACCOUNT_INCLUDES, z as AccountSubscriptionStateSchema } from "./_chunks/events.js";
3
3
  import { n as isValidTckn, r as isValidVkn, t as isE164 } from "./_chunks/validators.js";
4
- import { _ as createBillingClient, a as Steward, c as StewardOptions, d as RetryOptions, f as AccountStateRead, g as ClientResult, h as CallOptions, i as MutationOptions, l as createSteward, m as BillingClientOptions, n as EventListQuery, o as StewardEnv, p as BillingClient, r as InvoiceDocument, s as StewardMe, t as CatalogRead, u as RetryClass, v as parseRetryAfter } from "./_chunks/steward.js";
4
+ import { a as StewardEnv, c as createSteward, d as AccountStateRead, i as Steward, l as RetryClass, n as InvoiceDocument, o as StewardMe, r as MutationOptions, s as StewardOptions, t as CatalogRead, u as RetryOptions } from "./_chunks/steward.js";
5
5
  import { i as httpStatusFor, n as HttpStatusResult, r as StewardLogger, t as StewardLocale } from "./_chunks/locale.js";
6
- //#region src/catalog-cache.d.ts
7
- export type CatalogCacheOptions = {
8
- /** Varsayılan 60 sn. */
9
- ttlMs?: number;
10
- /** Bayat değer uyarısı; varsayılan `console`. */
11
- logger?: Pick<StewardLogger, "warn">;
12
- };
13
- export type CatalogCache = {
14
- get(): Promise<Catalog>;
15
- /** Sonraki `get()` süreyi beklemeden (ETag'le) tazeler. */
16
- invalidate(): void;
17
- };
18
- export declare function createCatalogCache(steward: Pick<Steward, "catalog">, options?: CatalogCacheOptions): CatalogCache;
19
- //#endregion
20
6
  //#region src/catalog.d.ts
21
7
  type FeatureType = "limit" | "boolean" | "string";
22
8
  export type FeatureSpec<T extends FeatureType = FeatureType> = {
@@ -217,52 +203,4 @@ export declare class StewardConfigError extends StewardError {
217
203
  });
218
204
  }
219
205
  //#endregion
220
- //#region src/messages.d.ts
221
- /** SDK'nın kendisinin ürettiği kodlar (yanıt yok ya da istek hiç gönderilmedi). */
222
- declare const CLIENT_ERROR_CODES: readonly ["network_error", "timeout", "invalid_response", "config_error"];
223
- export type StewardErrorCode = ErrorCode | (typeof CLIENT_ERROR_CODES)[number];
224
- export declare const STEWARD_ERROR_CODES: readonly StewardErrorCode[];
225
- export type ErrorMessages = Record<StewardErrorCode, string> & {
226
- fallback: string;
227
- };
228
- export declare const errorMessages: {
229
- readonly tr: ErrorMessages;
230
- readonly en: ErrorMessages;
231
- };
232
- /** Kullanıcıya gösterilecek metin (`tr`, `tr-TR` → tr; diğer diller → en); tanınmayan kodda genel metin. */
233
- export declare function messageFor(code: string, locale: string): string;
234
- //#endregion
235
- //#region src/money.d.ts
236
- /** `Price`, `PriceDef` ve `defineCatalog` fiyatlarıyla uyumlu en küçük şekil. */
237
- export type PriceAmount = {
238
- amountMinor: number;
239
- currency: string;
240
- taxInclusive: boolean;
241
- /** Baz puan: %20 = 2000. */
242
- taxRateBps: number;
243
- };
244
- export type TaxBreakdown = {
245
- /** Matrah (vergi hariç). */
246
- subtotalMinor: number;
247
- taxMinor: number;
248
- /** Ödenecek toplam = matrah + vergi. */
249
- totalMinor: number;
250
- };
251
- /**
252
- * Vergi dahil fiyatta toplam korunur, matrah kuruşa yuvarlanır ve vergi kalandır;
253
- * vergi hariç fiyatta vergi kuruşa yuvarlanıp üstüne eklenir.
254
- */
255
- export declare function taxBreakdown(price: Pick<PriceAmount, "amountMinor" | "taxInclusive" | "taxRateBps">): TaxBreakdown;
256
- /**
257
- * Tutar, para biriminin ondalık hanesiyle (TRY/USD 2, JPY 0): `₺1.250,00`
258
- * (tr), `₺1,250.00` (en). Sembol dar biçimde (`TRY 1,250.00` değil).
259
- */
260
- export declare function formatMoney(amountMinor: number, currency: string, locale: string): string;
261
- /**
262
- * Fiyat etiketi: `₺1.250,00 · KDV dahil` (tr), `₺1,250.00 · VAT included` (en).
263
- * Vergi oranı 0 ise vergi ibaresi yazılmaz. Sayı biçimi `locale`'in kendisiyle,
264
- * ibare `tr*` → Türkçe, diğerleri İngilizce.
265
- */
266
- export declare function formatPrice(price: PriceAmount, locale: string): string;
267
- //#endregion
268
- export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateRead, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BillingClient, BillingClientOptions, BillingEvent, BillingEventOf, BillingEventSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileResponse, BillingProfileResponseSchema, BillingProfileSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CallOptions, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogRead, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, ClientResult, CodeSchema, Consent, ConsentSchema, Currency, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, Delivery, DeliverySchema, DoctorCatalog, DoctorCatalogSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EntitlementRulesCatalog, EntitlementRulesGrant, EntitlementSnapshot, EntitlementSnapshotSchema, EntitlementValue, EntitlementValueSchema, Entitlements, EntitlementsSchema, ErrorCategory, ErrorCategorySchema, ErrorCode, ErrorCodeSpec, ErrorResponse, ErrorResponseSchema, EventDetail, EventIdSchema, EventList, EventListQuery, EventListSchema, EventRecord, EventRecordSchema, EventType, EventTypeSchema, ExternalRefSchema, FeatureDef, FeatureDefSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, HttpStatusResult, IdSchema, Interval, IntervalSchema, Invoice, InvoiceDocument, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LegacyCheckoutSessionCreateParsed, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MetadataSchema, MutationOptions, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveEntitlementsInput, ResolvedEntitlements, ResyncResult, ResyncResultSchema, type RetryClass, type RetryOptions, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, Steward, StewardEnv, type StewardLocale, StewardLogger, StewardMe, StewardOptions, Subscription, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, applySettingsPatch, buildDoctorReport, checkoutRedirectUrl, createBillingClient, createSteward, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, httpStatusFor, isE164, isEventType, isGrantActive, isKnownErrorCode, isLegacyCheckoutInput, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, parseRetryAfter, resolveEntitlements, returnOriginsOf, splitInclusiveTax, webhookEndpointUrlProblem };
206
+ export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, type AccountStateRead, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BILLING_PATH_PLACEHOLDERS, BillingEvent, BillingEventOf, BillingEventSchema, BillingPathSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogRead, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, Currency, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_SEVERITIES, DateTimeSchema, DoctorCatalog, DoctorCatalogSchema, DoctorEmails, DoctorEmailsSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENT_DETAIL_SCHEMAS, EVENT_TYPES, EmailExtraTextSchema, EmailLocale, EmailRelevanceFacts, EmailSenderSchema, EmailSettings, EmailSettingsPatch, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplate, EmailTemplateSchema, EmailTemplateSettings, EmailTemplateSettingsSchema, EntitlementRulesCatalog, EntitlementRulesGrant, EntitlementSnapshot, EntitlementSnapshotSchema, EntitlementValue, EntitlementValueSchema, Entitlements, EntitlementsSchema, ErrorCategory, ErrorCategorySchema, ErrorCode, ErrorCodeSpec, ErrorResponse, ErrorResponseSchema, EventDetail, EventIdSchema, EventType, EventTypeSchema, ExternalRefSchema, FeatureDef, FeatureDefSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, HttpStatusResult, IdSchema, Interval, IntervalSchema, Invoice, InvoiceDocument, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CHECKOUT_CONSENT_DOCS, MAX_NOTIFICATION_EMAILS, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MetadataSchema, MutationOptions, NotificationEmailsSchema, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveEntitlementsInput, ResolvedEntitlements, ResyncResult, ResyncResultSchema, type RetryClass, type RetryOptions, ReturnOriginSchema, SETTINGS_LOCALES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, Steward, StewardEnv, type StewardLocale, StewardLogger, StewardMe, StewardOptions, Subscription, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, buildDoctorReport, checkoutRedirectUrl, createSteward, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, generateWebhookSecret, hostedReadinessOf, httpStatusFor, isE164, isEmailRelevant, isEventType, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isReturnUrlAllowed, isValidTckn, isValidVkn, manualInvoiceTotals, resolveEntitlements, returnOriginsOf, splitInclusiveTax, uniqueEmails, webhookEndpointUrlProblem };