@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
|
@@ -22,8 +22,12 @@ export * from "./DeleteBillingPlanCreditGrantResponse";
|
|
|
22
22
|
export * from "./DeleteCreditBundleResponse";
|
|
23
23
|
export * from "./DeleteCreditSpendPolicyResponse";
|
|
24
24
|
export * from "./ExtendCreditLeaseResponse";
|
|
25
|
+
export * from "./GetCreditBalanceTimeSeriesParams";
|
|
26
|
+
export * from "./GetCreditBalanceTimeSeriesResponse";
|
|
25
27
|
export * from "./GetCreditBundleResponse";
|
|
26
28
|
export * from "./GetCreditSpendPolicyResponse";
|
|
29
|
+
export * from "./GetCreditSpendPolicyUsageParams";
|
|
30
|
+
export * from "./GetCreditSpendPolicyUsageResponse";
|
|
27
31
|
export * from "./GetSingleBillingCreditResponse";
|
|
28
32
|
export * from "./GetSingleBillingPlanCreditGrantResponse";
|
|
29
33
|
export * from "./GrantBillingCreditsToCompanyResponse";
|
|
@@ -541,6 +541,75 @@ export declare class EntitlementsClient {
|
|
|
541
541
|
*/
|
|
542
542
|
getUserUsageByCompany(request: Schematic.GetUserUsageByCompanyRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetUserUsageByCompanyResponse>;
|
|
543
543
|
private __getUserUsageByCompany;
|
|
544
|
+
/**
|
|
545
|
+
* @param {Schematic.GetCompanyUserUsageMetricsRequest} request
|
|
546
|
+
* @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
547
|
+
*
|
|
548
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
549
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
550
|
+
* @throws {@link Schematic.NotFoundError}
|
|
551
|
+
* @throws {@link Schematic.InternalServerError}
|
|
552
|
+
* @throws {@link errors.SchematicError}
|
|
553
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
554
|
+
*
|
|
555
|
+
* @example
|
|
556
|
+
* await client.entitlements.getCompanyUserUsageMetrics({
|
|
557
|
+
* companyId: "company_id",
|
|
558
|
+
* endTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
559
|
+
* startTime: new Date("2024-01-15T09:30:00.000Z")
|
|
560
|
+
* })
|
|
561
|
+
*/
|
|
562
|
+
getCompanyUserUsageMetrics(request: Schematic.GetCompanyUserUsageMetricsRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetCompanyUserUsageMetricsResponse>;
|
|
563
|
+
private __getCompanyUserUsageMetrics;
|
|
564
|
+
/**
|
|
565
|
+
* @param {Schematic.ListCompanyUserUsageRequest} request
|
|
566
|
+
* @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
567
|
+
*
|
|
568
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
569
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
570
|
+
* @throws {@link Schematic.NotFoundError}
|
|
571
|
+
* @throws {@link Schematic.InternalServerError}
|
|
572
|
+
* @throws {@link errors.SchematicError}
|
|
573
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
574
|
+
*
|
|
575
|
+
* @example
|
|
576
|
+
* await client.entitlements.listCompanyUserUsage({
|
|
577
|
+
* companyId: "company_id",
|
|
578
|
+
* endTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
579
|
+
* featureId: "feature_id",
|
|
580
|
+
* metric: "credits",
|
|
581
|
+
* limit: 1000000,
|
|
582
|
+
* offset: 1000000,
|
|
583
|
+
* startTime: new Date("2024-01-15T09:30:00.000Z")
|
|
584
|
+
* })
|
|
585
|
+
*/
|
|
586
|
+
listCompanyUserUsage(request: Schematic.ListCompanyUserUsageRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCompanyUserUsageResponse>;
|
|
587
|
+
private __listCompanyUserUsage;
|
|
588
|
+
/**
|
|
589
|
+
* @param {Schematic.CountCompanyUserUsageRequest} request
|
|
590
|
+
* @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
591
|
+
*
|
|
592
|
+
* @throws {@link Schematic.BadRequestError}
|
|
593
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
594
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
595
|
+
* @throws {@link Schematic.NotFoundError}
|
|
596
|
+
* @throws {@link Schematic.InternalServerError}
|
|
597
|
+
* @throws {@link errors.SchematicError}
|
|
598
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
599
|
+
*
|
|
600
|
+
* @example
|
|
601
|
+
* await client.entitlements.countCompanyUserUsage({
|
|
602
|
+
* companyId: "company_id",
|
|
603
|
+
* endTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
604
|
+
* featureId: "feature_id",
|
|
605
|
+
* metric: "credits",
|
|
606
|
+
* limit: 1000000,
|
|
607
|
+
* offset: 1000000,
|
|
608
|
+
* startTime: new Date("2024-01-15T09:30:00.000Z")
|
|
609
|
+
* })
|
|
610
|
+
*/
|
|
611
|
+
countCompanyUserUsage(request: Schematic.CountCompanyUserUsageRequest, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountCompanyUserUsageResponse>;
|
|
612
|
+
private __countCompanyUserUsage;
|
|
544
613
|
/**
|
|
545
614
|
* @param {Schematic.GetUserUsageDetailRequest} request
|
|
546
615
|
* @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* companyId: "company_id",
|
|
6
|
+
* endTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
7
|
+
* featureId: "feature_id",
|
|
8
|
+
* metric: "credits",
|
|
9
|
+
* limit: 1000000,
|
|
10
|
+
* offset: 1000000,
|
|
11
|
+
* startTime: new Date("2024-01-15T09:30:00.000Z")
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface CountCompanyUserUsageRequest {
|
|
15
|
+
/** Company to break usage down for */
|
|
16
|
+
companyId: string;
|
|
17
|
+
/** End of the usage window (exclusive); defaults to now */
|
|
18
|
+
endTime?: Date;
|
|
19
|
+
/** The event-based feature to break down; required when metric is feature */
|
|
20
|
+
featureId?: string;
|
|
21
|
+
/** Which metric to break usage down by */
|
|
22
|
+
metric: Schematic.UserUsageMetric;
|
|
23
|
+
/** Page limit (default 100) */
|
|
24
|
+
limit?: number;
|
|
25
|
+
/** Page offset (default 0) */
|
|
26
|
+
offset?: number;
|
|
27
|
+
/** Start of the usage window; defaults to 30 days before the end */
|
|
28
|
+
startTime?: Date;
|
|
29
|
+
}
|
|
@@ -14,7 +14,7 @@ export interface CreateBillingLinkedPlanEntitlementRequestBody {
|
|
|
14
14
|
billingProvider: Schematic.BillingProviderType;
|
|
15
15
|
billingThreshold?: number;
|
|
16
16
|
creditConsumptionRate?: number;
|
|
17
|
-
currency?:
|
|
17
|
+
currency?: Schematic.Currency;
|
|
18
18
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
19
19
|
externalResourceId: string;
|
|
20
20
|
featureId: string;
|
|
@@ -34,6 +34,8 @@ export interface CreateBillingLinkedPlanEntitlementRequestBody {
|
|
|
34
34
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
35
35
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
36
36
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
37
|
+
/** 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. */
|
|
38
|
+
quantityRates?: Record<string, number>;
|
|
37
39
|
quarterlyMeteredPriceId?: string;
|
|
38
40
|
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
39
41
|
quarterlyUnitPrice?: number;
|
package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface CreateCompanyOverrideRequestBody {
|
|
|
15
15
|
metricPeriod?: Schematic.MetricPeriod;
|
|
16
16
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
17
17
|
note?: string;
|
|
18
|
+
/** 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. */
|
|
19
|
+
quantityRates?: Record<string, number>;
|
|
18
20
|
valueBool?: boolean;
|
|
19
21
|
valueCreditId?: string;
|
|
20
22
|
valueNumeric?: number;
|
package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface CreatePlanEntitlementRequestBody {
|
|
|
11
11
|
billingProductId?: string;
|
|
12
12
|
billingThreshold?: number;
|
|
13
13
|
creditConsumptionRate?: number;
|
|
14
|
-
currency?:
|
|
14
|
+
currency?: Schematic.Currency;
|
|
15
15
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
16
16
|
featureId: string;
|
|
17
17
|
metricPeriod?: Schematic.MetricPeriod;
|
|
@@ -30,6 +30,8 @@ export interface CreatePlanEntitlementRequestBody {
|
|
|
30
30
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
31
31
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
32
32
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
33
|
+
/** 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. */
|
|
34
|
+
quantityRates?: Record<string, number>;
|
|
33
35
|
quarterlyMeteredPriceId?: string;
|
|
34
36
|
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
35
37
|
quarterlyUnitPrice?: number;
|
package/dist/api/resources/entitlements/client/requests/GetCompanyUserUsageMetricsRequest.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* companyId: "company_id",
|
|
5
|
+
* endTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
6
|
+
* startTime: new Date("2024-01-15T09:30:00.000Z")
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface GetCompanyUserUsageMetricsRequest {
|
|
10
|
+
/** Company to list available metrics for */
|
|
11
|
+
companyId: string;
|
|
12
|
+
/** End of the usage window (exclusive); defaults to now */
|
|
13
|
+
endTime?: Date;
|
|
14
|
+
/** Start of the usage window; defaults to 30 days before the end */
|
|
15
|
+
startTime?: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* companyId: "company_id",
|
|
6
|
+
* endTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
7
|
+
* featureId: "feature_id",
|
|
8
|
+
* metric: "credits",
|
|
9
|
+
* limit: 1000000,
|
|
10
|
+
* offset: 1000000,
|
|
11
|
+
* startTime: new Date("2024-01-15T09:30:00.000Z")
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ListCompanyUserUsageRequest {
|
|
15
|
+
/** Company to break usage down for */
|
|
16
|
+
companyId: string;
|
|
17
|
+
/** End of the usage window (exclusive); defaults to now */
|
|
18
|
+
endTime?: Date;
|
|
19
|
+
/** The event-based feature to break down; required when metric is feature */
|
|
20
|
+
featureId?: string;
|
|
21
|
+
/** Which metric to break usage down by */
|
|
22
|
+
metric: Schematic.UserUsageMetric;
|
|
23
|
+
/** Page limit (default 100) */
|
|
24
|
+
limit?: number;
|
|
25
|
+
/** Page offset (default 0) */
|
|
26
|
+
offset?: number;
|
|
27
|
+
/** Start of the usage window; defaults to 30 days before the end */
|
|
28
|
+
startTime?: Date;
|
|
29
|
+
}
|
package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export interface UpdateCompanyOverrideRequestBody {
|
|
|
11
11
|
metricPeriod?: Schematic.MetricPeriod;
|
|
12
12
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
13
13
|
note?: string;
|
|
14
|
+
/** 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. */
|
|
15
|
+
quantityRates?: Record<string, number>;
|
|
14
16
|
valueBool?: boolean;
|
|
15
17
|
valueCreditId?: string;
|
|
16
18
|
valueNumeric?: number;
|
package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface UpdatePlanEntitlementRequestBody {
|
|
|
9
9
|
billingProductId?: string;
|
|
10
10
|
billingThreshold?: number;
|
|
11
11
|
creditConsumptionRate?: number;
|
|
12
|
-
currency?:
|
|
12
|
+
currency?: Schematic.Currency;
|
|
13
13
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
14
14
|
metricPeriod?: Schematic.MetricPeriod;
|
|
15
15
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
@@ -25,6 +25,8 @@ export interface UpdatePlanEntitlementRequestBody {
|
|
|
25
25
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
26
26
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
27
27
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
28
|
+
/** 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. */
|
|
29
|
+
quantityRates?: Record<string, number>;
|
|
28
30
|
quarterlyMeteredPriceId?: string;
|
|
29
31
|
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
30
32
|
quarterlyUnitPrice?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { CountCompanyOverridesRequest } from "./CountCompanyOverridesRequest";
|
|
2
|
+
export type { CountCompanyUserUsageRequest } from "./CountCompanyUserUsageRequest";
|
|
2
3
|
export type { CountFeatureCompaniesRequest } from "./CountFeatureCompaniesRequest";
|
|
3
4
|
export type { CountFeatureUsageRequest } from "./CountFeatureUsageRequest";
|
|
4
5
|
export type { CountFeatureUsersRequest } from "./CountFeatureUsersRequest";
|
|
@@ -7,11 +8,13 @@ export type { CreateBillingLinkedPlanEntitlementRequestBody } from "./CreateBill
|
|
|
7
8
|
export type { CreateCompanyOverrideRequestBody } from "./CreateCompanyOverrideRequestBody";
|
|
8
9
|
export type { CreatePlanEntitlementRequestBody } from "./CreatePlanEntitlementRequestBody";
|
|
9
10
|
export type { DuplicatePlanEntitlementsRequestBody } from "./DuplicatePlanEntitlementsRequestBody";
|
|
11
|
+
export type { GetCompanyUserUsageMetricsRequest } from "./GetCompanyUserUsageMetricsRequest";
|
|
10
12
|
export type { GetFeatureUsageByCompanyRequest } from "./GetFeatureUsageByCompanyRequest";
|
|
11
13
|
export type { GetFeatureUsageTimeSeriesRequest } from "./GetFeatureUsageTimeSeriesRequest";
|
|
12
14
|
export type { GetUserUsageByCompanyRequest } from "./GetUserUsageByCompanyRequest";
|
|
13
15
|
export type { GetUserUsageDetailRequest } from "./GetUserUsageDetailRequest";
|
|
14
16
|
export type { ListCompanyOverridesRequest } from "./ListCompanyOverridesRequest";
|
|
17
|
+
export type { ListCompanyUserUsageRequest } from "./ListCompanyUserUsageRequest";
|
|
15
18
|
export type { ListFeatureCompaniesRequest } from "./ListFeatureCompaniesRequest";
|
|
16
19
|
export type { ListFeatureUsageHistoryRequest } from "./ListFeatureUsageHistoryRequest";
|
|
17
20
|
export type { ListFeatureUsageRequest } from "./ListFeatureUsageRequest";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface CountCompanyUserUsageParams {
|
|
6
|
+
/** Company to break usage down for */
|
|
7
|
+
companyId?: string;
|
|
8
|
+
/** End of the usage window (exclusive); defaults to now */
|
|
9
|
+
endTime?: Date;
|
|
10
|
+
/** The event-based feature to break down; required when metric is feature */
|
|
11
|
+
featureId?: string;
|
|
12
|
+
/** Page limit (default 100) */
|
|
13
|
+
limit?: number;
|
|
14
|
+
/** Which metric to break usage down by */
|
|
15
|
+
metric?: Schematic.UserUsageMetric;
|
|
16
|
+
/** Page offset (default 0) */
|
|
17
|
+
offset?: number;
|
|
18
|
+
/** Start of the usage window; defaults to 30 days before the end */
|
|
19
|
+
startTime?: Date;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input parameters
|
|
3
|
+
*/
|
|
4
|
+
export interface GetCompanyUserUsageMetricsParams {
|
|
5
|
+
/** Company to list available metrics for */
|
|
6
|
+
companyId?: string;
|
|
7
|
+
/** End of the usage window (exclusive); defaults to now */
|
|
8
|
+
endTime?: Date;
|
|
9
|
+
/** Start of the usage window; defaults to 30 days before the end */
|
|
10
|
+
startTime?: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface ListCompanyUserUsageParams {
|
|
6
|
+
/** Company to break usage down for */
|
|
7
|
+
companyId?: string;
|
|
8
|
+
/** End of the usage window (exclusive); defaults to now */
|
|
9
|
+
endTime?: Date;
|
|
10
|
+
/** The event-based feature to break down; required when metric is feature */
|
|
11
|
+
featureId?: string;
|
|
12
|
+
/** Page limit (default 100) */
|
|
13
|
+
limit?: number;
|
|
14
|
+
/** Which metric to break usage down by */
|
|
15
|
+
metric?: Schematic.UserUsageMetric;
|
|
16
|
+
/** Page offset (default 0) */
|
|
17
|
+
offset?: number;
|
|
18
|
+
/** Start of the usage window; defaults to 30 days before the end */
|
|
19
|
+
startTime?: Date;
|
|
20
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./CountCompanyOverridesParams";
|
|
2
2
|
export * from "./CountCompanyOverridesResponse";
|
|
3
|
+
export * from "./CountCompanyUserUsageParams";
|
|
4
|
+
export * from "./CountCompanyUserUsageResponse";
|
|
3
5
|
export * from "./CountFeatureCompaniesParams";
|
|
4
6
|
export * from "./CountFeatureCompaniesResponse";
|
|
5
7
|
export * from "./CountFeatureUsageParams";
|
|
@@ -14,6 +16,8 @@ export * from "./DeleteCompanyOverrideResponse";
|
|
|
14
16
|
export * from "./DeletePlanEntitlementResponse";
|
|
15
17
|
export * from "./DuplicatePlanEntitlementsResponse";
|
|
16
18
|
export * from "./GetCompanyOverrideResponse";
|
|
19
|
+
export * from "./GetCompanyUserUsageMetricsParams";
|
|
20
|
+
export * from "./GetCompanyUserUsageMetricsResponse";
|
|
17
21
|
export * from "./GetFeatureUsageByCompanyParams";
|
|
18
22
|
export * from "./GetFeatureUsageByCompanyResponse";
|
|
19
23
|
export * from "./GetFeatureUsageTimeSeriesParams";
|
|
@@ -25,6 +29,8 @@ export * from "./GetUserUsageDetailParams";
|
|
|
25
29
|
export * from "./GetUserUsageDetailResponse";
|
|
26
30
|
export * from "./ListCompanyOverridesParams";
|
|
27
31
|
export * from "./ListCompanyOverridesResponse";
|
|
32
|
+
export * from "./ListCompanyUserUsageParams";
|
|
33
|
+
export * from "./ListCompanyUserUsageResponse";
|
|
28
34
|
export * from "./ListFeatureCompaniesParams";
|
|
29
35
|
export * from "./ListFeatureCompaniesResponse";
|
|
30
36
|
export * from "./ListFeatureUsageHistoryParams";
|
package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import type * as Schematic from "../../../../index";
|
|
|
12
12
|
export interface CreateBillingLinkedFeatureRequestBody {
|
|
13
13
|
billingProvider: Schematic.BillingProviderType;
|
|
14
14
|
description: string;
|
|
15
|
+
/** Which event stream meters this feature; defaults to track, and cannot change after creation. Inference is only valid on event features: their event_subtype matches the event label on inference events, and they meter through credits only. */
|
|
16
|
+
eventSource?: Schematic.FeatureEventSource;
|
|
15
17
|
eventSubtype?: string;
|
|
16
18
|
externalResourceId: string;
|
|
17
19
|
featureType: Schematic.FeatureType;
|
|
@@ -9,6 +9,8 @@ import type * as Schematic from "../../../../index";
|
|
|
9
9
|
*/
|
|
10
10
|
export interface CreateFeatureRequestBody {
|
|
11
11
|
description: string;
|
|
12
|
+
/** Which event stream meters this feature; defaults to track, and cannot change after creation. Inference is only valid on event features: their event_subtype matches the event label on inference events, and they meter through credits only. */
|
|
13
|
+
eventSource?: Schematic.FeatureEventSource;
|
|
12
14
|
eventSubtype?: string;
|
|
13
15
|
featureType: Schematic.FeatureType;
|
|
14
16
|
flag?: Schematic.CreateOrUpdateFlagRequestBody;
|
|
@@ -5,6 +5,8 @@ import type * as Schematic from "../../../../index";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface UpdateFeatureRequestBody {
|
|
7
7
|
description?: string;
|
|
8
|
+
/** Which event stream meters this feature. It is fixed at creation: an update that changes it is rejected. */
|
|
9
|
+
eventSource?: Schematic.FeatureEventSource;
|
|
8
10
|
eventSubtype?: string;
|
|
9
11
|
featureType?: Schematic.FeatureType;
|
|
10
12
|
flag?: Schematic.CreateOrUpdateFlagRequestBody;
|
|
@@ -63,6 +63,7 @@ export declare class PlangroupsClient {
|
|
|
63
63
|
* prorationBehavior: "create_prorations",
|
|
64
64
|
* showAsMonthlyPrices: true,
|
|
65
65
|
* showCredits: true,
|
|
66
|
+
* showEstimatedTotal: true,
|
|
66
67
|
* showFeatureDescription: true,
|
|
67
68
|
* showHardLimit: true,
|
|
68
69
|
* showPeriodToggle: true,
|
|
@@ -108,6 +109,7 @@ export declare class PlangroupsClient {
|
|
|
108
109
|
* prorationBehavior: "create_prorations",
|
|
109
110
|
* showAsMonthlyPrices: true,
|
|
110
111
|
* showCredits: true,
|
|
112
|
+
* showEstimatedTotal: true,
|
|
111
113
|
* showFeatureDescription: true,
|
|
112
114
|
* showHardLimit: true,
|
|
113
115
|
* showPeriodToggle: true,
|
|
@@ -23,6 +23,7 @@ import type * as Schematic from "../../../../index";
|
|
|
23
23
|
* prorationBehavior: "create_prorations",
|
|
24
24
|
* showAsMonthlyPrices: true,
|
|
25
25
|
* showCredits: true,
|
|
26
|
+
* showEstimatedTotal: true,
|
|
26
27
|
* showFeatureDescription: true,
|
|
27
28
|
* showHardLimit: true,
|
|
28
29
|
* showPeriodToggle: true,
|
|
@@ -61,6 +62,7 @@ export interface CreatePlanGroupRequestBody {
|
|
|
61
62
|
scheduledDowngradePreventWhenOverLimit?: boolean;
|
|
62
63
|
showAsMonthlyPrices: boolean;
|
|
63
64
|
showCredits: boolean;
|
|
65
|
+
showEstimatedTotal: boolean;
|
|
64
66
|
showFeatureDescription: boolean;
|
|
65
67
|
showHardLimit: boolean;
|
|
66
68
|
showPeriodToggle: boolean;
|
|
@@ -23,6 +23,7 @@ import type * as Schematic from "../../../../index";
|
|
|
23
23
|
* prorationBehavior: "create_prorations",
|
|
24
24
|
* showAsMonthlyPrices: true,
|
|
25
25
|
* showCredits: true,
|
|
26
|
+
* showEstimatedTotal: true,
|
|
26
27
|
* showFeatureDescription: true,
|
|
27
28
|
* showHardLimit: true,
|
|
28
29
|
* showPeriodToggle: true,
|
|
@@ -61,6 +62,7 @@ export interface UpdatePlanGroupRequestBody {
|
|
|
61
62
|
scheduledDowngradePreventWhenOverLimit?: boolean;
|
|
62
63
|
showAsMonthlyPrices: boolean;
|
|
63
64
|
showCredits: boolean;
|
|
65
|
+
showEstimatedTotal: boolean;
|
|
64
66
|
showFeatureDescription: boolean;
|
|
65
67
|
showHardLimit: boolean;
|
|
66
68
|
showPeriodToggle: boolean;
|
|
@@ -88,6 +88,7 @@ export declare class PlanmigrationsClient {
|
|
|
88
88
|
* @example
|
|
89
89
|
* await client.planmigrations.listMigrations({
|
|
90
90
|
* featureId: "feature_id",
|
|
91
|
+
* featurePlanRolloutId: "feature_plan_rollout_id",
|
|
91
92
|
* planVersionId: "plan_version_id",
|
|
92
93
|
* status: "cancelled",
|
|
93
94
|
* limit: 1000000,
|
|
@@ -204,6 +205,7 @@ export declare class PlanmigrationsClient {
|
|
|
204
205
|
* @example
|
|
205
206
|
* await client.planmigrations.countMigrations({
|
|
206
207
|
* featureId: "feature_id",
|
|
208
|
+
* featurePlanRolloutId: "feature_plan_rollout_id",
|
|
207
209
|
* planVersionId: "plan_version_id",
|
|
208
210
|
* status: "cancelled",
|
|
209
211
|
* limit: 1000000,
|
|
@@ -3,6 +3,7 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* featureId: "feature_id",
|
|
6
|
+
* featurePlanRolloutId: "feature_plan_rollout_id",
|
|
6
7
|
* planVersionId: "plan_version_id",
|
|
7
8
|
* status: "cancelled",
|
|
8
9
|
* limit: 1000000,
|
|
@@ -11,6 +12,7 @@ import type * as Schematic from "../../../../index";
|
|
|
11
12
|
*/
|
|
12
13
|
export interface CountMigrationsRequest {
|
|
13
14
|
featureId?: string;
|
|
15
|
+
featurePlanRolloutId?: string;
|
|
14
16
|
planVersionId?: string;
|
|
15
17
|
status?: Schematic.PlanVersionMigrationStatus;
|
|
16
18
|
/** Page limit (default 100) */
|
|
@@ -14,7 +14,10 @@ export interface CreateMigrationInput {
|
|
|
14
14
|
planId: string;
|
|
15
15
|
planVersionIdTo: string;
|
|
16
16
|
planVersionIdsFrom?: string[];
|
|
17
|
+
/** How Stripe handles the price difference when companies are migrated. With strategy immediate, omitted means create_prorations. With end_of_billing_period only none is accepted and means the same as omitting it: the change lands on the renewal boundary, so there is nothing to prorate. With scheduled any value is accepted and omitted means none. */
|
|
17
18
|
prorationBehavior?: Schematic.MigrationProrationBehavior;
|
|
19
|
+
/** When every company moves, for strategy scheduled. Must be in the future; the migration runs within about a minute of this time. Not accepted with other strategies. */
|
|
20
|
+
scheduledAt?: Date;
|
|
18
21
|
strategy: Schematic.PlanVersionMigrationStrategy;
|
|
19
22
|
targetPlanType: Schematic.PlanType;
|
|
20
23
|
}
|
|
@@ -3,6 +3,7 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* featureId: "feature_id",
|
|
6
|
+
* featurePlanRolloutId: "feature_plan_rollout_id",
|
|
6
7
|
* planVersionId: "plan_version_id",
|
|
7
8
|
* status: "cancelled",
|
|
8
9
|
* limit: 1000000,
|
|
@@ -11,6 +12,7 @@ import type * as Schematic from "../../../../index";
|
|
|
11
12
|
*/
|
|
12
13
|
export interface ListMigrationsRequest {
|
|
13
14
|
featureId?: string;
|
|
15
|
+
featurePlanRolloutId?: string;
|
|
14
16
|
planVersionId?: string;
|
|
15
17
|
status?: Schematic.PlanVersionMigrationStatus;
|
|
16
18
|
/** Page limit (default 100) */
|
|
@@ -46,7 +46,7 @@ export declare class PlansClient {
|
|
|
46
46
|
* await client.plans.listCustomPlanBillings({
|
|
47
47
|
* companyId: "company_id",
|
|
48
48
|
* planId: "plan_id",
|
|
49
|
-
* planBillingSource: "
|
|
49
|
+
* planBillingSource: "amendment",
|
|
50
50
|
* status: "active",
|
|
51
51
|
* statuses: ["active"],
|
|
52
52
|
* limit: 1000000,
|
|
@@ -394,6 +394,25 @@ export declare class PlansClient {
|
|
|
394
394
|
*/
|
|
395
395
|
deletePlanVersion(plan_version_id: string, request?: Schematic.DeletePlanVersionRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.DeletePlanVersionResponse>;
|
|
396
396
|
private __deletePlanVersion;
|
|
397
|
+
/**
|
|
398
|
+
* @param {string} plan_version_id - plan_version_id
|
|
399
|
+
* @param {Schematic.GetPlanVersionDiffRequest} request
|
|
400
|
+
* @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
|
+
*
|
|
402
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
403
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
404
|
+
* @throws {@link Schematic.NotFoundError}
|
|
405
|
+
* @throws {@link Schematic.InternalServerError}
|
|
406
|
+
* @throws {@link errors.SchematicError}
|
|
407
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* await client.plans.getPlanVersionDiff("plan_version_id", {
|
|
411
|
+
* against: "against"
|
|
412
|
+
* })
|
|
413
|
+
*/
|
|
414
|
+
getPlanVersionDiff(plan_version_id: string, request?: Schematic.GetPlanVersionDiffRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.GetPlanVersionDiffResponse>;
|
|
415
|
+
private __getPlanVersionDiff;
|
|
397
416
|
/**
|
|
398
417
|
* @param {string} plan_version_id - plan_version_id
|
|
399
418
|
* @param {Schematic.PublishPlanVersionRequestBody} request
|
|
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
|
|
|
4
4
|
* {
|
|
5
5
|
* companyId: "company_id",
|
|
6
6
|
* planId: "plan_id",
|
|
7
|
-
* planBillingSource: "
|
|
7
|
+
* planBillingSource: "amendment",
|
|
8
8
|
* status: "active",
|
|
9
9
|
* statuses: ["active"],
|
|
10
10
|
* limit: 1000000,
|
|
@@ -16,7 +16,7 @@ export interface ListCustomPlanBillingsRequest {
|
|
|
16
16
|
companyId?: string;
|
|
17
17
|
/** Filter by plan ID */
|
|
18
18
|
planId?: string;
|
|
19
|
-
/** Filter by the flow that created the billing record. Defaults to custom_plan. */
|
|
19
|
+
/** Filter by the flow that created the billing record: custom_plan for a first publish, amendment for a republish, manage_plan for a standard plan assigned by invoice. Defaults to custom_plan. */
|
|
20
20
|
planBillingSource?: Schematic.PlanBillingSource;
|
|
21
21
|
/** Filter by billing status */
|
|
22
22
|
status?: Schematic.CustomPlanBillingStatus;
|