@schematichq/schematic-typescript-node 1.6.3 → 1.6.5
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/README.md +18 -3
- package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/Client.d.ts +38 -6
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/api/resources/billing/types/GetBillingSettingsResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +1 -1
- package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -1
- package/dist/api/resources/billing/types/UpdateBillingSettingsResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/index.d.ts +2 -0
- package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
- package/dist/api/resources/companies/client/Client.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +1 -1
- package/dist/api/resources/credits/client/Client.d.ts +47 -6
- package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +2 -0
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +8 -4
- package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +2 -0
- package/dist/api/resources/credits/client/requests/GetCreditBalanceTimeSeriesRequest.d.ts +15 -0
- package/dist/api/resources/credits/client/requests/GetCreditSpendPolicyUsageRequest.d.ts +13 -0
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +9 -0
- package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +8 -0
- package/dist/api/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +4 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +69 -0
- package/dist/api/resources/entitlements/client/requests/CountCompanyUserUsageRequest.d.ts +29 -0
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/entitlements/client/requests/GetCompanyUserUsageMetricsRequest.d.ts +16 -0
- package/dist/api/resources/entitlements/client/requests/ListCompanyUserUsageRequest.d.ts +29 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/entitlements/client/requests/index.d.ts +3 -0
- package/dist/api/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +20 -0
- package/dist/api/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
- package/dist/api/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +20 -0
- package/dist/api/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/index.d.ts +6 -0
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +3 -0
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
- package/dist/api/resources/plans/client/Client.d.ts +20 -1
- package/dist/api/resources/plans/client/requests/GetPlanVersionDiffRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +2 -2
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/api/resources/plans/types/GetPlanVersionDiffParams.d.ts +7 -0
- package/dist/api/resources/plans/types/GetPlanVersionDiffResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +1 -1
- package/dist/api/resources/plans/types/index.d.ts +2 -0
- package/dist/api/types/BillingCouponResponseData.d.ts +1 -1
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -2
- package/dist/api/types/BillingCustomerSubscription.d.ts +2 -1
- package/dist/api/types/BillingPriceResponseData.d.ts +1 -1
- package/dist/api/types/BillingPriceView.d.ts +1 -1
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -1
- package/dist/api/types/BillingProductPricing.d.ts +1 -1
- package/dist/api/types/BillingSettingsResponseData.d.ts +4 -0
- package/dist/api/types/BillingSubscriptionDiscountView.d.ts +2 -1
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/BillingSubscriptionView.d.ts +1 -1
- package/dist/api/types/CaptureRawEvent.d.ts +2 -0
- package/dist/api/types/CatalogConfigOrderedPlan.d.ts +1 -0
- package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +1 -0
- package/dist/api/types/CatalogConfigPlanCredit.d.ts +4 -0
- package/dist/api/types/CatalogConfigPlanCreditResponseData.d.ts +4 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -1
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -1
- package/dist/api/types/CheckFlagsResponseData.d.ts +2 -0
- package/dist/api/types/CheckoutProblemCode.d.ts +47 -0
- package/dist/api/types/CheckoutProblemResponseData.d.ts +19 -0
- package/dist/api/types/CheckoutProblemSource.d.ts +6 -0
- package/dist/api/types/CheckoutSubscription.d.ts +1 -1
- package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/CompanyUserUsageMetricsResponseData.d.ts +11 -0
- package/dist/api/types/CompanyUserUsageResponseData.d.ts +15 -0
- package/dist/api/types/CompanyUserUsageRowResponseData.d.ts +13 -0
- package/dist/api/types/ComponentDisplaySettings.d.ts +1 -0
- package/dist/api/types/ComponentSettingsResponseData.d.ts +1 -0
- package/dist/api/types/Condition.d.ts +1 -0
- package/dist/api/types/ConditionResponseData.d.ts +1 -0
- package/dist/api/types/ConditionView.d.ts +1 -0
- package/dist/api/types/CouponRequestBody.d.ts +2 -1
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -0
- package/dist/api/types/CreditBalanceEventResponseData.d.ts +10 -0
- package/dist/api/types/CreditBalanceFeatureConsumptionResponseData.d.ts +5 -0
- package/dist/api/types/CreditBalancePointResponseData.d.ts +9 -0
- package/dist/api/types/CreditBalanceTimeSeriesResponseData.d.ts +8 -0
- package/dist/api/types/CreditBundleCurrencyPrice.d.ts +1 -1
- package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +1 -1
- package/dist/api/types/CreditBurnBreakdownLine.d.ts +6 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +2 -2
- package/dist/api/types/CreditCurrencyPrice.d.ts +1 -1
- package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +1 -1
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +6 -1
- package/dist/api/types/CreditEventType.d.ts +3 -0
- package/dist/api/types/CreditLedgerEntryKind.d.ts +10 -0
- package/dist/api/types/CreditSpendPolicy.d.ts +21 -0
- package/dist/api/types/CreditSpendPolicyResponseData.d.ts +9 -0
- package/dist/api/types/CreditSpendWindow.d.ts +6 -0
- package/dist/api/types/CreditSpendWindowUnit.d.ts +6 -0
- package/dist/api/types/CreditUsageReason.d.ts +1 -0
- package/dist/api/types/CreditsInPlan.d.ts +4 -0
- package/dist/api/types/Currency.d.ts +137 -0
- package/dist/api/types/CurrencyPriceRequestBody.d.ts +1 -1
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +9 -1
- package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -1
- package/dist/api/types/EnvironmentDetailResponseData.d.ts +1 -0
- package/dist/api/types/EnvironmentResponseData.d.ts +1 -0
- package/dist/api/types/EstimatedPlanTotal.d.ts +6 -0
- package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/api/types/FeatureEntitlement.d.ts +2 -0
- package/dist/api/types/FeatureEventSource.d.ts +5 -0
- package/dist/api/types/FeatureInPlanResponseData.d.ts +2 -0
- package/dist/api/types/FeatureResponseData.d.ts +2 -0
- package/dist/api/types/FeatureView.d.ts +1 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +1 -1
- package/dist/api/types/InvoiceResponseData.d.ts +1 -1
- package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +1 -0
- package/dist/api/types/ManagePlanRequest.d.ts +3 -1
- package/dist/api/types/ManagePlanResponseResponseData.d.ts +2 -0
- package/dist/api/types/MrrResponseData.d.ts +2 -1
- package/dist/api/types/OrderedPlansInGroup.d.ts +1 -0
- package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
- package/dist/api/types/PlanBillingSource.d.ts +1 -0
- package/dist/api/types/PlanChangeAction.d.ts +1 -0
- package/dist/api/types/PlanChangeAmendmentStatus.d.ts +8 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +4 -0
- package/dist/api/types/PlanCreditOrder.d.ts +4 -0
- package/dist/api/types/PlanCreditVisibility.d.ts +4 -0
- package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -1
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +1 -0
- package/dist/api/types/PlanVersionBillingProductChangeResponseData.d.ts +5 -0
- package/dist/api/types/PlanVersionCreditGrantChangeResponseData.d.ts +9 -0
- package/dist/api/types/PlanVersionDiffChangeType.d.ts +6 -0
- package/dist/api/types/PlanVersionDiffPriceCadence.d.ts +7 -0
- package/dist/api/types/PlanVersionDiffResponseData.d.ts +19 -0
- package/dist/api/types/PlanVersionEntitlementChangeResponseData.d.ts +9 -0
- package/dist/api/types/PlanVersionFieldChangeResponseData.d.ts +5 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
- package/dist/api/types/PlanVersionPriceChangeResponseData.d.ts +7 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +1 -0
- package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -1
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCompany.d.ts +1 -0
- package/dist/api/types/RulesengineCondition.d.ts +1 -0
- package/dist/api/types/RulesengineCreditSpendPolicy.d.ts +21 -0
- package/dist/api/types/RulesengineCreditSpendPolicyScope.d.ts +6 -0
- package/dist/api/types/RulesengineCreditSpendWindow.d.ts +6 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
- package/dist/api/types/RulesengineUser.d.ts +1 -0
- package/dist/api/types/ScheduledDowngradeResponseData.d.ts +2 -1
- package/dist/api/types/UpcomingInvoiceResponseData.d.ts +1 -1
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -0
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
- package/dist/api/types/UserUsageMetric.d.ts +5 -0
- package/dist/api/types/index.d.ts +37 -0
- package/dist/core/fetcher/getResponseBody.d.ts +16 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -1
- package/dist/core/fetcher/signals.d.ts +1 -0
- package/dist/datastream/datastream-client.d.ts +2 -2
- package/dist/index.js +9 -9
- package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +10 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/billing/types/GetBillingSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +2 -1
- package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -1
- package/dist/serialization/resources/billing/types/UpdateBillingSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/index.d.ts +2 -0
- package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +4 -1
- package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +3 -0
- package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +12 -0
- package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageParams.d.ts +11 -0
- package/dist/serialization/resources/credits/types/GetCreditSpendPolicyUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/index.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageParams.d.ts +16 -0
- package/dist/serialization/resources/entitlements/types/CountCompanyUserUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsParams.d.ts +11 -0
- package/dist/serialization/resources/entitlements/types/GetCompanyUserUsageMetricsResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageParams.d.ts +16 -0
- package/dist/serialization/resources/entitlements/types/ListCompanyUserUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +6 -0
- package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +4 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plans/types/GetPlanVersionDiffParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/GetPlanVersionDiffResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/index.d.ts +2 -0
- package/dist/serialization/types/BillingCouponResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -2
- package/dist/serialization/types/BillingCustomerSubscription.d.ts +2 -1
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingPriceView.d.ts +2 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
- package/dist/serialization/types/BillingSettingsResponseData.d.ts +10 -0
- package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +2 -1
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingSubscriptionView.d.ts +2 -1
- package/dist/serialization/types/CaptureRawEvent.d.ts +2 -0
- package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +2 -0
- package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/CatalogConfigPlanCredit.d.ts +10 -0
- package/dist/serialization/types/CatalogConfigPlanCreditResponseData.d.ts +10 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -1
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -1
- package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
- package/dist/serialization/types/CheckoutProblemCode.d.ts +7 -0
- package/dist/serialization/types/CheckoutProblemResponseData.d.ts +23 -0
- package/dist/serialization/types/CheckoutProblemSource.d.ts +7 -0
- package/dist/serialization/types/CheckoutSubscription.d.ts +2 -1
- package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyUserUsageMetricsResponseData.d.ts +13 -0
- package/dist/serialization/types/CompanyUserUsageResponseData.d.ts +15 -0
- package/dist/serialization/types/CompanyUserUsageRowResponseData.d.ts +14 -0
- package/dist/serialization/types/ComponentDisplaySettings.d.ts +1 -0
- package/dist/serialization/types/ComponentSettingsResponseData.d.ts +1 -0
- package/dist/serialization/types/Condition.d.ts +1 -0
- package/dist/serialization/types/ConditionResponseData.d.ts +1 -0
- package/dist/serialization/types/ConditionView.d.ts +1 -0
- package/dist/serialization/types/CouponRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/CreditBalanceEventResponseData.d.ts +18 -0
- package/dist/serialization/types/CreditBalanceFeatureConsumptionResponseData.d.ts +11 -0
- package/dist/serialization/types/CreditBalancePointResponseData.d.ts +13 -0
- package/dist/serialization/types/CreditBalanceTimeSeriesResponseData.d.ts +14 -0
- package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +2 -1
- package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/CreditBurnBreakdownLine.d.ts +12 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -2
- package/dist/serialization/types/CreditCurrencyPrice.d.ts +2 -1
- package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +8 -1
- package/dist/serialization/types/CreditEventType.d.ts +1 -1
- package/dist/serialization/types/CreditLedgerEntryKind.d.ts +7 -0
- package/dist/serialization/types/CreditSpendPolicy.d.ts +19 -0
- package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +7 -0
- package/dist/serialization/types/CreditSpendWindow.d.ts +10 -0
- package/dist/serialization/types/CreditSpendWindowUnit.d.ts +7 -0
- package/dist/serialization/types/CreditUsageReason.d.ts +1 -1
- package/dist/serialization/types/CreditsInPlan.d.ts +10 -0
- package/dist/serialization/types/Currency.d.ts +7 -0
- package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +5 -0
- package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +2 -1
- package/dist/serialization/types/EnvironmentDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/EnvironmentResponseData.d.ts +1 -0
- package/dist/serialization/types/EstimatedPlanTotal.d.ts +13 -0
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureEntitlement.d.ts +1 -0
- package/dist/serialization/types/FeatureEventSource.d.ts +7 -0
- package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureView.d.ts +2 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -1
- package/dist/serialization/types/InvoiceResponseData.d.ts +2 -1
- package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +2 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +3 -1
- package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +3 -0
- package/dist/serialization/types/MrrResponseData.d.ts +2 -1
- package/dist/serialization/types/OrderedPlansInGroup.d.ts +2 -0
- package/dist/serialization/types/PendingMigrationResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanBillingSource.d.ts +1 -1
- package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
- package/dist/serialization/types/PlanChangeAmendmentStatus.d.ts +7 -0
- package/dist/serialization/types/PlanChangeResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanCreditOrder.d.ts +10 -0
- package/dist/serialization/types/PlanCreditVisibility.d.ts +10 -0
- package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +2 -0
- package/dist/serialization/types/PlanVersionBillingProductChangeResponseData.d.ts +11 -0
- package/dist/serialization/types/PlanVersionCreditGrantChangeResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanVersionDiffChangeType.d.ts +7 -0
- package/dist/serialization/types/PlanVersionDiffPriceCadence.d.ts +7 -0
- package/dist/serialization/types/PlanVersionDiffResponseData.d.ts +22 -0
- package/dist/serialization/types/PlanVersionEntitlementChangeResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanVersionFieldChangeResponseData.d.ts +11 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
- package/dist/serialization/types/PlanVersionPriceChangeResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -1
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
- package/dist/serialization/types/RulesengineCondition.d.ts +1 -0
- package/dist/serialization/types/RulesengineCreditSpendPolicy.d.ts +19 -0
- package/dist/serialization/types/RulesengineCreditSpendPolicyScope.d.ts +7 -0
- package/dist/serialization/types/RulesengineCreditSpendWindow.d.ts +10 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +1 -0
- package/dist/serialization/types/RulesengineUser.d.ts +2 -0
- package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +2 -1
- package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +2 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -1
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -1
- package/dist/serialization/types/UserUsageMetric.d.ts +7 -0
- package/dist/serialization/types/index.d.ts +37 -0
- package/dist/wasm/rulesengine.js +1 -1
- package/dist/wrapper.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const PlanVersionDiffPriceCadence: {
|
|
2
|
+
readonly Monthly: "monthly";
|
|
3
|
+
readonly OneTime: "one_time";
|
|
4
|
+
readonly Quarterly: "quarterly";
|
|
5
|
+
readonly Yearly: "yearly";
|
|
6
|
+
};
|
|
7
|
+
export type PlanVersionDiffPriceCadence = (typeof PlanVersionDiffPriceCadence)[keyof typeof PlanVersionDiffPriceCadence];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanVersionDiffResponseData {
|
|
3
|
+
/** Set when the version's billing product changed; null when it is the same on both versions. */
|
|
4
|
+
billingProduct?: Schematic.PlanVersionBillingProductChangeResponseData;
|
|
5
|
+
/** Credit grants added, removed, or changed, keyed by credit. */
|
|
6
|
+
creditGrants: Schematic.PlanVersionCreditGrantChangeResponseData[];
|
|
7
|
+
/** Entitlements added, removed, or changed, keyed by feature. */
|
|
8
|
+
entitlements: Schematic.PlanVersionEntitlementChangeResponseData[];
|
|
9
|
+
/** The version compared against, or null when the plan has no published version. */
|
|
10
|
+
from?: Schematic.PlanVersionResponseData;
|
|
11
|
+
/** Whether moving a subscription from the compared version to this one changes its billing. */
|
|
12
|
+
hasBillingChanges: boolean;
|
|
13
|
+
/** Plan-level fields that changed: name, description, icon, and charge_type. */
|
|
14
|
+
planFields: Schematic.PlanVersionFieldChangeResponseData[];
|
|
15
|
+
/** Base prices that changed, one entry per currency and cadence. */
|
|
16
|
+
prices: Schematic.PlanVersionPriceChangeResponseData[];
|
|
17
|
+
/** The version being compared. */
|
|
18
|
+
to?: Schematic.PlanVersionResponseData;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanVersionEntitlementChangeResponseData {
|
|
3
|
+
changeType: Schematic.PlanVersionDiffChangeType;
|
|
4
|
+
/** For a changed entitlement, the fields that differ. usage_quantity is the committed quantity of a pay-in-advance entitlement. */
|
|
5
|
+
changedFields: string[];
|
|
6
|
+
featureId: string;
|
|
7
|
+
"new"?: Schematic.PlanEntitlementResponseData;
|
|
8
|
+
old?: Schematic.PlanEntitlementResponseData;
|
|
9
|
+
}
|
|
@@ -14,6 +14,7 @@ export interface PlanVersionMigrationResponseData {
|
|
|
14
14
|
planVersionIdTo: string;
|
|
15
15
|
planVersionIdsFrom: string[];
|
|
16
16
|
prorationBehavior?: Schematic.MigrationProrationBehavior;
|
|
17
|
+
scheduledAt?: Date;
|
|
17
18
|
skippedCompanies: number;
|
|
18
19
|
startedAt?: Date;
|
|
19
20
|
status: Schematic.PlanVersionMigrationStatus;
|
|
@@ -2,5 +2,6 @@ export declare const PlanVersionMigrationStrategy: {
|
|
|
2
2
|
readonly EndOfBillingPeriod: "end_of_billing_period";
|
|
3
3
|
readonly Immediate: "immediate";
|
|
4
4
|
readonly Leave: "leave";
|
|
5
|
+
readonly Scheduled: "scheduled";
|
|
5
6
|
};
|
|
6
7
|
export type PlanVersionMigrationStrategy = (typeof PlanVersionMigrationStrategy)[keyof typeof PlanVersionMigrationStrategy];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanVersionPriceChangeResponseData {
|
|
3
|
+
cadence: Schematic.PlanVersionDiffPriceCadence;
|
|
4
|
+
currency: Schematic.Currency;
|
|
5
|
+
"new"?: Schematic.BillingPriceResponseData;
|
|
6
|
+
old?: Schematic.BillingPriceResponseData;
|
|
7
|
+
}
|
|
@@ -16,6 +16,7 @@ export interface PlanViewPublicResponseData {
|
|
|
16
16
|
controlledBy: Schematic.BillingProviderType;
|
|
17
17
|
copiedFromPlanId?: string;
|
|
18
18
|
createdAt: Date;
|
|
19
|
+
creditVisibility?: Schematic.PlanCreditVisibility[];
|
|
19
20
|
credits: Schematic.BillingCreditResponseData[];
|
|
20
21
|
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
21
22
|
custom: boolean;
|
|
@@ -11,6 +11,7 @@ export interface PreviewSubscriptionChangeResponseData {
|
|
|
11
11
|
paymentMethodRequired: boolean;
|
|
12
12
|
percentOff: number;
|
|
13
13
|
periodStart: Date;
|
|
14
|
+
problems: Schematic.CheckoutProblemResponseData[];
|
|
14
15
|
promoCodeApplied: boolean;
|
|
15
16
|
proration: number;
|
|
16
17
|
scheduledChangeTime?: Date;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
1
2
|
export interface PreviewSubscriptionDiscountResponseData {
|
|
2
3
|
amountOff?: number;
|
|
3
4
|
couponName: string;
|
|
4
|
-
currency?:
|
|
5
|
+
currency?: Schematic.Currency;
|
|
5
6
|
customerFacingCode?: string;
|
|
6
7
|
duration: string;
|
|
7
8
|
durationInMonths?: number;
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface PreviewSubscriptionFinanceResponseData {
|
|
3
3
|
amountOff: number;
|
|
4
4
|
/** ISO 4217 currency every amount in this block is denominated in. */
|
|
5
|
-
currency:
|
|
5
|
+
currency: Schematic.Currency;
|
|
6
6
|
discountAmount: number;
|
|
7
7
|
discounts: Schematic.PreviewSubscriptionDiscountResponseData[];
|
|
8
8
|
dueNow: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The current schema version hash for rules engine types. The first enum value is always the current version. */
|
|
2
2
|
export declare const RulesEngineSchemaVersion: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly Vf4A06160: "vf4a06160";
|
|
4
4
|
readonly PlaceholderForFernCompatibility: "placeholder-for-fern-compatibility";
|
|
5
5
|
};
|
|
6
6
|
export type RulesEngineSchemaVersion = (typeof RulesEngineSchemaVersion)[keyof typeof RulesEngineSchemaVersion];
|
|
@@ -5,6 +5,7 @@ export interface RulesengineCompany {
|
|
|
5
5
|
billingProductIds: string[];
|
|
6
6
|
creditBalances: Record<string, number>;
|
|
7
7
|
creditPostpaid?: Record<string, Schematic.RulesengineCreditPostpaidConfig>;
|
|
8
|
+
creditSpendPolicies?: Schematic.RulesengineCreditSpendPolicy[];
|
|
8
9
|
entitlements?: Schematic.RulesengineFeatureEntitlement[];
|
|
9
10
|
environmentId: string;
|
|
10
11
|
id: string;
|
|
@@ -12,6 +12,7 @@ export interface RulesengineCondition {
|
|
|
12
12
|
metricPeriodMonthReset?: Schematic.RulesengineMetricPeriodMonthReset;
|
|
13
13
|
metricValue?: number;
|
|
14
14
|
operator: Schematic.RulesengineComparableOperator;
|
|
15
|
+
quantityRates?: Record<string, number>;
|
|
15
16
|
resourceIds: string[];
|
|
16
17
|
traitDefinition?: Schematic.RulesengineTraitDefinition;
|
|
17
18
|
traitValue: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface RulesengineCreditSpendPolicy {
|
|
3
|
+
/** How much of the limit is already spent in the current period */
|
|
4
|
+
consumed?: number;
|
|
5
|
+
/** The credit the policy limits */
|
|
6
|
+
creditId: string;
|
|
7
|
+
/** The ID of the policy */
|
|
8
|
+
id: string;
|
|
9
|
+
/** How the limit is applied */
|
|
10
|
+
kind: string;
|
|
11
|
+
/** The name the account gave the policy */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** The ceiling, in credits */
|
|
14
|
+
limit: number;
|
|
15
|
+
/** For a windowed limit, when the current period ends and consumed no longer applies */
|
|
16
|
+
resetsAt?: Date;
|
|
17
|
+
/** Whether the policy limits the company or one user */
|
|
18
|
+
scope: Schematic.RulesengineCreditSpendPolicyScope;
|
|
19
|
+
/** For a windowed limit, the period it accumulates over */
|
|
20
|
+
window?: Schematic.RulesengineCreditSpendWindow;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const RulesengineCreditSpendPolicyScope: {
|
|
2
|
+
readonly Company: "company";
|
|
3
|
+
readonly User: "user";
|
|
4
|
+
readonly Group: "group";
|
|
5
|
+
};
|
|
6
|
+
export type RulesengineCreditSpendPolicyScope = (typeof RulesengineCreditSpendPolicyScope)[keyof typeof RulesengineCreditSpendPolicyScope];
|
|
@@ -30,6 +30,8 @@ export interface RulesengineFeatureEntitlement {
|
|
|
30
30
|
metricResetAt?: Date;
|
|
31
31
|
/** For event-based feature entitlements that have a monthly period, whether that monthly reset is based on the calendar month or a billing cycle */
|
|
32
32
|
monthReset?: Schematic.RulesengineMetricPeriodMonthReset;
|
|
33
|
+
/** If the company has a credit-based entitlement for this feature, the credit cost per unit of each quantity an event carries, keyed by quantity key (per token for inference features). Absent when the entitlement prices requests only */
|
|
34
|
+
quantityRates?: Record<string, number>;
|
|
33
35
|
/** For usage-based pricing, the soft limit for overage charges or the next tier boundary */
|
|
34
36
|
softLimit?: number;
|
|
35
37
|
/** If the company has a numeric entitlement for this feature, the current usage amount */
|
|
@@ -3,6 +3,8 @@ export interface UpdateEntitlementReqCommon {
|
|
|
3
3
|
creditConsumptionRate?: number;
|
|
4
4
|
metricPeriod?: Schematic.MetricPeriod;
|
|
5
5
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
6
|
+
/** Credits per unit of the quantity (per token for inference features), keyed by quantity key. Inference features may price input_tokens, output_tokens, cached_input_tokens, cache_creation_input_tokens and reasoning_tokens; reasoning_tokens is priced on top of output_tokens, so leave its rate at zero for providers that count reasoning inside output. Omit to leave the schedule as it is; send null to clear it. */
|
|
7
|
+
quantityRates?: Record<string, number>;
|
|
6
8
|
valueBool?: boolean;
|
|
7
9
|
valueCreditId?: string;
|
|
8
10
|
valueNumeric?: number;
|
|
@@ -3,7 +3,7 @@ export interface UpsertBillingProductRequestBody {
|
|
|
3
3
|
billingProductId?: string;
|
|
4
4
|
billingStrategy?: Schematic.BillingStrategy;
|
|
5
5
|
chargeType: Schematic.ChargeType;
|
|
6
|
-
currency?:
|
|
6
|
+
currency?: Schematic.Currency;
|
|
7
7
|
currencyPrices?: Schematic.PlanCurrencyPriceRequestBody[];
|
|
8
8
|
isTrialable: boolean;
|
|
9
9
|
monthlyPrice?: number;
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface UsageBasedEntitlementRequestBody {
|
|
3
3
|
billingProductId?: string;
|
|
4
4
|
billingThreshold?: number;
|
|
5
|
-
currency?:
|
|
5
|
+
currency?: Schematic.Currency;
|
|
6
6
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
7
7
|
monthlyMeteredPriceId?: string;
|
|
8
8
|
monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
@@ -57,6 +57,7 @@ export * from "./BillingProductPricing";
|
|
|
57
57
|
export * from "./BillingProductRecordResponseData";
|
|
58
58
|
export * from "./BillingProductResponseData";
|
|
59
59
|
export * from "./BillingProviderType";
|
|
60
|
+
export * from "./BillingSettingsResponseData";
|
|
60
61
|
export * from "./BillingStrategy";
|
|
61
62
|
export * from "./BillingSubscriptionDiscount";
|
|
62
63
|
export * from "./BillingSubscriptionDiscountView";
|
|
@@ -72,6 +73,8 @@ export * from "./CatalogConfigOrderedEntitlement";
|
|
|
72
73
|
export * from "./CatalogConfigOrderedEntitlementResponseData";
|
|
73
74
|
export * from "./CatalogConfigOrderedPlan";
|
|
74
75
|
export * from "./CatalogConfigOrderedPlanResponseData";
|
|
76
|
+
export * from "./CatalogConfigPlanCredit";
|
|
77
|
+
export * from "./CatalogConfigPlanCreditResponseData";
|
|
75
78
|
export * from "./CatalogConfigurationResponseData";
|
|
76
79
|
export * from "./CatalogCreditBundleIDsResponseData";
|
|
77
80
|
export * from "./CatalogDerivedFeatureResponseData";
|
|
@@ -92,6 +95,9 @@ export * from "./CheckoutFieldInput";
|
|
|
92
95
|
export * from "./CheckoutFieldResponseData";
|
|
93
96
|
export * from "./CheckoutFieldValue";
|
|
94
97
|
export * from "./CheckoutFieldWithValue";
|
|
98
|
+
export * from "./CheckoutProblemCode";
|
|
99
|
+
export * from "./CheckoutProblemResponseData";
|
|
100
|
+
export * from "./CheckoutProblemSource";
|
|
95
101
|
export * from "./CheckoutSettingsResponseData";
|
|
96
102
|
export * from "./CheckoutSubscription";
|
|
97
103
|
export * from "./ClaimedStripeSandboxKeysResponseData";
|
|
@@ -123,6 +129,9 @@ export * from "./CompanyPlanWithBillingSubView";
|
|
|
123
129
|
export * from "./CompanyResponseData";
|
|
124
130
|
export * from "./CompanySubscriptionResponseData";
|
|
125
131
|
export * from "./CompanyTaxIdView";
|
|
132
|
+
export * from "./CompanyUserUsageMetricsResponseData";
|
|
133
|
+
export * from "./CompanyUserUsageResponseData";
|
|
134
|
+
export * from "./CompanyUserUsageRowResponseData";
|
|
126
135
|
export * from "./ComparableOperator";
|
|
127
136
|
export * from "./CompatiblePlans";
|
|
128
137
|
export * from "./CompatiblePlansResponseData";
|
|
@@ -158,10 +167,15 @@ export * from "./CreateOrUpdateRuleRequestBody";
|
|
|
158
167
|
export * from "./CreatePlanRequestBody";
|
|
159
168
|
export * from "./CreatePriceTierRequestBody";
|
|
160
169
|
export * from "./CreditAutoTopupAmountType";
|
|
170
|
+
export * from "./CreditBalanceEventResponseData";
|
|
171
|
+
export * from "./CreditBalanceFeatureConsumptionResponseData";
|
|
172
|
+
export * from "./CreditBalancePointResponseData";
|
|
173
|
+
export * from "./CreditBalanceTimeSeriesResponseData";
|
|
161
174
|
export * from "./CreditBundleCurrencyPrice";
|
|
162
175
|
export * from "./CreditBundleCurrencyPriceRequestBody";
|
|
163
176
|
export * from "./CreditBundleCurrencyPriceResponseData";
|
|
164
177
|
export * from "./CreditBundlePurchaseResponseData";
|
|
178
|
+
export * from "./CreditBurnBreakdownLine";
|
|
165
179
|
export * from "./CreditCompanyGrantView";
|
|
166
180
|
export * from "./CreditCurrencyPrice";
|
|
167
181
|
export * from "./CreditCurrencyPriceRequestBody";
|
|
@@ -173,15 +187,20 @@ export * from "./CreditGrantExpiryRequestBody";
|
|
|
173
187
|
export * from "./CreditGrantPriceTierRequestBody";
|
|
174
188
|
export * from "./CreditGrantSortOrder";
|
|
175
189
|
export * from "./CreditLeaseResponseData";
|
|
190
|
+
export * from "./CreditLedgerEntryKind";
|
|
176
191
|
export * from "./CreditReservationResponseData";
|
|
192
|
+
export * from "./CreditSpendPolicy";
|
|
177
193
|
export * from "./CreditSpendPolicyResponseData";
|
|
178
194
|
export * from "./CreditSpendPolicyScope";
|
|
195
|
+
export * from "./CreditSpendWindow";
|
|
196
|
+
export * from "./CreditSpendWindowUnit";
|
|
179
197
|
export * from "./CreditsAutoTopupCompanySummary";
|
|
180
198
|
export * from "./CreditsAutoTopupCreditSummary";
|
|
181
199
|
export * from "./CreditsAutoTopupHardFailure";
|
|
182
200
|
export * from "./CreditsAutoTopupRetryFailure";
|
|
183
201
|
export * from "./CreditsAutoTopupSuccess";
|
|
184
202
|
export * from "./CreditsCreditPurchaseSuccess";
|
|
203
|
+
export * from "./CreditsInPlan";
|
|
185
204
|
export * from "./CreditsWebhookCompanySummary";
|
|
186
205
|
export * from "./CreditsWebhookCreditSummary";
|
|
187
206
|
export * from "./CreditTransferReason";
|
|
@@ -191,6 +210,7 @@ export * from "./CreditTriggerConfig";
|
|
|
191
210
|
export * from "./CreditUsage";
|
|
192
211
|
export * from "./CreditUsageAggregation";
|
|
193
212
|
export * from "./CreditUsageReason";
|
|
213
|
+
export * from "./Currency";
|
|
194
214
|
export * from "./CurrencyPriceRequestBody";
|
|
195
215
|
export * from "./CustomerBillingAddress";
|
|
196
216
|
export * from "./CustomPlanActivationStrategy";
|
|
@@ -229,6 +249,7 @@ export * from "./EnvironmentResponseData";
|
|
|
229
249
|
export * from "./EnvironmentTraitUsageTimeSeriesResponseData";
|
|
230
250
|
export * from "./EnvironmentType";
|
|
231
251
|
export * from "./EnvironmentUsagePointResponseData";
|
|
252
|
+
export * from "./EstimatedPlanTotal";
|
|
232
253
|
export * from "./EventBody";
|
|
233
254
|
export * from "./EventBodyFlagCheck";
|
|
234
255
|
export * from "./EventBodyIdentify";
|
|
@@ -246,6 +267,7 @@ export * from "./FeatureCompanyResponseData";
|
|
|
246
267
|
export * from "./FeatureCompanyUserResponseData";
|
|
247
268
|
export * from "./FeatureDetailResponseData";
|
|
248
269
|
export * from "./FeatureEntitlement";
|
|
270
|
+
export * from "./FeatureEventSource";
|
|
249
271
|
export * from "./FeatureInPlanResponseData";
|
|
250
272
|
export * from "./FeatureLedgerResponseData";
|
|
251
273
|
export * from "./FeatureLifecyclePhase";
|
|
@@ -318,11 +340,14 @@ export * from "./PlanBundleEntitlementRequestBody";
|
|
|
318
340
|
export * from "./PlanBundleResponseData";
|
|
319
341
|
export * from "./PlanCatalogMembershipResponseData";
|
|
320
342
|
export * from "./PlanChangeAction";
|
|
343
|
+
export * from "./PlanChangeAmendmentStatus";
|
|
321
344
|
export * from "./PlanChangeBasePlanAction";
|
|
322
345
|
export * from "./PlanChangeResponseData";
|
|
323
346
|
export * from "./PlanChangeSubscriptionAction";
|
|
324
347
|
export * from "./PlanCreditGrantScaling";
|
|
325
348
|
export * from "./PlanCreditGrantView";
|
|
349
|
+
export * from "./PlanCreditOrder";
|
|
350
|
+
export * from "./PlanCreditVisibility";
|
|
326
351
|
export * from "./PlanCurrencyPriceRequestBody";
|
|
327
352
|
export * from "./PlanCurrencyPricesResponseData";
|
|
328
353
|
export * from "./PlanDetailResponseData";
|
|
@@ -343,13 +368,21 @@ export * from "./PlanSelection";
|
|
|
343
368
|
export * from "./PlanSnapshotView";
|
|
344
369
|
export * from "./PlanTraitResponseData";
|
|
345
370
|
export * from "./PlanType";
|
|
371
|
+
export * from "./PlanVersionBillingProductChangeResponseData";
|
|
346
372
|
export * from "./PlanVersionCompanyMigrationResponseData";
|
|
347
373
|
export * from "./PlanVersionCompanyMigrationStatus";
|
|
374
|
+
export * from "./PlanVersionCreditGrantChangeResponseData";
|
|
375
|
+
export * from "./PlanVersionDiffChangeType";
|
|
376
|
+
export * from "./PlanVersionDiffPriceCadence";
|
|
377
|
+
export * from "./PlanVersionDiffResponseData";
|
|
378
|
+
export * from "./PlanVersionEntitlementChangeResponseData";
|
|
379
|
+
export * from "./PlanVersionFieldChangeResponseData";
|
|
348
380
|
export * from "./PlanVersionMigrationPreviewCompanyResponseData";
|
|
349
381
|
export * from "./PlanVersionMigrationPreviewResponseData";
|
|
350
382
|
export * from "./PlanVersionMigrationResponseData";
|
|
351
383
|
export * from "./PlanVersionMigrationStatus";
|
|
352
384
|
export * from "./PlanVersionMigrationStrategy";
|
|
385
|
+
export * from "./PlanVersionPriceChangeResponseData";
|
|
353
386
|
export * from "./PlanVersionResponseData";
|
|
354
387
|
export * from "./PlanVersionSnapshotView";
|
|
355
388
|
export * from "./PlanVersionStatus";
|
|
@@ -385,6 +418,9 @@ export * from "./RulesengineCondition";
|
|
|
385
418
|
export * from "./RulesengineConditionGroup";
|
|
386
419
|
export * from "./RulesengineConditionType";
|
|
387
420
|
export * from "./RulesengineCreditPostpaidConfig";
|
|
421
|
+
export * from "./RulesengineCreditSpendPolicy";
|
|
422
|
+
export * from "./RulesengineCreditSpendPolicyScope";
|
|
423
|
+
export * from "./RulesengineCreditSpendWindow";
|
|
388
424
|
export * from "./RulesengineEntitlementValueType";
|
|
389
425
|
export * from "./RulesengineEntityType";
|
|
390
426
|
export * from "./RulesengineFeatureEntitlement";
|
|
@@ -459,6 +495,7 @@ export * from "./UserFeatureUsageResponseData";
|
|
|
459
495
|
export * from "./UserResponseData";
|
|
460
496
|
export * from "./UserUsageByCompanyResponseData";
|
|
461
497
|
export * from "./UserUsageDetailResponseData";
|
|
498
|
+
export * from "./UserUsageMetric";
|
|
462
499
|
export * from "./WarningTier";
|
|
463
500
|
export * from "./WarningTierRequestBody";
|
|
464
501
|
export * from "./WarningTierResponseData";
|
|
@@ -1 +1,17 @@
|
|
|
1
|
+
export type ResponseBodyError = {
|
|
2
|
+
ok: false;
|
|
3
|
+
error: {
|
|
4
|
+
reason: "non-json";
|
|
5
|
+
statusCode: number;
|
|
6
|
+
rawBody: string;
|
|
7
|
+
} | {
|
|
8
|
+
reason: "body-is-null";
|
|
9
|
+
statusCode: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Returns true when `value` is a failure record created by `getResponseBody` (for example malformed JSON),
|
|
14
|
+
* as opposed to a parsed JSON body that happens to have the same shape.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isResponseBodyError(value: unknown): value is ResponseBodyError;
|
|
1
17
|
export declare function getResponseBody(response: Response, responseType?: string): Promise<unknown>;
|
|
@@ -3,4 +3,9 @@ export declare function isCacheNoStoreSupported(): boolean;
|
|
|
3
3
|
* Reset the cached result of `isCacheNoStoreSupported`. Exposed for testing only.
|
|
4
4
|
*/
|
|
5
5
|
export declare function resetCacheNoStoreSupported(): void;
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Clears the timeout that `makeRequest` kept running (with `keepTimeoutUntilBodyRead`) so that it also
|
|
8
|
+
* covered reading the response body.
|
|
9
|
+
*/
|
|
10
|
+
export declare function clearResponseTimeout(response: Response): void;
|
|
11
|
+
export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Headers | Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half", disableCache?: boolean, keepTimeoutUntilBodyRead?: boolean) => Promise<Response>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number): Promise<Response>;
|
|
1
|
+
export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number, abortSignal?: AbortSignal): Promise<Response>;
|
|
@@ -33,9 +33,9 @@ export interface DataStreamClientOptions {
|
|
|
33
33
|
flagCache?: CacheProvider<Schematic.RulesengineFlag>;
|
|
34
34
|
/** Enable replicator mode for external data synchronization */
|
|
35
35
|
replicatorMode?: boolean;
|
|
36
|
-
/** Health check URL for replicator mode */
|
|
36
|
+
/** Health check URL for replicator mode (default: http://localhost:8090/ready) */
|
|
37
37
|
replicatorHealthURL?: string;
|
|
38
|
-
/** Health check interval for replicator mode in milliseconds */
|
|
38
|
+
/** Health check interval for replicator mode in milliseconds (default: 30 seconds) */
|
|
39
39
|
replicatorHealthCheck?: number;
|
|
40
40
|
}
|
|
41
41
|
/**
|