@stewardhq/sdk 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
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";
1
+ import { $ as WebhookEndpointRotateInput, $a as CreditAdjustmentInput, $c as MeterStandingSchema, $i as InvoicePaymentSessionCreateInputSchema, $n as MeterChargeTotalsLine, $o as ProviderPayloadSchema, $r as ResolveBenefitsInput, $s as CatalogMeter, $t as meteringSettingsOf, A as DoctorSettings, Aa as PortalSession, Ac as MeterCreditProperties, Ai as HEADER_REQUEST_ID, Al as InvoiceBillingReasonSchema, An as PriceChangeNoticeMeteredRateSchema, Ao as CheckoutConsentInputSchema, Ar as EventMetadataValue, As as BenefitDescription, At as EventsSettingsSchema, B as buildDoctorReport, Ba as ApiKeyListSchema, Bc as MeterFilterOperator, Bi as MeResponse, Bn as PLAN_SET_MODES, Bo as CheckoutSessionCreated, Br as IngestRejectCode, Bs as FeatureFlagBenefitDefSchema, Bt as ProductSettingsPatch, C as DoctorHostedSchema, Ca as Stats, Cc as MeterChargeSchema, Ci as CreditGrantResponse, Cl as ExternalRefSchema, Cn as MAX_NOTIFICATION_EMAILS, Co as generateApiKeyToken, Cr as EVENT_NAME_MAX_LENGTH, Cs as PriceDefSchema, Ct as DEFAULT_METER_CHARGE_MODE, D as DoctorProviderSchema, Da as SubscriptionChangeInputSchema, Dc as MeterCreditEntryKind, Di as HEADER_ACTOR_REF, Dl as Interval, Dn as PriceChangeNoticeEmail, Do as BankTransferRecordedSchema, Dr as EventMetadata, Ds as BENEFIT_TYPES, Dt as EventRetentionDaysSchema, E as DoctorProvider, Ea as SubscriptionChangeInput, Ec as MeterCreditEntry, Ei as GrantCreateResponseSchema, El as IdSchema, En as NotificationEmailsSchema, Eo as BankTransferRecorded, Er as EventExternalIdSchema, Es as AccountBenefitSchema, Et as DEFAULT_PORTAL_TTL_MINUTES, F as DoctorUnsellablePriceSchema, Fa as API_KEY_SCOPES, Fc as MeterFilter, Fi as InvoiceVoidResponseSchema, Fn as emailTemplateOf, Fo as CheckoutReturnStatus, Fr as EventsIngestResult, Fs as BenefitTypeSchema, Ft as MeteringSettings, G as EventTypeSchema, Ga as ApiKeyTokenSchema, Gc as MeterLowAtSchema, Gi as UncancelSubscriptionResponseSchema, Gn as PlanSetResponse, Go as Consent, Gr as isEventTimestampInRange, Gs as MeterCreditBenefitDefSchema, Gt as SettingsLocale, H as endpointDiagnosisOf, Ha as ApiKeySchema, Hc as MeterFilterValue, Hi as STEWARD_CAPABILITIES, Hn as PlanSetInputSchema, Ho as CheckoutSessionSchema, Hr as IngestRejection, Hs as FeatureFlagPropertiesSchema, Ht as ProductSettingsSchema, I as DoctorUnsellableReason, Ia as ApiKey, Ic as MeterFilterClause, Ii as InvoiceWaiveResponse, In as emailTemplateSettings, Io as CheckoutSession, Ir as EventsIngestResultSchema, Is as CatalogBenefit, It as MeteringSettingsPatchSchema, J as WebhookEndpoint, Ja as BankTransferListItem, Jc as MeterPeriodListSchema, Ji as InvoiceIssueInputSchema, Jn as PlanSetWarningCode, Jo as MAX_CHECKOUT_CONSENT_DOCS, Jr as EntitlementRulesCatalog, Js as isMeterCreditBenefit, Jt as WebUrlSchema, K as WEBHOOK_ENDPOINT_STATUSES, Ka as BANK_TRANSFER_LIST_STATUSES, Kc as MeterPeriod, Ki as Invoice, Kn as PlanSetResponseSchema, Ko as ConsentSchema, Kr as BenefitRulesDefinition, Ks as featureValueMatchesType, Kt as SettingsLocaleSchema, L as DoctorWarning, La as ApiKeyCreateInput, Lc as MeterFilterCondition, Li as InvoiceWaiveResponseSchema, Ln as isEmailRelevant, Lo as CheckoutSessionCreateInput, Lr as INGEST_REJECT_CODES, Ls as CatalogBenefitSchema, Lt as MeteringSettingsSchema, M as DoctorSeverity, Ma as PortalSessionCreateInputSchema, Mc as MeterDef, Mi as InvoiceIssueResponse, Ml as InvoicePaymentStatusSchema, Mn as billingPageUrl, Mo as CheckoutPrefill, Mr as EventNameSchema, Ms as BenefitFeatureType, Mt as METER_CHARGE_MODES, N as DoctorSeveritySchema, Na as PortalSessionError, Nc as MeterDefInput, Ni as InvoiceIssueResponseSchema, Nl as MetadataSchema, Nn as emailLocaleOf, No as CheckoutPrefillSchema, Nr as EventsIngestInput, Ns as BenefitSourceSchema, Nt as MeterChargeMode, O as DoctorReport, Oa as SubscriptionSchema, Oc as MeterCreditEntryKindSchema, Oi as HEADER_API_VERSION, Ol as IntervalSchema, On as PriceChangeNoticeEmailSchema, Oo as CHECKOUT_ERRORS, Or as EventMetadataKeySchema, Os as BenefitDef, Ot as EventsSettings, P as DoctorUnsellablePrice, Pa as PortalSessionSchema, Pc as MeterDefSchema, Pi as InvoiceVoidResponse, Pn as emailRecipients, Po as CheckoutRedirectTarget, Pr as EventsIngestInputSchema, Ps as BenefitType, Pt as MeterChargeModeSchema, Q as WebhookEndpointListSchema, Qa as BankTransferListStatusSchema, Qc as MeterStanding, Qi as InvoicePaymentSessionCreateInput, Qn as GrantedMeterCredit, Qo as ProviderPayload, Qr as OVERRIDE_BENEFIT_SOURCE, Qs as AccountMetersSchema, Qt as isReturnUrlAllowed, R as DoctorWarningCode, Ra as ApiKeyCreateInputSchema, Rc as MeterFilterGroup, Ri as ManualInvoiceResponse, Rn as liveSubscriptionOf, Ro as CheckoutSessionCreateInputSchema, Rr as IngestEvent, Rs as FeatureFlagAccountBenefit, Rt as PaymentDueDaysSchema, S as DoctorHosted, Sa as PaymentSchema, Sc as MeterChargeListSchema, Si as CheckoutSessionResponseSchema, Sl as ErrorResponseSchema, Sn as InvoicePaymentDueEmailSchema, So as RepriceResultSchema, Sr as EVENT_METADATA_STRING_MAX_LENGTH, Ss as PriceDef, St as DEFAULT_LATE_GRACE_MINUTES, T as DoctorOverageSchema, Ta as Subscription, Tc as MeterChargeStatusSchema, Ti as GrantCreateResponse, Tl as INVOICE_PAYMENT_STATUSES, Tn as NoticedMeteredRateSchema, To as BankTransferRecordInputSchema, Tr as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, Ts as AccountBenefit, Tt as DEFAULT_PAYMENT_DUE_DAYS, U as hostedReadinessOf, Ua as ApiKeyScope, Uc as MeterLabel, Ui as StewardCapability, Un as PlanSetMode, Uo as CheckoutStatus, Ur as IngestRejectionSchema, Us as MeterCreditAccountBenefit, Ut as ReturnOriginSchema, V as emailReadinessOf, Va as ApiKeyPrefixSchema, Vc as MeterFilterSchema, Vi as MeResponseSchema, Vn as PlanSetInput, Vo as CheckoutSessionCreatedSchema, Vr as IngestRejectCodeSchema, Vs as FeatureFlagProperties, Vt as ProductSettingsPatchSchema, W as DEFAULT_ENDPOINT_EVENT_TYPES, Wa as ApiKeyScopeSchema, Wc as MeterLabelSchema, Wi as UncancelSubscriptionResponse, Wn as PlanSetModeSchema, Wo as CheckoutStatusSchema, Wr as hasControlCharacters, Ws as MeterCreditBenefitDef, Wt as SETTINGS_LOCALES, X as WebhookEndpointCreateInputSchema, Xa as BankTransferListSchema, Xc as MeterPeriodStatus, Xi as InvoiceLineSchema, Xn as ResyncResult, Xo as PaymentMethod, Xr as FEATURE_FLAG_BENEFIT_TYPE, Xs as AccountMeterSchema, Xt as billingSettingsOf, Y as WebhookEndpointCreateInput, Ya as BankTransferListItemSchema, Yc as MeterPeriodSchema, Yi as InvoiceLine, Yn as PlanSetWarningSchema, Yo as PAYMENT_METHODS, Yr as EntitlementRulesGrant, Ys as AccountMeter, Yt as applySettingsPatch, Z as WebhookEndpointList, Za as BankTransferListStatus, Zc as MeterPeriodStatusSchema, Zi as InvoicePaymentSession, Zn as ResyncResultSchema, Zo as PaymentMethodSchema, Zr as LIVE_SUBSCRIPTION_STATUSES, Zs as AccountMeters, Zt as eventsSettingsOf, _ as DoctorEndpointDiagnosis, _a as GrantCreateInput, _c as MeterAggregationSchema, _i as CancelSubscriptionResponse, _l as Entitlements, _n as EmailTemplate, _o as RepriceInput, _r as standingOf, _s as MAX_PLAN_BENEFITS, _t as BrandingPatchSchema, a as DOCTOR_REQUIRED_LEGAL_LINKS, aa as InvoiceWaiveInput, ac as MAX_METERED_PRICE_PER_UNITS, ai as isLiveSubscriptionStatus, al as canonicalMeterFilter, an as EMAIL_LOCALES, ao as MAX_API_KEY_TTL_DAYS, ar as OverageRateInput, as as CatalogPlanSchema, at as WebhookLastDeliverySchema, b as DoctorEventsSchema, ba as MAX_GRANT_BENEFITS, bc as MeterChargeLineSchema, bi as ChangeSubscriptionResponseSchema, bl as ErrorCategorySchema, bn as EmailTemplateSettingsSchema, bo as RepriceItemSchema, br as EVENT_METADATA_KEY_MAX_LENGTH, bs as PlanDefSchema, bt as DEFAULT_CHECKOUT_TTL_MINUTES, c as DoctorApiKey, ca as ManualInvoiceInput, cc as METER_CHARGE_STATUSES, ci as ERROR_CODES, cl as ActorRefSchema, cn as EMAIL_TEMPLATE_BY_EVENT, co as MeterClosePeriodsInputSchema, cr as contributionOf, cs as CatalogSyncInputSchema, ct as webhookEndpointUrlProblem, d as DoctorBillingSchema, da as ManualInvoiceLineInputSchema, dc as METER_FILTER_MAX_DEPTH, di as errorCodeSpec, dl as Currency, dn as EmailRelevanceFacts, do as MeterRecomputeInput, dr as meterCreditsOf, ds as FeatureDef, dt as BankTransferSettingsPatchSchema, ea as InvoicePaymentSessionSchema, ec as CatalogMeterSchema, ei as ResolveEntitlementsInput, el as MeterUnitsSchema, en as returnOriginsOf, eo as CreditAdjustmentInputSchema, er as MeterContribution, es as checkoutRedirectUrl, et as WebhookEndpointRotateInputSchema, f as DoctorCatalog, fa as manualInvoiceTotals, fc as METER_FILTER_OPERATORS, fi as isKnownErrorCode, fl as CurrencySchema, fn as EmailSenderSchema, fo as MeterRecomputeInputSchema, fr as overageCapReached, fs as FeatureDefSchema, ft as BankTransferSettingsSchema, g as DoctorEndpoint, ga as Grant, gc as MeterAggregationKind, gi as AccountUpsertResponseSchema, gl as EntitlementValueSchema, gn as EmailSettingsSchema, go as RedeliveredEventSchema, gr as rolloverOf, gs as MAX_CATALOG_METERS, gt as Branding, h as DoctorEmailsSchema, ha as CancelSubscriptionInputSchema, hc as MeterAggregation, hi as AccountUpsertResponse, hl as EntitlementValue, hn as EmailSettingsPatchSchema, ho as RedeliveredEvent, hr as rateOverage, hs as MAX_CATALOG_METERED_PRICES, ht as BillingSettingsSchema, i as DOCTOR_REQUIRED_BRANDING, ia as InvoiceVoidInputSchema, ic as DecimalUnitsStringSchema, ii as isGrantActive, il as MeteredPriceSchema, in as BillingPathSchema, io as DunningPolicySchema, ir as MeterRulesMeter, is as CatalogPlan, it as WebhookLastDelivery, j as DoctorSettingsSchema, ja as PortalSessionCreateInput, jc as MeterCreditPropertiesSchema, ji as HEADER_SDK, jl as InvoicePaymentStatus, jn as applyEmailSettingsPatch, jo as CheckoutError, jr as EventMetadataValueSchema, js as BenefitDescriptionSchema, jt as LateGraceMinutesSchema, k as DoctorReportSchema, ka as PORTAL_SESSION_ERRORS, kc as MeterCreditEntrySchema, ki as HEADER_IDEMPOTENCY_KEY, kl as InvoiceBillingReason, kn as PriceChangeNoticeMeteredRate, ko as CheckoutConsentInput, kr as EventMetadataSchema, ks as BenefitDefSchema, kt as EventsSettingsPatchSchema, l as DoctorApiKeySchema, la as ManualInvoiceInputSchema, lc as METER_CREDIT_ENTRY_KINDS, li as ErrorCode, ll as AmountMinorSchema, ln as EmailExtraTextSchema, lo as MeterClosePeriodsResult, lr as matchesFilter, ls as CatalogSyncResult, lt as BankTransferPaymentDaysSchema, m as DoctorEmails, ma as CancelSubscriptionInput, mc as METER_STANDINGS, mi as AccountDetailSchema, ml as ERROR_CATEGORIES, mn as EmailSettingsPatch, mo as MeterRecomputeResultSchema, mr as periodBoundsOf, ms as MAX_CATALOG_BENEFITS, mt as BillingSettingsPatchSchema, n as DOCTOR_PENDING_BACKLOG_MS, na as InvoiceStatusSchema, nc as CreditGrantInputSchema, ni as ResolvedBenefits, nl as MeteredPriceDef, nn as BankTransferInstructionsEmail, no as DunningPolicy, nr as MeterCreditsOptions, ns as AccountsRefreshResultSchema, nt as WebhookEndpointStatus, o as DOCTOR_ROLLUP_LAG_WARN_SECONDS, oa as InvoiceWaiveInputSchema, oc as MAX_METER_UNITS, oi as resolveBenefits, ol as meterFilterClauseOf, on as EMAIL_PAYLOAD_SCHEMAS, oo as MAX_NOTICE_DAYS, or as addUtcMonths, os as CatalogSchema, ot as WebhookSecretSchema, p as DoctorCatalogSchema, pa as splitInclusiveTax, pc as METER_PERIOD_STATUSES, pi as AccountDetail, pl as DateTimeSchema, pn as EmailSettings, po as MeterRecomputeResult, pr as overageOf, ps as FeatureTypeSchema, pt as BillingSettings, q as WEBHOOK_SECRET_PREFIX, qa as BankTransferList, qc as MeterPeriodList, qi as InvoiceIssueInput, qn as PlanSetWarning, qo as INDIVIDUAL_IDENTITY_PLACEHOLDER, qr as BenefitRulesSubscription, qs as isFeatureFlagBenefit, qt as TtlMinutesSchema, r as DOCTOR_PROVIDER_ENVIRONMENTS, ra as InvoiceVoidInput, rc as DEFAULT_METER_LOW_AT, ri as ResolvedEntitlements, rl as MeteredPriceDefSchema, rn as BankTransferInstructionsEmailSchema, ro as DunningPolicyInput, rr as MeterRulesEvent, rs as Catalog, rt as WebhookEndpointStatusSchema, s as DOCTOR_SEVERITIES, sa as MANUAL_INVOICE_MAX_AMOUNT_MINOR, sc as METER_AGGREGATION_KINDS, si as resolveEntitlements, sl as API_VERSION, sn as EMAIL_TEMPLATES, so as MeterClosePeriodsInput, sr as consumptionOf, ss as CatalogSyncInput, st as generateWebhookSecret, t as DOCTOR_KEY_EXPIRY_WARN_DAYS, ta as InvoiceSchema, tc as CreditGrantInput, ti as ResolvedBenefit, tl as MeteredPrice, tn as BILLING_PATH_PLACEHOLDERS, to as DUNNING_ACTIONS, tr as MeterCreditBenefit, ts as AccountsRefreshResult, tt as WebhookEndpointSchema, u as DoctorBilling, ua as ManualInvoiceLineInput, uc as METER_FILTER_MAX_CONDITIONS, ui as ErrorCodeSpec, ul as CodeSchema, un as EmailLocale, uo as MeterClosePeriodsResultSchema, ur as meterChargeTotals, us as CatalogSyncResultSchema, ut as BankTransferSettings, v as DoctorEndpointSchema, va as GrantCreateInputSchema, vc as MeterCharge, vi as CancelSubscriptionResponseSchema, vl as EntitlementsSchema, vn as EmailTemplateSchema, vo as RepriceInputSchema, vr as EVENTS_INGEST_MAX_BYTES, vs as METERED_PRICE_TAX_MISMATCH, vt as BrandingSchema, w as DoctorOverage, wa as StatsSchema, wc as MeterChargeStatus, wi as CreditGrantResponseSchema, wl as INVOICE_BILLING_REASONS, wn as NoticedMeteredRate, wo as BankTransferRecordInput, wr as EVENT_TIMESTAMP_MAX_AGE_DAYS, ws as PriceSchema, wt as DEFAULT_MIN_INVOICE_MINOR, x as DoctorFacts, xa as Payment, xc as MeterChargeList, xi as CheckoutSessionResponse, xl as ErrorResponse, xn as InvoicePaymentDueEmail, xo as RepriceResult, xr as EVENT_METADATA_MAX_PAIRS, xs as Price, xt as DEFAULT_EVENT_RETENTION_DAYS, y as DoctorEvents, ya as GrantSchema, yc as MeterChargeLine, yi as ChangeSubscriptionResponse, yl as ErrorCategory, yn as EmailTemplateSettings, yo as RepriceItem, yr as EVENTS_INGEST_MAX_EVENTS, ys as PlanDef, yt as DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, z as DoctorWarningSchema, za as ApiKeyList, zc as MeterFilterOperand, zi as ManualInvoiceResponseSchema, zn as uniqueEmails, zo as CheckoutSessionCreateParsed, zr as IngestEventSchema, zs as FeatureFlagBenefitDef, zt as ProductSettings } 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
4
  import { a as CatalogRead, c as Steward, d as StewardOptions, f as createSteward, g as AccountStateRead, h as AccountMetersRead, i as httpStatusFor, l as StewardEnv, m as RetryOptions, n as HttpStatusResult, o as InvoiceDocument, p as RetryClass, r as StewardLogger, s as MutationOptions, t as StewardLocale, u as StewardMe } from "./_chunks/locale.js";
@@ -617,4 +617,4 @@ export type MetersClient<M extends string> = {
617
617
  /** Meter reader and gate (M13, M15, M16); see the comment above. */
618
618
  export declare function Meters<M extends string>(options: MetersOptions<M>): MetersClient<M>;
619
619
  //#endregion
620
- export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountBenefit, AccountBenefitSchema, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountMeter, AccountMeterSchema, AccountMeterState, AccountMeterStateSchema, AccountMeters, type AccountMetersRead, AccountMetersSchema, AccountMetersState, AccountMetersStateSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountOpenInvoice, AccountOpenInvoiceSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, type AccountStateRead, 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, CatalogRead, 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, HttpStatusResult, 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, InvoiceDocument, 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, MutationOptions, 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, type RetryClass, type RetryOptions, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, Steward, StewardCapability, StewardEnv, type StewardLocale, StewardLogger, StewardMe, StewardOptions, 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, createSteward, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, httpStatusFor, 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 };
620
+ export { ACCOUNT_INCLUDES, API_KEY_SCOPES, API_VERSION, AccessState, AccessStateSchema, Account, AccountBenefit, AccountBenefitSchema, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountMeter, AccountMeterSchema, AccountMeterState, AccountMeterStateSchema, AccountMeters, type AccountMetersRead, AccountMetersSchema, AccountMetersState, AccountMetersStateSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountOpenInvoice, AccountOpenInvoiceSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, type AccountStateRead, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiKey, ApiKeyCreateInput, ApiKeyCreateInputSchema, ApiKeyList, ApiKeyListSchema, ApiKeyPrefixSchema, ApiKeySchema, ApiKeyScope, ApiKeyScopeSchema, ApiKeyTokenSchema, ApiVersionSchema, BANK_TRANSFER_LIST_STATUSES, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BankTransferInstructionsEmail, BankTransferInstructionsEmailSchema, BankTransferList, BankTransferListItem, BankTransferListItemSchema, BankTransferListSchema, BankTransferListStatus, BankTransferListStatusSchema, 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, CatalogRead, 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, CreditAdjustmentInput, CreditAdjustmentInputSchema, 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_KEY_EXPIRY_WARN_DAYS, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DUNNING_ACTIONS, DateTimeSchema, DecimalUnitsStringSchema, DoctorApiKey, DoctorApiKeySchema, 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, DunningPolicy, DunningPolicyInput, DunningPolicySchema, 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, HttpStatusResult, 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, InvoiceDocument, 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_API_KEY_TTL_DAYS, 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_NOTICE_DAYS, 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, MeterClosePeriodsInput, MeterClosePeriodsInputSchema, MeterClosePeriodsResult, MeterClosePeriodsResultSchema, 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, MeterRecomputeInput, MeterRecomputeInputSchema, MeterRecomputeResult, MeterRecomputeResultSchema, MeterRulesEvent, MeterRulesMeter, MeterStanding, MeterStandingSchema, MeterUnitsSchema, MeteredPrice, MeteredPriceDef, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettings, MeteringSettingsPatchSchema, MeteringSettingsSchema, MutationOptions, 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, RedeliveredEvent, RedeliveredEventSchema, RepriceInput, RepriceInputSchema, RepriceItem, RepriceItemSchema, RepriceResult, RepriceResultSchema, ResolveBenefitsInput, ResolveEntitlementsInput, ResolvedBenefit, ResolvedBenefits, ResolvedEntitlements, ResyncResult, ResyncResultSchema, type RetryClass, type RetryOptions, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, Steward, StewardCapability, StewardEnv, type StewardLocale, StewardLogger, StewardMe, StewardOptions, 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, createSteward, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateApiKeyToken, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, httpStatusFor, 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/index.js CHANGED
@@ -1,5 +1,5 @@
1
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";
2
+ import { $ as periodBoundsOf, $n as EventsSettingsSchema, $t as ApiKeySchema, A as WebhookEndpointCreateInputSchema, An as INDIVIDUAL_IDENTITY_PLACEHOLDER, Ar as METERED_PRICE_TAX_MISMATCH, At as InvoiceStatusSchema, B as PlanSetInputSchema, Bn as BillingSettingsSchema, Bt as GrantSchema, C as emailReadinessOf, Cn as CheckoutConsentInputSchema, Cr as CatalogSyncResultSchema, Ct as STEWARD_CAPABILITIES, D as EventTypeSchema, Dn as CheckoutSessionSchema, Dr as MAX_CATALOG_METERED_PRICES, Dt as InvoicePaymentSessionCreateInputSchema, E as DEFAULT_ENDPOINT_EVENT_TYPES, En as CheckoutSessionCreatedSchema, Er as MAX_CATALOG_BENEFITS, Et as InvoiceLineSchema, F as WebhookLastDeliverySchema, Fn as checkoutRedirectUrl, Ft as ManualInvoiceLineInputSchema, G as addUtcMonths, Gn as DEFAULT_EVENT_RETENTION_DAYS, Gt as SubscriptionSchema, H as PlanSetResponseSchema, Hn as BrandingSchema, Ht as PaymentSchema, I as WebhookSecretSchema, In as BankTransferPaymentDaysSchema, It as manualInvoiceTotals, J as matchesFilter, Jn as DEFAULT_MIN_INVOICE_MINOR, Jt as PortalSessionSchema, K as consumptionOf, Kn as DEFAULT_LATE_GRACE_MINUTES, Kt as PORTAL_SESSION_ERRORS, L as generateWebhookSecret, Ln as BankTransferSettingsPatchSchema, Lt as splitInclusiveTax, M as WebhookEndpointRotateInputSchema, Mn as PAYMENT_METHODS, Mr as PriceDefSchema, Mt as InvoiceWaiveInputSchema, N as WebhookEndpointSchema, Nn as PaymentMethodSchema, Nr as PriceSchema, Nt as MANUAL_INVOICE_MAX_AMOUNT_MINOR, O as WEBHOOK_ENDPOINT_STATUSES, On as CheckoutStatusSchema, Or as MAX_CATALOG_METERS, Ot as InvoicePaymentSessionSchema, P as WebhookEndpointStatusSchema, Pn as ProviderPayloadSchema, Pt as ManualInvoiceInputSchema, Q as overageOf, Qn as EventsSettingsPatchSchema, Qt as ApiKeyPrefixSchema, R as webhookEndpointUrlProblem, Rn as BankTransferSettingsSchema, Rt as CancelSubscriptionInputSchema, S as buildDoctorReport, Sn as CHECKOUT_ERRORS, Sr as CatalogSyncInputSchema, St as MeResponseSchema, T as hostedReadinessOf, Tn as CheckoutSessionCreateInputSchema, Tr as FeatureTypeSchema, Tt as InvoiceIssueInputSchema, U as PlanSetWarningSchema, Un as DEFAULT_BANK_TRANSFER_PAYMENT_DAYS, Ut as StatsSchema, V as PlanSetModeSchema, Vn as BrandingPatchSchema, Vt as MAX_GRANT_BENEFITS, W as ResyncResultSchema, Wn as DEFAULT_CHECKOUT_TTL_MINUTES, Wt as SubscriptionChangeInputSchema, X as meterCreditsOf, Xn as DEFAULT_PORTAL_TTL_MINUTES, Xt as ApiKeyCreateInputSchema, Y as meterChargeTotals, Yn as DEFAULT_PAYMENT_DUE_DAYS, Yt as API_KEY_SCOPES, Z as overageCapReached, Zn as EventRetentionDaysSchema, Zt as ApiKeyListSchema, _ as DoctorReportSchema, _n as RepriceItemSchema, _r as meteringSettingsOf, _t as HEADER_SDK, a as DOCTOR_REQUIRED_LEGAL_LINKS, an as BankTransferListStatusSchema, ar as PaymentDueDaysSchema, at as isKnownErrorCode, b as DoctorUnsellablePriceSchema, bn as BankTransferRecordInputSchema, br as CatalogPlanSchema, bt as InvoiceWaiveResponseSchema, c as DoctorApiKeySchema, cn as DunningPolicySchema, cr as ReturnOriginSchema, ct as CancelSubscriptionResponseSchema, d as DoctorEmailsSchema, dn as MeterClosePeriodsInputSchema, dr as TtlMinutesSchema, dt as CreditGrantResponseSchema, en as ApiKeyScopeSchema, er as LateGraceMinutesSchema, et as rateOverage, f as DoctorEndpointSchema, fn as MeterClosePeriodsResultSchema, fr as WebUrlSchema, ft as GrantCreateResponseSchema, g as DoctorProviderSchema, gn as RepriceInputSchema, gr as isReturnUrlAllowed, gt as HEADER_REQUEST_ID, h as DoctorOverageSchema, hn as RedeliveredEventSchema, hr as eventsSettingsOf, ht as HEADER_IDEMPOTENCY_KEY, i as DOCTOR_REQUIRED_BRANDING, in as BankTransferListSchema, ir as MeteringSettingsSchema, it as errorCodeSpec, j as WebhookEndpointListSchema, jn as MAX_CHECKOUT_CONSENT_DOCS, jr as PlanDefSchema, jt as InvoiceVoidInputSchema, k as WEBHOOK_SECRET_PREFIX, kn as ConsentSchema, kr as MAX_PLAN_BENEFITS, kt as InvoiceSchema, l as DoctorBillingSchema, ln as MAX_API_KEY_TTL_DAYS, lr as SETTINGS_LOCALES, lt as ChangeSubscriptionResponseSchema, m as DoctorHostedSchema, mn as MeterRecomputeResultSchema, mr as billingSettingsOf, mt as HEADER_API_VERSION, n as DOCTOR_PENDING_BACKLOG_MS, nn as BANK_TRANSFER_LIST_STATUSES, nr as MeterChargeModeSchema, nt as standingOf, o as DOCTOR_ROLLUP_LAG_WARN_SECONDS, on as CreditAdjustmentInputSchema, or as ProductSettingsPatchSchema, ot as AccountDetailSchema, p as DoctorEventsSchema, pn as MeterRecomputeInputSchema, pr as applySettingsPatch, pt as HEADER_ACTOR_REF, q as contributionOf, qn as DEFAULT_METER_CHARGE_MODE, qt as PortalSessionCreateInputSchema, r as DOCTOR_PROVIDER_ENVIRONMENTS, rn as BankTransferListItemSchema, rr as MeteringSettingsPatchSchema, rt as ERROR_CODES, s as DOCTOR_SEVERITIES, sn as DUNNING_ACTIONS, sr as ProductSettingsSchema, st as AccountUpsertResponseSchema, t as DOCTOR_KEY_EXPIRY_WARN_DAYS, tn as ApiKeyTokenSchema, tr as METER_CHARGE_MODES, tt as rolloverOf, u as DoctorCatalogSchema, un as MAX_NOTICE_DAYS, ur as SettingsLocaleSchema, ut as CheckoutSessionResponseSchema, v as DoctorSettingsSchema, vn as RepriceResultSchema, vr as returnOriginsOf, vt as InvoiceIssueResponseSchema, w as endpointDiagnosisOf, wn as CheckoutPrefillSchema, wr as FeatureDefSchema, wt as UncancelSubscriptionResponseSchema, x as DoctorWarningSchema, xn as BankTransferRecordedSchema, xr as CatalogSchema, xt as ManualInvoiceResponseSchema, y as DoctorSeveritySchema, yn as generateApiKeyToken, yr as AccountsRefreshResultSchema, yt as InvoiceVoidResponseSchema, z as PLAN_SET_MODES, zn as BillingSettingsPatchSchema, zt as GrantCreateInputSchema } 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
4
  import { a as StewardNetworkError, i as StewardError, n as StewardConfigError, r as StewardContractError, t as StewardApiError } from "./_chunks/errors.js";
5
5
  //#region ../contract/src/client.ts
@@ -247,7 +247,21 @@ function createBillingClient(options) {
247
247
  listWebhookEndpoints: () => call(WebhookEndpointListSchema, "GET", "/v1/admin/webhook-endpoints"),
248
248
  createWebhookEndpoint: (input, opts) => call(WebhookEndpointSchema, "POST", "/v1/admin/webhook-endpoints", input, opts),
249
249
  rotateWebhookEndpointSecret: (id, input, opts) => call(WebhookEndpointSchema, "POST", `/v1/admin/webhook-endpoints/${ref(id)}/rotate`, input, opts),
250
- deactivateWebhookEndpoint: (id, opts) => call(WebhookEndpointSchema, "POST", `/v1/admin/webhook-endpoints/${ref(id)}/deactivate`, void 0, opts)
250
+ deactivateWebhookEndpoint: (id, opts) => call(WebhookEndpointSchema, "POST", `/v1/admin/webhook-endpoints/${ref(id)}/deactivate`, void 0, opts),
251
+ listApiKeys: () => call(ApiKeyListSchema, "GET", "/v1/admin/api-keys"),
252
+ createApiKey: (input, opts) => call(ApiKeySchema, "POST", "/v1/admin/api-keys", input, opts),
253
+ /** 409 `api_key_self_revoke` for the key making the call. */
254
+ revokeApiKey: (prefix, opts) => call(ApiKeySchema, "POST", `/v1/admin/api-keys/${ref(prefix)}/revoke`, void 0, opts),
255
+ getDunningPolicy: () => call(DunningPolicySchema, "GET", "/v1/admin/dunning-policy"),
256
+ setDunningPolicy: (policy, opts) => call(DunningPolicySchema, "PUT", "/v1/admin/dunning-policy", policy, opts),
257
+ redeliverEvent: (eventId, opts) => call(RedeliveredEventSchema, "POST", `/v1/admin/events/${ref(eventId)}/redeliver`, void 0, opts),
258
+ repriceSubscriptions: (input, opts) => call(RepriceResultSchema, "POST", "/v1/admin/subscriptions/reprice", input, opts),
259
+ recomputeMeters: (accountRef, input = {}, opts) => call(MeterRecomputeResultSchema, "POST", `/v1/admin/accounts/${ref(accountRef)}/meters/recompute`, input, opts),
260
+ closeMeterPeriods: (accountRef, input = {}, opts) => call(MeterClosePeriodsResultSchema, "POST", `/v1/admin/accounts/${ref(accountRef)}/meters/close-periods`, input, opts),
261
+ /** Signed units: negative = `adjustment` (admin only); positive = `manual_grant`. */
262
+ adjustCredits: (accountRef, input, opts) => call(CreditGrantResponseSchema, "POST", `/v1/admin/accounts/${ref(accountRef)}/credits`, input, opts),
263
+ listBankTransfers: (status = "pending") => call(BankTransferListSchema, "GET", `/v1/admin/bank-transfers?status=${status}`),
264
+ recordBankTransfer: (input, opts) => call(BankTransferRecordedSchema, "POST", "/v1/admin/bank-transfers", input, opts)
251
265
  };
252
266
  }
253
267
  //#endregion
@@ -306,7 +320,7 @@ async function withRetries(request, policy, send) {
306
320
  }
307
321
  //#endregion
308
322
  //#region src/steward.ts
309
- const SDK_HEADER = `@stewardhq/sdk/0.6.0`;
323
+ const SDK_HEADER = `@stewardhq/sdk/0.7.0`;
310
324
  const defaultEnv = () => globalThis.process?.env ?? {};
311
325
  function isHttpUrl(value) {
312
326
  try {
@@ -626,6 +640,53 @@ function createSteward(options = {}) {
626
640
  const { client } = requireAdmin();
627
641
  return run("POST", call, (c) => client.deactivateWebhookEndpoint(id, c));
628
642
  }
643
+ },
644
+ apiKeys: {
645
+ list: async () => read(() => requireAdmin().client.listApiKeys()),
646
+ create: async (input, call) => {
647
+ const { client } = requireAdmin();
648
+ return run("POST", call, (c) => client.createApiKey(input, c));
649
+ },
650
+ revoke: async (prefix, call) => {
651
+ const { client } = requireAdmin();
652
+ return run("POST", call, (c) => client.revokeApiKey(prefix, c));
653
+ }
654
+ },
655
+ dunning: {
656
+ get: async () => read(() => requireAdmin().client.getDunningPolicy()),
657
+ set: async (policy, call) => {
658
+ const { client } = requireAdmin();
659
+ return run("PUT", call, (c) => client.setDunningPolicy(policy, c));
660
+ }
661
+ },
662
+ events: { redeliver: async (eventId, call) => {
663
+ const { client } = requireAdmin();
664
+ return run("POST", call, (c) => client.redeliverEvent(eventId, c));
665
+ } },
666
+ subscriptions: { reprice: async (input, call) => {
667
+ const { client } = requireAdmin();
668
+ return run("POST", call, (c) => client.repriceSubscriptions(input, c));
669
+ } },
670
+ meters: {
671
+ recompute: async (accountRef, input = {}, call) => {
672
+ const { client } = requireAdmin();
673
+ return run("POST", call, (c) => client.recomputeMeters(accountRef, input, c));
674
+ },
675
+ closePeriods: async (accountRef, input = {}, call) => {
676
+ const { client } = requireAdmin();
677
+ return run("POST", call, (c) => client.closeMeterPeriods(accountRef, input, c));
678
+ }
679
+ },
680
+ credits: { adjust: async (accountRef, input, call) => {
681
+ const { client } = requireAdmin();
682
+ return run("POST", call, (c) => client.adjustCredits(accountRef, input, c));
683
+ } },
684
+ bankTransfers: {
685
+ list: async (status = "pending") => read(() => requireAdmin().client.listBankTransfers(status)),
686
+ record: async (input, call) => {
687
+ const { client } = requireAdmin();
688
+ return run("POST", call, (c) => client.recordBankTransfer(input, c));
689
+ }
629
690
  }
630
691
  }
631
692
  };
@@ -2151,4 +2212,4 @@ function Meters(options) {
2151
2212
  };
2152
2213
  }
2153
2214
  //#endregion
2154
- 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, EVENTS_RECENT_MS, 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, Events, 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, Meters, 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, StewardApiError, StewardConfigError, StewardContractError, StewardError, StewardNetworkError, 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, count, createSteward, defineCatalog, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureFlag, featureValueMatchesType, flag, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, httpStatusFor, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, limit, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, max, meter, meterChargeTotals, meterCredit, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, stateCache, sum, text, toMicroUnits, unique, uniqueEmails, webhookEndpointUrlProblem };
2215
+ export { ACCOUNT_INCLUDES, API_KEY_SCOPES, 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, ApiKeyCreateInputSchema, ApiKeyListSchema, ApiKeyPrefixSchema, ApiKeySchema, ApiKeyScopeSchema, ApiKeyTokenSchema, ApiVersionSchema, BANK_TRANSFER_LIST_STATUSES, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BankTransferInstructionsEmailSchema, BankTransferListItemSchema, BankTransferListSchema, BankTransferListStatusSchema, 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, CreditAdjustmentInputSchema, 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_KEY_EXPIRY_WARN_DAYS, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DUNNING_ACTIONS, DateTimeSchema, DecimalUnitsStringSchema, DoctorApiKeySchema, DoctorBillingSchema, DoctorCatalogSchema, DoctorEmailsSchema, DoctorEndpointSchema, DoctorEventsSchema, DoctorHostedSchema, DoctorOverageSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, DunningPolicySchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENTS_RECENT_MS, 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, Events, 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_API_KEY_TTL_DAYS, 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_NOTICE_DAYS, 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, MeterClosePeriodsInputSchema, MeterClosePeriodsResultSchema, MeterCreditBenefitDefSchema, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditPropertiesSchema, MeterDefSchema, MeterFilterSchema, MeterLabelSchema, MeterLowAtSchema, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatusSchema, MeterRecomputeInputSchema, MeterRecomputeResultSchema, MeterStandingSchema, MeterUnitsSchema, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettingsPatchSchema, MeteringSettingsSchema, Meters, 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, RedeliveredEventSchema, RepriceInputSchema, RepriceItemSchema, RepriceResultSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocaleSchema, StatsSchema, StewardApiError, StewardConfigError, StewardContractError, StewardError, StewardNetworkError, 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, count, createSteward, defineCatalog, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureFlag, featureValueMatchesType, flag, fromMicroUnits, generateApiKeyToken, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, httpStatusFor, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, limit, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, max, meter, meterChargeTotals, meterCredit, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, stateCache, sum, text, toMicroUnits, unique, uniqueEmails, webhookEndpointUrlProblem };
package/dist/server.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ba as CheckoutPrefill, Da as PortalSession, Fc as Interval, Ga as CheckoutSessionCreateInput, Ja as CheckoutSessionCreated, No as AccountBenefit, Oa as PortalSessionCreateInput, Za as CheckoutStatus, io as PaymentMethod, vi as CheckoutSessionResponse } from "./_chunks/index.js";
1
+ import { Aa as PortalSession, Bo as CheckoutSessionCreated, Dl as Interval, Lo as CheckoutSessionCreateInput, Mo as CheckoutPrefill, Ts as AccountBenefit, Uo as CheckoutStatus, Xo as PaymentMethod, ja as PortalSessionCreateInput, xi as CheckoutSessionResponse } from "./_chunks/index.js";
2
2
  import { O as AccountInclude, U as AccountState, Y as BillingProfile, a as BillingEvent, f as EventType, n as AnyBillingEvent, o as BillingEventOf, u as EventDetail } from "./_chunks/events.js";
3
3
  import { r as StewardLogger, s as MutationOptions, t as StewardLocale } from "./_chunks/locale.js";
4
4
  import { a as HeaderSource, s as VerifyRawFailure } from "./_chunks/webhook-core.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stewardhq/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Steward SDK: contract schemas, typed API client and webhook signing.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/z9cloud/steward/tree/main/sdk#readme",
@@ -57,7 +57,7 @@
57
57
  "typescript": "^7.0.2",
58
58
  "vitest": "^5.0.2",
59
59
  "workerd": "^1.20260928.1",
60
- "@stewardhq/contract": "0.5.0"
60
+ "@stewardhq/contract": "0.6.0"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsdown && node scripts/check-dist.mjs",