@stewardhq/sdk 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Ai as MeResponse, Bn as ResyncResult, Cr as EventsIngestInput, Ei as InvoiceWaiveResponse, Fn as PlanSetResponse, G as WebhookEndpoint, Go as AccountMeters, Hi as InvoicePaymentSessionCreateInput, J as WebhookEndpointList, K as WebhookEndpointCreateInput, La as CheckoutSessionCreated, Li as InvoiceIssueInput, Mt as ProductSettingsPatch, Oi as ManualInvoiceResponse, Pa as CheckoutSessionCreateInput, Pi as UncancelSubscriptionResponse, Qi as ManualInvoiceInput, Si as InvoiceIssueResponse, T as DoctorReport, Tr as EventsIngestResult, Vi as InvoicePaymentSession, Vs as MeterPeriodList, X as WebhookEndpointRotateInput, Ya as AccountsRefreshResult, Yi as InvoiceWaiveInput, Yo as CreditGrantInput, Za as Catalog, ai as AccountUpsertResponse, ba as PortalSession, di as CheckoutSessionResponse, ga as SubscriptionChangeInput, hi as GrantCreateResponse, hs as MeterChargeList, ia as CancelSubscriptionInput, jn as PlanSetInput, jt as ProductSettings, li as ChangeSubscriptionResponse, pa as Stats, pi as CreditGrantResponse, qi as InvoiceVoidInput, ri as AccountDetail, ro as CatalogSyncResult, sa as GrantCreateInput, si as CancelSubscriptionResponse, to as CatalogSyncInput, wi as InvoiceVoidResponse, xa as PortalSessionCreateInput } from "./index.js";
1
+ import { Ar as EventsIngestInput, Ca as SubscriptionChangeInput, Da as PortalSession, Fi as ManualInvoiceResponse, G as WebhookEndpoint, Ga as CheckoutSessionCreateInput, Hn as PlanSetResponse, It as ProductSettings, J as WebhookEndpointList, Ja as CheckoutSessionCreated, Ji as InvoicePaymentSession, K as WebhookEndpointCreateInput, Li as MeResponse, Lt as ProductSettingsPatch, Mr as EventsIngestResult, Ni as InvoiceWaiveResponse, Oa as PortalSessionCreateInput, Rn as PlanSetInput, Si as GrantCreateResponse, T as DoctorReport, Vi as UncancelSubscriptionResponse, Wi as InvoiceIssueInput, X as WebhookEndpointRotateInput, Yi as InvoicePaymentSessionCreateInput, _o as CatalogSyncResult, aa as ManualInvoiceInput, as as AccountMeters, ba as Stats, bi as CreditGrantResponse, da as CancelSubscriptionInput, do as Catalog, ea as InvoiceVoidInput, fi as AccountUpsertResponse, gi as ChangeSubscriptionResponse, ho as CatalogSyncInput, ji as InvoiceVoidResponse, ki as InvoiceIssueResponse, ks as MeterChargeList, lo as AccountsRefreshResult, ls as CreditGrantInput, ma as GrantCreateInput, mi as CancelSubscriptionResponse, na as InvoiceWaiveInput, qn as ResyncResult, tc as MeterPeriodList, ui as AccountDetail, vi as CheckoutSessionResponse } from "./index.js";
2
2
  import { O as AccountInclude, U as AccountState, q as AccountUpsertInput, w as AccountDeleteResponse } from "./events.js";
3
3
  //#region ../contract/src/client.d.ts
4
4
  type CallOptions = {
@@ -25,7 +25,7 @@ type AccountMetersRead = {
25
25
  };
26
26
  //#endregion
27
27
  //#region src/retry.d.ts
28
- type RetryClass = "network" | "5xx" | "429";
28
+ type RetryClass = 'network' | '5xx' | '429';
29
29
  type RetryOptions = {
30
30
  /** İlk istekten sonraki en çok tekrar sayısı; 0 kapatır. Varsayılan 2. */
31
31
  attempts?: number;
@@ -280,6 +280,6 @@ declare function httpStatusFor(err: unknown, options?: {
280
280
  }): HttpStatusResult;
281
281
  //#endregion
282
282
  //#region src/locale.d.ts
283
- type StewardLocale = "tr" | "en";
283
+ type StewardLocale = 'tr' | 'en';
284
284
  //#endregion
285
285
  export { CatalogRead as a, Steward as c, StewardOptions as d, createSteward as f, AccountStateRead as g, AccountMetersRead as h, httpStatusFor as i, StewardEnv as l, RetryOptions as m, HttpStatusResult as n, InvoiceDocument as o, RetryClass as p, StewardLogger as r, MutationOptions as s, StewardLocale as t, StewardMe as u };
@@ -1,4 +1,4 @@
1
- import { A as SubscriptionStatusSchema, B as EmailSettingsPatchSchema, Bt as MeterCreditEntrySchema, C as AccountSchema, Ct as DecimalUnitsStringSchema, D as BillingProfileKindSchema, Fn as CurrencySchema, Gn as IdSchema, Hn as ExternalRefSchema, Ht as MeterDefSchema, I as EMAIL_TEMPLATES, In as DateTimeSchema, Jn as InvoicePaymentStatusSchema, Kn as IntervalSchema, Mn as ActorRefSchema, Nn as AmountMinorSchema, O as BillingProfileSchema, Pn as CodeSchema, Qt as MeteredPriceSchema, V as EmailSettingsSchema, Vt as MeterCreditPropertiesSchema, X as applyEmailSettingsPatch, Zt as MeteredPriceDefSchema, a as EVENT_TYPES, bt as CatalogMeterSchema, cn as plainDecimalOf, dt as CatalogBenefitSchema, en as meterFilterClauseOf, ht as featureValueMatchesType, ln as toMicroUnits, nn as MICRO_UNITS_PER_UNIT, o as EventIdSchema, qn as InvoiceBillingReasonSchema, st as BenefitDefSchema, w as AccountStateSchema, yt as AccountMetersSchema, zn as EntitlementsSchema } from "./events.js";
1
+ import { $t as MeteredPriceSchema, A as SubscriptionStatusSchema, Bn as EntitlementsSchema, C as AccountSchema, D as BillingProfileKindSchema, Fn as CodeSchema, H as EmailSettingsSchema, Ht as MeterCreditPropertiesSchema, In as CurrencySchema, Jn as InvoiceBillingReasonSchema, Kn as IdSchema, L as EMAIL_TEMPLATES, Ln as DateTimeSchema, Nn as ActorRefSchema, O as BillingProfileSchema, Pn as AmountMinorSchema, Qt as MeteredPriceDefSchema, Un as ExternalRefSchema, Ut as MeterDefSchema, V as EmailSettingsPatchSchema, Vt as MeterCreditEntrySchema, Yn as InvoicePaymentStatusSchema, Z as applyEmailSettingsPatch, a as EVENT_TYPES, bt as AccountMetersSchema, ct as BenefitDefSchema, ft as CatalogBenefitSchema, gt as featureValueMatchesType, ln as plainDecimalOf, o as EventIdSchema, qn as IntervalSchema, rn as MICRO_UNITS_PER_UNIT, tn as meterFilterClauseOf, un as toMicroUnits, w as AccountStateSchema, wt as DecimalUnitsStringSchema, xt as CatalogMeterSchema } from "./events.js";
2
2
  import { z } from "zod";
3
3
  //#region ../contract/src/catalog.ts
4
4
  const FeatureTypeSchema = z.enum([
@@ -346,17 +346,34 @@ const BrandingSchema = z.object({
346
346
  });
347
347
  const DEFAULT_PAYMENT_DUE_DAYS = 7;
348
348
  const DEFAULT_MIN_INVOICE_MINOR = 1e3;
349
+ const DEFAULT_BANK_TRANSFER_PAYMENT_DAYS = 5;
349
350
  const PaymentDueDaysSchema = z.number().int().min(1).max(60);
351
+ const BankTransferPaymentDaysSchema = z.number().int().min(1).max(14);
352
+ const BankTransferSettingsSchema = z.object({
353
+ enabled: z.boolean().default(false),
354
+ paymentDays: BankTransferPaymentDaysSchema.default(5)
355
+ });
350
356
  const BillingSettingsSchema = z.object({
351
357
  paymentDueDays: PaymentDueDaysSchema.default(7),
352
358
  minInvoiceMinor: AmountMinorSchema.default(DEFAULT_MIN_INVOICE_MINOR),
353
- allowMultipleSubscriptions: z.boolean().default(false)
359
+ allowMultipleSubscriptions: z.boolean().default(false),
360
+ bankTransfer: BankTransferSettingsSchema.default({
361
+ enabled: false,
362
+ paymentDays: 5
363
+ })
354
364
  });
365
+ /** Patch of `settings.billing.bankTransfer`: an omitted field is unchanged, `null` restores its default. */
366
+ const BankTransferSettingsPatchSchema = z.object({
367
+ enabled: z.boolean().nullable().optional(),
368
+ paymentDays: BankTransferPaymentDaysSchema.nullable().optional()
369
+ }).strict();
355
370
  /** Patch of `settings.billing`: an omitted field is unchanged, `null` restores its default. */
356
371
  const BillingSettingsPatchSchema = z.object({
357
372
  paymentDueDays: PaymentDueDaysSchema.nullable().optional(),
358
373
  minInvoiceMinor: AmountMinorSchema.nullable().optional(),
359
- allowMultipleSubscriptions: z.boolean().nullable().optional()
374
+ allowMultipleSubscriptions: z.boolean().nullable().optional(),
375
+ /** Merges per field; `bankTransfer: null` restores its defaults (off). */
376
+ bankTransfer: BankTransferSettingsPatchSchema.nullable().optional()
360
377
  }).strict();
361
378
  const DEFAULT_EVENT_RETENTION_DAYS = 120;
362
379
  const DEFAULT_LATE_GRACE_MINUTES = 60;
@@ -446,6 +463,17 @@ const MERGED_SECTIONS = /* @__PURE__ */ new Set([
446
463
  "events",
447
464
  "metering"
448
465
  ]);
466
+ /** Objects inside a merged section that merge one level deeper (`billing.bankTransfer`). */
467
+ const NESTED_MERGED_FIELDS = /* @__PURE__ */ new Set(["bankTransfer"]);
468
+ /** Field-by-field merge: `null` deletes a field (its default comes back), `undefined` keeps it. */
469
+ function mergeFields(current, patch, nested = /* @__PURE__ */ new Set()) {
470
+ const merged = { ...current };
471
+ for (const [field, value] of Object.entries(patch)) if (value === null) delete merged[field];
472
+ else if (value === void 0) continue;
473
+ else if (nested.has(field)) merged[field] = mergeFields(current[field] ?? {}, value);
474
+ else merged[field] = value;
475
+ return merged;
476
+ }
449
477
  /**
450
478
  * Doğrulanmış yamayı ayarlara uygular (saf). Sonuç şemadan geçer; alan kuralları
451
479
  * yamada zaten denetlendiği için yalnızca programlama hatasında fırlatır.
@@ -464,12 +492,7 @@ function applySettingsPatch(current, patch) {
464
492
  } else if (key === "emails") next.emails = applyEmailSettingsPatch(current.emails, value);
465
493
  else if (MERGED_SECTIONS.has(key)) {
466
494
  if (value === null) delete next[key];
467
- else {
468
- const section = { ...current[key] ?? {} };
469
- for (const [field, fieldValue] of Object.entries(value)) if (fieldValue === null) delete section[field];
470
- else if (fieldValue !== void 0) section[field] = fieldValue;
471
- next[key] = section;
472
- }
495
+ else next[key] = mergeFields(current[key] ?? {}, value, NESTED_MERGED_FIELDS);
473
496
  } else if (value === null) delete next[key];
474
497
  else next[key] = value;
475
498
  }
@@ -540,7 +563,15 @@ const CheckoutSessionCreateInputSchema = z.object({
540
563
  /** Opens the account with this name if it does not exist; never renames an existing account. */
541
564
  displayName: z.string().min(1).max(200).optional(),
542
565
  prefill: CheckoutPrefillSchema.optional(),
543
- consents: z.array(CheckoutConsentInputSchema).max(20).optional()
566
+ consents: z.array(CheckoutConsentInputSchema).max(20).optional(),
567
+ /**
568
+ * Upgrade (bank transfer plan H16): a live subscription of the account this checkout replaces.
569
+ * It does not block the session (`already_subscribed`) and keeps running until the payment is
570
+ * recorded; in the transaction that records it (card or bank transfer) it is canceled
571
+ * immediately and the new subscription starts. An abandoned, expired or canceled session leaves
572
+ * it untouched. Not a live subscription of the account → 422 `replaces_subscription_invalid`.
573
+ */
574
+ replacesSubscriptionId: IdSchema.optional()
544
575
  }).superRefine((body, ctx) => {
545
576
  const seen = /* @__PURE__ */ new Set();
546
577
  body.consents?.forEach((consent, i) => {
@@ -567,7 +598,18 @@ const CheckoutStatusSchema = z.enum([
567
598
  "expired",
568
599
  "canceled"
569
600
  ]);
570
- /** Provider form shown on steward's hosted checkout page (never returned to the product). */
601
+ /**
602
+ * How the customer chose to pay on the hosted page (bank transfer plan H5): `card` (the provider's
603
+ * form) or `bank_transfer` (the session stays `open` until an operator records the transfer).
604
+ * Absent/null: not chosen yet. The session status set does not change for it.
605
+ */
606
+ const PAYMENT_METHODS = ["card", "bank_transfer"];
607
+ const PaymentMethodSchema = z.enum(PAYMENT_METHODS);
608
+ /**
609
+ * Provider form shown on steward's hosted checkout page (never returned to the product).
610
+ * @deprecated Ürün yüzeyinde kullanılmıyor; yalnızca servis içi. Bir sonraki minor sürümde paketin
611
+ * dış yüzeyinden çıkarılacak (temizlik planı C9).
612
+ */
571
613
  const ProviderPayloadSchema = z.discriminatedUnion("type", [z.object({
572
614
  type: z.literal("html_snippet"),
573
615
  html: z.string()
@@ -595,7 +637,11 @@ const CheckoutSessionSchema = z.object({
595
637
  subscriptionId: IdSchema.nullable(),
596
638
  expiresAt: DateTimeSchema,
597
639
  createdAt: DateTimeSchema,
598
- completedAt: DateTimeSchema.nullable()
640
+ completedAt: DateTimeSchema.nullable(),
641
+ /** Payment method chosen on the page (H6); absent (or null): not chosen yet, or an older steward. */
642
+ paymentMethod: PaymentMethodSchema.nullable().optional(),
643
+ /** The subscription this checkout replaces (H16); absent (or null): none, or an older steward. */
644
+ replacesSubscriptionId: IdSchema.nullable().optional()
599
645
  });
600
646
  /**
601
647
  * `POST /v1/accounts/{ref}/checkout-sessions` response: `url` is steward's checkout page
@@ -640,9 +686,53 @@ const CHECKOUT_ERRORS = [
640
686
  "provider_not_configured",
641
687
  "provider_error",
642
688
  "account_deleted",
643
- "meter_already_billed"
689
+ "meter_already_billed",
690
+ "replaces_subscription_invalid"
644
691
  ];
645
692
  //#endregion
693
+ //#region ../contract/src/bank-transfers.ts
694
+ const BankTransferRecordInputSchema = z.object({
695
+ /** The account's order code as written in the transfer description (`K7M2-QX9D-4`; case and separators are forgiven). */
696
+ code: z.string().min(1).max(40),
697
+ /** The amount received, minor units (kuruş, cent); must equal what the item waits for. */
698
+ amountMinor: z.number().int().positive(),
699
+ currency: CurrencySchema,
700
+ /** When the money reached the account. */
701
+ receivedAt: DateTimeSchema,
702
+ /** The bank's transaction / receipt number; one payment per reference. */
703
+ bankRef: z.string().trim().min(1).max(100),
704
+ /** Settle this checkout (required when several items match, and with `acceptExpired`). */
705
+ checkoutSessionId: IdSchema.optional(),
706
+ /** Pay this invoice (a checkout matches too, or a written-off invoice the transfer pays). */
707
+ invoiceId: IdSchema.optional(),
708
+ /** H10: settle the named checkout although it expired (a late transfer the operator accepts). */
709
+ acceptExpired: z.boolean().optional()
710
+ }).strict().refine((input) => !input.acceptExpired || input.checkoutSessionId !== void 0, {
711
+ path: ["checkoutSessionId"],
712
+ message: "acceptExpired needs checkoutSessionId"
713
+ }).refine((input) => input.checkoutSessionId === void 0 || input.invoiceId === void 0, {
714
+ path: ["invoiceId"],
715
+ message: "name either checkoutSessionId or invoiceId"
716
+ });
717
+ const BankTransferRecordedSchema = z.object({
718
+ accountRef: ExternalRefSchema,
719
+ code: z.string(),
720
+ /** The checkout the transfer completed; null when it paid an invoice. */
721
+ checkoutSessionId: IdSchema.nullable(),
722
+ /** The invoice the transfer paid; null when it completed a checkout. */
723
+ invoiceId: IdSchema.nullable(),
724
+ subscriptionId: IdSchema,
725
+ paymentId: IdSchema,
726
+ /** The subscription the upgrade replaced (canceled in the same transaction, H16); null: none. */
727
+ replacedSubscriptionId: IdSchema.nullable(),
728
+ /** The checkout had expired and the operator accepted the transfer (H10). */
729
+ acceptedAfterExpiry: z.boolean(),
730
+ /** The paid invoice had been written off (waived / uncollectible). */
731
+ paidAfterWriteoff: z.boolean(),
732
+ /** The account's state after the recording. */
733
+ account: AccountStateSchema.optional()
734
+ });
735
+ //#endregion
646
736
  //#region ../contract/src/portal.ts
647
737
  const PortalSessionCreateInputSchema = z.object({
648
738
  /** Sayfa dili; verilmezse ürün ayarı `defaultLocale`. */
@@ -1065,12 +1155,14 @@ const ERROR_CODES = Object.freeze({
1065
1155
  already_subscribed: spec(409, "conflict"),
1066
1156
  already_canceled: spec(409, "conflict"),
1067
1157
  /**
1068
- * LEGACY — no longer produced (billing core, M35: no plan rank). Steward before the billing core
1158
+ * @deprecated LEGACY — no longer produced (billing core, M35: no plan rank). Steward before the billing core
1069
1159
  * answered `PUT …/plan` `mode: "strict"` with it when a live subscription's plan outranked the
1070
1160
  * target. Kept so clients that handle it keep compiling.
1071
1161
  */
1072
1162
  subscription_plan_higher: spec(409, "conflict"),
1073
1163
  plan_not_sellable: spec(422, "validation"),
1164
+ /** Checkout `replacesSubscriptionId` (bank transfer plan H16): not a live subscription of the account. */
1165
+ replaces_subscription_invalid: spec(422, "validation"),
1074
1166
  /**
1075
1167
  * F4e: hesap silinmiş (anonimleştirilmiş). `/v1/accounts/:ref` altındaki her uç (tekrar
1076
1168
  * `DELETE` ve aynı ref'le `PUT` dahil) 410 döner; hesap geri açılmaz.
@@ -1078,13 +1170,26 @@ const ERROR_CODES = Object.freeze({
1078
1170
  account_deleted: spec(410, "not_found"),
1079
1171
  /** `DELETE /v1/accounts/:ref`: canlı abonelik (dönem sonunda iptali planlı dahil) var; önce hemen iptal. */
1080
1172
  subscription_active: spec(409, "conflict"),
1081
- /** `DELETE /v1/accounts/:ref`: sağlayıcı formu açık checkout oturumu var; süresi dolup kapanınca tekrar dene. */
1173
+ /**
1174
+ * `DELETE /v1/accounts/:ref`: sağlayıcı formu açık ya da havale bekleyen (bank transfer plan H5) checkout
1175
+ * oturumu var; kapanınca (süre dolumu, ödeme kaydı) tekrar dene.
1176
+ */
1082
1177
  checkout_in_progress: spec(409, "conflict", true),
1083
1178
  /** `successUrl`, `cancelUrl` or portal `returnUrl` is not in the product's allowed origins: product misconfiguration. */
1084
1179
  return_url_not_allowed: spec(422, "config"),
1085
1180
  /** Bu deployment'ta sağlayıcı yapılandırılmamış (503 ama beklemekle düzelmez). */
1086
1181
  provider_not_configured: spec(503, "config"),
1087
1182
  provider_error: spec(502, "provider"),
1183
+ /** Not an order code, or its check symbol does not match (a typo in the transfer description). */
1184
+ bank_transfer_code_invalid: spec(422, "validation"),
1185
+ /** No account of the product has this order code. */
1186
+ bank_transfer_code_not_found: spec(404, "not_found"),
1187
+ /** This bank reference is already recorded. */
1188
+ bank_transfer_duplicate: spec(409, "conflict"),
1189
+ /** Nothing of the account waits for exactly this amount, or several items do (name one), or the named checkout is not one. */
1190
+ bank_transfer_unmatched: spec(422, "conflict"),
1191
+ /** The checkout expired (only `acceptExpired` settles it), is closed or cannot be completed: refund the transfer. */
1192
+ bank_transfer_rejected: spec(409, "conflict"),
1088
1193
  already_issued: spec(409, "conflict"),
1089
1194
  number_taken: spec(409, "conflict"),
1090
1195
  invalid_document: spec(422, "validation"),
@@ -1126,14 +1231,21 @@ const ERROR_CODES = Object.freeze({
1126
1231
  internal_error: spec(500, "unavailable", true),
1127
1232
  /** `/health`: veritabanına ulaşılamıyor. */
1128
1233
  database_unavailable: spec(503, "unavailable", true),
1129
- /** F2c (K26): anahtar prefix'i başına bütçe aşıldı; `Retry-After` başlığı taşır. */
1234
+ /**
1235
+ * Bugün yalnızca hosted sayfalar üretir (yanlış sayfa anahtarı / aksiyon sınırı; `hosted/routes.ts`,
1236
+ * `hosted/portal-routes.ts`); `Retry-After` başlığı taşır. `/v1` için anahtar başına bütçe (F2c, K26)
1237
+ * ertelendi — geldiğinde aynı kod kullanılır.
1238
+ */
1130
1239
  rate_limited: spec(429, "unavailable", true),
1131
1240
  unknown_provider: spec(404, "not_found"),
1132
1241
  bad_signature: spec(401, "config"),
1133
1242
  invalid_payload: spec(400, "validation"),
1134
1243
  stale_event: spec(400, "validation"),
1135
1244
  not_configured: spec(503, "config"),
1136
- /** Yalnızca sahte sağlayıcı (yerel/test). */
1245
+ /**
1246
+ * @deprecated Üretilmiyor: sağlayıcı abonelik yolu silindi (M30) ve sahte sağlayıcı da bu kodu
1247
+ * döndürmüyor. Eski istemciler derlensin diye duruyor; bir sonraki minor sürümde kaldırılacak.
1248
+ */
1137
1249
  unknown_subscription: spec(404, "not_found")
1138
1250
  });
1139
1251
  function isKnownErrorCode(code) {
@@ -1909,4 +2021,4 @@ function buildDoctorReport(facts) {
1909
2021
  };
1910
2022
  }
1911
2023
  //#endregion
1912
- export { rolloverOf as $, CheckoutStatusSchema as $t, WebhookEndpointRotateInputSchema as A, TtlMinutesSchema as An, InvoiceWaiveInputSchema as At, PlanSetResponseSchema as B, CatalogSchema as Bn, PaymentSchema as Bt, hostedReadinessOf as C, MeteringSettingsSchema as Cn, InvoiceIssueInputSchema as Ct, WEBHOOK_SECRET_PREFIX as D, ReturnOriginSchema as Dn, InvoiceSchema as Dt, WEBHOOK_ENDPOINT_STATUSES as E, ProductSettingsSchema as En, InvoicePaymentSessionSchema as Et, generateWebhookSecret as F, isReturnUrlAllowed as Fn, splitInclusiveTax as Ft, contributionOf as G, MAX_CATALOG_BENEFITS as Gn, PortalSessionCreateInputSchema as Gt, ResyncResultSchema as H, CatalogSyncResultSchema as Hn, SubscriptionChangeInputSchema as Ht, webhookEndpointUrlProblem as I, meteringSettingsOf as In, CancelSubscriptionInputSchema as It, meterCreditsOf as J, MAX_PLAN_BENEFITS as Jn, CheckoutConsentInputSchema as Jt, matchesFilter as K, MAX_CATALOG_METERED_PRICES as Kn, PortalSessionSchema as Kt, PLAN_SET_MODES as L, returnOriginsOf as Ln, GrantCreateInputSchema as Lt, WebhookEndpointStatusSchema as M, applySettingsPatch as Mn, ManualInvoiceInputSchema as Mt, WebhookLastDeliverySchema as N, billingSettingsOf as Nn, ManualInvoiceLineInputSchema as Nt, WebhookEndpointCreateInputSchema as O, SETTINGS_LOCALES as On, InvoiceStatusSchema as Ot, WebhookSecretSchema as P, eventsSettingsOf as Pn, manualInvoiceTotals as Pt, rateOverage as Q, PriceSchema as Qn, CheckoutSessionSchema as Qt, PlanSetInputSchema as R, AccountsRefreshResultSchema as Rn, GrantSchema as Rt, endpointDiagnosisOf as S, MeteringSettingsPatchSchema as Sn, UncancelSubscriptionResponseSchema as St, EventTypeSchema as T, ProductSettingsPatchSchema as Tn, InvoicePaymentSessionCreateInputSchema as Tt, addUtcMonths as U, FeatureDefSchema as Un, SubscriptionSchema as Ut, PlanSetWarningSchema as V, CatalogSyncInputSchema as Vn, StatsSchema as Vt, consumptionOf as W, FeatureTypeSchema as Wn, PORTAL_SESSION_ERRORS as Wt, overageOf as X, PlanDefSchema as Xn, CheckoutSessionCreateInputSchema as Xt, overageCapReached as Y, METERED_PRICE_TAX_MISMATCH as Yn, CheckoutPrefillSchema as Yt, periodBoundsOf as Z, PriceDefSchema as Zn, CheckoutSessionCreatedSchema as Zt, DoctorSeveritySchema as _, EventsSettingsPatchSchema as _n, InvoiceVoidResponseSchema as _t, DOCTOR_ROLLUP_LAG_WARN_SECONDS as a, BillingSettingsPatchSchema as an, AccountUpsertResponseSchema as at, buildDoctorReport as b, METER_CHARGE_MODES as bn, MeResponseSchema as bt, DoctorCatalogSchema as c, BrandingSchema as cn, CheckoutSessionResponseSchema as ct, DoctorEventsSchema as d, DEFAULT_LATE_GRACE_MINUTES as dn, HEADER_ACTOR_REF as dt, ConsentSchema as en, standingOf as et, DoctorHostedSchema as f, DEFAULT_METER_CHARGE_MODE as fn, HEADER_API_VERSION as ft, DoctorSettingsSchema as g, EventRetentionDaysSchema as gn, InvoiceIssueResponseSchema as gt, DoctorReportSchema as h, DEFAULT_PORTAL_TTL_MINUTES as hn, HEADER_SDK as ht, DOCTOR_REQUIRED_LEGAL_LINKS as i, checkoutRedirectUrl as in, AccountDetailSchema as it, WebhookEndpointSchema as j, WebUrlSchema as jn, MANUAL_INVOICE_MAX_AMOUNT_MINOR as jt, WebhookEndpointListSchema as k, SettingsLocaleSchema as kn, InvoiceVoidInputSchema as kt, DoctorEmailsSchema as l, DEFAULT_CHECKOUT_TTL_MINUTES as ln, CreditGrantResponseSchema as lt, DoctorProviderSchema as m, DEFAULT_PAYMENT_DUE_DAYS as mn, HEADER_REQUEST_ID as mt, DOCTOR_PROVIDER_ENVIRONMENTS as n, MAX_CHECKOUT_CONSENT_DOCS as nn, errorCodeSpec as nt, DOCTOR_SEVERITIES as o, BillingSettingsSchema as on, CancelSubscriptionResponseSchema as ot, DoctorOverageSchema as p, DEFAULT_MIN_INVOICE_MINOR as pn, HEADER_IDEMPOTENCY_KEY as pt, meterChargeTotals as q, MAX_CATALOG_METERS as qn, CHECKOUT_ERRORS as qt, DOCTOR_REQUIRED_BRANDING as r, ProviderPayloadSchema as rn, isKnownErrorCode as rt, DoctorBillingSchema as s, BrandingPatchSchema as sn, ChangeSubscriptionResponseSchema as st, DOCTOR_PENDING_BACKLOG_MS as t, INDIVIDUAL_IDENTITY_PLACEHOLDER as tn, ERROR_CODES as tt, DoctorEndpointSchema as u, DEFAULT_EVENT_RETENTION_DAYS as un, GrantCreateResponseSchema as ut, DoctorUnsellablePriceSchema as v, EventsSettingsSchema as vn, InvoiceWaiveResponseSchema as vt, DEFAULT_ENDPOINT_EVENT_TYPES as w, PaymentDueDaysSchema as wn, InvoiceLineSchema as wt, emailReadinessOf as x, MeterChargeModeSchema as xn, STEWARD_CAPABILITIES as xt, DoctorWarningSchema as y, LateGraceMinutesSchema as yn, ManualInvoiceResponseSchema as yt, PlanSetModeSchema as z, CatalogPlanSchema as zn, MAX_GRANT_BENEFITS as zt };
2024
+ export { rolloverOf as $, MAX_CATALOG_BENEFITS as $n, CheckoutSessionCreatedSchema as $t, WebhookEndpointRotateInputSchema as A, MeteringSettingsPatchSchema as An, InvoiceWaiveInputSchema as At, PlanSetResponseSchema as B, applySettingsPatch as Bn, PaymentSchema as Bt, hostedReadinessOf as C, DEFAULT_PORTAL_TTL_MINUTES as Cn, InvoiceIssueInputSchema as Ct, WEBHOOK_SECRET_PREFIX as D, LateGraceMinutesSchema as Dn, InvoiceSchema as Dt, WEBHOOK_ENDPOINT_STATUSES as E, EventsSettingsSchema as En, InvoicePaymentSessionSchema as Et, generateWebhookSecret as F, ReturnOriginSchema as Fn, splitInclusiveTax as Ft, contributionOf as G, returnOriginsOf as Gn, PortalSessionCreateInputSchema as Gt, ResyncResultSchema as H, eventsSettingsOf as Hn, SubscriptionChangeInputSchema as Ht, webhookEndpointUrlProblem as I, SETTINGS_LOCALES as In, CancelSubscriptionInputSchema as It, meterCreditsOf as J, CatalogSchema as Jn, BankTransferRecordedSchema as Jt, matchesFilter as K, AccountsRefreshResultSchema as Kn, PortalSessionSchema as Kt, PLAN_SET_MODES as L, SettingsLocaleSchema as Ln, GrantCreateInputSchema as Lt, WebhookEndpointStatusSchema as M, PaymentDueDaysSchema as Mn, ManualInvoiceInputSchema as Mt, WebhookLastDeliverySchema as N, ProductSettingsPatchSchema as Nn, ManualInvoiceLineInputSchema as Nt, WebhookEndpointCreateInputSchema as O, METER_CHARGE_MODES as On, InvoiceStatusSchema as Ot, WebhookSecretSchema as P, ProductSettingsSchema as Pn, manualInvoiceTotals as Pt, rateOverage as Q, FeatureTypeSchema as Qn, CheckoutSessionCreateInputSchema as Qt, PlanSetInputSchema as R, TtlMinutesSchema as Rn, GrantSchema as Rt, endpointDiagnosisOf as S, DEFAULT_PAYMENT_DUE_DAYS as Sn, UncancelSubscriptionResponseSchema as St, EventTypeSchema as T, EventsSettingsPatchSchema as Tn, InvoicePaymentSessionCreateInputSchema as Tt, addUtcMonths as U, isReturnUrlAllowed as Un, SubscriptionSchema as Ut, PlanSetWarningSchema as V, billingSettingsOf as Vn, StatsSchema as Vt, consumptionOf as W, meteringSettingsOf as Wn, PORTAL_SESSION_ERRORS as Wt, overageOf as X, CatalogSyncResultSchema as Xn, CheckoutConsentInputSchema as Xt, overageCapReached as Y, CatalogSyncInputSchema as Yn, CHECKOUT_ERRORS as Yt, periodBoundsOf as Z, FeatureDefSchema as Zn, CheckoutPrefillSchema as Zt, DoctorSeveritySchema as _, DEFAULT_CHECKOUT_TTL_MINUTES as _n, InvoiceVoidResponseSchema as _t, DOCTOR_ROLLUP_LAG_WARN_SECONDS as a, PAYMENT_METHODS as an, PriceDefSchema as ar, AccountUpsertResponseSchema as at, buildDoctorReport as b, DEFAULT_METER_CHARGE_MODE as bn, MeResponseSchema as bt, DoctorCatalogSchema as c, checkoutRedirectUrl as cn, CheckoutSessionResponseSchema as ct, DoctorEventsSchema as d, BankTransferSettingsSchema as dn, HEADER_ACTOR_REF as dt, CheckoutSessionSchema as en, MAX_CATALOG_METERED_PRICES as er, standingOf as et, DoctorHostedSchema as f, BillingSettingsPatchSchema as fn, HEADER_API_VERSION as ft, DoctorSettingsSchema as g, DEFAULT_BANK_TRANSFER_PAYMENT_DAYS as gn, InvoiceIssueResponseSchema as gt, DoctorReportSchema as h, BrandingSchema as hn, HEADER_SDK as ht, DOCTOR_REQUIRED_LEGAL_LINKS as i, MAX_CHECKOUT_CONSENT_DOCS as in, PlanDefSchema as ir, AccountDetailSchema as it, WebhookEndpointSchema as j, MeteringSettingsSchema as jn, MANUAL_INVOICE_MAX_AMOUNT_MINOR as jt, WebhookEndpointListSchema as k, MeterChargeModeSchema as kn, InvoiceVoidInputSchema as kt, DoctorEmailsSchema as l, BankTransferPaymentDaysSchema as ln, CreditGrantResponseSchema as lt, DoctorProviderSchema as m, BrandingPatchSchema as mn, HEADER_REQUEST_ID as mt, DOCTOR_PROVIDER_ENVIRONMENTS as n, ConsentSchema as nn, MAX_PLAN_BENEFITS as nr, errorCodeSpec as nt, DOCTOR_SEVERITIES as o, PaymentMethodSchema as on, PriceSchema as or, CancelSubscriptionResponseSchema as ot, DoctorOverageSchema as p, BillingSettingsSchema as pn, HEADER_IDEMPOTENCY_KEY as pt, meterChargeTotals as q, CatalogPlanSchema as qn, BankTransferRecordInputSchema as qt, DOCTOR_REQUIRED_BRANDING as r, INDIVIDUAL_IDENTITY_PLACEHOLDER as rn, METERED_PRICE_TAX_MISMATCH as rr, isKnownErrorCode as rt, DoctorBillingSchema as s, ProviderPayloadSchema as sn, ChangeSubscriptionResponseSchema as st, DOCTOR_PENDING_BACKLOG_MS as t, CheckoutStatusSchema as tn, MAX_CATALOG_METERS as tr, ERROR_CODES as tt, DoctorEndpointSchema as u, BankTransferSettingsPatchSchema as un, GrantCreateResponseSchema as ut, DoctorUnsellablePriceSchema as v, DEFAULT_EVENT_RETENTION_DAYS as vn, InvoiceWaiveResponseSchema as vt, DEFAULT_ENDPOINT_EVENT_TYPES as w, EventRetentionDaysSchema as wn, InvoiceLineSchema as wt, emailReadinessOf as x, DEFAULT_MIN_INVOICE_MINOR as xn, STEWARD_CAPABILITIES as xt, DoctorWarningSchema as y, DEFAULT_LATE_GRACE_MINUTES as yn, ManualInvoiceResponseSchema as yt, PlanSetModeSchema as z, WebUrlSchema as zn, MAX_GRANT_BENEFITS as zt };
@@ -5,7 +5,7 @@ declare const UNIT_DECIMALS = 6;
5
5
  declare const MICRO_UNITS_PER_UNIT = 1000000n;
6
6
  /** A unit value that is not a finite, non-negative decimal (M4 `invalid_value`). */
7
7
  declare class InvalidUnitValueError extends RangeError {
8
- readonly code: "invalid_value";
8
+ readonly code: 'invalid_value';
9
9
  constructor(value: unknown);
10
10
  }
11
11
  /**
@@ -61,7 +61,7 @@ declare function isValidVkn(value: unknown): boolean;
61
61
  * (iyzico'nun istediği biçim).
62
62
  */
63
63
  declare function isE164(value: unknown, options?: {
64
- country?: "TR";
64
+ country?: 'TR';
65
65
  }): boolean;
66
66
  //#endregion
67
67
  export { MICRO_UNITS_PER_UNIT as a, isMicroPrecise as c, plainDecimalOf as d, toMicroUnits as f, InvalidUnitValueError as i, microToDecimalString as l, isValidTckn as n, UNIT_DECIMALS as o, isValidVkn as r, fromMicroUnits as s, isE164 as t, parseMicroUnits as u };
@@ -5,7 +5,7 @@ declare const HEADER_TIMESTAMP = "steward-timestamp";
5
5
  declare const HEADER_SIGNATURE = "steward-signature";
6
6
  declare const DEFAULT_TOLERANCE_SECONDS = 300;
7
7
  type HeaderSource = Headers | Record<string, string | string[] | undefined>;
8
- type VerifyFailure = "missing_headers" | "timestamp_out_of_tolerance" | "bad_signature" | "invalid_payload" | "id_mismatch";
8
+ type VerifyFailure = 'missing_headers' | 'timestamp_out_of_tolerance' | 'bad_signature' | 'invalid_payload' | 'id_mismatch';
9
9
  type VerifyResult = {
10
10
  ok: true;
11
11
  event: BillingEvent;
@@ -14,7 +14,7 @@ type VerifyResult = {
14
14
  reason: VerifyFailure;
15
15
  };
16
16
  /** Gövdeyi parse etmeden yapılan doğrulamanın başarısızlık nedenleri. */
17
- type VerifyRawFailure = "missing_headers" | "timestamp_out_of_tolerance" | "bad_signature";
17
+ type VerifyRawFailure = 'missing_headers' | 'timestamp_out_of_tolerance' | 'bad_signature';
18
18
  type VerifyRawResult = {
19
19
  ok: true;
20
20
  eventId: string;
@@ -1,4 +1,4 @@
1
- import { $ as WebhookEndpointStatus, $a as CatalogPlanSchema, $i as ManualInvoiceInputSchema, $n as matchesFilter, $o as MAX_METERED_PRICE_PER_UNITS, $r as ErrorCode, $s as canonicalMeterFilter, $t as EmailExtraTextSchema, A as DoctorSeveritySchema, Aa as CheckoutPrefillSchema, Ai as MeResponse, An as PLAN_SET_MODES, Ao as CatalogBenefit, Ar as IngestRejectCode, As as MeterFilterClause, At as PaymentDueDaysSchema, B as hostedReadinessOf, Ba as CheckoutStatus, Bi as InvoiceLineSchema, Bn as ResyncResult, Bo as featureValueMatchesType, Br as FEATURE_FLAG_BENEFIT_TYPE, Bs as MeterPeriod, Bt as WebUrlSchema, C as DoctorProvider, Ca as PortalSessionError, Cc as InvoiceBillingReason, Ci as InvoiceIssueResponseSchema, Cn as emailLocaleOf, Co as BenefitDefSchema, Cr as EventsIngestInput, Cs as MeterCreditEntrySchema, Ct as LateGraceMinutesSchema, D as DoctorSettings, Da as CheckoutConsentInputSchema, Dc as MetadataSchema, Di as InvoiceWaiveResponseSchema, Dn as isEmailRelevant, Do as BenefitSourceSchema, Dr as INGEST_REJECT_CODES, Ds as MeterDefInput, Dt as MeteringSettings, E as DoctorReportSchema, Ea as CheckoutConsentInput, Ec as InvoicePaymentStatusSchema, Ei as InvoiceWaiveResponse, En as emailTemplateSettings, Eo as BenefitFeatureType, Er as EventsIngestResultSchema, Es as MeterDef, Et as MeterChargeModeSchema, F as DoctorWarningCode, Fa as CheckoutSessionCreateInputSchema, Fi as UncancelSubscriptionResponseSchema, Fn as PlanSetResponse, Fo as FeatureFlagProperties, Fr as isEventTimestampInRange, Fs as MeterFilterSchema, Ft as ReturnOriginSchema, G as WebhookEndpoint, Ga as MAX_CHECKOUT_CONSENT_DOCS, Gi as InvoiceSchema, Gn as MeterCreditBenefit, Go as AccountMeters, Gr as ResolvedBenefit, Gs as MeterPeriodStatusSchema, Gt as meteringSettingsOf, H as EventTypeSchema, Ha as Consent, Hi as InvoicePaymentSessionCreateInput, Hn as GrantedMeterCredit, Ho as isMeterCreditBenefit, Hr as OVERRIDE_BENEFIT_SOURCE, Hs as MeterPeriodListSchema, Ht as billingSettingsOf, I as DoctorWarningSchema, Ia as CheckoutSessionCreateParsed, Ii as Invoice, In as PlanSetResponseSchema, Io as FeatureFlagPropertiesSchema, Ir as BenefitRulesDefinition, Is as MeterFilterValue, It as SETTINGS_LOCALES, J as WebhookEndpointList, Ja as checkoutRedirectUrl, Ji as InvoiceVoidInputSchema, Jn as MeterRulesMeter, Jo as CatalogMeterSchema, Jr as isGrantActive, Js as MeterUnitsSchema, Jt as BillingPathSchema, K as WebhookEndpointCreateInput, Ka as ProviderPayload, Ki as InvoiceStatusSchema, Kn as MeterCreditsOptions, Ko as AccountMetersSchema, Kr as ResolvedBenefits, Ks as MeterStanding, Kt as returnOriginsOf, L as buildDoctorReport, La as CheckoutSessionCreated, Li as InvoiceIssueInput, Ln as PlanSetWarning, Lo as MeterCreditAccountBenefit, Lr as BenefitRulesSubscription, Ls as MeterLabel, Lt as SettingsLocale, M as DoctorUnsellablePriceSchema, Ma as CheckoutReturnStatus, Mi as STEWARD_CAPABILITIES, Mn as PlanSetInputSchema, Mo as FeatureFlagAccountBenefit, Mr as IngestRejection, Ms as MeterFilterGroup, Mt as ProductSettingsPatch, N as DoctorUnsellableReason, Na as CheckoutSession, Ni as StewardCapability, Nn as PlanSetMode, No as FeatureFlagBenefitDef, Nr as IngestRejectionSchema, Ns as MeterFilterOperand, Nt as ProductSettingsPatchSchema, O as DoctorSettingsSchema, Oa as CheckoutError, Oi as ManualInvoiceResponse, On as liveSubscriptionOf, Oo as BenefitType, Or as IngestEvent, Os as MeterDefSchema, Ot as MeteringSettingsPatchSchema, P as DoctorWarning, Pa as CheckoutSessionCreateInput, Pi as UncancelSubscriptionResponse, Pn as PlanSetModeSchema, Po as FeatureFlagBenefitDefSchema, Pr as hasControlCharacters, Ps as MeterFilterOperator, Pt as ProductSettingsSchema, Q as WebhookEndpointSchema, Qa as CatalogPlan, Qi as ManualInvoiceInput, Qn as contributionOf, Qo as DecimalUnitsStringSchema, Qr as ERROR_CODES, Qs as MeteredPriceSchema, Qt as EMAIL_TEMPLATE_BY_EVENT, R as emailReadinessOf, Ra as CheckoutSessionCreatedSchema, Ri as InvoiceIssueInputSchema, Rn as PlanSetWarningCode, Ro as MeterCreditBenefitDef, Rr as EntitlementRulesCatalog, Rs as MeterLabelSchema, Rt as SettingsLocaleSchema, S as DoctorOverageSchema, Sa as PortalSessionCreateInputSchema, Sc as IntervalSchema, Si as InvoiceIssueResponse, Sn as billingPageUrl, So as BenefitDef, Sr as EventNameSchema, Ss as MeterCreditEntryKindSchema, St as EventsSettingsSchema, T as DoctorReport, Ta as CHECKOUT_ERRORS, Tc as InvoicePaymentStatus, Ti as InvoiceVoidResponseSchema, Tn as emailTemplateOf, To as BenefitDescriptionSchema, Tr as EventsIngestResult, Ts as MeterCreditPropertiesSchema, Tt as MeterChargeMode, U as WEBHOOK_ENDPOINT_STATUSES, Ua as ConsentSchema, Ui as InvoicePaymentSessionCreateInputSchema, Un as MeterChargeTotalsLine, Uo as AccountMeter, Ur as ResolveBenefitsInput, Us as MeterPeriodSchema, Ut as eventsSettingsOf, V as DEFAULT_ENDPOINT_EVENT_TYPES, Va as CheckoutStatusSchema, Vi as InvoicePaymentSession, Vn as ResyncResultSchema, Vo as isFeatureFlagBenefit, Vr as LIVE_SUBSCRIPTION_STATUSES, Vs as MeterPeriodList, Vt as applySettingsPatch, W as WEBHOOK_SECRET_PREFIX, Wa as INDIVIDUAL_IDENTITY_PLACEHOLDER, Wi as InvoicePaymentSessionSchema, Wn as MeterContribution, Wo as AccountMeterSchema, Wr as ResolveEntitlementsInput, Ws as MeterPeriodStatus, Wt as isReturnUrlAllowed, X as WebhookEndpointRotateInput, Xa as AccountsRefreshResultSchema, Xi as InvoiceWaiveInputSchema, Xn as addUtcMonths, Xo as CreditGrantInputSchema, Xr as resolveBenefits, Xs as MeteredPriceDef, Xt as EMAIL_PAYLOAD_SCHEMAS, Y as WebhookEndpointListSchema, Ya as AccountsRefreshResult, Yi as InvoiceWaiveInput, Yn as OverageRateInput, Yo as CreditGrantInput, Yr as isLiveSubscriptionStatus, Ys as MeteredPrice, Yt as EMAIL_LOCALES, Z as WebhookEndpointRotateInputSchema, Za as Catalog, Zi as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Zn as consumptionOf, Zo as DEFAULT_METER_LOW_AT, Zr as resolveEntitlements, Zs as MeteredPriceDefSchema, Zt as EMAIL_TEMPLATES, _ as DoctorEventsSchema, _a as SubscriptionChangeInputSchema, _c as ExternalRefSchema, _i as HEADER_ACTOR_REF, _n as PriceChangeNoticeEmail, _o as PriceDefSchema, _r as EventMetadata, _s as MeterChargeSchema, _t as DEFAULT_PAYMENT_DUE_DAYS, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, aa as CancelSubscriptionInputSchema, ac as Currency, ai as AccountUpsertResponse, an as EmailSettingsPatchSchema, ao as FeatureDef, ar as rateOverage, as as METER_FILTER_MAX_DEPTH, at as webhookEndpointUrlProblem, b as DoctorHostedSchema, ba as PortalSession, bc as IdSchema, bi as HEADER_REQUEST_ID, bn as PriceChangeNoticeMeteredRateSchema, bo as AccountBenefitSchema, br as EventMetadataValue, bs as MeterCreditEntry, bt as EventsSettings, c as DoctorBillingSchema, ca as GrantCreateInputSchema, cc as ERROR_CATEGORIES, ci as CancelSubscriptionResponseSchema, cn as EmailTemplateSchema, co as MAX_CATALOG_BENEFITS, cr as EVENTS_INGEST_MAX_BYTES, cs as METER_STANDINGS, ct as BillingSettingsSchema, d as DoctorEmails, da as Payment, dc as Entitlements, di as CheckoutSessionResponse, dn as InvoicePaymentDueEmail, do as MAX_PLAN_BENEFITS, dr as EVENT_METADATA_MAX_PAIRS, ds as MeterAggregationSchema, dt as BrandingSchema, ea as ManualInvoiceLineInput, ec as meterFilterClauseOf, ei as ErrorCodeSpec, en as EmailLocale, eo as CatalogSchema, er as meterChargeTotals, es as MAX_METER_UNITS, et as WebhookEndpointStatusSchema, f as DoctorEmailsSchema, fa as PaymentSchema, fc as EntitlementsSchema, fi as CheckoutSessionResponseSchema, fn as InvoicePaymentDueEmailSchema, fo as METERED_PRICE_TAX_MISMATCH, fr as EVENT_METADATA_STRING_MAX_LENGTH, fs as MeterCharge, ft as DEFAULT_CHECKOUT_TTL_MINUTES, g as DoctorEvents, ga as SubscriptionChangeInput, gc as ErrorResponseSchema, gi as GrantCreateResponseSchema, gn as NotificationEmailsSchema, go as PriceDef, gr as EventExternalIdSchema, gs as MeterChargeListSchema, gt as DEFAULT_MIN_INVOICE_MINOR, h as DoctorEndpointSchema, ha as Subscription, hc as ErrorResponse, hi as GrantCreateResponse, hn as NoticedMeteredRateSchema, ho as Price, hr as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, hs as MeterChargeList, ht as DEFAULT_METER_CHARGE_MODE, i as DOCTOR_REQUIRED_LEGAL_LINKS, ia as CancelSubscriptionInput, ic as CodeSchema, ii as AccountDetailSchema, in as EmailSettingsPatch, io as CatalogSyncResultSchema, ir as periodBoundsOf, is as METER_FILTER_MAX_CONDITIONS, it as generateWebhookSecret, j as DoctorUnsellablePrice, ja as CheckoutRedirectTarget, ji as MeResponseSchema, jn as PlanSetInput, jo as CatalogBenefitSchema, jr as IngestRejectCodeSchema, js as MeterFilterCondition, jt as ProductSettings, k as DoctorSeverity, ka as CheckoutPrefill, ki as ManualInvoiceResponseSchema, kn as uniqueEmails, ko as BenefitTypeSchema, kr as IngestEventSchema, ks as MeterFilter, kt as MeteringSettingsSchema, l as DoctorCatalog, la as GrantSchema, lc as EntitlementValue, li as ChangeSubscriptionResponse, ln as EmailTemplateSettings, lo as MAX_CATALOG_METERED_PRICES, lr as EVENTS_INGEST_MAX_EVENTS, ls as MeterAggregation, lt as Branding, m as DoctorEndpointDiagnosis, ma as StatsSchema, mc as ErrorCategorySchema, mi as CreditGrantResponseSchema, mn as NoticedMeteredRate, mo as PlanDefSchema, mr as EVENT_TIMESTAMP_MAX_AGE_DAYS, ms as MeterChargeLineSchema, mt as DEFAULT_LATE_GRACE_MINUTES, n as DOCTOR_PROVIDER_ENVIRONMENTS, na as manualInvoiceTotals, nc as ActorRefSchema, ni as isKnownErrorCode, nn as EmailSenderSchema, no as CatalogSyncInputSchema, nr as overageCapReached, ns as METER_CHARGE_STATUSES, nt as WebhookLastDeliverySchema, o as DOCTOR_SEVERITIES, oa as Grant, oc as CurrencySchema, oi as AccountUpsertResponseSchema, on as EmailSettingsSchema, oo as FeatureDefSchema, or as rolloverOf, os as METER_FILTER_OPERATORS, ot as BillingSettings, p as DoctorEndpoint, pa as Stats, pc as ErrorCategory, pi as CreditGrantResponse, pn as MAX_NOTIFICATION_EMAILS, po as PlanDef, pr as EVENT_NAME_MAX_LENGTH, ps as MeterChargeLine, pt as DEFAULT_EVENT_RETENTION_DAYS, q as WebhookEndpointCreateInputSchema, qa as ProviderPayloadSchema, qi as InvoiceVoidInput, qn as MeterRulesEvent, qo as CatalogMeter, qr as ResolvedEntitlements, qs as MeterStandingSchema, qt as BILLING_PATH_PLACEHOLDERS, r as DOCTOR_REQUIRED_BRANDING, ra as splitInclusiveTax, rc as AmountMinorSchema, ri as AccountDetail, rn as EmailSettings, ro as CatalogSyncResult, rr as overageOf, rs as METER_CREDIT_ENTRY_KINDS, rt as WebhookSecretSchema, s as DoctorBilling, sa as GrantCreateInput, sc as DateTimeSchema, si as CancelSubscriptionResponse, sn as EmailTemplate, so as FeatureTypeSchema, sr as standingOf, ss as METER_PERIOD_STATUSES, st as BillingSettingsPatchSchema, t as DOCTOR_PENDING_BACKLOG_MS, ta as ManualInvoiceLineInputSchema, tc as API_VERSION, ti as errorCodeSpec, tn as EmailRelevanceFacts, to as CatalogSyncInput, tr as meterCreditsOf, ts as METER_AGGREGATION_KINDS, tt as WebhookLastDelivery, u as DoctorCatalogSchema, ua as MAX_GRANT_BENEFITS, uc as EntitlementValueSchema, ui as ChangeSubscriptionResponseSchema, un as EmailTemplateSettingsSchema, uo as MAX_CATALOG_METERS, ur as EVENT_METADATA_KEY_MAX_LENGTH, us as MeterAggregationKind, ut as BrandingPatchSchema, v as DoctorFacts, va as SubscriptionSchema, vc as INVOICE_BILLING_REASONS, vi as HEADER_API_VERSION, vn as PriceChangeNoticeEmailSchema, vo as PriceSchema, vr as EventMetadataKeySchema, vs as MeterChargeStatus, vt as DEFAULT_PORTAL_TTL_MINUTES, w as DoctorProviderSchema, wa as PortalSessionSchema, wc as InvoiceBillingReasonSchema, wi as InvoiceVoidResponse, wn as emailRecipients, wo as BenefitDescription, wr as EventsIngestInputSchema, ws as MeterCreditProperties, wt as METER_CHARGE_MODES, x as DoctorOverage, xa as PortalSessionCreateInput, xc as Interval, xi as HEADER_SDK, xn as applyEmailSettingsPatch, xo as BENEFIT_TYPES, xr as EventMetadataValueSchema, xs as MeterCreditEntryKind, xt as EventsSettingsPatchSchema, y as DoctorHosted, ya as PORTAL_SESSION_ERRORS, yc as INVOICE_PAYMENT_STATUSES, yi as HEADER_IDEMPOTENCY_KEY, yn as PriceChangeNoticeMeteredRate, yo as AccountBenefit, yr as EventMetadataSchema, ys as MeterChargeStatusSchema, yt as EventRetentionDaysSchema, z as endpointDiagnosisOf, za as CheckoutSessionSchema, zi as InvoiceLine, zn as PlanSetWarningSchema, zo as MeterCreditBenefitDefSchema, zr as EntitlementRulesGrant, zs as MeterLowAtSchema, zt as TtlMinutesSchema } from "./_chunks/index.js";
1
+ import { $ as WebhookEndpointStatus, $a as Consent, $i as InvoiceStatusSchema, $n as MeterCreditsOptions, $o as MeterCreditBenefitDefSchema, $r as ResolvedBenefits, $s as MeterLowAtSchema, $t as BankTransferInstructionsEmail, A as DoctorSeveritySchema, Aa as PortalSessionError, Ac as ErrorResponseSchema, Ai as InvoiceIssueResponseSchema, An as emailLocaleOf, Ao as PriceDef, Ar as EventsIngestInput, As as MeterChargeListSchema, At as MeterChargeMode, B as hostedReadinessOf, Ba as CheckoutPrefill, Bc as InvoicePaymentStatusSchema, Bi as StewardCapability, Bn as PlanSetMode, Bo as BenefitFeatureType, Br as IngestRejectionSchema, Bs as MeterDef, Bt as ReturnOriginSchema, C as DoctorProvider, Ca as SubscriptionChangeInput, Cc as EntitlementValue, Ci as GrantCreateResponseSchema, Cn as NotificationEmailsSchema, Co as MAX_CATALOG_METERED_PRICES, Cr as EventExternalIdSchema, Cs as MeterAggregation, Ct as DEFAULT_PORTAL_TTL_MINUTES, D as DoctorSettings, Da as PortalSession, Dc as ErrorCategory, Di as HEADER_REQUEST_ID, Dn as PriceChangeNoticeMeteredRateSchema, Do as PlanDef, Dr as EventMetadataValue, Ds as MeterChargeLine, Dt as EventsSettingsSchema, E as DoctorReportSchema, Ea as PORTAL_SESSION_ERRORS, Ec as EntitlementsSchema, Ei as HEADER_IDEMPOTENCY_KEY, En as PriceChangeNoticeMeteredRate, Eo as METERED_PRICE_TAX_MISMATCH, Er as EventMetadataSchema, Es as MeterCharge, Et as EventsSettingsPatchSchema, F as DoctorWarningCode, Fa as BankTransferRecordedSchema, Fc as Interval, Fi as ManualInvoiceResponse, Fn as liveSubscriptionOf, Fo as BENEFIT_TYPES, Fr as IngestEvent, Fs as MeterCreditEntryKind, Ft as PaymentDueDaysSchema, G as WebhookEndpoint, Ga as CheckoutSessionCreateInput, Gi as InvoiceIssueInputSchema, Gn as PlanSetWarningCode, Go as CatalogBenefitSchema, Gr as EntitlementRulesCatalog, Gs as MeterFilterCondition, Gt as WebUrlSchema, H as EventTypeSchema, Ha as CheckoutRedirectTarget, Hi as UncancelSubscriptionResponseSchema, Hn as PlanSetResponse, Ho as BenefitType, Hr as isEventTimestampInRange, Hs as MeterDefSchema, Ht as SettingsLocale, I as DoctorWarningSchema, Ia as CHECKOUT_ERRORS, Ic as IntervalSchema, Ii as ManualInvoiceResponseSchema, In as uniqueEmails, Io as BenefitDef, Ir as IngestEventSchema, Is as MeterCreditEntryKindSchema, It as ProductSettings, J as WebhookEndpointList, Ja as CheckoutSessionCreated, Ji as InvoicePaymentSession, Jn as ResyncResultSchema, Jo as FeatureFlagBenefitDefSchema, Jr as LIVE_SUBSCRIPTION_STATUSES, Js as MeterFilterOperator, Jt as eventsSettingsOf, K as WebhookEndpointCreateInput, Ka as CheckoutSessionCreateInputSchema, Ki as InvoiceLine, Kn as PlanSetWarningSchema, Ko as FeatureFlagAccountBenefit, Kr as EntitlementRulesGrant, Ks as MeterFilterGroup, Kt as applySettingsPatch, L as buildDoctorReport, La as CheckoutConsentInput, Lc as InvoiceBillingReason, Li as MeResponse, Ln as PLAN_SET_MODES, Lo as BenefitDefSchema, Lr as IngestRejectCode, Ls as MeterCreditEntrySchema, Lt as ProductSettingsPatch, M as DoctorUnsellablePriceSchema, Ma as BankTransferRecordInput, Mc as INVOICE_BILLING_REASONS, Mi as InvoiceVoidResponseSchema, Mn as emailTemplateOf, Mo as PriceSchema, Mr as EventsIngestResult, Ms as MeterChargeStatus, Mt as MeteringSettings, N as DoctorUnsellableReason, Na as BankTransferRecordInputSchema, Nc as INVOICE_PAYMENT_STATUSES, Ni as InvoiceWaiveResponse, Nn as emailTemplateSettings, No as AccountBenefit, Nr as EventsIngestResultSchema, Ns as MeterChargeStatusSchema, Nt as MeteringSettingsPatchSchema, O as DoctorSettingsSchema, Oa as PortalSessionCreateInput, Oc as ErrorCategorySchema, Oi as HEADER_SDK, On as applyEmailSettingsPatch, Oo as PlanDefSchema, Or as EventMetadataValueSchema, Os as MeterChargeLineSchema, Ot as LateGraceMinutesSchema, P as DoctorWarning, Pa as BankTransferRecorded, Pc as IdSchema, Pi as InvoiceWaiveResponseSchema, Pn as isEmailRelevant, Po as AccountBenefitSchema, Pr as INGEST_REJECT_CODES, Ps as MeterCreditEntry, Pt as MeteringSettingsSchema, Q as WebhookEndpointSchema, Qa as CheckoutStatusSchema, Qi as InvoiceSchema, Qn as MeterCreditBenefit, Qo as MeterCreditBenefitDef, Qr as ResolvedBenefit, Qs as MeterLabelSchema, Qt as BILLING_PATH_PLACEHOLDERS, R as emailReadinessOf, Ra as CheckoutConsentInputSchema, Rc as InvoiceBillingReasonSchema, Ri as MeResponseSchema, Rn as PlanSetInput, Ro as BenefitDescription, Rr as IngestRejectCodeSchema, Rs as MeterCreditProperties, Rt as ProductSettingsPatchSchema, S as DoctorOverageSchema, Sa as Subscription, Sc as ERROR_CATEGORIES, Si as GrantCreateResponse, Sn as NoticedMeteredRateSchema, So as MAX_CATALOG_BENEFITS, Sr as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, Ss as METER_STANDINGS, St as DEFAULT_PAYMENT_DUE_DAYS, T as DoctorReport, Ta as SubscriptionSchema, Tc as Entitlements, Ti as HEADER_API_VERSION, Tn as PriceChangeNoticeEmailSchema, To as MAX_PLAN_BENEFITS, Tr as EventMetadataKeySchema, Ts as MeterAggregationSchema, Tt as EventsSettings, U as WEBHOOK_ENDPOINT_STATUSES, Ua as CheckoutReturnStatus, Ui as Invoice, Un as PlanSetResponseSchema, Uo as BenefitTypeSchema, Ur as BenefitRulesDefinition, Us as MeterFilter, Ut as SettingsLocaleSchema, V as DEFAULT_ENDPOINT_EVENT_TYPES, Va as CheckoutPrefillSchema, Vc as MetadataSchema, Vi as UncancelSubscriptionResponse, Vn as PlanSetModeSchema, Vo as BenefitSourceSchema, Vr as hasControlCharacters, Vs as MeterDefInput, Vt as SETTINGS_LOCALES, W as WEBHOOK_SECRET_PREFIX, Wa as CheckoutSession, Wi as InvoiceIssueInput, Wn as PlanSetWarning, Wo as CatalogBenefit, Wr as BenefitRulesSubscription, Ws as MeterFilterClause, Wt as TtlMinutesSchema, X as WebhookEndpointRotateInput, Xa as CheckoutSessionSchema, Xi as InvoicePaymentSessionCreateInputSchema, Xn as MeterChargeTotalsLine, Xo as FeatureFlagPropertiesSchema, Xr as ResolveBenefitsInput, Xs as MeterFilterValue, Xt as meteringSettingsOf, Y as WebhookEndpointListSchema, Ya as CheckoutSessionCreatedSchema, Yi as InvoicePaymentSessionCreateInput, Yn as GrantedMeterCredit, Yo as FeatureFlagProperties, Yr as OVERRIDE_BENEFIT_SOURCE, Ys as MeterFilterSchema, Yt as isReturnUrlAllowed, Z as WebhookEndpointRotateInputSchema, Za as CheckoutStatus, Zi as InvoicePaymentSessionSchema, Zn as MeterContribution, Zo as MeterCreditAccountBenefit, Zr as ResolveEntitlementsInput, Zs as MeterLabel, Zt as returnOriginsOf, _ as DoctorEventsSchema, _a as MAX_GRANT_BENEFITS, _c as AmountMinorSchema, _i as ChangeSubscriptionResponseSchema, _n as EmailTemplateSettingsSchema, _o as CatalogSyncResult, _r as EVENT_METADATA_KEY_MAX_LENGTH, _s as METER_CREDIT_ENTRY_KINDS, _t as DEFAULT_CHECKOUT_TTL_MINUTES, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, aa as ManualInvoiceInput, ac as MeterPeriodStatusSchema, ai as ERROR_CODES, an as EMAIL_TEMPLATE_BY_EVENT, ao as PaymentMethodSchema, ar as contributionOf, as as AccountMeters, at as webhookEndpointUrlProblem, b as DoctorHostedSchema, ba as Stats, bc as CurrencySchema, bi as CreditGrantResponse, bn as MAX_NOTIFICATION_EMAILS, bo as FeatureDefSchema, br as EVENT_NAME_MAX_LENGTH, bs as METER_FILTER_OPERATORS, bt as DEFAULT_METER_CHARGE_MODE, c as DoctorBillingSchema, ca as ManualInvoiceLineInputSchema, cc as MeterUnitsSchema, ci as errorCodeSpec, cn as EmailRelevanceFacts, co as checkoutRedirectUrl, cr as meterCreditsOf, cs as CatalogMeterSchema, ct as BankTransferSettingsPatchSchema, d as DoctorEmails, da as CancelSubscriptionInput, dc as MeteredPriceDefSchema, di as AccountDetailSchema, dn as EmailSettingsPatch, do as Catalog, dr as periodBoundsOf, ds as DEFAULT_METER_LOW_AT, dt as BillingSettingsPatchSchema, ea as InvoiceVoidInput, ec as MeterPeriod, ei as ResolvedEntitlements, en as BankTransferInstructionsEmailSchema, eo as ConsentSchema, er as MeterRulesEvent, es as featureValueMatchesType, et as WebhookEndpointStatusSchema, f as DoctorEmailsSchema, fa as CancelSubscriptionInputSchema, fc as MeteredPriceSchema, fi as AccountUpsertResponse, fn as EmailSettingsPatchSchema, fo as CatalogPlan, fr as rateOverage, fs as DecimalUnitsStringSchema, ft as BillingSettingsSchema, g as DoctorEvents, ga as GrantSchema, gc as ActorRefSchema, gi as ChangeSubscriptionResponse, gn as EmailTemplateSettings, go as CatalogSyncInputSchema, gr as EVENTS_INGEST_MAX_EVENTS, gs as METER_CHARGE_STATUSES, gt as DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, h as DoctorEndpointSchema, ha as GrantCreateInputSchema, hc as API_VERSION, hi as CancelSubscriptionResponseSchema, hn as EmailTemplateSchema, ho as CatalogSyncInput, hr as EVENTS_INGEST_MAX_BYTES, hs as METER_AGGREGATION_KINDS, ht as BrandingSchema, i as DOCTOR_REQUIRED_LEGAL_LINKS, ia as MANUAL_INVOICE_MAX_AMOUNT_MINOR, ic as MeterPeriodStatus, ii as resolveEntitlements, in as EMAIL_TEMPLATES, io as PaymentMethod, ir as consumptionOf, is as AccountMeterSchema, it as generateWebhookSecret, j as DoctorUnsellablePrice, ja as PortalSessionSchema, jc as ExternalRefSchema, ji as InvoiceVoidResponse, jn as emailRecipients, jo as PriceDefSchema, jr as EventsIngestInputSchema, js as MeterChargeSchema, jt as MeterChargeModeSchema, k as DoctorSeverity, ka as PortalSessionCreateInputSchema, kc as ErrorResponse, ki as InvoiceIssueResponse, kn as billingPageUrl, ko as Price, kr as EventNameSchema, ks as MeterChargeList, kt as METER_CHARGE_MODES, l as DoctorCatalog, la as manualInvoiceTotals, lc as MeteredPrice, li as isKnownErrorCode, ln as EmailSenderSchema, lo as AccountsRefreshResult, lr as overageCapReached, ls as CreditGrantInput, lt as BankTransferSettingsSchema, m as DoctorEndpointDiagnosis, ma as GrantCreateInput, mc as meterFilterClauseOf, mi as CancelSubscriptionResponse, mn as EmailTemplate, mo as CatalogSchema, mr as standingOf, ms as MAX_METER_UNITS, mt as BrandingPatchSchema, n as DOCTOR_PROVIDER_ENVIRONMENTS, na as InvoiceWaiveInput, nc as MeterPeriodListSchema, ni as isLiveSubscriptionStatus, nn as EMAIL_LOCALES, no as MAX_CHECKOUT_CONSENT_DOCS, nr as OverageRateInput, ns as isMeterCreditBenefit, nt as WebhookLastDeliverySchema, o as DOCTOR_SEVERITIES, oa as ManualInvoiceInputSchema, oc as MeterStanding, oi as ErrorCode, on as EmailExtraTextSchema, oo as ProviderPayload, or as matchesFilter, os as AccountMetersSchema, ot as BankTransferPaymentDaysSchema, p as DoctorEndpoint, pa as Grant, pc as canonicalMeterFilter, pi as AccountUpsertResponseSchema, pn as EmailSettingsSchema, po as CatalogPlanSchema, pr as rolloverOf, ps as MAX_METERED_PRICE_PER_UNITS, pt as Branding, q as WebhookEndpointCreateInputSchema, qa as CheckoutSessionCreateParsed, qi as InvoiceLineSchema, qn as ResyncResult, qo as FeatureFlagBenefitDef, qr as FEATURE_FLAG_BENEFIT_TYPE, qs as MeterFilterOperand, qt as billingSettingsOf, r as DOCTOR_REQUIRED_BRANDING, ra as InvoiceWaiveInputSchema, rc as MeterPeriodSchema, ri as resolveBenefits, rn as EMAIL_PAYLOAD_SCHEMAS, ro as PAYMENT_METHODS, rr as addUtcMonths, rs as AccountMeter, rt as WebhookSecretSchema, s as DoctorBilling, sa as ManualInvoiceLineInput, sc as MeterStandingSchema, si as ErrorCodeSpec, sn as EmailLocale, so as ProviderPayloadSchema, sr as meterChargeTotals, ss as CatalogMeter, st as BankTransferSettings, t as DOCTOR_PENDING_BACKLOG_MS, ta as InvoiceVoidInputSchema, tc as MeterPeriodList, ti as isGrantActive, tn as BillingPathSchema, to as INDIVIDUAL_IDENTITY_PLACEHOLDER, tr as MeterRulesMeter, ts as isFeatureFlagBenefit, tt as WebhookLastDelivery, u as DoctorCatalogSchema, ua as splitInclusiveTax, uc as MeteredPriceDef, ui as AccountDetail, un as EmailSettings, uo as AccountsRefreshResultSchema, ur as overageOf, us as CreditGrantInputSchema, ut as BillingSettings, v as DoctorFacts, va as Payment, vc as CodeSchema, vi as CheckoutSessionResponse, vn as InvoicePaymentDueEmail, vo as CatalogSyncResultSchema, vr as EVENT_METADATA_MAX_PAIRS, vs as METER_FILTER_MAX_CONDITIONS, vt as DEFAULT_EVENT_RETENTION_DAYS, w as DoctorProviderSchema, wa as SubscriptionChangeInputSchema, wc as EntitlementValueSchema, wi as HEADER_ACTOR_REF, wn as PriceChangeNoticeEmail, wo as MAX_CATALOG_METERS, wr as EventMetadata, ws as MeterAggregationKind, wt as EventRetentionDaysSchema, x as DoctorOverage, xa as StatsSchema, xc as DateTimeSchema, xi as CreditGrantResponseSchema, xn as NoticedMeteredRate, xo as FeatureTypeSchema, xr as EVENT_TIMESTAMP_MAX_AGE_DAYS, xs as METER_PERIOD_STATUSES, xt as DEFAULT_MIN_INVOICE_MINOR, y as DoctorHosted, ya as PaymentSchema, yc as Currency, yi as CheckoutSessionResponseSchema, yn as InvoicePaymentDueEmailSchema, yo as FeatureDef, yr as EVENT_METADATA_STRING_MAX_LENGTH, ys as METER_FILTER_MAX_DEPTH, yt as DEFAULT_LATE_GRACE_MINUTES, z as endpointDiagnosisOf, za as CheckoutError, zc as InvoicePaymentStatus, zi as STEWARD_CAPABILITIES, zn as PlanSetInputSchema, zo as BenefitDescriptionSchema, zr as IngestRejection, zs as MeterCreditPropertiesSchema, zt as ProductSettingsSchema } from "./_chunks/index.js";
2
2
  import { $ as EntitlementSnapshot, A as AccountMeterState, B as AccountScheduledChange, C as Account, D as AccountDunningStateSchema, E as AccountDunningState, F as AccountOpenCheckoutSchema, G as AccountSubscriptionState, H as AccountSchema, I as AccountOpenInvoice, J as AccountUpsertInputSchema, K as AccountSubscriptionStateSchema, L as AccountOpenInvoiceSchema, M as AccountMetersState, N as AccountMetersStateSchema, O as AccountInclude, P as AccountOpenCheckout, Q as BillingProfileSchema, R as AccountProfileState, S as AccessStateSchema, T as AccountDeleteResponseSchema, U as AccountState, V as AccountScheduledChangeSchema, W as AccountStateSchema, X as BillingProfileInput, Y as BillingProfile, Z as BillingProfileKindSchema, _ as Ping, a as BillingEvent, b as ACCOUNT_INCLUDES, c as EVENT_DETAIL_SCHEMAS, d as EventIdSchema, et as EntitlementSnapshotSchema, f as EventType, g as PING_EVENT_TYPE, h as LegacyEventType, i as ApiVersionSchema, it as SubscriptionSummarySchema, j as AccountMeterStateSchema, k as AccountLocaleSchema, l as EVENT_TYPES, m as LEGACY_EVENT_TYPES, n as AnyBillingEvent, nt as SubscriptionStatusSchema, o as BillingEventOf, p as FULL_STATE_EVENT_TYPES, q as AccountUpsertInput, r as AnyBillingEventSchema, rt as SubscriptionSummary, s as BillingEventSchema, t as AccountStateChangeCause, tt as SubscriptionStatus, u as EventDetail, v as PingSchema, w as AccountDeleteResponse, x as AccessState, y as isEventType, z as AccountProfileStateSchema } from "./_chunks/events.js";
3
3
  import { a as MICRO_UNITS_PER_UNIT, c as isMicroPrecise, d as plainDecimalOf, f as toMicroUnits, i as InvalidUnitValueError, l as microToDecimalString, n as isValidTckn, o as UNIT_DECIMALS, r as isValidVkn, s as fromMicroUnits, t as isE164, u as parseMicroUnits } from "./_chunks/validators.js";
4
- export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountBenefit, AccountBenefitSchema, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountMeter, AccountMeterSchema, AccountMeterState, AccountMeterStateSchema, AccountMeters, AccountMetersSchema, AccountMetersState, AccountMetersStateSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountOpenInvoice, AccountOpenInvoiceSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BenefitDef, BenefitDefSchema, BenefitDescription, BenefitDescriptionSchema, BenefitFeatureType, BenefitRulesDefinition, BenefitRulesSubscription, BenefitSourceSchema, BenefitType, BenefitTypeSchema, BillingEvent, BillingEventOf, BillingEventSchema, BillingPathSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileSchema, BillingSettings, BillingSettingsPatchSchema, BillingSettingsSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogBenefit, CatalogBenefitSchema, CatalogMeter, CatalogMeterSchema, CatalogPlan, CatalogPlanSchema, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, ChangeSubscriptionResponse, ChangeSubscriptionResponseSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, CreditGrantInput, CreditGrantInputSchema, CreditGrantResponse, CreditGrantResponseSchema, Currency, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBilling, DoctorBillingSchema, DoctorCatalog, DoctorCatalogSchema, DoctorEmails, DoctorEmailsSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorEvents, DoctorEventsSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorOverage, DoctorOverageSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, 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, EventExternalIdSchema, EventIdSchema, EventMetadata, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValue, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventType, EventTypeSchema, EventsIngestInput, EventsIngestInputSchema, EventsIngestResult, EventsIngestResultSchema, EventsSettings, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDef, FeatureDefSchema, FeatureFlagAccountBenefit, FeatureFlagBenefitDef, FeatureFlagBenefitDefSchema, FeatureFlagProperties, FeatureFlagPropertiesSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, GrantedMeterCredit, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEvent, IngestEventSchema, IngestRejectCode, IngestRejectCodeSchema, IngestRejection, IngestRejectionSchema, Interval, IntervalSchema, InvalidUnitValueError, Invoice, InvoiceBillingReason, InvoiceBillingReasonSchema, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoicePaymentDueEmail, InvoicePaymentDueEmailSchema, InvoicePaymentSession, InvoicePaymentSessionCreateInput, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatus, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, InvoiceWaiveInput, InvoiceWaiveInputSchema, InvoiceWaiveResponse, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MeResponse, MeResponseSchema, MetadataSchema, MeterAggregation, MeterAggregationKind, MeterAggregationSchema, MeterCharge, MeterChargeLine, MeterChargeLineSchema, MeterChargeList, MeterChargeListSchema, MeterChargeMode, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatus, MeterChargeStatusSchema, MeterChargeTotalsLine, MeterContribution, MeterCreditAccountBenefit, MeterCreditBenefit, MeterCreditBenefitDef, MeterCreditBenefitDefSchema, MeterCreditEntry, MeterCreditEntryKind, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditProperties, MeterCreditPropertiesSchema, MeterCreditsOptions, MeterDef, MeterDefInput, MeterDefSchema, MeterFilter, MeterFilterClause, MeterFilterCondition, MeterFilterGroup, MeterFilterOperand, MeterFilterOperator, MeterFilterSchema, MeterFilterValue, MeterLabel, MeterLabelSchema, MeterLowAtSchema, MeterPeriod, MeterPeriodList, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatus, MeterPeriodStatusSchema, MeterRulesEvent, MeterRulesMeter, MeterStanding, MeterStandingSchema, MeterUnitsSchema, MeteredPrice, MeteredPriceDef, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettings, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRate, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, OverageRateInput, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentDueDaysSchema, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceChangeNoticeEmail, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRate, PriceChangeNoticeMeteredRateSchema, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveBenefitsInput, ResolveEntitlementsInput, ResolvedBenefit, ResolvedBenefits, ResolvedEntitlements, ResyncResult, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, StewardCapability, Subscription, SubscriptionChangeInput, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponse, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
4
+ export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountBenefit, AccountBenefitSchema, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountMeter, AccountMeterSchema, AccountMeterState, AccountMeterStateSchema, AccountMeters, AccountMetersSchema, AccountMetersState, AccountMetersStateSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountOpenInvoice, AccountOpenInvoiceSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BankTransferInstructionsEmail, BankTransferInstructionsEmailSchema, BankTransferPaymentDaysSchema, BankTransferRecordInput, BankTransferRecordInputSchema, BankTransferRecorded, BankTransferRecordedSchema, BankTransferSettings, BankTransferSettingsPatchSchema, BankTransferSettingsSchema, BenefitDef, BenefitDefSchema, BenefitDescription, BenefitDescriptionSchema, BenefitFeatureType, BenefitRulesDefinition, BenefitRulesSubscription, BenefitSourceSchema, BenefitType, BenefitTypeSchema, BillingEvent, BillingEventOf, BillingEventSchema, BillingPathSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileSchema, BillingSettings, BillingSettingsPatchSchema, BillingSettingsSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogBenefit, CatalogBenefitSchema, CatalogMeter, CatalogMeterSchema, CatalogPlan, CatalogPlanSchema, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, ChangeSubscriptionResponse, ChangeSubscriptionResponseSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, CreditGrantInput, CreditGrantInputSchema, CreditGrantResponse, CreditGrantResponseSchema, Currency, CurrencySchema, DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBilling, DoctorBillingSchema, DoctorCatalog, DoctorCatalogSchema, DoctorEmails, DoctorEmailsSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorEvents, DoctorEventsSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorOverage, DoctorOverageSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, 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, EventExternalIdSchema, EventIdSchema, EventMetadata, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValue, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventType, EventTypeSchema, EventsIngestInput, EventsIngestInputSchema, EventsIngestResult, EventsIngestResultSchema, EventsSettings, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDef, FeatureDefSchema, FeatureFlagAccountBenefit, FeatureFlagBenefitDef, FeatureFlagBenefitDefSchema, FeatureFlagProperties, FeatureFlagPropertiesSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, GrantedMeterCredit, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEvent, IngestEventSchema, IngestRejectCode, IngestRejectCodeSchema, IngestRejection, IngestRejectionSchema, Interval, IntervalSchema, InvalidUnitValueError, Invoice, InvoiceBillingReason, InvoiceBillingReasonSchema, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoicePaymentDueEmail, InvoicePaymentDueEmailSchema, InvoicePaymentSession, InvoicePaymentSessionCreateInput, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatus, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, InvoiceWaiveInput, InvoiceWaiveInputSchema, InvoiceWaiveResponse, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MeResponse, MeResponseSchema, MetadataSchema, MeterAggregation, MeterAggregationKind, MeterAggregationSchema, MeterCharge, MeterChargeLine, MeterChargeLineSchema, MeterChargeList, MeterChargeListSchema, MeterChargeMode, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatus, MeterChargeStatusSchema, MeterChargeTotalsLine, MeterContribution, MeterCreditAccountBenefit, MeterCreditBenefit, MeterCreditBenefitDef, MeterCreditBenefitDefSchema, MeterCreditEntry, MeterCreditEntryKind, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditProperties, MeterCreditPropertiesSchema, MeterCreditsOptions, MeterDef, MeterDefInput, MeterDefSchema, MeterFilter, MeterFilterClause, MeterFilterCondition, MeterFilterGroup, MeterFilterOperand, MeterFilterOperator, MeterFilterSchema, MeterFilterValue, MeterLabel, MeterLabelSchema, MeterLowAtSchema, MeterPeriod, MeterPeriodList, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatus, MeterPeriodStatusSchema, MeterRulesEvent, MeterRulesMeter, MeterStanding, MeterStandingSchema, MeterUnitsSchema, MeteredPrice, MeteredPriceDef, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettings, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRate, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, OverageRateInput, PAYMENT_METHODS, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentDueDaysSchema, PaymentMethod, PaymentMethodSchema, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceChangeNoticeEmail, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRate, PriceChangeNoticeMeteredRateSchema, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveBenefitsInput, ResolveEntitlementsInput, ResolvedBenefit, ResolvedBenefits, ResolvedEntitlements, ResyncResult, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, StewardCapability, Subscription, SubscriptionChangeInput, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponse, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
package/dist/contract.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as emailRecipients, $t as canonicalMeterFilter, A as SubscriptionStatusSchema, An as isEventTimestampInRange, At as METER_FILTER_MAX_DEPTH, B as EmailSettingsPatchSchema, Bn as ErrorCategorySchema, Bt as MeterCreditEntrySchema, C as AccountSchema, Cn as EventsIngestInputSchema, Ct as DecimalUnitsStringSchema, D as BillingProfileKindSchema, Dn as IngestRejectCodeSchema, Dt as METER_CHARGE_STATUSES, E as AccountUpsertInputSchema, En as IngestEventSchema, Et as METER_AGGREGATION_KINDS, F as EMAIL_PAYLOAD_SCHEMAS, Fn as CurrencySchema, Ft as MeterChargeLineSchema, G as MAX_NOTIFICATION_EMAILS, Gn as IdSchema, Gt as MeterLowAtSchema, H as EmailTemplateSchema, Hn as ExternalRefSchema, Ht as MeterDefSchema, I as EMAIL_TEMPLATES, In as DateTimeSchema, It as MeterChargeListSchema, J as PriceChangeNoticeEmailSchema, Jn as InvoicePaymentStatusSchema, Jt as MeterPeriodStatusSchema, K as NoticedMeteredRateSchema, Kn as IntervalSchema, Kt as MeterPeriodListSchema, L as EMAIL_TEMPLATE_BY_EVENT, Ln as ERROR_CATEGORIES, Lt as MeterChargeSchema, M as BILLING_PATH_PLACEHOLDERS, Mn as ActorRefSchema, Mt as METER_PERIOD_STATUSES, N as BillingPathSchema, Nn as AmountMinorSchema, Nt as METER_STANDINGS, O as BillingProfileSchema, On as IngestRejectionSchema, Ot as METER_CREDIT_ENTRY_KINDS, P as EMAIL_LOCALES, Pn as CodeSchema, Pt as MeterAggregationSchema, Q as emailLocaleOf, Qt as MeteredPriceSchema, R as EmailExtraTextSchema, Rn as EntitlementValueSchema, Rt as MeterChargeStatusSchema, S as AccountScheduledChangeSchema, Sn as EventNameSchema, St as DEFAULT_METER_LOW_AT, T as AccountSubscriptionStateSchema, Tn as INGEST_REJECT_CODES, Tt as MAX_METER_UNITS, U as EmailTemplateSettingsSchema, Un as INVOICE_BILLING_REASONS, Ut as MeterFilterSchema, V as EmailSettingsSchema, Vn as ErrorResponseSchema, Vt as MeterCreditPropertiesSchema, W as InvoicePaymentDueEmailSchema, Wn as INVOICE_PAYMENT_STATUSES, Wt as MeterLabelSchema, X as applyEmailSettingsPatch, Xt as MeterUnitsSchema, Y as PriceChangeNoticeMeteredRateSchema, Yn as MetadataSchema, Yt as MeterStandingSchema, Z as billingPageUrl, Zt as MeteredPriceDefSchema, _ as AccountMeterStateSchema, _n as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, _t as isMeterCreditBenefit, a as EVENT_TYPES, an as isMicroPrecise, at as AccountBenefitSchema, b as AccountOpenInvoiceSchema, bn as EventMetadataSchema, bt as CatalogMeterSchema, c as LEGACY_EVENT_TYPES, cn as plainDecimalOf, ct as BenefitDescriptionSchema, d as isEventType, dn as EVENTS_INGEST_MAX_EVENTS, dt as CatalogBenefitSchema, en as meterFilterClauseOf, et as emailTemplateOf, f as ACCOUNT_INCLUDES, fn as EVENT_METADATA_KEY_MAX_LENGTH, ft as FeatureFlagBenefitDefSchema, g as AccountLocaleSchema, gn as EVENT_TIMESTAMP_MAX_AGE_DAYS, gt as isFeatureFlagBenefit, h as AccountDunningStateSchema, hn as EVENT_NAME_MAX_LENGTH, ht as featureValueMatchesType, i as EVENT_DETAIL_SCHEMAS, in as fromMicroUnits, it as uniqueEmails, j as SubscriptionSummarySchema, jn as API_VERSION, jt as METER_FILTER_OPERATORS, k as EntitlementSnapshotSchema, kn as hasControlCharacters, kt as METER_FILTER_MAX_CONDITIONS, l as PING_EVENT_TYPE, ln as toMicroUnits, lt as BenefitSourceSchema, m as AccountDeleteResponseSchema, mn as EVENT_METADATA_STRING_MAX_LENGTH, mt as MeterCreditBenefitDefSchema, n as ApiVersionSchema, nn as MICRO_UNITS_PER_UNIT, nt as isEmailRelevant, o as EventIdSchema, on as microToDecimalString, ot as BENEFIT_TYPES, p as AccessStateSchema, pn as EVENT_METADATA_MAX_PAIRS, pt as FeatureFlagPropertiesSchema, q as NotificationEmailsSchema, qn as InvoiceBillingReasonSchema, qt as MeterPeriodSchema, r as BillingEventSchema, rn as UNIT_DECIMALS, rt as liveSubscriptionOf, s as FULL_STATE_EVENT_TYPES, sn as parseMicroUnits, st as BenefitDefSchema, t as AnyBillingEventSchema, tn as InvalidUnitValueError, tt as emailTemplateSettings, u as PingSchema, un as EVENTS_INGEST_MAX_BYTES, ut as BenefitTypeSchema, v as AccountMetersStateSchema, vn as EventExternalIdSchema, vt as AccountMeterSchema, w as AccountStateSchema, wn as EventsIngestResultSchema, wt as MAX_METERED_PRICE_PER_UNITS, x as AccountProfileStateSchema, xn as EventMetadataValueSchema, xt as CreditGrantInputSchema, y as AccountOpenCheckoutSchema, yn as EventMetadataKeySchema, yt as AccountMetersSchema, z as EmailSenderSchema, zn as EntitlementsSchema, zt as MeterCreditEntryKindSchema } from "./_chunks/events.js";
2
- import { $ as rolloverOf, $t as CheckoutStatusSchema, A as WebhookEndpointRotateInputSchema, An as TtlMinutesSchema, At as InvoiceWaiveInputSchema, B as PlanSetResponseSchema, Bn as CatalogSchema, Bt as PaymentSchema, C as hostedReadinessOf, Cn as MeteringSettingsSchema, Ct as InvoiceIssueInputSchema, D as WEBHOOK_SECRET_PREFIX, Dn as ReturnOriginSchema, Dt as InvoiceSchema, E as WEBHOOK_ENDPOINT_STATUSES, En as ProductSettingsSchema, Et as InvoicePaymentSessionSchema, F as generateWebhookSecret, Fn as isReturnUrlAllowed, Ft as splitInclusiveTax, G as contributionOf, Gn as MAX_CATALOG_BENEFITS, Gt as PortalSessionCreateInputSchema, H as ResyncResultSchema, Hn as CatalogSyncResultSchema, Ht as SubscriptionChangeInputSchema, I as webhookEndpointUrlProblem, In as meteringSettingsOf, It as CancelSubscriptionInputSchema, J as meterCreditsOf, Jn as MAX_PLAN_BENEFITS, Jt as CheckoutConsentInputSchema, K as matchesFilter, Kn as MAX_CATALOG_METERED_PRICES, Kt as PortalSessionSchema, L as PLAN_SET_MODES, Ln as returnOriginsOf, Lt as GrantCreateInputSchema, M as WebhookEndpointStatusSchema, Mn as applySettingsPatch, Mt as ManualInvoiceInputSchema, N as WebhookLastDeliverySchema, Nn as billingSettingsOf, Nt as ManualInvoiceLineInputSchema, O as WebhookEndpointCreateInputSchema, On as SETTINGS_LOCALES, Ot as InvoiceStatusSchema, P as WebhookSecretSchema, Pn as eventsSettingsOf, Pt as manualInvoiceTotals, Q as rateOverage, Qn as PriceSchema, Qt as CheckoutSessionSchema, R as PlanSetInputSchema, Rn as AccountsRefreshResultSchema, Rt as GrantSchema, S as endpointDiagnosisOf, Sn as MeteringSettingsPatchSchema, St as UncancelSubscriptionResponseSchema, T as EventTypeSchema, Tn as ProductSettingsPatchSchema, Tt as InvoicePaymentSessionCreateInputSchema, U as addUtcMonths, Un as FeatureDefSchema, Ut as SubscriptionSchema, V as PlanSetWarningSchema, Vn as CatalogSyncInputSchema, Vt as StatsSchema, W as consumptionOf, Wn as FeatureTypeSchema, Wt as PORTAL_SESSION_ERRORS, X as overageOf, Xn as PlanDefSchema, Xt as CheckoutSessionCreateInputSchema, Y as overageCapReached, Yn as METERED_PRICE_TAX_MISMATCH, Yt as CheckoutPrefillSchema, Z as periodBoundsOf, Zn as PriceDefSchema, Zt as CheckoutSessionCreatedSchema, _ as DoctorSeveritySchema, _n as EventsSettingsPatchSchema, _t as InvoiceVoidResponseSchema, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, an as BillingSettingsPatchSchema, at as AccountUpsertResponseSchema, b as buildDoctorReport, bn as METER_CHARGE_MODES, bt as MeResponseSchema, c as DoctorCatalogSchema, cn as BrandingSchema, ct as CheckoutSessionResponseSchema, d as DoctorEventsSchema, dn as DEFAULT_LATE_GRACE_MINUTES, dt as HEADER_ACTOR_REF, en as ConsentSchema, et as standingOf, f as DoctorHostedSchema, fn as DEFAULT_METER_CHARGE_MODE, ft as HEADER_API_VERSION, g as DoctorSettingsSchema, gn as EventRetentionDaysSchema, gt as InvoiceIssueResponseSchema, h as DoctorReportSchema, hn as DEFAULT_PORTAL_TTL_MINUTES, ht as HEADER_SDK, i as DOCTOR_REQUIRED_LEGAL_LINKS, in as checkoutRedirectUrl, it as AccountDetailSchema, j as WebhookEndpointSchema, jn as WebUrlSchema, jt as MANUAL_INVOICE_MAX_AMOUNT_MINOR, k as WebhookEndpointListSchema, kn as SettingsLocaleSchema, kt as InvoiceVoidInputSchema, l as DoctorEmailsSchema, ln as DEFAULT_CHECKOUT_TTL_MINUTES, lt as CreditGrantResponseSchema, m as DoctorProviderSchema, mn as DEFAULT_PAYMENT_DUE_DAYS, mt as HEADER_REQUEST_ID, n as DOCTOR_PROVIDER_ENVIRONMENTS, nn as MAX_CHECKOUT_CONSENT_DOCS, nt as errorCodeSpec, o as DOCTOR_SEVERITIES, on as BillingSettingsSchema, ot as CancelSubscriptionResponseSchema, p as DoctorOverageSchema, pn as DEFAULT_MIN_INVOICE_MINOR, pt as HEADER_IDEMPOTENCY_KEY, q as meterChargeTotals, qn as MAX_CATALOG_METERS, qt as CHECKOUT_ERRORS, r as DOCTOR_REQUIRED_BRANDING, rn as ProviderPayloadSchema, rt as isKnownErrorCode, s as DoctorBillingSchema, sn as BrandingPatchSchema, st as ChangeSubscriptionResponseSchema, t as DOCTOR_PENDING_BACKLOG_MS, tn as INDIVIDUAL_IDENTITY_PLACEHOLDER, tt as ERROR_CODES, u as DoctorEndpointSchema, un as DEFAULT_EVENT_RETENTION_DAYS, ut as GrantCreateResponseSchema, v as DoctorUnsellablePriceSchema, vn as EventsSettingsSchema, vt as InvoiceWaiveResponseSchema, w as DEFAULT_ENDPOINT_EVENT_TYPES, wn as PaymentDueDaysSchema, wt as InvoiceLineSchema, x as emailReadinessOf, xn as MeterChargeModeSchema, xt as STEWARD_CAPABILITIES, y as DoctorWarningSchema, yn as LateGraceMinutesSchema, yt as ManualInvoiceResponseSchema, z as PlanSetModeSchema, zn as CatalogPlanSchema, zt as MAX_GRANT_BENEFITS } from "./_chunks/src.js";
1
+ import { $ as emailLocaleOf, $t as MeteredPriceSchema, A as SubscriptionStatusSchema, An as hasControlCharacters, At as METER_FILTER_MAX_CONDITIONS, B as EmailSenderSchema, Bn as EntitlementsSchema, Bt as MeterCreditEntryKindSchema, C as AccountSchema, Cn as EventNameSchema, Ct as DEFAULT_METER_LOW_AT, D as BillingProfileKindSchema, Dn as IngestEventSchema, Dt as METER_AGGREGATION_KINDS, E as AccountUpsertInputSchema, En as INGEST_REJECT_CODES, Et as MAX_METER_UNITS, F as EMAIL_LOCALES, Fn as CodeSchema, Ft as MeterAggregationSchema, G as InvoicePaymentDueEmailSchema, Gn as INVOICE_PAYMENT_STATUSES, Gt as MeterLabelSchema, H as EmailSettingsSchema, Hn as ErrorResponseSchema, Ht as MeterCreditPropertiesSchema, I as EMAIL_PAYLOAD_SCHEMAS, In as CurrencySchema, It as MeterChargeLineSchema, J as NotificationEmailsSchema, Jn as InvoiceBillingReasonSchema, Jt as MeterPeriodSchema, K as MAX_NOTIFICATION_EMAILS, Kn as IdSchema, Kt as MeterLowAtSchema, L as EMAIL_TEMPLATES, Ln as DateTimeSchema, Lt as MeterChargeListSchema, M as BILLING_PATH_PLACEHOLDERS, Mn as API_VERSION, Mt as METER_FILTER_OPERATORS, N as BankTransferInstructionsEmailSchema, Nn as ActorRefSchema, Nt as METER_PERIOD_STATUSES, O as BillingProfileSchema, On as IngestRejectCodeSchema, Ot as METER_CHARGE_STATUSES, P as BillingPathSchema, Pn as AmountMinorSchema, Pt as METER_STANDINGS, Q as billingPageUrl, Qt as MeteredPriceDefSchema, R as EMAIL_TEMPLATE_BY_EVENT, Rn as ERROR_CATEGORIES, Rt as MeterChargeSchema, S as AccountScheduledChangeSchema, Sn as EventMetadataValueSchema, St as CreditGrantInputSchema, T as AccountSubscriptionStateSchema, Tn as EventsIngestResultSchema, Tt as MAX_METERED_PRICE_PER_UNITS, U as EmailTemplateSchema, Un as ExternalRefSchema, Ut as MeterDefSchema, V as EmailSettingsPatchSchema, Vn as ErrorCategorySchema, Vt as MeterCreditEntrySchema, W as EmailTemplateSettingsSchema, Wn as INVOICE_BILLING_REASONS, Wt as MeterFilterSchema, X as PriceChangeNoticeMeteredRateSchema, Xn as MetadataSchema, Xt as MeterStandingSchema, Y as PriceChangeNoticeEmailSchema, Yn as InvoicePaymentStatusSchema, Yt as MeterPeriodStatusSchema, Z as applyEmailSettingsPatch, Zt as MeterUnitsSchema, _ as AccountMeterStateSchema, _n as EVENT_TIMESTAMP_MAX_AGE_DAYS, _t as isFeatureFlagBenefit, a as EVENT_TYPES, an as fromMicroUnits, at as uniqueEmails, b as AccountOpenInvoiceSchema, bn as EventMetadataKeySchema, bt as AccountMetersSchema, c as LEGACY_EVENT_TYPES, cn as parseMicroUnits, ct as BenefitDefSchema, d as isEventType, dn as EVENTS_INGEST_MAX_BYTES, dt as BenefitTypeSchema, en as canonicalMeterFilter, et as emailRecipients, f as ACCOUNT_INCLUDES, fn as EVENTS_INGEST_MAX_EVENTS, ft as CatalogBenefitSchema, g as AccountLocaleSchema, gn as EVENT_NAME_MAX_LENGTH, gt as featureValueMatchesType, h as AccountDunningStateSchema, hn as EVENT_METADATA_STRING_MAX_LENGTH, ht as MeterCreditBenefitDefSchema, i as EVENT_DETAIL_SCHEMAS, in as UNIT_DECIMALS, it as liveSubscriptionOf, j as SubscriptionSummarySchema, jn as isEventTimestampInRange, jt as METER_FILTER_MAX_DEPTH, k as EntitlementSnapshotSchema, kn as IngestRejectionSchema, kt as METER_CREDIT_ENTRY_KINDS, l as PING_EVENT_TYPE, ln as plainDecimalOf, lt as BenefitDescriptionSchema, m as AccountDeleteResponseSchema, mn as EVENT_METADATA_MAX_PAIRS, mt as FeatureFlagPropertiesSchema, n as ApiVersionSchema, nn as InvalidUnitValueError, nt as emailTemplateSettings, o as EventIdSchema, on as isMicroPrecise, ot as AccountBenefitSchema, p as AccessStateSchema, pn as EVENT_METADATA_KEY_MAX_LENGTH, pt as FeatureFlagBenefitDefSchema, q as NoticedMeteredRateSchema, qn as IntervalSchema, qt as MeterPeriodListSchema, r as BillingEventSchema, rn as MICRO_UNITS_PER_UNIT, rt as isEmailRelevant, s as FULL_STATE_EVENT_TYPES, sn as microToDecimalString, st as BENEFIT_TYPES, t as AnyBillingEventSchema, tn as meterFilterClauseOf, tt as emailTemplateOf, u as PingSchema, un as toMicroUnits, ut as BenefitSourceSchema, v as AccountMetersStateSchema, vn as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, vt as isMeterCreditBenefit, w as AccountStateSchema, wn as EventsIngestInputSchema, wt as DecimalUnitsStringSchema, x as AccountProfileStateSchema, xn as EventMetadataSchema, xt as CatalogMeterSchema, y as AccountOpenCheckoutSchema, yn as EventExternalIdSchema, yt as AccountMeterSchema, z as EmailExtraTextSchema, zn as EntitlementValueSchema, zt as MeterChargeStatusSchema } from "./_chunks/events.js";
2
+ import { $ as rolloverOf, $n as MAX_CATALOG_BENEFITS, $t as CheckoutSessionCreatedSchema, A as WebhookEndpointRotateInputSchema, An as MeteringSettingsPatchSchema, At as InvoiceWaiveInputSchema, B as PlanSetResponseSchema, Bn as applySettingsPatch, Bt as PaymentSchema, C as hostedReadinessOf, Cn as DEFAULT_PORTAL_TTL_MINUTES, Ct as InvoiceIssueInputSchema, D as WEBHOOK_SECRET_PREFIX, Dn as LateGraceMinutesSchema, Dt as InvoiceSchema, E as WEBHOOK_ENDPOINT_STATUSES, En as EventsSettingsSchema, Et as InvoicePaymentSessionSchema, F as generateWebhookSecret, Fn as ReturnOriginSchema, Ft as splitInclusiveTax, G as contributionOf, Gn as returnOriginsOf, Gt as PortalSessionCreateInputSchema, H as ResyncResultSchema, Hn as eventsSettingsOf, Ht as SubscriptionChangeInputSchema, I as webhookEndpointUrlProblem, In as SETTINGS_LOCALES, It as CancelSubscriptionInputSchema, J as meterCreditsOf, Jn as CatalogSchema, Jt as BankTransferRecordedSchema, K as matchesFilter, Kn as AccountsRefreshResultSchema, Kt as PortalSessionSchema, L as PLAN_SET_MODES, Ln as SettingsLocaleSchema, Lt as GrantCreateInputSchema, M as WebhookEndpointStatusSchema, Mn as PaymentDueDaysSchema, Mt as ManualInvoiceInputSchema, N as WebhookLastDeliverySchema, Nn as ProductSettingsPatchSchema, Nt as ManualInvoiceLineInputSchema, O as WebhookEndpointCreateInputSchema, On as METER_CHARGE_MODES, Ot as InvoiceStatusSchema, P as WebhookSecretSchema, Pn as ProductSettingsSchema, Pt as manualInvoiceTotals, Q as rateOverage, Qn as FeatureTypeSchema, Qt as CheckoutSessionCreateInputSchema, R as PlanSetInputSchema, Rn as TtlMinutesSchema, Rt as GrantSchema, S as endpointDiagnosisOf, Sn as DEFAULT_PAYMENT_DUE_DAYS, St as UncancelSubscriptionResponseSchema, T as EventTypeSchema, Tn as EventsSettingsPatchSchema, Tt as InvoicePaymentSessionCreateInputSchema, U as addUtcMonths, Un as isReturnUrlAllowed, Ut as SubscriptionSchema, V as PlanSetWarningSchema, Vn as billingSettingsOf, Vt as StatsSchema, W as consumptionOf, Wn as meteringSettingsOf, Wt as PORTAL_SESSION_ERRORS, X as overageOf, Xn as CatalogSyncResultSchema, Xt as CheckoutConsentInputSchema, Y as overageCapReached, Yn as CatalogSyncInputSchema, Yt as CHECKOUT_ERRORS, Z as periodBoundsOf, Zn as FeatureDefSchema, Zt as CheckoutPrefillSchema, _ as DoctorSeveritySchema, _n as DEFAULT_CHECKOUT_TTL_MINUTES, _t as InvoiceVoidResponseSchema, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, an as PAYMENT_METHODS, ar as PriceDefSchema, at as AccountUpsertResponseSchema, b as buildDoctorReport, bn as DEFAULT_METER_CHARGE_MODE, bt as MeResponseSchema, c as DoctorCatalogSchema, cn as checkoutRedirectUrl, ct as CheckoutSessionResponseSchema, d as DoctorEventsSchema, dn as BankTransferSettingsSchema, dt as HEADER_ACTOR_REF, en as CheckoutSessionSchema, er as MAX_CATALOG_METERED_PRICES, et as standingOf, f as DoctorHostedSchema, fn as BillingSettingsPatchSchema, ft as HEADER_API_VERSION, g as DoctorSettingsSchema, gn as DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, gt as InvoiceIssueResponseSchema, h as DoctorReportSchema, hn as BrandingSchema, ht as HEADER_SDK, i as DOCTOR_REQUIRED_LEGAL_LINKS, in as MAX_CHECKOUT_CONSENT_DOCS, ir as PlanDefSchema, it as AccountDetailSchema, j as WebhookEndpointSchema, jn as MeteringSettingsSchema, jt as MANUAL_INVOICE_MAX_AMOUNT_MINOR, k as WebhookEndpointListSchema, kn as MeterChargeModeSchema, kt as InvoiceVoidInputSchema, l as DoctorEmailsSchema, ln as BankTransferPaymentDaysSchema, lt as CreditGrantResponseSchema, m as DoctorProviderSchema, mn as BrandingPatchSchema, mt as HEADER_REQUEST_ID, n as DOCTOR_PROVIDER_ENVIRONMENTS, nn as ConsentSchema, nr as MAX_PLAN_BENEFITS, nt as errorCodeSpec, o as DOCTOR_SEVERITIES, on as PaymentMethodSchema, or as PriceSchema, ot as CancelSubscriptionResponseSchema, p as DoctorOverageSchema, pn as BillingSettingsSchema, pt as HEADER_IDEMPOTENCY_KEY, q as meterChargeTotals, qn as CatalogPlanSchema, qt as BankTransferRecordInputSchema, r as DOCTOR_REQUIRED_BRANDING, rn as INDIVIDUAL_IDENTITY_PLACEHOLDER, rr as METERED_PRICE_TAX_MISMATCH, rt as isKnownErrorCode, s as DoctorBillingSchema, sn as ProviderPayloadSchema, st as ChangeSubscriptionResponseSchema, t as DOCTOR_PENDING_BACKLOG_MS, tn as CheckoutStatusSchema, tr as MAX_CATALOG_METERS, tt as ERROR_CODES, u as DoctorEndpointSchema, un as BankTransferSettingsPatchSchema, ut as GrantCreateResponseSchema, v as DoctorUnsellablePriceSchema, vn as DEFAULT_EVENT_RETENTION_DAYS, vt as InvoiceWaiveResponseSchema, w as DEFAULT_ENDPOINT_EVENT_TYPES, wn as EventRetentionDaysSchema, wt as InvoiceLineSchema, x as emailReadinessOf, xn as DEFAULT_MIN_INVOICE_MINOR, xt as STEWARD_CAPABILITIES, y as DoctorWarningSchema, yn as DEFAULT_LATE_GRACE_MINUTES, yt as ManualInvoiceResponseSchema, z as PlanSetModeSchema, zn as WebUrlSchema, zt as MAX_GRANT_BENEFITS } from "./_chunks/src.js";
3
3
  import { a as LIVE_SUBSCRIPTION_STATUSES, c as isLiveSubscriptionStatus, i as FEATURE_FLAG_BENEFIT_TYPE, l as resolveBenefits, n as isValidTckn, o as OVERRIDE_BENEFIT_SOURCE, r as isValidVkn, s as isGrantActive, t as isE164, u as resolveEntitlements } from "./_chunks/validators.js";
4
- export { ACCOUNT_INCLUDES, API_VERSION, AccessStateSchema, AccountBenefitSchema, AccountDeleteResponseSchema, AccountDetailSchema, AccountDunningStateSchema, AccountLocaleSchema, AccountMeterSchema, AccountMeterStateSchema, AccountMetersSchema, AccountMetersStateSchema, AccountOpenCheckoutSchema, AccountOpenInvoiceSchema, AccountProfileStateSchema, AccountScheduledChangeSchema, AccountSchema, AccountStateSchema, AccountSubscriptionStateSchema, AccountUpsertInputSchema, AccountUpsertResponseSchema, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BenefitDefSchema, BenefitDescriptionSchema, BenefitSourceSchema, BenefitTypeSchema, BillingEventSchema, BillingPathSchema, BillingProfileKindSchema, BillingProfileSchema, BillingSettingsPatchSchema, BillingSettingsSchema, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInputSchema, CancelSubscriptionResponseSchema, CatalogBenefitSchema, CatalogMeterSchema, CatalogPlanSchema, CatalogSchema, CatalogSyncInputSchema, CatalogSyncResultSchema, ChangeSubscriptionResponseSchema, CheckoutConsentInputSchema, CheckoutPrefillSchema, CheckoutSessionCreateInputSchema, CheckoutSessionCreatedSchema, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatusSchema, CodeSchema, ConsentSchema, CreditGrantInputSchema, CreditGrantResponseSchema, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBillingSchema, DoctorCatalogSchema, DoctorEmailsSchema, DoctorEndpointSchema, DoctorEventsSchema, DoctorHostedSchema, DoctorOverageSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, EVENT_TYPES, EmailExtraTextSchema, EmailSenderSchema, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplateSchema, EmailTemplateSettingsSchema, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventExternalIdSchema, EventIdSchema, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventTypeSchema, EventsIngestInputSchema, EventsIngestResultSchema, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDefSchema, FeatureFlagBenefitDefSchema, FeatureFlagPropertiesSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEventSchema, IngestRejectCodeSchema, IngestRejectionSchema, IntervalSchema, InvalidUnitValueError, InvoiceBillingReasonSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoicePaymentDueEmailSchema, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, InvoiceWaiveInputSchema, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInputSchema, ManualInvoiceLineInputSchema, ManualInvoiceResponseSchema, MeResponseSchema, MetadataSchema, MeterAggregationSchema, MeterChargeLineSchema, MeterChargeListSchema, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatusSchema, MeterCreditBenefitDefSchema, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditPropertiesSchema, MeterDefSchema, MeterFilterSchema, MeterLabelSchema, MeterLowAtSchema, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatusSchema, MeterStandingSchema, MeterUnitsSchema, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, PaymentDueDaysSchema, PaymentSchema, PingSchema, PlanDefSchema, PlanSetInputSchema, PlanSetModeSchema, PlanSetResponseSchema, PlanSetWarningSchema, PortalSessionCreateInputSchema, PortalSessionSchema, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRateSchema, PriceDefSchema, PriceSchema, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayloadSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocaleSchema, StatsSchema, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
4
+ export { ACCOUNT_INCLUDES, API_VERSION, AccessStateSchema, AccountBenefitSchema, AccountDeleteResponseSchema, AccountDetailSchema, AccountDunningStateSchema, AccountLocaleSchema, AccountMeterSchema, AccountMeterStateSchema, AccountMetersSchema, AccountMetersStateSchema, AccountOpenCheckoutSchema, AccountOpenInvoiceSchema, AccountProfileStateSchema, AccountScheduledChangeSchema, AccountSchema, AccountStateSchema, AccountSubscriptionStateSchema, AccountUpsertInputSchema, AccountUpsertResponseSchema, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BankTransferInstructionsEmailSchema, BankTransferPaymentDaysSchema, BankTransferRecordInputSchema, BankTransferRecordedSchema, BankTransferSettingsPatchSchema, BankTransferSettingsSchema, BenefitDefSchema, BenefitDescriptionSchema, BenefitSourceSchema, BenefitTypeSchema, BillingEventSchema, BillingPathSchema, BillingProfileKindSchema, BillingProfileSchema, BillingSettingsPatchSchema, BillingSettingsSchema, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInputSchema, CancelSubscriptionResponseSchema, CatalogBenefitSchema, CatalogMeterSchema, CatalogPlanSchema, CatalogSchema, CatalogSyncInputSchema, CatalogSyncResultSchema, ChangeSubscriptionResponseSchema, CheckoutConsentInputSchema, CheckoutPrefillSchema, CheckoutSessionCreateInputSchema, CheckoutSessionCreatedSchema, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatusSchema, CodeSchema, ConsentSchema, CreditGrantInputSchema, CreditGrantResponseSchema, CurrencySchema, DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBillingSchema, DoctorCatalogSchema, DoctorEmailsSchema, DoctorEndpointSchema, DoctorEventsSchema, DoctorHostedSchema, DoctorOverageSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, EVENT_TYPES, EmailExtraTextSchema, EmailSenderSchema, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplateSchema, EmailTemplateSettingsSchema, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventExternalIdSchema, EventIdSchema, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventTypeSchema, EventsIngestInputSchema, EventsIngestResultSchema, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDefSchema, FeatureFlagBenefitDefSchema, FeatureFlagPropertiesSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEventSchema, IngestRejectCodeSchema, IngestRejectionSchema, IntervalSchema, InvalidUnitValueError, InvoiceBillingReasonSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoicePaymentDueEmailSchema, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, InvoiceWaiveInputSchema, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInputSchema, ManualInvoiceLineInputSchema, ManualInvoiceResponseSchema, MeResponseSchema, MetadataSchema, MeterAggregationSchema, MeterChargeLineSchema, MeterChargeListSchema, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatusSchema, MeterCreditBenefitDefSchema, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditPropertiesSchema, MeterDefSchema, MeterFilterSchema, MeterLabelSchema, MeterLowAtSchema, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatusSchema, MeterStandingSchema, MeterUnitsSchema, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, PAYMENT_METHODS, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, PaymentDueDaysSchema, PaymentMethodSchema, PaymentSchema, PingSchema, PlanDefSchema, PlanSetInputSchema, PlanSetModeSchema, PlanSetResponseSchema, PlanSetWarningSchema, PortalSessionCreateInputSchema, PortalSessionSchema, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRateSchema, PriceDefSchema, PriceSchema, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayloadSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocaleSchema, StatsSchema, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };