@stewardhq/sdk 0.5.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/LICENSE +201 -0
- package/README.md +247 -200
- package/dist/_chunks/errors.js +1 -1
- package/dist/_chunks/events.d.ts +133 -122
- package/dist/_chunks/events.js +45 -7
- package/dist/_chunks/index.d.ts +1308 -594
- package/dist/_chunks/locale.d.ts +42 -3
- package/dist/_chunks/src.js +379 -26
- package/dist/_chunks/validators.d.ts +2 -2
- package/dist/_chunks/webhook-core.d.ts +2 -2
- package/dist/contract.d.ts +2 -2
- package/dist/contract.js +3 -3
- package/dist/index.d.ts +24 -24
- package/dist/index.js +66 -5
- package/dist/server.d.ts +32 -20
- package/dist/server.js +7 -3
- package/package.json +14 -8
|
@@ -5,7 +5,7 @@ declare const HEADER_TIMESTAMP = "steward-timestamp";
|
|
|
5
5
|
declare const HEADER_SIGNATURE = "steward-signature";
|
|
6
6
|
declare const DEFAULT_TOLERANCE_SECONDS = 300;
|
|
7
7
|
type HeaderSource = Headers | Record<string, string | string[] | undefined>;
|
|
8
|
-
type VerifyFailure =
|
|
8
|
+
type VerifyFailure = 'missing_headers' | 'timestamp_out_of_tolerance' | 'bad_signature' | 'invalid_payload' | 'id_mismatch';
|
|
9
9
|
type VerifyResult = {
|
|
10
10
|
ok: true;
|
|
11
11
|
event: BillingEvent;
|
|
@@ -14,7 +14,7 @@ type VerifyResult = {
|
|
|
14
14
|
reason: VerifyFailure;
|
|
15
15
|
};
|
|
16
16
|
/** Gövdeyi parse etmeden yapılan doğrulamanın başarısızlık nedenleri. */
|
|
17
|
-
type VerifyRawFailure =
|
|
17
|
+
type VerifyRawFailure = 'missing_headers' | 'timestamp_out_of_tolerance' | 'bad_signature';
|
|
18
18
|
type VerifyRawResult = {
|
|
19
19
|
ok: true;
|
|
20
20
|
eventId: string;
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as WebhookEndpointStatus, $a as CatalogPlanSchema, $i as ManualInvoiceInputSchema, $n as matchesFilter, $o as MAX_METERED_PRICE_PER_UNITS, $r as ErrorCode, $s as canonicalMeterFilter, $t as EmailExtraTextSchema, A as DoctorSeveritySchema, Aa as CheckoutPrefillSchema, Ai as MeResponse, An as PLAN_SET_MODES, Ao as CatalogBenefit, Ar as IngestRejectCode, As as MeterFilterClause, At as PaymentDueDaysSchema, B as hostedReadinessOf, Ba as CheckoutStatus, Bi as InvoiceLineSchema, Bn as ResyncResult, Bo as featureValueMatchesType, Br as FEATURE_FLAG_BENEFIT_TYPE, Bs as MeterPeriod, Bt as WebUrlSchema, C as DoctorProvider, Ca as PortalSessionError, Cc as InvoiceBillingReason, Ci as InvoiceIssueResponseSchema, Cn as emailLocaleOf, Co as BenefitDefSchema, Cr as EventsIngestInput, Cs as MeterCreditEntrySchema, Ct as LateGraceMinutesSchema, D as DoctorSettings, Da as CheckoutConsentInputSchema, Dc as MetadataSchema, Di as InvoiceWaiveResponseSchema, Dn as isEmailRelevant, Do as BenefitSourceSchema, Dr as INGEST_REJECT_CODES, Ds as MeterDefInput, Dt as MeteringSettings, E as DoctorReportSchema, Ea as CheckoutConsentInput, Ec as InvoicePaymentStatusSchema, Ei as InvoiceWaiveResponse, En as emailTemplateSettings, Eo as BenefitFeatureType, Er as EventsIngestResultSchema, Es as MeterDef, Et as MeterChargeModeSchema, F as DoctorWarningCode, Fa as CheckoutSessionCreateInputSchema, Fi as UncancelSubscriptionResponseSchema, Fn as PlanSetResponse, Fo as FeatureFlagProperties, Fr as isEventTimestampInRange, Fs as MeterFilterSchema, Ft as ReturnOriginSchema, G as WebhookEndpoint, Ga as MAX_CHECKOUT_CONSENT_DOCS, Gi as InvoiceSchema, Gn as MeterCreditBenefit, Go as AccountMeters, Gr as ResolvedBenefit, Gs as MeterPeriodStatusSchema, Gt as meteringSettingsOf, H as EventTypeSchema, Ha as Consent, Hi as InvoicePaymentSessionCreateInput, Hn as GrantedMeterCredit, Ho as isMeterCreditBenefit, Hr as OVERRIDE_BENEFIT_SOURCE, Hs as MeterPeriodListSchema, Ht as billingSettingsOf, I as DoctorWarningSchema, Ia as CheckoutSessionCreateParsed, Ii as Invoice, In as PlanSetResponseSchema, Io as FeatureFlagPropertiesSchema, Ir as BenefitRulesDefinition, Is as MeterFilterValue, It as SETTINGS_LOCALES, J as WebhookEndpointList, Ja as checkoutRedirectUrl, Ji as InvoiceVoidInputSchema, Jn as MeterRulesMeter, Jo as CatalogMeterSchema, Jr as isGrantActive, Js as MeterUnitsSchema, Jt as BillingPathSchema, K as WebhookEndpointCreateInput, Ka as ProviderPayload, Ki as InvoiceStatusSchema, Kn as MeterCreditsOptions, Ko as AccountMetersSchema, Kr as ResolvedBenefits, Ks as MeterStanding, Kt as returnOriginsOf, L as buildDoctorReport, La as CheckoutSessionCreated, Li as InvoiceIssueInput, Ln as PlanSetWarning, Lo as MeterCreditAccountBenefit, Lr as BenefitRulesSubscription, Ls as MeterLabel, Lt as SettingsLocale, M as DoctorUnsellablePriceSchema, Ma as CheckoutReturnStatus, Mi as STEWARD_CAPABILITIES, Mn as PlanSetInputSchema, Mo as FeatureFlagAccountBenefit, Mr as IngestRejection, Ms as MeterFilterGroup, Mt as ProductSettingsPatch, N as DoctorUnsellableReason, Na as CheckoutSession, Ni as StewardCapability, Nn as PlanSetMode, No as FeatureFlagBenefitDef, Nr as IngestRejectionSchema, Ns as MeterFilterOperand, Nt as ProductSettingsPatchSchema, O as DoctorSettingsSchema, Oa as CheckoutError, Oi as ManualInvoiceResponse, On as liveSubscriptionOf, Oo as BenefitType, Or as IngestEvent, Os as MeterDefSchema, Ot as MeteringSettingsPatchSchema, P as DoctorWarning, Pa as CheckoutSessionCreateInput, Pi as UncancelSubscriptionResponse, Pn as PlanSetModeSchema, Po as FeatureFlagBenefitDefSchema, Pr as hasControlCharacters, Ps as MeterFilterOperator, Pt as ProductSettingsSchema, Q as WebhookEndpointSchema, Qa as CatalogPlan, Qi as ManualInvoiceInput, Qn as contributionOf, Qo as DecimalUnitsStringSchema, Qr as ERROR_CODES, Qs as MeteredPriceSchema, Qt as EMAIL_TEMPLATE_BY_EVENT, R as emailReadinessOf, Ra as CheckoutSessionCreatedSchema, Ri as InvoiceIssueInputSchema, Rn as PlanSetWarningCode, Ro as MeterCreditBenefitDef, Rr as EntitlementRulesCatalog, Rs as MeterLabelSchema, Rt as SettingsLocaleSchema, S as DoctorOverageSchema, Sa as PortalSessionCreateInputSchema, Sc as IntervalSchema, Si as InvoiceIssueResponse, Sn as billingPageUrl, So as BenefitDef, Sr as EventNameSchema, Ss as MeterCreditEntryKindSchema, St as EventsSettingsSchema, T as DoctorReport, Ta as CHECKOUT_ERRORS, Tc as InvoicePaymentStatus, Ti as InvoiceVoidResponseSchema, Tn as emailTemplateOf, To as BenefitDescriptionSchema, Tr as EventsIngestResult, Ts as MeterCreditPropertiesSchema, Tt as MeterChargeMode, U as WEBHOOK_ENDPOINT_STATUSES, Ua as ConsentSchema, Ui as InvoicePaymentSessionCreateInputSchema, Un as MeterChargeTotalsLine, Uo as AccountMeter, Ur as ResolveBenefitsInput, Us as MeterPeriodSchema, Ut as eventsSettingsOf, V as DEFAULT_ENDPOINT_EVENT_TYPES, Va as CheckoutStatusSchema, Vi as InvoicePaymentSession, Vn as ResyncResultSchema, Vo as isFeatureFlagBenefit, Vr as LIVE_SUBSCRIPTION_STATUSES, Vs as MeterPeriodList, Vt as applySettingsPatch, W as WEBHOOK_SECRET_PREFIX, Wa as INDIVIDUAL_IDENTITY_PLACEHOLDER, Wi as InvoicePaymentSessionSchema, Wn as MeterContribution, Wo as AccountMeterSchema, Wr as ResolveEntitlementsInput, Ws as MeterPeriodStatus, Wt as isReturnUrlAllowed, X as WebhookEndpointRotateInput, Xa as AccountsRefreshResultSchema, Xi as InvoiceWaiveInputSchema, Xn as addUtcMonths, Xo as CreditGrantInputSchema, Xr as resolveBenefits, Xs as MeteredPriceDef, Xt as EMAIL_PAYLOAD_SCHEMAS, Y as WebhookEndpointListSchema, Ya as AccountsRefreshResult, Yi as InvoiceWaiveInput, Yn as OverageRateInput, Yo as CreditGrantInput, Yr as isLiveSubscriptionStatus, Ys as MeteredPrice, Yt as EMAIL_LOCALES, Z as WebhookEndpointRotateInputSchema, Za as Catalog, Zi as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Zn as consumptionOf, Zo as DEFAULT_METER_LOW_AT, Zr as resolveEntitlements, Zs as MeteredPriceDefSchema, Zt as EMAIL_TEMPLATES, _ as DoctorEventsSchema, _a as SubscriptionChangeInputSchema, _c as ExternalRefSchema, _i as HEADER_ACTOR_REF, _n as PriceChangeNoticeEmail, _o as PriceDefSchema, _r as EventMetadata, _s as MeterChargeSchema, _t as DEFAULT_PAYMENT_DUE_DAYS, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, aa as CancelSubscriptionInputSchema, ac as Currency, ai as AccountUpsertResponse, an as EmailSettingsPatchSchema, ao as FeatureDef, ar as rateOverage, as as METER_FILTER_MAX_DEPTH, at as webhookEndpointUrlProblem, b as DoctorHostedSchema, ba as PortalSession, bc as IdSchema, bi as HEADER_REQUEST_ID, bn as PriceChangeNoticeMeteredRateSchema, bo as AccountBenefitSchema, br as EventMetadataValue, bs as MeterCreditEntry, bt as EventsSettings, c as DoctorBillingSchema, ca as GrantCreateInputSchema, cc as ERROR_CATEGORIES, ci as CancelSubscriptionResponseSchema, cn as EmailTemplateSchema, co as MAX_CATALOG_BENEFITS, cr as EVENTS_INGEST_MAX_BYTES, cs as METER_STANDINGS, ct as BillingSettingsSchema, d as DoctorEmails, da as Payment, dc as Entitlements, di as CheckoutSessionResponse, dn as InvoicePaymentDueEmail, do as MAX_PLAN_BENEFITS, dr as EVENT_METADATA_MAX_PAIRS, ds as MeterAggregationSchema, dt as BrandingSchema, ea as ManualInvoiceLineInput, ec as meterFilterClauseOf, ei as ErrorCodeSpec, en as EmailLocale, eo as CatalogSchema, er as meterChargeTotals, es as MAX_METER_UNITS, et as WebhookEndpointStatusSchema, f as DoctorEmailsSchema, fa as PaymentSchema, fc as EntitlementsSchema, fi as CheckoutSessionResponseSchema, fn as InvoicePaymentDueEmailSchema, fo as METERED_PRICE_TAX_MISMATCH, fr as EVENT_METADATA_STRING_MAX_LENGTH, fs as MeterCharge, ft as DEFAULT_CHECKOUT_TTL_MINUTES, g as DoctorEvents, ga as SubscriptionChangeInput, gc as ErrorResponseSchema, gi as GrantCreateResponseSchema, gn as NotificationEmailsSchema, go as PriceDef, gr as EventExternalIdSchema, gs as MeterChargeListSchema, gt as DEFAULT_MIN_INVOICE_MINOR, h as DoctorEndpointSchema, ha as Subscription, hc as ErrorResponse, hi as GrantCreateResponse, hn as NoticedMeteredRateSchema, ho as Price, hr as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, hs as MeterChargeList, ht as DEFAULT_METER_CHARGE_MODE, i as DOCTOR_REQUIRED_LEGAL_LINKS, ia as CancelSubscriptionInput, ic as CodeSchema, ii as AccountDetailSchema, in as EmailSettingsPatch, io as CatalogSyncResultSchema, ir as periodBoundsOf, is as METER_FILTER_MAX_CONDITIONS, it as generateWebhookSecret, j as DoctorUnsellablePrice, ja as CheckoutRedirectTarget, ji as MeResponseSchema, jn as PlanSetInput, jo as CatalogBenefitSchema, jr as IngestRejectCodeSchema, js as MeterFilterCondition, jt as ProductSettings, k as DoctorSeverity, ka as CheckoutPrefill, ki as ManualInvoiceResponseSchema, kn as uniqueEmails, ko as BenefitTypeSchema, kr as IngestEventSchema, ks as MeterFilter, kt as MeteringSettingsSchema, l as DoctorCatalog, la as GrantSchema, lc as EntitlementValue, li as ChangeSubscriptionResponse, ln as EmailTemplateSettings, lo as MAX_CATALOG_METERED_PRICES, lr as EVENTS_INGEST_MAX_EVENTS, ls as MeterAggregation, lt as Branding, m as DoctorEndpointDiagnosis, ma as StatsSchema, mc as ErrorCategorySchema, mi as CreditGrantResponseSchema, mn as NoticedMeteredRate, mo as PlanDefSchema, mr as EVENT_TIMESTAMP_MAX_AGE_DAYS, ms as MeterChargeLineSchema, mt as DEFAULT_LATE_GRACE_MINUTES, n as DOCTOR_PROVIDER_ENVIRONMENTS, na as manualInvoiceTotals, nc as ActorRefSchema, ni as isKnownErrorCode, nn as EmailSenderSchema, no as CatalogSyncInputSchema, nr as overageCapReached, ns as METER_CHARGE_STATUSES, nt as WebhookLastDeliverySchema, o as DOCTOR_SEVERITIES, oa as Grant, oc as CurrencySchema, oi as AccountUpsertResponseSchema, on as EmailSettingsSchema, oo as FeatureDefSchema, or as rolloverOf, os as METER_FILTER_OPERATORS, ot as BillingSettings, p as DoctorEndpoint, pa as Stats, pc as ErrorCategory, pi as CreditGrantResponse, pn as MAX_NOTIFICATION_EMAILS, po as PlanDef, pr as EVENT_NAME_MAX_LENGTH, ps as MeterChargeLine, pt as DEFAULT_EVENT_RETENTION_DAYS, q as WebhookEndpointCreateInputSchema, qa as ProviderPayloadSchema, qi as InvoiceVoidInput, qn as MeterRulesEvent, qo as CatalogMeter, qr as ResolvedEntitlements, qs as MeterStandingSchema, qt as BILLING_PATH_PLACEHOLDERS, r as DOCTOR_REQUIRED_BRANDING, ra as splitInclusiveTax, rc as AmountMinorSchema, ri as AccountDetail, rn as EmailSettings, ro as CatalogSyncResult, rr as overageOf, rs as METER_CREDIT_ENTRY_KINDS, rt as WebhookSecretSchema, s as DoctorBilling, sa as GrantCreateInput, sc as DateTimeSchema, si as CancelSubscriptionResponse, sn as EmailTemplate, so as FeatureTypeSchema, sr as standingOf, ss as METER_PERIOD_STATUSES, st as BillingSettingsPatchSchema, t as DOCTOR_PENDING_BACKLOG_MS, ta as ManualInvoiceLineInputSchema, tc as API_VERSION, ti as errorCodeSpec, tn as EmailRelevanceFacts, to as CatalogSyncInput, tr as meterCreditsOf, ts as METER_AGGREGATION_KINDS, tt as WebhookLastDelivery, u as DoctorCatalogSchema, ua as MAX_GRANT_BENEFITS, uc as EntitlementValueSchema, ui as ChangeSubscriptionResponseSchema, un as EmailTemplateSettingsSchema, uo as MAX_CATALOG_METERS, ur as EVENT_METADATA_KEY_MAX_LENGTH, us as MeterAggregationKind, ut as BrandingPatchSchema, v as DoctorFacts, va as SubscriptionSchema, vc as INVOICE_BILLING_REASONS, vi as HEADER_API_VERSION, vn as PriceChangeNoticeEmailSchema, vo as PriceSchema, vr as EventMetadataKeySchema, vs as MeterChargeStatus, vt as DEFAULT_PORTAL_TTL_MINUTES, w as DoctorProviderSchema, wa as PortalSessionSchema, wc as InvoiceBillingReasonSchema, wi as InvoiceVoidResponse, wn as emailRecipients, wo as BenefitDescription, wr as EventsIngestInputSchema, ws as MeterCreditProperties, wt as METER_CHARGE_MODES, x as DoctorOverage, xa as PortalSessionCreateInput, xc as Interval, xi as HEADER_SDK, xn as applyEmailSettingsPatch, xo as BENEFIT_TYPES, xr as EventMetadataValueSchema, xs as MeterCreditEntryKind, xt as EventsSettingsPatchSchema, y as DoctorHosted, ya as PORTAL_SESSION_ERRORS, yc as INVOICE_PAYMENT_STATUSES, yi as HEADER_IDEMPOTENCY_KEY, yn as PriceChangeNoticeMeteredRate, yo as AccountBenefit, yr as EventMetadataSchema, ys as MeterChargeStatusSchema, yt as EventRetentionDaysSchema, z as endpointDiagnosisOf, za as CheckoutSessionSchema, zi as InvoiceLine, zn as PlanSetWarningSchema, zo as MeterCreditBenefitDefSchema, zr as EntitlementRulesGrant, zs as MeterLowAtSchema, zt as TtlMinutesSchema } from "./_chunks/index.js";
|
|
1
|
+
import { $ as 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
|
-
export { ACCOUNT_INCLUDES, API_VERSION, AccessState, AccessStateSchema, Account, AccountBenefit, AccountBenefitSchema, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountMeter, AccountMeterSchema, AccountMeterState, AccountMeterStateSchema, AccountMeters, AccountMetersSchema, AccountMetersState, AccountMetersStateSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountOpenInvoice, AccountOpenInvoiceSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BenefitDef, BenefitDefSchema, BenefitDescription, BenefitDescriptionSchema, BenefitFeatureType, BenefitRulesDefinition, BenefitRulesSubscription, BenefitSourceSchema, BenefitType, BenefitTypeSchema, BillingEvent, BillingEventOf, BillingEventSchema, BillingPathSchema, BillingProfile, BillingProfileInput, BillingProfileKindSchema, BillingProfileSchema, BillingSettings, BillingSettingsPatchSchema, BillingSettingsSchema, Branding, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInput, CancelSubscriptionInputSchema, CancelSubscriptionResponse, CancelSubscriptionResponseSchema, Catalog, CatalogBenefit, CatalogBenefitSchema, CatalogMeter, CatalogMeterSchema, CatalogPlan, CatalogPlanSchema, CatalogSchema, CatalogSyncInput, CatalogSyncInputSchema, CatalogSyncResult, CatalogSyncResultSchema, ChangeSubscriptionResponse, ChangeSubscriptionResponseSchema, CheckoutConsentInput, CheckoutConsentInputSchema, CheckoutError, CheckoutPrefill, CheckoutPrefillSchema, CheckoutRedirectTarget, CheckoutReturnStatus, CheckoutSession, CheckoutSessionCreateInput, CheckoutSessionCreateInputSchema, CheckoutSessionCreateParsed, CheckoutSessionCreated, CheckoutSessionCreatedSchema, CheckoutSessionResponse, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatus, CheckoutStatusSchema, CodeSchema, Consent, ConsentSchema, CreditGrantInput, CreditGrantInputSchema, CreditGrantResponse, CreditGrantResponseSchema, Currency, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBilling, DoctorBillingSchema, DoctorCatalog, DoctorCatalogSchema, DoctorEmails, DoctorEmailsSchema, DoctorEndpoint, DoctorEndpointDiagnosis, DoctorEndpointSchema, DoctorEvents, DoctorEventsSchema, DoctorFacts, DoctorHosted, DoctorHostedSchema, DoctorOverage, DoctorOverageSchema, DoctorProvider, DoctorProviderSchema, DoctorReport, DoctorReportSchema, DoctorSettings, DoctorSettingsSchema, DoctorSeverity, DoctorSeveritySchema, DoctorUnsellablePrice, DoctorUnsellablePriceSchema, DoctorUnsellableReason, DoctorWarning, DoctorWarningCode, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, EVENT_TYPES, EmailExtraTextSchema, EmailLocale, EmailRelevanceFacts, EmailSenderSchema, EmailSettings, EmailSettingsPatch, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplate, EmailTemplateSchema, EmailTemplateSettings, EmailTemplateSettingsSchema, EntitlementRulesCatalog, EntitlementRulesGrant, EntitlementSnapshot, EntitlementSnapshotSchema, EntitlementValue, EntitlementValueSchema, Entitlements, EntitlementsSchema, ErrorCategory, ErrorCategorySchema, ErrorCode, ErrorCodeSpec, ErrorResponse, ErrorResponseSchema, EventDetail, EventExternalIdSchema, EventIdSchema, EventMetadata, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValue, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventType, EventTypeSchema, EventsIngestInput, EventsIngestInputSchema, EventsIngestResult, EventsIngestResultSchema, EventsSettings, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDef, FeatureDefSchema, FeatureFlagAccountBenefit, FeatureFlagBenefitDef, FeatureFlagBenefitDefSchema, FeatureFlagProperties, FeatureFlagPropertiesSchema, FeatureTypeSchema, Grant, GrantCreateInput, GrantCreateInputSchema, GrantCreateResponse, GrantCreateResponseSchema, GrantSchema, GrantedMeterCredit, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEvent, IngestEventSchema, IngestRejectCode, IngestRejectCodeSchema, IngestRejection, IngestRejectionSchema, Interval, IntervalSchema, InvalidUnitValueError, Invoice, InvoiceBillingReason, InvoiceBillingReasonSchema, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoicePaymentDueEmail, InvoicePaymentDueEmailSchema, InvoicePaymentSession, InvoicePaymentSessionCreateInput, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatus, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, InvoiceWaiveInput, InvoiceWaiveInputSchema, InvoiceWaiveResponse, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInput, ManualInvoiceInputSchema, ManualInvoiceLineInput, ManualInvoiceLineInputSchema, ManualInvoiceResponse, ManualInvoiceResponseSchema, MeResponse, MeResponseSchema, MetadataSchema, MeterAggregation, MeterAggregationKind, MeterAggregationSchema, MeterCharge, MeterChargeLine, MeterChargeLineSchema, MeterChargeList, MeterChargeListSchema, MeterChargeMode, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatus, MeterChargeStatusSchema, MeterChargeTotalsLine, MeterContribution, MeterCreditAccountBenefit, MeterCreditBenefit, MeterCreditBenefitDef, MeterCreditBenefitDefSchema, MeterCreditEntry, MeterCreditEntryKind, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditProperties, MeterCreditPropertiesSchema, MeterCreditsOptions, MeterDef, MeterDefInput, MeterDefSchema, MeterFilter, MeterFilterClause, MeterFilterCondition, MeterFilterGroup, MeterFilterOperand, MeterFilterOperator, MeterFilterSchema, MeterFilterValue, MeterLabel, MeterLabelSchema, MeterLowAtSchema, MeterPeriod, MeterPeriodList, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatus, MeterPeriodStatusSchema, MeterRulesEvent, MeterRulesMeter, MeterStanding, MeterStandingSchema, MeterUnitsSchema, MeteredPrice, MeteredPriceDef, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettings, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRate, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, OverageRateInput, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentDueDaysSchema, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceChangeNoticeEmail, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRate, PriceChangeNoticeMeteredRateSchema, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveBenefitsInput, ResolveEntitlementsInput, ResolvedBenefit, ResolvedBenefits, ResolvedEntitlements, ResyncResult, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, StewardCapability, Subscription, SubscriptionChangeInput, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponse, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
|
|
4
|
+
export { ACCOUNT_INCLUDES, API_KEY_SCOPES, API_VERSION, AccessState, AccessStateSchema, Account, AccountBenefit, AccountBenefitSchema, AccountDeleteResponse, AccountDeleteResponseSchema, AccountDetail, AccountDetailSchema, AccountDunningState, AccountDunningStateSchema, AccountInclude, AccountLocaleSchema, AccountMeter, AccountMeterSchema, AccountMeterState, AccountMeterStateSchema, AccountMeters, AccountMetersSchema, AccountMetersState, AccountMetersStateSchema, AccountOpenCheckout, AccountOpenCheckoutSchema, AccountOpenInvoice, AccountOpenInvoiceSchema, AccountProfileState, AccountProfileStateSchema, AccountScheduledChange, AccountScheduledChangeSchema, AccountSchema, AccountState, AccountStateChangeCause, AccountStateSchema, AccountSubscriptionState, AccountSubscriptionStateSchema, AccountUpsertInput, AccountUpsertInputSchema, AccountUpsertResponse, AccountUpsertResponseSchema, AccountsRefreshResult, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEvent, AnyBillingEventSchema, 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, 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, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEvent, IngestEventSchema, IngestRejectCode, IngestRejectCodeSchema, IngestRejection, IngestRejectionSchema, Interval, IntervalSchema, InvalidUnitValueError, Invoice, InvoiceBillingReason, InvoiceBillingReasonSchema, InvoiceIssueInput, InvoiceIssueInputSchema, InvoiceIssueResponse, InvoiceIssueResponseSchema, InvoiceLine, InvoiceLineSchema, InvoicePaymentDueEmail, InvoicePaymentDueEmailSchema, InvoicePaymentSession, InvoicePaymentSessionCreateInput, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatus, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInput, InvoiceVoidInputSchema, InvoiceVoidResponse, InvoiceVoidResponseSchema, InvoiceWaiveInput, InvoiceWaiveInputSchema, InvoiceWaiveResponse, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, LegacyEventType, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_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, 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, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocale, SettingsLocaleSchema, Stats, StatsSchema, StewardCapability, Subscription, SubscriptionChangeInput, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatus, SubscriptionStatusSchema, SubscriptionSummary, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponse, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpoint, WebhookEndpointCreateInput, WebhookEndpointCreateInputSchema, WebhookEndpointList, WebhookEndpointListSchema, WebhookEndpointRotateInput, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatus, WebhookEndpointStatusSchema, WebhookLastDelivery, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateApiKeyToken, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
|
package/dist/contract.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
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 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
|
-
export { ACCOUNT_INCLUDES, API_VERSION, AccessStateSchema, AccountBenefitSchema, AccountDeleteResponseSchema, AccountDetailSchema, AccountDunningStateSchema, AccountLocaleSchema, AccountMeterSchema, AccountMeterStateSchema, AccountMetersSchema, AccountMetersStateSchema, AccountOpenCheckoutSchema, AccountOpenInvoiceSchema, AccountProfileStateSchema, AccountScheduledChangeSchema, AccountSchema, AccountStateSchema, AccountSubscriptionStateSchema, AccountUpsertInputSchema, AccountUpsertResponseSchema, AccountsRefreshResultSchema, ActorRefSchema, AmountMinorSchema, AnyBillingEventSchema, ApiVersionSchema, BENEFIT_TYPES, BILLING_PATH_PLACEHOLDERS, BenefitDefSchema, BenefitDescriptionSchema, BenefitSourceSchema, BenefitTypeSchema, BillingEventSchema, BillingPathSchema, BillingProfileKindSchema, BillingProfileSchema, BillingSettingsPatchSchema, BillingSettingsSchema, BrandingPatchSchema, BrandingSchema, CHECKOUT_ERRORS, CancelSubscriptionInputSchema, CancelSubscriptionResponseSchema, CatalogBenefitSchema, CatalogMeterSchema, CatalogPlanSchema, CatalogSchema, CatalogSyncInputSchema, CatalogSyncResultSchema, ChangeSubscriptionResponseSchema, CheckoutConsentInputSchema, CheckoutPrefillSchema, CheckoutSessionCreateInputSchema, CheckoutSessionCreatedSchema, CheckoutSessionResponseSchema, CheckoutSessionSchema, CheckoutStatusSchema, CodeSchema, ConsentSchema, CreditGrantInputSchema, CreditGrantResponseSchema, CurrencySchema, DEFAULT_CHECKOUT_TTL_MINUTES, DEFAULT_ENDPOINT_EVENT_TYPES, DEFAULT_EVENT_RETENTION_DAYS, DEFAULT_LATE_GRACE_MINUTES, DEFAULT_METER_CHARGE_MODE, DEFAULT_METER_LOW_AT, DEFAULT_MIN_INVOICE_MINOR, DEFAULT_PAYMENT_DUE_DAYS, DEFAULT_PORTAL_TTL_MINUTES, DOCTOR_PENDING_BACKLOG_MS, DOCTOR_PROVIDER_ENVIRONMENTS, DOCTOR_REQUIRED_BRANDING, DOCTOR_REQUIRED_LEGAL_LINKS, DOCTOR_ROLLUP_LAG_WARN_SECONDS, DOCTOR_SEVERITIES, DateTimeSchema, DecimalUnitsStringSchema, DoctorBillingSchema, DoctorCatalogSchema, DoctorEmailsSchema, DoctorEndpointSchema, DoctorEventsSchema, DoctorHostedSchema, DoctorOverageSchema, DoctorProviderSchema, DoctorReportSchema, DoctorSettingsSchema, DoctorSeveritySchema, DoctorUnsellablePriceSchema, DoctorWarningSchema, EMAIL_LOCALES, EMAIL_PAYLOAD_SCHEMAS, EMAIL_TEMPLATES, EMAIL_TEMPLATE_BY_EVENT, ERROR_CATEGORIES, ERROR_CODES, EVENTS_INGEST_MAX_BYTES, EVENTS_INGEST_MAX_EVENTS, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, EVENT_TYPES, EmailExtraTextSchema, EmailSenderSchema, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplateSchema, EmailTemplateSettingsSchema, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventExternalIdSchema, EventIdSchema, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventTypeSchema, EventsIngestInputSchema, EventsIngestResultSchema, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDefSchema, FeatureFlagBenefitDefSchema, FeatureFlagPropertiesSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEventSchema, IngestRejectCodeSchema, IngestRejectionSchema, IntervalSchema, InvalidUnitValueError, InvoiceBillingReasonSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoicePaymentDueEmailSchema, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, InvoiceWaiveInputSchema, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_CATALOG_BENEFITS, MAX_CATALOG_METERED_PRICES, MAX_CATALOG_METERS, MAX_CHECKOUT_CONSENT_DOCS, MAX_GRANT_BENEFITS, MAX_METERED_PRICE_PER_UNITS, MAX_METER_UNITS, MAX_NOTIFICATION_EMAILS, MAX_PLAN_BENEFITS, METERED_PRICE_TAX_MISMATCH, METER_AGGREGATION_KINDS, METER_CHARGE_MODES, METER_CHARGE_STATUSES, METER_CREDIT_ENTRY_KINDS, METER_FILTER_MAX_CONDITIONS, METER_FILTER_MAX_DEPTH, METER_FILTER_OPERATORS, METER_PERIOD_STATUSES, METER_STANDINGS, MICRO_UNITS_PER_UNIT, ManualInvoiceInputSchema, ManualInvoiceLineInputSchema, ManualInvoiceResponseSchema, MeResponseSchema, MetadataSchema, MeterAggregationSchema, MeterChargeLineSchema, MeterChargeListSchema, MeterChargeModeSchema, MeterChargeSchema, MeterChargeStatusSchema, MeterCreditBenefitDefSchema, MeterCreditEntryKindSchema, MeterCreditEntrySchema, MeterCreditPropertiesSchema, MeterDefSchema, MeterFilterSchema, MeterLabelSchema, MeterLowAtSchema, MeterPeriodListSchema, MeterPeriodSchema, MeterPeriodStatusSchema, MeterStandingSchema, MeterUnitsSchema, MeteredPriceDefSchema, MeteredPriceSchema, MeteringSettingsPatchSchema, MeteringSettingsSchema, NoticedMeteredRateSchema, NotificationEmailsSchema, OVERRIDE_BENEFIT_SOURCE, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, PaymentDueDaysSchema, PaymentSchema, PingSchema, PlanDefSchema, PlanSetInputSchema, PlanSetModeSchema, PlanSetResponseSchema, PlanSetWarningSchema, PortalSessionCreateInputSchema, PortalSessionSchema, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRateSchema, PriceDefSchema, PriceSchema, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayloadSchema, ResyncResultSchema, ReturnOriginSchema, SETTINGS_LOCALES, STEWARD_CAPABILITIES, SettingsLocaleSchema, StatsSchema, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
|
|
4
|
+
export { ACCOUNT_INCLUDES, API_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, EVENT_DETAIL_SCHEMAS, EVENT_METADATA_KEY_MAX_LENGTH, EVENT_METADATA_MAX_PAIRS, EVENT_METADATA_STRING_MAX_LENGTH, EVENT_NAME_MAX_LENGTH, EVENT_TIMESTAMP_MAX_AGE_DAYS, EVENT_TIMESTAMP_MAX_SKEW_MINUTES, EVENT_TYPES, EmailExtraTextSchema, EmailSenderSchema, EmailSettingsPatchSchema, EmailSettingsSchema, EmailTemplateSchema, EmailTemplateSettingsSchema, EntitlementSnapshotSchema, EntitlementValueSchema, EntitlementsSchema, ErrorCategorySchema, ErrorResponseSchema, EventExternalIdSchema, EventIdSchema, EventMetadataKeySchema, EventMetadataSchema, EventMetadataValueSchema, EventNameSchema, EventRetentionDaysSchema, EventTypeSchema, EventsIngestInputSchema, EventsIngestResultSchema, EventsSettingsPatchSchema, EventsSettingsSchema, ExternalRefSchema, FEATURE_FLAG_BENEFIT_TYPE, FULL_STATE_EVENT_TYPES, FeatureDefSchema, FeatureFlagBenefitDefSchema, FeatureFlagPropertiesSchema, FeatureTypeSchema, GrantCreateInputSchema, GrantCreateResponseSchema, GrantSchema, HEADER_ACTOR_REF, HEADER_API_VERSION, HEADER_IDEMPOTENCY_KEY, HEADER_REQUEST_ID, HEADER_SDK, INDIVIDUAL_IDENTITY_PLACEHOLDER, INGEST_REJECT_CODES, INVOICE_BILLING_REASONS, INVOICE_PAYMENT_STATUSES, IdSchema, IngestEventSchema, IngestRejectCodeSchema, IngestRejectionSchema, IntervalSchema, InvalidUnitValueError, InvoiceBillingReasonSchema, InvoiceIssueInputSchema, InvoiceIssueResponseSchema, InvoiceLineSchema, InvoicePaymentDueEmailSchema, InvoicePaymentSessionCreateInputSchema, InvoicePaymentSessionSchema, InvoicePaymentStatusSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceVoidInputSchema, InvoiceVoidResponseSchema, InvoiceWaiveInputSchema, InvoiceWaiveResponseSchema, LEGACY_EVENT_TYPES, LIVE_SUBSCRIPTION_STATUSES, LateGraceMinutesSchema, MANUAL_INVOICE_MAX_AMOUNT_MINOR, MAX_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, 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, SubscriptionChangeInputSchema, SubscriptionSchema, SubscriptionStatusSchema, SubscriptionSummarySchema, TtlMinutesSchema, UNIT_DECIMALS, UncancelSubscriptionResponseSchema, WEBHOOK_ENDPOINT_STATUSES, WEBHOOK_SECRET_PREFIX, WebUrlSchema, WebhookEndpointCreateInputSchema, WebhookEndpointListSchema, WebhookEndpointRotateInputSchema, WebhookEndpointSchema, WebhookEndpointStatusSchema, WebhookLastDeliverySchema, WebhookSecretSchema, addUtcMonths, applyEmailSettingsPatch, applySettingsPatch, billingPageUrl, billingSettingsOf, buildDoctorReport, canonicalMeterFilter, checkoutRedirectUrl, consumptionOf, contributionOf, emailLocaleOf, emailReadinessOf, emailRecipients, emailTemplateOf, emailTemplateSettings, endpointDiagnosisOf, errorCodeSpec, eventsSettingsOf, featureValueMatchesType, fromMicroUnits, generateApiKeyToken, generateWebhookSecret, hasControlCharacters, hostedReadinessOf, isE164, isEmailRelevant, isEventTimestampInRange, isEventType, isFeatureFlagBenefit, isGrantActive, isKnownErrorCode, isLiveSubscriptionStatus, isMeterCreditBenefit, isMicroPrecise, isReturnUrlAllowed, isValidTckn, isValidVkn, liveSubscriptionOf, manualInvoiceTotals, matchesFilter, meterChargeTotals, meterCreditsOf, meterFilterClauseOf, meteringSettingsOf, microToDecimalString, overageCapReached, overageOf, parseMicroUnits, periodBoundsOf, plainDecimalOf, rateOverage, resolveBenefits, resolveEntitlements, returnOriginsOf, rolloverOf, splitInclusiveTax, standingOf, toMicroUnits, uniqueEmails, webhookEndpointUrlProblem };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as WebhookEndpointStatus, $a as CatalogPlanSchema, $i as ManualInvoiceInputSchema, $n as matchesFilter, $o as MAX_METERED_PRICE_PER_UNITS, $r as ErrorCode, $s as canonicalMeterFilter, $t as EmailExtraTextSchema, A as DoctorSeveritySchema, Aa as CheckoutPrefillSchema, Ai as MeResponse, An as PLAN_SET_MODES, Ao as CatalogBenefit, Ar as IngestRejectCode, As as MeterFilterClause, At as PaymentDueDaysSchema, B as hostedReadinessOf, Ba as CheckoutStatus, Bi as InvoiceLineSchema, Bn as ResyncResult, Bo as featureValueMatchesType, Br as FEATURE_FLAG_BENEFIT_TYPE, Bs as MeterPeriod, Bt as WebUrlSchema, C as DoctorProvider, Ca as PortalSessionError, Cc as InvoiceBillingReason, Ci as InvoiceIssueResponseSchema, Cn as emailLocaleOf, Co as BenefitDefSchema, Cr as EventsIngestInput, Cs as MeterCreditEntrySchema, Ct as LateGraceMinutesSchema, D as DoctorSettings, Da as CheckoutConsentInputSchema, Dc as MetadataSchema, Di as InvoiceWaiveResponseSchema, Dn as isEmailRelevant, Do as BenefitSourceSchema, Dr as INGEST_REJECT_CODES, Ds as MeterDefInput, Dt as MeteringSettings, E as DoctorReportSchema, Ea as CheckoutConsentInput, Ec as InvoicePaymentStatusSchema, Ei as InvoiceWaiveResponse, En as emailTemplateSettings, Eo as BenefitFeatureType, Er as EventsIngestResultSchema, Es as MeterDef, Et as MeterChargeModeSchema, F as DoctorWarningCode, Fa as CheckoutSessionCreateInputSchema, Fi as UncancelSubscriptionResponseSchema, Fn as PlanSetResponse, Fo as FeatureFlagProperties, Fr as isEventTimestampInRange, Fs as MeterFilterSchema, Ft as ReturnOriginSchema, G as WebhookEndpoint, Ga as MAX_CHECKOUT_CONSENT_DOCS, Gi as InvoiceSchema, Gn as MeterCreditBenefit, Go as AccountMeters, Gr as ResolvedBenefit, Gs as MeterPeriodStatusSchema, Gt as meteringSettingsOf, H as EventTypeSchema, Ha as Consent, Hi as InvoicePaymentSessionCreateInput, Hn as GrantedMeterCredit, Ho as isMeterCreditBenefit, Hr as OVERRIDE_BENEFIT_SOURCE, Hs as MeterPeriodListSchema, Ht as billingSettingsOf, I as DoctorWarningSchema, Ia as CheckoutSessionCreateParsed, Ii as Invoice, In as PlanSetResponseSchema, Io as FeatureFlagPropertiesSchema, Ir as BenefitRulesDefinition, Is as MeterFilterValue, It as SETTINGS_LOCALES, J as WebhookEndpointList, Ja as checkoutRedirectUrl, Ji as InvoiceVoidInputSchema, Jn as MeterRulesMeter, Jo as CatalogMeterSchema, Jr as isGrantActive, Js as MeterUnitsSchema, Jt as BillingPathSchema, K as WebhookEndpointCreateInput, Ka as ProviderPayload, Ki as InvoiceStatusSchema, Kn as MeterCreditsOptions, Ko as AccountMetersSchema, Kr as ResolvedBenefits, Ks as MeterStanding, Kt as returnOriginsOf, L as buildDoctorReport, La as CheckoutSessionCreated, Li as InvoiceIssueInput, Ln as PlanSetWarning, Lo as MeterCreditAccountBenefit, Lr as BenefitRulesSubscription, Ls as MeterLabel, Lt as SettingsLocale, M as DoctorUnsellablePriceSchema, Ma as CheckoutReturnStatus, Mi as STEWARD_CAPABILITIES, Mn as PlanSetInputSchema, Mo as FeatureFlagAccountBenefit, Mr as IngestRejection, Ms as MeterFilterGroup, Mt as ProductSettingsPatch, N as DoctorUnsellableReason, Na as CheckoutSession, Ni as StewardCapability, Nn as PlanSetMode, No as FeatureFlagBenefitDef, Nr as IngestRejectionSchema, Ns as MeterFilterOperand, Nt as ProductSettingsPatchSchema, O as DoctorSettingsSchema, Oa as CheckoutError, Oi as ManualInvoiceResponse, On as liveSubscriptionOf, Oo as BenefitType, Or as IngestEvent, Os as MeterDefSchema, Ot as MeteringSettingsPatchSchema, P as DoctorWarning, Pa as CheckoutSessionCreateInput, Pi as UncancelSubscriptionResponse, Pn as PlanSetModeSchema, Po as FeatureFlagBenefitDefSchema, Pr as hasControlCharacters, Ps as MeterFilterOperator, Pt as ProductSettingsSchema, Q as WebhookEndpointSchema, Qa as CatalogPlan, Qi as ManualInvoiceInput, Qn as contributionOf, Qo as DecimalUnitsStringSchema, Qr as ERROR_CODES, Qs as MeteredPriceSchema, Qt as EMAIL_TEMPLATE_BY_EVENT, R as emailReadinessOf, Ra as CheckoutSessionCreatedSchema, Ri as InvoiceIssueInputSchema, Rn as PlanSetWarningCode, Ro as MeterCreditBenefitDef, Rr as EntitlementRulesCatalog, Rs as MeterLabelSchema, Rt as SettingsLocaleSchema, S as DoctorOverageSchema, Sa as PortalSessionCreateInputSchema, Sc as IntervalSchema, Si as InvoiceIssueResponse, Sn as billingPageUrl, So as BenefitDef, Sr as EventNameSchema, Ss as MeterCreditEntryKindSchema, St as EventsSettingsSchema, T as DoctorReport, Ta as CHECKOUT_ERRORS, Tc as InvoicePaymentStatus, Ti as InvoiceVoidResponseSchema, Tn as emailTemplateOf, To as BenefitDescriptionSchema, Tr as EventsIngestResult, Ts as MeterCreditPropertiesSchema, Tt as MeterChargeMode, U as WEBHOOK_ENDPOINT_STATUSES, Ua as ConsentSchema, Ui as InvoicePaymentSessionCreateInputSchema, Un as MeterChargeTotalsLine, Uo as AccountMeter, Ur as ResolveBenefitsInput, Us as MeterPeriodSchema, Ut as eventsSettingsOf, V as DEFAULT_ENDPOINT_EVENT_TYPES, Va as CheckoutStatusSchema, Vi as InvoicePaymentSession, Vn as ResyncResultSchema, Vo as isFeatureFlagBenefit, Vr as LIVE_SUBSCRIPTION_STATUSES, Vs as MeterPeriodList, Vt as applySettingsPatch, W as WEBHOOK_SECRET_PREFIX, Wa as INDIVIDUAL_IDENTITY_PLACEHOLDER, Wi as InvoicePaymentSessionSchema, Wn as MeterContribution, Wo as AccountMeterSchema, Wr as ResolveEntitlementsInput, Ws as MeterPeriodStatus, Wt as isReturnUrlAllowed, X as WebhookEndpointRotateInput, Xa as AccountsRefreshResultSchema, Xi as InvoiceWaiveInputSchema, Xn as addUtcMonths, Xo as CreditGrantInputSchema, Xr as resolveBenefits, Xs as MeteredPriceDef, Xt as EMAIL_PAYLOAD_SCHEMAS, Y as WebhookEndpointListSchema, Ya as AccountsRefreshResult, Yi as InvoiceWaiveInput, Yn as OverageRateInput, Yo as CreditGrantInput, Yr as isLiveSubscriptionStatus, Ys as MeteredPrice, Yt as EMAIL_LOCALES, Z as WebhookEndpointRotateInputSchema, Za as Catalog, Zi as MANUAL_INVOICE_MAX_AMOUNT_MINOR, Zn as consumptionOf, Zo as DEFAULT_METER_LOW_AT, Zr as resolveEntitlements, Zs as MeteredPriceDefSchema, Zt as EMAIL_TEMPLATES, _ as DoctorEventsSchema, _a as SubscriptionChangeInputSchema, _c as ExternalRefSchema, _i as HEADER_ACTOR_REF, _n as PriceChangeNoticeEmail, _o as PriceDefSchema, _r as EventMetadata, _s as MeterChargeSchema, _t as DEFAULT_PAYMENT_DUE_DAYS, a as DOCTOR_ROLLUP_LAG_WARN_SECONDS, aa as CancelSubscriptionInputSchema, ac as Currency, ai as AccountUpsertResponse, an as EmailSettingsPatchSchema, ao as FeatureDef, ar as rateOverage, as as METER_FILTER_MAX_DEPTH, at as webhookEndpointUrlProblem, b as DoctorHostedSchema, ba as PortalSession, bc as IdSchema, bi as HEADER_REQUEST_ID, bn as PriceChangeNoticeMeteredRateSchema, bo as AccountBenefitSchema, br as EventMetadataValue, bs as MeterCreditEntry, bt as EventsSettings, c as DoctorBillingSchema, ca as GrantCreateInputSchema, cc as ERROR_CATEGORIES, ci as CancelSubscriptionResponseSchema, cn as EmailTemplateSchema, co as MAX_CATALOG_BENEFITS, cr as EVENTS_INGEST_MAX_BYTES, cs as METER_STANDINGS, ct as BillingSettingsSchema, d as DoctorEmails, da as Payment, dc as Entitlements, di as CheckoutSessionResponse, dn as InvoicePaymentDueEmail, do as MAX_PLAN_BENEFITS, dr as EVENT_METADATA_MAX_PAIRS, ds as MeterAggregationSchema, dt as BrandingSchema, ea as ManualInvoiceLineInput, ec as meterFilterClauseOf, ei as ErrorCodeSpec, en as EmailLocale, eo as CatalogSchema, er as meterChargeTotals, es as MAX_METER_UNITS, et as WebhookEndpointStatusSchema, f as DoctorEmailsSchema, fa as PaymentSchema, fc as EntitlementsSchema, fi as CheckoutSessionResponseSchema, fn as InvoicePaymentDueEmailSchema, fo as METERED_PRICE_TAX_MISMATCH, fr as EVENT_METADATA_STRING_MAX_LENGTH, fs as MeterCharge, ft as DEFAULT_CHECKOUT_TTL_MINUTES, g as DoctorEvents, ga as SubscriptionChangeInput, gc as ErrorResponseSchema, gi as GrantCreateResponseSchema, gn as NotificationEmailsSchema, go as PriceDef, gr as EventExternalIdSchema, gs as MeterChargeListSchema, gt as DEFAULT_MIN_INVOICE_MINOR, h as DoctorEndpointSchema, ha as Subscription, hc as ErrorResponse, hi as GrantCreateResponse, hn as NoticedMeteredRateSchema, ho as Price, hr as EVENT_TIMESTAMP_MAX_SKEW_MINUTES, hs as MeterChargeList, ht as DEFAULT_METER_CHARGE_MODE, i as DOCTOR_REQUIRED_LEGAL_LINKS, ia as CancelSubscriptionInput, ic as CodeSchema, ii as AccountDetailSchema, in as EmailSettingsPatch, io as CatalogSyncResultSchema, ir as periodBoundsOf, is as METER_FILTER_MAX_CONDITIONS, it as generateWebhookSecret, j as DoctorUnsellablePrice, ja as CheckoutRedirectTarget, ji as MeResponseSchema, jn as PlanSetInput, jo as CatalogBenefitSchema, jr as IngestRejectCodeSchema, js as MeterFilterCondition, jt as ProductSettings, k as DoctorSeverity, ka as CheckoutPrefill, ki as ManualInvoiceResponseSchema, kn as uniqueEmails, ko as BenefitTypeSchema, kr as IngestEventSchema, ks as MeterFilter, kt as MeteringSettingsSchema, l as DoctorCatalog, la as GrantSchema, lc as EntitlementValue, li as ChangeSubscriptionResponse, ln as EmailTemplateSettings, lo as MAX_CATALOG_METERED_PRICES, lr as EVENTS_INGEST_MAX_EVENTS, ls as MeterAggregation, lt as Branding, m as DoctorEndpointDiagnosis, ma as StatsSchema, mc as ErrorCategorySchema, mi as CreditGrantResponseSchema, mn as NoticedMeteredRate, mo as PlanDefSchema, mr as EVENT_TIMESTAMP_MAX_AGE_DAYS, ms as MeterChargeLineSchema, mt as DEFAULT_LATE_GRACE_MINUTES, n as DOCTOR_PROVIDER_ENVIRONMENTS, na as manualInvoiceTotals, nc as ActorRefSchema, ni as isKnownErrorCode, nn as EmailSenderSchema, no as CatalogSyncInputSchema, nr as overageCapReached, ns as METER_CHARGE_STATUSES, nt as WebhookLastDeliverySchema, o as DOCTOR_SEVERITIES, oa as Grant, oc as CurrencySchema, oi as AccountUpsertResponseSchema, on as EmailSettingsSchema, oo as FeatureDefSchema, or as rolloverOf, os as METER_FILTER_OPERATORS, ot as BillingSettings, p as DoctorEndpoint, pa as Stats, pc as ErrorCategory, pi as CreditGrantResponse, pn as MAX_NOTIFICATION_EMAILS, po as PlanDef, pr as EVENT_NAME_MAX_LENGTH, ps as MeterChargeLine, pt as DEFAULT_EVENT_RETENTION_DAYS, q as WebhookEndpointCreateInputSchema, qa as ProviderPayloadSchema, qi as InvoiceVoidInput, qn as MeterRulesEvent, qo as CatalogMeter, qr as ResolvedEntitlements, qs as MeterStandingSchema, qt as BILLING_PATH_PLACEHOLDERS, r as DOCTOR_REQUIRED_BRANDING, ra as splitInclusiveTax, rc as AmountMinorSchema, ri as AccountDetail, rn as EmailSettings, ro as CatalogSyncResult, rr as overageOf, rs as METER_CREDIT_ENTRY_KINDS, rt as WebhookSecretSchema, s as DoctorBilling, sa as GrantCreateInput, sc as DateTimeSchema, si as CancelSubscriptionResponse, sn as EmailTemplate, so as FeatureTypeSchema, sr as standingOf, ss as METER_PERIOD_STATUSES, st as BillingSettingsPatchSchema, t as DOCTOR_PENDING_BACKLOG_MS, ta as ManualInvoiceLineInputSchema, tc as API_VERSION, ti as errorCodeSpec, tn as EmailRelevanceFacts, to as CatalogSyncInput, tr as meterCreditsOf, ts as METER_AGGREGATION_KINDS, tt as WebhookLastDelivery, u as DoctorCatalogSchema, ua as MAX_GRANT_BENEFITS, uc as EntitlementValueSchema, ui as ChangeSubscriptionResponseSchema, un as EmailTemplateSettingsSchema, uo as MAX_CATALOG_METERS, ur as EVENT_METADATA_KEY_MAX_LENGTH, us as MeterAggregationKind, ut as BrandingPatchSchema, v as DoctorFacts, va as SubscriptionSchema, vc as INVOICE_BILLING_REASONS, vi as HEADER_API_VERSION, vn as PriceChangeNoticeEmailSchema, vo as PriceSchema, vr as EventMetadataKeySchema, vs as MeterChargeStatus, vt as DEFAULT_PORTAL_TTL_MINUTES, w as DoctorProviderSchema, wa as PortalSessionSchema, wc as InvoiceBillingReasonSchema, wi as InvoiceVoidResponse, wn as emailRecipients, wo as BenefitDescription, wr as EventsIngestInputSchema, ws as MeterCreditProperties, wt as METER_CHARGE_MODES, x as DoctorOverage, xa as PortalSessionCreateInput, xc as Interval, xi as HEADER_SDK, xn as applyEmailSettingsPatch, xo as BENEFIT_TYPES, xr as EventMetadataValueSchema, xs as MeterCreditEntryKind, xt as EventsSettingsPatchSchema, y as DoctorHosted, ya as PORTAL_SESSION_ERRORS, yc as INVOICE_PAYMENT_STATUSES, yi as HEADER_IDEMPOTENCY_KEY, yn as PriceChangeNoticeMeteredRate, yo as AccountBenefit, yr as EventMetadataSchema, ys as MeterChargeStatusSchema, yt as EventRetentionDaysSchema, z as endpointDiagnosisOf, za as CheckoutSessionSchema, zi as InvoiceLine, zn as PlanSetWarningSchema, zo as MeterCreditBenefitDefSchema, zr as EntitlementRulesGrant, zs as MeterLowAtSchema, zt as TtlMinutesSchema } from "./_chunks/index.js";
|
|
1
|
+
import { $ as 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";
|
|
5
5
|
//#region src/catalog.d.ts
|
|
6
|
-
type FeatureType =
|
|
6
|
+
type FeatureType = 'limit' | 'boolean' | 'string';
|
|
7
7
|
export type FeatureSpec<T extends FeatureType = FeatureType> = {
|
|
8
8
|
readonly type: T;
|
|
9
9
|
readonly description?: string;
|
|
@@ -12,12 +12,12 @@ type FeatureOptions = {
|
|
|
12
12
|
description?: string;
|
|
13
13
|
};
|
|
14
14
|
/** Sayısal limit: negatif olmayan tam sayı ya da `null` (sınırsız). */
|
|
15
|
-
export declare const limit: (options?: FeatureOptions) => FeatureSpec<
|
|
15
|
+
export declare const limit: (options?: FeatureOptions) => FeatureSpec<'limit'>;
|
|
16
16
|
/** Açık/kapalı özellik. */
|
|
17
|
-
export declare const flag: (options?: FeatureOptions) => FeatureSpec<
|
|
17
|
+
export declare const flag: (options?: FeatureOptions) => FeatureSpec<'boolean'>;
|
|
18
18
|
/** Serbest metin ayarı. */
|
|
19
|
-
export declare const text: (options?: FeatureOptions) => FeatureSpec<
|
|
20
|
-
export type FeatureValue<F extends FeatureSpec> = F[
|
|
19
|
+
export declare const text: (options?: FeatureOptions) => FeatureSpec<'string'>;
|
|
20
|
+
export type FeatureValue<F extends FeatureSpec> = F['type'] extends 'limit' ? number | null : F['type'] extends 'boolean' ? boolean : string;
|
|
21
21
|
export type FeatureSpecs = Record<string, FeatureSpec>;
|
|
22
22
|
/** Feature listesinin tam, tipli hak nesnesi. */
|
|
23
23
|
export type EntitlementsFor<F extends FeatureSpecs> = { [K in keyof F]: FeatureValue<F[K]>; };
|
|
@@ -25,7 +25,7 @@ export type EntitlementsFor<F extends FeatureSpecs> = { [K in keyof F]: FeatureV
|
|
|
25
25
|
export type FeatureFlagValues = Readonly<Record<string, EntitlementValue>>;
|
|
26
26
|
/** A `feature_flag` benefit (`featureFlag()`): the catalog feature values it grants. */
|
|
27
27
|
export type FeatureFlagSpec<V extends FeatureFlagValues = FeatureFlagValues> = {
|
|
28
|
-
readonly type:
|
|
28
|
+
readonly type: 'feature_flag';
|
|
29
29
|
readonly properties: Readonly<V>;
|
|
30
30
|
/** Customer-facing text per locale (hosted checkout and portal "what's included"). */
|
|
31
31
|
readonly description?: BenefitDescription;
|
|
@@ -35,7 +35,7 @@ export type FeatureFlagSpec<V extends FeatureFlagValues = FeatureFlagValues> = {
|
|
|
35
35
|
* the start of every meter period; `rolloverCapUnits` turns rollover on (M5, M6).
|
|
36
36
|
*/
|
|
37
37
|
export type MeterCreditSpec<M extends string = string> = {
|
|
38
|
-
readonly type:
|
|
38
|
+
readonly type: 'meter_credit';
|
|
39
39
|
readonly properties: {
|
|
40
40
|
readonly meter: M;
|
|
41
41
|
readonly units: number;
|
|
@@ -84,7 +84,7 @@ export declare const sum: (key: string) => MeterAggregation;
|
|
|
84
84
|
export declare const max: (key: string) => MeterAggregation;
|
|
85
85
|
export declare const unique: (key: string) => MeterAggregation;
|
|
86
86
|
/** A filter property: the event `name` or `metadata.<key>`. */
|
|
87
|
-
export type MeterFilterProperty =
|
|
87
|
+
export type MeterFilterProperty = 'name' | `metadata.${string}`;
|
|
88
88
|
type NameOperand = string | {
|
|
89
89
|
readonly eq: string;
|
|
90
90
|
} | {
|
|
@@ -233,11 +233,11 @@ export type CatalogResolveOptions = {
|
|
|
233
233
|
* stays open: steward may already know a benefit this build of the catalog does not (catalog pushed
|
|
234
234
|
* before the product deployed), so any string is accepted.
|
|
235
235
|
*/
|
|
236
|
-
export type CatalogAccountBenefit<B extends string = string> = Omit<AccountBenefit,
|
|
236
|
+
export type CatalogAccountBenefit<B extends string = string> = Omit<AccountBenefit, 'code'> & {
|
|
237
237
|
code: B | (string & Record<never, never>) | null;
|
|
238
238
|
};
|
|
239
239
|
/** `AccountState` with `benefits[].code` typed by the catalog (see `CatalogAccountBenefit`). */
|
|
240
|
-
export type CatalogAccountState<B extends string = string> = Omit<AccountState,
|
|
240
|
+
export type CatalogAccountState<B extends string = string> = Omit<AccountState, 'benefits'> & {
|
|
241
241
|
benefits?: CatalogAccountBenefit<B>[] | undefined;
|
|
242
242
|
};
|
|
243
243
|
export type DefinedCatalog<F extends FeatureSpecs, P extends string, B extends string = never, M extends string = never, E extends string = never> = {
|
|
@@ -301,7 +301,7 @@ export type StateFallbackEvent = {
|
|
|
301
301
|
reason: string;
|
|
302
302
|
};
|
|
303
303
|
/** 404 `account_not_found`: `throw` hata (varsayılan), `fallback` ürünün `fallback(ref)`'i (kesinti sayılmaz). */
|
|
304
|
-
export type StateMissingPolicy =
|
|
304
|
+
export type StateMissingPolicy = 'throw' | 'fallback';
|
|
305
305
|
export type StateCacheOptions = {
|
|
306
306
|
/** Varsayılan 30 sn. */
|
|
307
307
|
ttlMs?: number;
|
|
@@ -320,7 +320,7 @@ export type StateCacheOptions = {
|
|
|
320
320
|
/** Önbellekteki en çok hesap (LRU). Varsayılan 10 000. */
|
|
321
321
|
maxEntries?: number;
|
|
322
322
|
/** Bayat değer/fallback uyarıları; varsayılan `console`. */
|
|
323
|
-
logger?: Pick<StewardLogger,
|
|
323
|
+
logger?: Pick<StewardLogger, 'warn'>;
|
|
324
324
|
/** Saat, ms (test için). Varsayılan `Date.now`. */
|
|
325
325
|
now?: () => number;
|
|
326
326
|
};
|
|
@@ -393,19 +393,19 @@ export declare class StewardApiError extends StewardError {
|
|
|
393
393
|
}
|
|
394
394
|
/** Steward'a ulaşılamadı ya da zaman aşımı; yanıt yok (`httpStatus` 0), tekrar denenebilir. */
|
|
395
395
|
export declare class StewardNetworkError extends StewardError {
|
|
396
|
-
constructor(options?: Omit<StewardErrorOptions,
|
|
397
|
-
code?:
|
|
396
|
+
constructor(options?: Omit<StewardErrorOptions, 'code' | 'httpStatus' | 'category'> & {
|
|
397
|
+
code?: 'network_error' | 'timeout';
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
/** Yanıt sözleşme şemasına uymadı (sürüm kayması); aynı istek aynı sonucu verir. */
|
|
401
401
|
export declare class StewardContractError extends StewardError {
|
|
402
|
-
constructor(options?: Omit<StewardErrorOptions,
|
|
402
|
+
constructor(options?: Omit<StewardErrorOptions, 'code' | 'category'> & {
|
|
403
403
|
code?: string;
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
/** SDK yanlış yapılandırıldı (eksik `STEWARD_URL`, geçersiz katalog…); istek hiç gönderilmedi. */
|
|
407
407
|
export declare class StewardConfigError extends StewardError {
|
|
408
|
-
constructor(options?: Omit<StewardErrorOptions,
|
|
408
|
+
constructor(options?: Omit<StewardErrorOptions, 'code' | 'httpStatus' | 'category' | 'retryable'> & {
|
|
409
409
|
code?: string;
|
|
410
410
|
});
|
|
411
411
|
}
|
|
@@ -424,7 +424,7 @@ export type TrackOptions = {
|
|
|
424
424
|
timestamp?: Date | string;
|
|
425
425
|
};
|
|
426
426
|
/** An event for `ingest()`: `IngestEvent` with an optional `externalId` (generated) and `timestamp` (now). */
|
|
427
|
-
export type EventInput = Omit<IngestEvent,
|
|
427
|
+
export type EventInput = Omit<IngestEvent, 'externalId' | 'timestamp'> & {
|
|
428
428
|
externalId?: string;
|
|
429
429
|
timestamp?: Date | string;
|
|
430
430
|
};
|
|
@@ -432,7 +432,7 @@ export type EventInput = Omit<IngestEvent, "externalId" | "timestamp"> & {
|
|
|
432
432
|
export type EventsRejection = IngestRejection & {
|
|
433
433
|
event: IngestEvent;
|
|
434
434
|
};
|
|
435
|
-
export type EventsDropReason =
|
|
435
|
+
export type EventsDropReason = 'queue_full' | 'invalid_event' | 'request_failed';
|
|
436
436
|
export type EventsDropInfo = {
|
|
437
437
|
reason: EventsDropReason;
|
|
438
438
|
/** `invalid_event`: what is wrong; `request_failed`: the error code. */
|
|
@@ -467,7 +467,7 @@ export type EventsOptions<E extends string = never> = {
|
|
|
467
467
|
/** Events that will not be sent (queue full, invalid, permanent failure). */
|
|
468
468
|
onDrop?: (events: IngestEvent[], info: EventsDropInfo) => void;
|
|
469
469
|
/** Default `console`. */
|
|
470
|
-
logger?: Pick<StewardLogger,
|
|
470
|
+
logger?: Pick<StewardLogger, 'warn'>;
|
|
471
471
|
/** Clock, ms (tests). Default `Date.now`. */
|
|
472
472
|
now?: () => number;
|
|
473
473
|
/** Jitter source in [0, 1) (tests). Default `Math.random`. */
|
|
@@ -515,7 +515,7 @@ export type MetersCache = {
|
|
|
515
515
|
export type MetersPendingEvents = {
|
|
516
516
|
pending(ref: string): readonly PendingEvent[];
|
|
517
517
|
};
|
|
518
|
-
export type MeterSource =
|
|
518
|
+
export type MeterSource = 'live' | 'cached' | 'stale' | 'fallback';
|
|
519
519
|
/**
|
|
520
520
|
* A meter's open period as this process sees it: steward's values (`AccountMeter`) with this
|
|
521
521
|
* process's pending units added. Units are JSON numbers with at most 6 decimals.
|
|
@@ -576,7 +576,7 @@ export type MeterUnavailableContext<M extends string = string> = {
|
|
|
576
576
|
/** The error of the failed read (`StewardNetworkError`, `StewardApiError` 5xx/429). */
|
|
577
577
|
error: unknown;
|
|
578
578
|
};
|
|
579
|
-
export type MeterUnavailablePolicy<M extends string = string> =
|
|
579
|
+
export type MeterUnavailablePolicy<M extends string = string> = 'allow' | 'deny' | ((context: MeterUnavailableContext<M>) => boolean);
|
|
580
580
|
export type MeterFallbackEvent = {
|
|
581
581
|
ref: string;
|
|
582
582
|
/** The meter (`check`, `balance`, a meter steward does not report); `null` for `get`. */
|
|
@@ -602,7 +602,7 @@ export type MetersOptions<M extends string> = {
|
|
|
602
602
|
/** Accounts kept (LRU). Default 10 000. */
|
|
603
603
|
maxEntries?: number;
|
|
604
604
|
/** Default `console`. */
|
|
605
|
-
logger?: Pick<StewardLogger,
|
|
605
|
+
logger?: Pick<StewardLogger, 'warn'>;
|
|
606
606
|
/** Clock, ms (tests). Default `Date.now`. */
|
|
607
607
|
now?: () => number;
|
|
608
608
|
};
|
|
@@ -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, 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_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, PING_EVENT_TYPE, PLAN_SET_MODES, PORTAL_SESSION_ERRORS, Payment, PaymentDueDaysSchema, PaymentSchema, Ping, PingSchema, PlanDef, PlanDefSchema, PlanSetInput, PlanSetInputSchema, PlanSetMode, PlanSetModeSchema, PlanSetResponse, PlanSetResponseSchema, PlanSetWarning, PlanSetWarningCode, PlanSetWarningSchema, PortalSession, PortalSessionCreateInput, PortalSessionCreateInputSchema, PortalSessionError, PortalSessionSchema, Price, PriceChangeNoticeEmail, PriceChangeNoticeEmailSchema, PriceChangeNoticeMeteredRate, PriceChangeNoticeMeteredRateSchema, PriceDef, PriceDefSchema, PriceSchema, ProductSettings, ProductSettingsPatch, ProductSettingsPatchSchema, ProductSettingsSchema, ProviderPayload, ProviderPayloadSchema, ResolveBenefitsInput, ResolveEntitlementsInput, ResolvedBenefit, ResolvedBenefits, ResolvedEntitlements, ResyncResult, ResyncResultSchema, 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 };
|