@schematichq/schematic-typescript-node 1.4.6 → 1.4.8
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 +118 -2
- package/dist/BaseClient.d.ts +3 -0
- package/dist/Client.d.ts +5 -20
- package/dist/api/resources/accounts/client/Client.d.ts +22 -0
- package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +18 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
- package/dist/api/resources/accounts/types/CountAccountMembersResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +2 -0
- package/dist/api/resources/billing/client/Client.d.ts +31 -6
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +5 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +2 -1
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +5 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +2 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/dist/api/resources/billing/types/DeletePaymentMethodByExternalIdResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/dist/api/resources/billing/types/index.d.ts +1 -0
- package/dist/api/resources/checkout/client/Client.d.ts +22 -0
- package/dist/api/resources/companies/client/Client.d.ts +27 -53
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +8 -0
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +8 -0
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +0 -2
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/index.d.ts +0 -3
- package/dist/api/resources/credits/client/Client.d.ts +84 -0
- package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +14 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +4 -0
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +10 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +4 -0
- package/dist/api/resources/credits/client/requests/ListCompanyCreditBalancesRequest.d.ts +9 -0
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +3 -0
- package/dist/api/resources/credits/types/AcquireCreditLeaseResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/ExtendCreditLeaseResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/ListCompanyCreditBalancesParams.d.ts +6 -0
- package/dist/api/resources/credits/types/ListCompanyCreditBalancesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ReleaseCreditLeaseResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +5 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +19 -1
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +3 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +9 -3
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +8 -2
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +3 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +8 -2
- package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +3 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +3 -0
- package/dist/api/resources/entitlements/types/index.d.ts +0 -10
- package/dist/api/resources/events/client/Client.d.ts +3 -0
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +1 -0
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +3 -0
- package/dist/api/resources/events/types/ListEventsParams.d.ts +1 -0
- package/dist/api/resources/features/client/Client.d.ts +11 -3
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +5 -0
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +1 -0
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -2
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +5 -0
- package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +1 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +2 -2
- package/dist/api/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/dist/api/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/insights/client/Client.d.ts +114 -0
- package/dist/api/resources/insights/client/index.d.ts +1 -0
- package/dist/api/resources/insights/client/requests/GetActivityRequest.d.ts +9 -0
- package/dist/api/resources/insights/client/requests/GetEnvironmentFeatureUsageTimeSeriesRequest.d.ts +16 -0
- package/dist/api/resources/insights/client/requests/GetEnvironmentTraitUsageTimeSeriesRequest.d.ts +16 -0
- package/dist/api/resources/insights/client/requests/GetPlanGrowthRequest.d.ts +9 -0
- package/dist/api/resources/insights/client/requests/GetTopFeaturesByUsageRequest.d.ts +13 -0
- package/dist/api/resources/insights/client/requests/index.d.ts +5 -0
- package/dist/api/resources/insights/exports.d.ts +2 -0
- package/dist/api/resources/insights/index.d.ts +2 -0
- package/dist/api/resources/insights/types/GetActivityParams.d.ts +6 -0
- package/dist/api/resources/insights/types/GetActivityResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesParams.d.ts +10 -0
- package/dist/api/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesParams.d.ts +10 -0
- package/dist/api/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/GetPlanGrowthParams.d.ts +6 -0
- package/dist/api/resources/insights/types/GetPlanGrowthResponse.d.ts +6 -0
- package/dist/api/resources/{companies/types/UpdatePlanTraitResponse.d.ts → insights/types/GetSummaryResponse.d.ts} +2 -2
- package/dist/api/resources/insights/types/GetTopFeaturesByUsageParams.d.ts +8 -0
- package/dist/api/resources/insights/types/GetTopFeaturesByUsageResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/index.d.ts +11 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +133 -0
- package/dist/api/resources/integrationsapi/client/index.d.ts +1 -1
- package/dist/api/resources/integrationsapi/client/requests/ListIntegrationsRequest.d.ts +24 -0
- package/dist/api/resources/integrationsapi/client/requests/StartDataImportRequestBody.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/InstallStripeResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/ListIntegrationsParams.d.ts +15 -0
- package/dist/api/resources/integrationsapi/types/ListIntegrationsResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/LoadSampleDataSetResponse.d.ts +6 -0
- package/dist/api/resources/{companies/types/CreatePlanTraitResponse.d.ts → integrationsapi/types/RunIntegrationResponse.d.ts} +2 -2
- package/dist/api/resources/integrationsapi/types/StartDataImportResponse.d.ts +6 -0
- package/dist/api/resources/{companies/types/DeletePlanTraitResponse.d.ts → integrationsapi/types/UninstallIntegrationResponse.d.ts} +1 -1
- package/dist/api/resources/integrationsapi/types/index.d.ts +9 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +19 -0
- package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +14 -0
- package/dist/api/resources/planbundle/client/requests/index.d.ts +1 -0
- package/dist/api/resources/planbundle/types/CreateCustomPlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/index.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +56 -0
- package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +22 -0
- package/dist/api/resources/planmigrations/client/requests/RetryMigrationRequestBody.d.ts +10 -0
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +2 -0
- package/dist/api/resources/planmigrations/types/CreateMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/RetryCompanyMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/RetryMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +3 -0
- package/dist/api/resources/plans/client/Client.d.ts +71 -1
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +2 -1
- package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +26 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +17 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +6 -0
- package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +18 -0
- package/dist/api/resources/plans/types/ListCustomPlanBillingsResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +6 -0
- package/dist/api/resources/plans/types/MarkCustomPlanBillingPaidResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/RetryCustomPlanBillingResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +4 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +2 -0
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -0
- package/dist/api/types/AccountMemberResponseData.d.ts +2 -0
- package/dist/api/types/ActivityEntryResponseData.d.ts +8 -0
- package/dist/api/types/ActivityResponseResponseData.d.ts +4 -0
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +2 -0
- package/dist/api/types/ApiKeyIntegrationResponseData.d.ts +6 -0
- package/dist/api/types/ApiKeyResponseData.d.ts +2 -0
- package/dist/api/types/AuditLogListResponseData.d.ts +2 -0
- package/dist/api/types/AuditLogResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditBundleView.d.ts +1 -1
- package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +4 -0
- package/dist/api/types/BillingCreditLedgerAuthority.d.ts +6 -0
- package/dist/api/types/BillingCreditView.d.ts +2 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +2 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingProviderType.d.ts +1 -0
- package/dist/api/types/BillingStrategy.d.ts +6 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/dist/api/types/ChargeType.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -2
- package/dist/api/types/CheckoutDataResponseData.d.ts +1 -0
- package/dist/api/types/CheckoutFieldInput.d.ts +8 -0
- package/dist/api/types/CheckoutFieldResponseData.d.ts +12 -0
- package/dist/api/types/CheckoutFieldValue.d.ts +4 -0
- package/dist/api/types/CheckoutFieldWithValue.d.ts +9 -0
- package/dist/api/types/CheckoutSubscription.d.ts +1 -0
- package/dist/api/types/ClerkIntegrationConfig.d.ts +6 -0
- package/dist/api/types/CompanyCreditBalanceResponseData.d.ts +9 -0
- package/dist/api/types/CompanyEventPeriodMetricsResponseData.d.ts +3 -2
- package/dist/api/types/CompanyMatchingCriteria.d.ts +5 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -2
- package/dist/api/types/CompanyPlanCreditGrantView.d.ts +41 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +7 -3
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -1
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -0
- package/dist/api/types/{ConditionOperator.d.ts → ComparableOperator.d.ts} +5 -5
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/Condition.d.ts +4 -4
- package/dist/api/types/ConditionResponseData.d.ts +4 -4
- package/dist/api/types/{ConditionConditionType.d.ts → ConditionType.d.ts} +2 -2
- package/dist/api/types/ConditionView.d.ts +4 -4
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +8 -2
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -2
- package/dist/api/types/CreateEventRequestBody.d.ts +6 -0
- package/dist/api/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +4 -4
- package/dist/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateRuleRequestBody.d.ts +1 -1
- package/dist/api/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/api/types/CreditCurrencyPrice.d.ts +5 -0
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +1 -0
- package/dist/api/types/CreditLeaseResponseData.d.ts +10 -0
- package/dist/api/types/CreditUsageReason.d.ts +8 -0
- package/dist/api/types/CurrencyPriceRequestBody.d.ts +3 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/api/types/CustomPlanBillingStatus.d.ts +1 -0
- package/dist/api/types/DataEventPayload.d.ts +3 -0
- package/dist/api/types/DuplicatePlanEntitlementsResponseResponseData.d.ts +1 -0
- package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -0
- package/dist/api/types/EnvironmentFeatureUsageTimeSeriesResponseData.d.ts +6 -0
- package/dist/api/types/EnvironmentTraitUsageTimeSeriesResponseData.d.ts +6 -0
- package/dist/api/types/EnvironmentUsagePointResponseData.d.ts +4 -0
- package/dist/api/types/EventBodyTrack.d.ts +2 -0
- package/dist/api/types/EventDetailResponseData.d.ts +3 -0
- package/dist/api/types/EventResponseData.d.ts +2 -0
- package/dist/api/types/FeatureCompanyResponseData.d.ts +4 -3
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -2
- package/dist/api/types/FeatureDetailResponseData.d.ts +2 -1
- package/dist/api/types/FeatureEntitlement.d.ts +2 -2
- package/dist/api/types/FeatureInPlanResponseData.d.ts +21 -0
- package/dist/api/types/FeatureResponseData.d.ts +1 -1
- package/dist/api/types/FeatureUsageResponseData.d.ts +4 -3
- package/dist/api/types/FeatureView.d.ts +1 -1
- package/dist/api/types/FlagDetailResponseData.d.ts +2 -1
- package/dist/api/types/FlagInPlanResponseData.d.ts +16 -0
- package/dist/api/types/FlagResponseData.d.ts +1 -1
- package/dist/api/types/FlagView.d.ts +0 -1
- package/dist/api/types/InsightsSummaryResponseData.d.ts +9 -0
- package/dist/api/types/InstallIntegrationRequestBody.d.ts +9 -0
- package/dist/api/types/IntegrationCapabilities.d.ts +5 -0
- package/dist/api/types/IntegrationConfig.d.ts +19 -0
- package/dist/api/types/IntegrationInstallConfig.d.ts +13 -0
- package/dist/api/types/IntegrationInstallResponseData.d.ts +6 -0
- package/dist/api/types/IntegrationResponseData.d.ts +8 -0
- package/dist/api/types/IntegrationState.d.ts +6 -0
- package/dist/api/types/IntegrationType.d.ts +2 -0
- package/dist/api/types/IntegrationsDataSetResponseData.d.ts +3 -0
- package/dist/api/types/IntegrationsListResponseData.d.ts +10 -0
- package/dist/api/types/IntegrationsResponseData.d.ts +8 -0
- package/dist/api/types/ManagePlanRequest.d.ts +1 -0
- package/dist/api/types/MarkCustomPlanBillingPaidRequestBody.d.ts +1 -0
- package/dist/api/types/{ConditionMetricPeriod.d.ts → MetricPeriod.d.ts} +2 -2
- package/dist/api/types/MetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/MetronomeIntegrationConfig.d.ts +1 -0
- package/dist/api/types/MigrationErrorCode.d.ts +15 -0
- package/dist/api/types/MrrResponseData.d.ts +4 -0
- package/dist/api/types/OrbIntegrationConfig.d.ts +4 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +1 -0
- package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +6 -2
- package/dist/api/types/PlanEntitlementResponseData.d.ts +5 -2
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +7 -3
- package/dist/api/types/PlanGrowthPointResponseData.d.ts +6 -0
- package/dist/api/types/PlanGrowthResponseData.d.ts +4 -0
- package/dist/api/types/PlanPriceCadence.d.ts +6 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -3
- package/dist/api/types/ReleaseCreditLeaseRequestBody.d.ts +1 -0
- package/dist/api/types/Rule.d.ts +1 -1
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +4 -4
- package/dist/api/types/RuleConditionResponseData.d.ts +4 -4
- package/dist/api/types/RuleDetailResponseData.d.ts +1 -1
- package/dist/api/types/RuleResponseData.d.ts +2 -1
- package/dist/api/types/{RuleRuleType.d.ts → RuleType.d.ts} +4 -4
- package/dist/api/types/RuleView.d.ts +1 -1
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCheckFlagResult.d.ts +2 -2
- package/dist/api/types/RulesengineCompanyMetric.d.ts +2 -2
- package/dist/api/types/RulesengineCondition.d.ts +4 -4
- package/dist/api/types/{RulesengineConditionConditionType.d.ts → RulesengineConditionType.d.ts} +2 -2
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -2
- package/dist/api/types/RulesengineMetricPeriod.d.ts +7 -0
- package/dist/api/types/RulesengineMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/RulesengineRule.d.ts +1 -1
- package/dist/api/types/{RulesengineRuleRuleType.d.ts → RulesengineRuleType.d.ts} +4 -4
- package/dist/api/types/StripeIntegrationConfig.d.ts +14 -0
- package/dist/api/types/TopFeatureByUsageResponseData.d.ts +8 -0
- package/dist/api/types/TopFeaturesByUsageResponseData.d.ts +4 -0
- package/dist/api/types/UpdateAutoTopupOverrideRequestBody.d.ts +6 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -2
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +3 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +5 -2
- package/dist/api/types/WorkOsIntegrationConfig.d.ts +6 -0
- package/dist/api/types/index.d.ts +56 -29
- package/dist/core/auth/AuthProvider.d.ts +1 -0
- package/dist/core/auth/BasicAuth.d.ts +2 -2
- package/dist/core/auth/index.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +8 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -1
- package/dist/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/core/url/index.d.ts +1 -0
- package/dist/core/url/qs.d.ts +2 -1
- package/dist/datastream/merge.d.ts +13 -10
- package/dist/datastream/websocket-client.d.ts +1 -1
- package/dist/errors/SchematicError.d.ts +3 -1
- package/dist/errors/SchematicTimeoutError.d.ts +4 -1
- package/dist/event-capture.d.ts +28 -0
- package/dist/events.d.ts +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/logger.d.ts +20 -0
- package/dist/rules-engine.d.ts +3 -3
- package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/CountAccountMembersResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/DeletePaymentMethodByExternalIdResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/index.d.ts +1 -0
- package/dist/serialization/resources/companies/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/index.d.ts +0 -3
- package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +12 -0
- package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +10 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/credits/types/AcquireCreditLeaseResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ExtendCreditLeaseResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ListCompanyCreditBalancesParams.d.ts +9 -0
- package/dist/serialization/resources/credits/types/ListCompanyCreditBalancesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/ReleaseCreditLeaseResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +5 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +9 -4
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -4
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +9 -4
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -4
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +9 -4
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +0 -10
- package/dist/serialization/resources/events/types/ListEventsParams.d.ts +1 -0
- package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +1 -1
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/insights/index.d.ts +1 -0
- package/dist/serialization/resources/insights/types/GetActivityParams.d.ts +9 -0
- package/dist/serialization/resources/insights/types/GetActivityResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesParams.d.ts +13 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesParams.d.ts +13 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetPlanGrowthParams.d.ts +9 -0
- package/dist/serialization/resources/insights/types/GetPlanGrowthResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetSummaryResponse.d.ts +11 -0
- package/dist/serialization/resources/insights/types/GetTopFeaturesByUsageParams.d.ts +11 -0
- package/dist/serialization/resources/insights/types/GetTopFeaturesByUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/index.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/client/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/client/requests/StartDataImportRequestBody.d.ts +12 -0
- package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/InstallStripeResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/ListIntegrationsParams.d.ts +17 -0
- package/dist/serialization/resources/integrationsapi/types/ListIntegrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/integrationsapi/types/LoadSampleDataSetResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/RunIntegrationResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/StartDataImportResponse.d.ts +11 -0
- package/dist/serialization/resources/{companies/types/DeletePlanTraitResponse.d.ts → integrationsapi/types/UninstallIntegrationResponse.d.ts} +2 -2
- package/dist/serialization/resources/integrationsapi/types/index.d.ts +9 -0
- package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +14 -0
- package/dist/serialization/resources/planbundle/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/planbundle/types/CreateCustomPlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/index.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/planmigrations/client/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +17 -0
- package/dist/serialization/resources/planmigrations/client/requests/RetryMigrationRequestBody.d.ts +10 -0
- package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/planmigrations/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CreateMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/RetryCompanyMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/RetryMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +3 -0
- package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +3 -0
- package/dist/serialization/resources/plans/types/ListCustomPlanBillingsParams.d.ts +15 -0
- package/dist/serialization/resources/plans/types/ListCustomPlanBillingsResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +3 -0
- package/dist/serialization/resources/plans/types/MarkCustomPlanBillingPaidResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/RetryCustomPlanBillingResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +4 -0
- package/dist/serialization/types/AccountMemberResponseData.d.ts +2 -0
- package/dist/serialization/types/ActivityEntryResponseData.d.ts +14 -0
- package/dist/serialization/types/ActivityResponseResponseData.d.ts +10 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +4 -0
- package/dist/serialization/types/ApiKeyIntegrationResponseData.d.ts +13 -0
- package/dist/serialization/types/ApiKeyResponseData.d.ts +4 -0
- package/dist/serialization/types/AuditLogListResponseData.d.ts +4 -0
- package/dist/serialization/types/AuditLogResponseData.d.ts +4 -0
- package/dist/serialization/types/BillingCreditBundleView.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditLedgerAuthority.d.ts +7 -0
- package/dist/serialization/types/BillingCreditView.d.ts +4 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceView.d.ts +2 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProviderType.d.ts +1 -1
- package/dist/serialization/types/BillingStrategy.d.ts +7 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +4 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +4 -0
- package/dist/serialization/types/ChargeType.d.ts +1 -1
- package/dist/serialization/types/CheckFlagResponseData.d.ts +4 -2
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/serialization/types/CheckoutFieldInput.d.ts +14 -0
- package/dist/serialization/types/CheckoutFieldResponseData.d.ts +18 -0
- package/dist/serialization/types/CheckoutFieldValue.d.ts +10 -0
- package/dist/serialization/types/CheckoutFieldWithValue.d.ts +15 -0
- package/dist/serialization/types/CheckoutSubscription.d.ts +1 -0
- package/dist/serialization/types/ClerkIntegrationConfig.d.ts +10 -0
- package/dist/serialization/types/CompanyCreditBalanceResponseData.d.ts +15 -0
- package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.d.ts +4 -2
- package/dist/serialization/types/CompanyMatchingCriteria.d.ts +7 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +4 -2
- package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +48 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +10 -4
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/serialization/types/ComparableOperator.d.ts +7 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/Condition.d.ts +8 -8
- package/dist/serialization/types/ConditionResponseData.d.ts +8 -4
- package/dist/serialization/types/{ConditionConditionType.d.ts → ConditionType.d.ts} +2 -2
- package/dist/serialization/types/ConditionView.d.ts +8 -4
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreateCustomPlanBundlePlanRequestBody.d.ts +13 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +9 -4
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +4 -4
- package/dist/serialization/types/CreateEventRequestBody.d.ts +3 -0
- package/dist/serialization/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +8 -8
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateRuleRequestBody.d.ts +2 -2
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CreditCurrencyPrice.d.ts +11 -0
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +2 -0
- package/dist/serialization/types/CreditLeaseResponseData.d.ts +16 -0
- package/dist/serialization/types/CreditUsageReason.d.ts +7 -0
- package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +3 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/CustomPlanBillingStatus.d.ts +1 -1
- package/dist/serialization/types/DataEventPayload.d.ts +3 -0
- package/dist/serialization/types/DuplicatePlanEntitlementsResponseResponseData.d.ts +2 -0
- package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +1 -0
- package/dist/serialization/types/EnvironmentFeatureUsageTimeSeriesResponseData.d.ts +12 -0
- package/dist/serialization/types/EnvironmentTraitUsageTimeSeriesResponseData.d.ts +12 -0
- package/dist/serialization/types/EnvironmentUsagePointResponseData.d.ts +10 -0
- package/dist/serialization/types/EventBodyTrack.d.ts +1 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/EventResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +7 -4
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +4 -2
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +3 -1
- package/dist/serialization/types/FeatureEntitlement.d.ts +4 -4
- package/dist/serialization/types/FeatureInPlanResponseData.d.ts +33 -0
- package/dist/serialization/types/FeatureResponseData.d.ts +1 -1
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +7 -4
- package/dist/serialization/types/FeatureView.d.ts +1 -1
- package/dist/serialization/types/FlagDetailResponseData.d.ts +3 -1
- package/dist/serialization/types/FlagInPlanResponseData.d.ts +24 -0
- package/dist/serialization/types/FlagResponseData.d.ts +1 -1
- package/dist/serialization/types/FlagView.d.ts +0 -1
- package/dist/serialization/types/InsightsSummaryResponseData.d.ts +15 -0
- package/dist/serialization/types/InstallIntegrationRequestBody.d.ts +16 -0
- package/dist/serialization/types/IntegrationCapabilities.d.ts +11 -0
- package/dist/serialization/types/IntegrationConfig.d.ts +27 -0
- package/dist/serialization/types/IntegrationInstallConfig.d.ts +20 -0
- package/dist/serialization/types/IntegrationInstallResponseData.d.ts +14 -0
- package/dist/serialization/types/IntegrationResponseData.d.ts +15 -0
- package/dist/serialization/types/IntegrationState.d.ts +7 -0
- package/dist/serialization/types/IntegrationType.d.ts +1 -1
- package/dist/serialization/types/IntegrationsDataSetResponseData.d.ts +9 -0
- package/dist/serialization/types/IntegrationsListResponseData.d.ts +19 -0
- package/dist/serialization/types/IntegrationsResponseData.d.ts +15 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +2 -0
- package/dist/serialization/types/MarkCustomPlanBillingPaidRequestBody.d.ts +7 -0
- package/dist/serialization/types/{ConditionMetricPeriod.d.ts → MetricPeriod.d.ts} +2 -2
- package/dist/serialization/types/MetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/MetronomeIntegrationConfig.d.ts +7 -0
- package/dist/serialization/types/MigrationErrorCode.d.ts +7 -0
- package/dist/serialization/types/MrrResponseData.d.ts +10 -0
- package/dist/serialization/types/OrbIntegrationConfig.d.ts +9 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +2 -0
- package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +1 -0
- package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +9 -3
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +6 -2
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +10 -4
- package/dist/serialization/types/PlanGrowthPointResponseData.d.ts +12 -0
- package/dist/serialization/types/PlanGrowthResponseData.d.ts +10 -0
- package/dist/serialization/types/PlanPriceCadence.d.ts +7 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -4
- package/dist/serialization/types/ReleaseCreditLeaseRequestBody.d.ts +7 -0
- package/dist/serialization/types/Rule.d.ts +2 -2
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +8 -4
- package/dist/serialization/types/RuleConditionResponseData.d.ts +8 -4
- package/dist/serialization/types/RuleDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/RuleResponseData.d.ts +2 -1
- package/dist/serialization/types/RuleType.d.ts +7 -0
- package/dist/serialization/types/RuleView.d.ts +2 -1
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCheckFlagResult.d.ts +4 -4
- package/dist/serialization/types/RulesengineCompanyMetric.d.ts +4 -4
- package/dist/serialization/types/RulesengineCondition.d.ts +8 -8
- package/dist/serialization/types/{RulesengineConditionConditionType.d.ts → RulesengineConditionType.d.ts} +2 -2
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +4 -4
- package/dist/serialization/types/RulesengineMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/RulesengineMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/RulesengineRule.d.ts +2 -2
- package/dist/serialization/types/RulesengineRuleType.d.ts +7 -0
- package/dist/serialization/types/StripeIntegrationConfig.d.ts +14 -0
- package/dist/serialization/types/TopFeatureByUsageResponseData.d.ts +14 -0
- package/dist/serialization/types/TopFeaturesByUsageResponseData.d.ts +10 -0
- package/dist/serialization/types/UpdateAutoTopupOverrideRequestBody.d.ts +12 -0
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +2 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +4 -4
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +4 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +5 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +6 -2
- package/dist/serialization/types/WorkOsIntegrationConfig.d.ts +10 -0
- package/dist/serialization/types/index.d.ts +56 -29
- package/dist/version.d.ts +2 -0
- package/dist/wasm/rulesengine.d.ts +1 -0
- package/dist/wasm/rulesengine.js +43 -11
- package/dist/wasm/rulesengine_bg.wasm.d.ts +1 -0
- package/dist/wrapper.d.ts +40 -5
- package/package.json +3 -3
- package/dist/api/resources/companies/client/requests/CreatePlanTraitRequestBody.d.ts +0 -13
- package/dist/api/resources/companies/client/requests/UpdatePlanTraitRequestBody.d.ts +0 -11
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/ConditionMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +0 -10
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +0 -8
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +0 -6
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +0 -11
- package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +0 -8
- package/dist/api/types/FeatureEntitlementMetricPeriod.d.ts +0 -8
- package/dist/api/types/FeatureEntitlementMonthReset.d.ts +0 -6
- package/dist/api/types/RulesengineCheckFlagResultFeatureUsagePeriod.d.ts +0 -7
- package/dist/api/types/RulesengineCheckFlagResultRuleType.d.ts +0 -10
- package/dist/api/types/RulesengineCompanyMetricMonthReset.d.ts +0 -5
- package/dist/api/types/RulesengineCompanyMetricPeriod.d.ts +0 -7
- package/dist/api/types/RulesengineConditionMetricPeriod.d.ts +0 -7
- package/dist/api/types/RulesengineConditionMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/RulesengineConditionOperator.d.ts +0 -11
- package/dist/api/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +0 -8
- package/dist/api/types/RulesengineFeatureEntitlementMonthReset.d.ts +0 -6
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -5
- package/dist/serialization/resources/companies/client/requests/CreatePlanTraitRequestBody.d.ts +0 -11
- package/dist/serialization/resources/companies/client/requests/UpdatePlanTraitRequestBody.d.ts +0 -10
- package/dist/serialization/resources/companies/types/CreatePlanTraitResponse.d.ts +0 -11
- package/dist/serialization/resources/companies/types/UpdatePlanTraitResponse.d.ts +0 -11
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/ConditionMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/ConditionOperator.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +0 -7
- package/dist/serialization/types/FeatureEntitlementMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/FeatureEntitlementMonthReset.d.ts +0 -7
- package/dist/serialization/types/RuleRuleType.d.ts +0 -7
- package/dist/serialization/types/RulesengineCheckFlagResultFeatureUsagePeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineCheckFlagResultRuleType.d.ts +0 -7
- package/dist/serialization/types/RulesengineCompanyMetricMonthReset.d.ts +0 -7
- package/dist/serialization/types/RulesengineCompanyMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineConditionMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineConditionMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/RulesengineConditionOperator.d.ts +0 -7
- package/dist/serialization/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineFeatureEntitlementMonthReset.d.ts +0 -7
- package/dist/serialization/types/RulesengineRuleRuleType.d.ts +0 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -7
- package/dist/wasm/rulesengine_bg.wasm +0 -0
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* creditId: "credit_id",
|
|
5
|
+
* ids: ["ids"],
|
|
5
6
|
* planId: "plan_id",
|
|
7
|
+
* planIds: ["plan_ids"],
|
|
6
8
|
* planVersionId: "plan_version_id",
|
|
9
|
+
* planVersionIds: ["plan_version_ids"],
|
|
7
10
|
* limit: 1000000,
|
|
8
11
|
* offset: 1000000
|
|
9
12
|
* }
|
|
@@ -14,6 +17,7 @@ export interface ListBillingPlanCreditGrantsRequest {
|
|
|
14
17
|
planId?: string;
|
|
15
18
|
planIds?: string | string[];
|
|
16
19
|
planVersionId?: string;
|
|
20
|
+
planVersionIds?: string | string[];
|
|
17
21
|
/** Page limit (default 100) */
|
|
18
22
|
limit?: number;
|
|
19
23
|
/** Page offset (default 0) */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { AcquireCreditLeaseRequestBody } from "./AcquireCreditLeaseRequestBody";
|
|
1
2
|
export type { CountBillingCreditsGrantsRequest } from "./CountBillingCreditsGrantsRequest";
|
|
2
3
|
export type { CountBillingCreditsRequest } from "./CountBillingCreditsRequest";
|
|
3
4
|
export type { CountBillingPlanCreditGrantsRequest } from "./CountBillingPlanCreditGrantsRequest";
|
|
@@ -9,9 +10,11 @@ export type { CreateBillingCreditRequestBody } from "./CreateBillingCreditReques
|
|
|
9
10
|
export type { CreateCompanyCreditGrant } from "./CreateCompanyCreditGrant";
|
|
10
11
|
export type { CreateCreditBundleRequestBody } from "./CreateCreditBundleRequestBody";
|
|
11
12
|
export type { DeleteBillingPlanCreditGrantRequest } from "./DeleteBillingPlanCreditGrantRequest";
|
|
13
|
+
export type { ExtendCreditLeaseRequestBody } from "./ExtendCreditLeaseRequestBody";
|
|
12
14
|
export type { GetEnrichedCreditLedgerRequest } from "./GetEnrichedCreditLedgerRequest";
|
|
13
15
|
export type { ListBillingCreditsRequest } from "./ListBillingCreditsRequest";
|
|
14
16
|
export type { ListBillingPlanCreditGrantsRequest } from "./ListBillingPlanCreditGrantsRequest";
|
|
17
|
+
export type { ListCompanyCreditBalancesRequest } from "./ListCompanyCreditBalancesRequest";
|
|
15
18
|
export type { ListCompanyGrantsRequest } from "./ListCompanyGrantsRequest";
|
|
16
19
|
export type { ListCreditBundlesRequest } from "./ListCreditBundlesRequest";
|
|
17
20
|
export type { ListCreditEventLedgerRequest } from "./ListCreditEventLedgerRequest";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./AcquireCreditLeaseResponse";
|
|
1
2
|
export * from "./CountBillingCreditsGrantsParams";
|
|
2
3
|
export * from "./CountBillingCreditsGrantsResponse";
|
|
3
4
|
export * from "./CountBillingCreditsParams";
|
|
@@ -18,6 +19,7 @@ export * from "./CreateCreditBundleResponse";
|
|
|
18
19
|
export * from "./DeleteBillingPlanCreditGrantParams";
|
|
19
20
|
export * from "./DeleteBillingPlanCreditGrantResponse";
|
|
20
21
|
export * from "./DeleteCreditBundleResponse";
|
|
22
|
+
export * from "./ExtendCreditLeaseResponse";
|
|
21
23
|
export * from "./GetCreditBundleResponse";
|
|
22
24
|
export * from "./GetEnrichedCreditLedgerParams";
|
|
23
25
|
export * from "./GetEnrichedCreditLedgerResponse";
|
|
@@ -28,6 +30,8 @@ export * from "./ListBillingCreditsParams";
|
|
|
28
30
|
export * from "./ListBillingCreditsResponse";
|
|
29
31
|
export * from "./ListBillingPlanCreditGrantsParams";
|
|
30
32
|
export * from "./ListBillingPlanCreditGrantsResponse";
|
|
33
|
+
export * from "./ListCompanyCreditBalancesParams";
|
|
34
|
+
export * from "./ListCompanyCreditBalancesResponse";
|
|
31
35
|
export * from "./ListCompanyGrantsParams";
|
|
32
36
|
export * from "./ListCompanyGrantsResponse";
|
|
33
37
|
export * from "./ListCreditBundlesParams";
|
|
@@ -36,6 +40,7 @@ export * from "./ListCreditEventLedgerParams";
|
|
|
36
40
|
export * from "./ListCreditEventLedgerResponse";
|
|
37
41
|
export * from "./ListGrantsForCreditParams";
|
|
38
42
|
export * from "./ListGrantsForCreditResponse";
|
|
43
|
+
export * from "./ReleaseCreditLeaseResponse";
|
|
39
44
|
export * from "./SoftDeleteBillingCreditResponse";
|
|
40
45
|
export * from "./UpdateBillingCreditResponse";
|
|
41
46
|
export * from "./UpdateBillingPlanCreditGrantResponse";
|
|
@@ -23,7 +23,10 @@ export declare class EntitlementsClient {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.entitlements.listCompanyOverrides({
|
|
25
25
|
* companyId: "company_id",
|
|
26
|
+
* companyIds: ["company_ids"],
|
|
26
27
|
* featureId: "feature_id",
|
|
28
|
+
* featureIds: ["feature_ids"],
|
|
29
|
+
* ids: ["ids"],
|
|
27
30
|
* withoutExpired: true,
|
|
28
31
|
* q: "q",
|
|
29
32
|
* limit: 1000000,
|
|
@@ -111,7 +114,10 @@ export declare class EntitlementsClient {
|
|
|
111
114
|
* @example
|
|
112
115
|
* await client.entitlements.countCompanyOverrides({
|
|
113
116
|
* companyId: "company_id",
|
|
117
|
+
* companyIds: ["company_ids"],
|
|
114
118
|
* featureId: "feature_id",
|
|
119
|
+
* featureIds: ["feature_ids"],
|
|
120
|
+
* ids: ["ids"],
|
|
115
121
|
* withoutExpired: true,
|
|
116
122
|
* q: "q",
|
|
117
123
|
* limit: 1000000,
|
|
@@ -173,7 +179,9 @@ export declare class EntitlementsClient {
|
|
|
173
179
|
* @example
|
|
174
180
|
* await client.entitlements.listFeatureUsage({
|
|
175
181
|
* companyId: "company_id",
|
|
182
|
+
* featureIds: ["feature_ids"],
|
|
176
183
|
* includeUsageAggregation: true,
|
|
184
|
+
* managedBy: "metronome",
|
|
177
185
|
* q: "q",
|
|
178
186
|
* withoutNegativeEntitlements: true,
|
|
179
187
|
* limit: 1000000,
|
|
@@ -215,7 +223,9 @@ export declare class EntitlementsClient {
|
|
|
215
223
|
* @example
|
|
216
224
|
* await client.entitlements.countFeatureUsage({
|
|
217
225
|
* companyId: "company_id",
|
|
226
|
+
* featureIds: ["feature_ids"],
|
|
218
227
|
* includeUsageAggregation: true,
|
|
228
|
+
* managedBy: "metronome",
|
|
219
229
|
* q: "q",
|
|
220
230
|
* withoutNegativeEntitlements: true,
|
|
221
231
|
* limit: 1000000,
|
|
@@ -277,8 +287,12 @@ export declare class EntitlementsClient {
|
|
|
277
287
|
* @example
|
|
278
288
|
* await client.entitlements.listPlanEntitlements({
|
|
279
289
|
* featureId: "feature_id",
|
|
290
|
+
* featureIds: ["feature_ids"],
|
|
291
|
+
* ids: ["ids"],
|
|
280
292
|
* planId: "plan_id",
|
|
293
|
+
* planIds: ["plan_ids"],
|
|
281
294
|
* planVersionId: "plan_version_id",
|
|
295
|
+
* planVersionIds: ["plan_version_ids"],
|
|
282
296
|
* q: "q",
|
|
283
297
|
* withMeteredProducts: true,
|
|
284
298
|
* limit: 1000000,
|
|
@@ -365,7 +379,7 @@ export declare class EntitlementsClient {
|
|
|
365
379
|
*
|
|
366
380
|
* @example
|
|
367
381
|
* await client.entitlements.upsertPlanEntitlementForBillingProduct({
|
|
368
|
-
* billingProvider: "
|
|
382
|
+
* billingProvider: "metronome",
|
|
369
383
|
* externalResourceId: "external_resource_id",
|
|
370
384
|
* featureId: "feature_id",
|
|
371
385
|
* planId: "plan_id",
|
|
@@ -387,8 +401,12 @@ export declare class EntitlementsClient {
|
|
|
387
401
|
* @example
|
|
388
402
|
* await client.entitlements.countPlanEntitlements({
|
|
389
403
|
* featureId: "feature_id",
|
|
404
|
+
* featureIds: ["feature_ids"],
|
|
405
|
+
* ids: ["ids"],
|
|
390
406
|
* planId: "plan_id",
|
|
407
|
+
* planIds: ["plan_ids"],
|
|
391
408
|
* planVersionId: "plan_version_id",
|
|
409
|
+
* planVersionIds: ["plan_version_ids"],
|
|
392
410
|
* q: "q",
|
|
393
411
|
* withMeteredProducts: true,
|
|
394
412
|
* limit: 1000000,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
5
|
* companyId: "company_id",
|
|
6
|
+
* featureIds: ["feature_ids"],
|
|
5
7
|
* includeUsageAggregation: true,
|
|
8
|
+
* managedBy: "metronome",
|
|
6
9
|
* q: "q",
|
|
7
10
|
* withoutNegativeEntitlements: true,
|
|
8
11
|
* limit: 1000000,
|
|
@@ -15,6 +18,8 @@ export interface CountFeatureUsageRequest {
|
|
|
15
18
|
featureIds?: string | string[];
|
|
16
19
|
/** Include time-bucketed usage aggregation (today, this week, this month, billing period) for credit-based entitlements. Defaults to false for performance. */
|
|
17
20
|
includeUsageAggregation?: boolean;
|
|
21
|
+
/** Filter for features managed by a billing provider, or by Schematic (no billing provider) */
|
|
22
|
+
managedBy?: Schematic.BillingProviderType;
|
|
18
23
|
q?: string;
|
|
19
24
|
withoutNegativeEntitlements?: boolean;
|
|
20
25
|
/** Page limit (default 100) */
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* featureId: "feature_id",
|
|
5
|
+
* featureIds: ["feature_ids"],
|
|
6
|
+
* ids: ["ids"],
|
|
5
7
|
* planId: "plan_id",
|
|
8
|
+
* planIds: ["plan_ids"],
|
|
6
9
|
* planVersionId: "plan_version_id",
|
|
10
|
+
* planVersionIds: ["plan_version_ids"],
|
|
7
11
|
* q: "q",
|
|
8
12
|
* withMeteredProducts: true,
|
|
9
13
|
* limit: 1000000,
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* billingProvider: "
|
|
5
|
+
* billingProvider: "metronome",
|
|
6
6
|
* externalResourceId: "external_resource_id",
|
|
7
7
|
* featureId: "feature_id",
|
|
8
8
|
* planId: "plan_id",
|
|
@@ -18,8 +18,8 @@ export interface CreateBillingLinkedPlanEntitlementRequestBody {
|
|
|
18
18
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
19
19
|
externalResourceId: string;
|
|
20
20
|
featureId: string;
|
|
21
|
-
metricPeriod?: Schematic.
|
|
22
|
-
metricPeriodMonthReset?: Schematic.
|
|
21
|
+
metricPeriod?: Schematic.MetricPeriod;
|
|
22
|
+
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
23
23
|
monthlyMeteredPriceId?: string;
|
|
24
24
|
monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
25
25
|
monthlyUnitPrice?: number;
|
|
@@ -30,8 +30,14 @@ export interface CreateBillingLinkedPlanEntitlementRequestBody {
|
|
|
30
30
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
31
31
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
32
32
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
33
|
+
quarterlyMeteredPriceId?: string;
|
|
34
|
+
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
35
|
+
quarterlyUnitPrice?: number;
|
|
36
|
+
quarterlyUnitPriceDecimal?: string;
|
|
33
37
|
softLimit?: number;
|
|
34
38
|
tierMode?: Schematic.BillingTiersMode;
|
|
39
|
+
/** The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use. */
|
|
40
|
+
usageQuantity?: number;
|
|
35
41
|
valueBool?: boolean;
|
|
36
42
|
valueCreditId?: string;
|
|
37
43
|
valueNumeric?: number;
|
package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ export interface CreateCompanyOverrideRequestBody {
|
|
|
12
12
|
creditConsumptionRate?: number;
|
|
13
13
|
expirationDate?: Date;
|
|
14
14
|
featureId: string;
|
|
15
|
-
metricPeriod?: Schematic.
|
|
16
|
-
metricPeriodMonthReset?: Schematic.
|
|
15
|
+
metricPeriod?: Schematic.MetricPeriod;
|
|
16
|
+
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
17
17
|
note?: string;
|
|
18
18
|
valueBool?: boolean;
|
|
19
19
|
valueCreditId?: string;
|
package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export interface CreatePlanEntitlementRequestBody {
|
|
|
14
14
|
currency?: string;
|
|
15
15
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
16
16
|
featureId: string;
|
|
17
|
-
metricPeriod?: Schematic.
|
|
18
|
-
metricPeriodMonthReset?: Schematic.
|
|
17
|
+
metricPeriod?: Schematic.MetricPeriod;
|
|
18
|
+
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
19
19
|
monthlyMeteredPriceId?: string;
|
|
20
20
|
monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
21
21
|
monthlyUnitPrice?: number;
|
|
@@ -26,8 +26,14 @@ export interface CreatePlanEntitlementRequestBody {
|
|
|
26
26
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
27
27
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
28
28
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
29
|
+
quarterlyMeteredPriceId?: string;
|
|
30
|
+
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
31
|
+
quarterlyUnitPrice?: number;
|
|
32
|
+
quarterlyUnitPriceDecimal?: string;
|
|
29
33
|
softLimit?: number;
|
|
30
34
|
tierMode?: Schematic.BillingTiersMode;
|
|
35
|
+
/** The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use. */
|
|
36
|
+
usageQuantity?: number;
|
|
31
37
|
valueBool?: boolean;
|
|
32
38
|
valueCreditId?: string;
|
|
33
39
|
valueNumeric?: number;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
5
|
* companyId: "company_id",
|
|
6
|
+
* featureIds: ["feature_ids"],
|
|
5
7
|
* includeUsageAggregation: true,
|
|
8
|
+
* managedBy: "metronome",
|
|
6
9
|
* q: "q",
|
|
7
10
|
* withoutNegativeEntitlements: true,
|
|
8
11
|
* limit: 1000000,
|
|
@@ -15,6 +18,8 @@ export interface ListFeatureUsageRequest {
|
|
|
15
18
|
featureIds?: string | string[];
|
|
16
19
|
/** Include time-bucketed usage aggregation (today, this week, this month, billing period) for credit-based entitlements. Defaults to false for performance. */
|
|
17
20
|
includeUsageAggregation?: boolean;
|
|
21
|
+
/** Filter for features managed by a billing provider, or by Schematic (no billing provider) */
|
|
22
|
+
managedBy?: Schematic.BillingProviderType;
|
|
18
23
|
q?: string;
|
|
19
24
|
withoutNegativeEntitlements?: boolean;
|
|
20
25
|
/** Page limit (default 100) */
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
4
|
* featureId: "feature_id",
|
|
5
|
+
* featureIds: ["feature_ids"],
|
|
6
|
+
* ids: ["ids"],
|
|
5
7
|
* planId: "plan_id",
|
|
8
|
+
* planIds: ["plan_ids"],
|
|
6
9
|
* planVersionId: "plan_version_id",
|
|
10
|
+
* planVersionIds: ["plan_version_ids"],
|
|
7
11
|
* q: "q",
|
|
8
12
|
* withMeteredProducts: true,
|
|
9
13
|
* limit: 1000000,
|
package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import type * as Schematic from "../../../../index";
|
|
|
8
8
|
export interface UpdateCompanyOverrideRequestBody {
|
|
9
9
|
creditConsumptionRate?: number;
|
|
10
10
|
expirationDate?: Date;
|
|
11
|
-
metricPeriod?: Schematic.
|
|
12
|
-
metricPeriodMonthReset?: Schematic.
|
|
11
|
+
metricPeriod?: Schematic.MetricPeriod;
|
|
12
|
+
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
13
13
|
note?: string;
|
|
14
14
|
valueBool?: boolean;
|
|
15
15
|
valueCreditId?: string;
|
package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export interface UpdatePlanEntitlementRequestBody {
|
|
|
11
11
|
creditConsumptionRate?: number;
|
|
12
12
|
currency?: string;
|
|
13
13
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
14
|
-
metricPeriod?: Schematic.
|
|
15
|
-
metricPeriodMonthReset?: Schematic.
|
|
14
|
+
metricPeriod?: Schematic.MetricPeriod;
|
|
15
|
+
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
16
16
|
monthlyMeteredPriceId?: string;
|
|
17
17
|
monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
18
18
|
monthlyUnitPrice?: number;
|
|
@@ -21,8 +21,14 @@ export interface UpdatePlanEntitlementRequestBody {
|
|
|
21
21
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
22
22
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
23
23
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
24
|
+
quarterlyMeteredPriceId?: string;
|
|
25
|
+
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
26
|
+
quarterlyUnitPrice?: number;
|
|
27
|
+
quarterlyUnitPriceDecimal?: string;
|
|
24
28
|
softLimit?: number;
|
|
25
29
|
tierMode?: Schematic.BillingTiersMode;
|
|
30
|
+
/** The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use. */
|
|
31
|
+
usageQuantity?: number;
|
|
26
32
|
valueBool?: boolean;
|
|
27
33
|
valueCreditId?: string;
|
|
28
34
|
valueNumeric?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* Input parameters
|
|
3
4
|
*/
|
|
@@ -9,6 +10,8 @@ export interface CountFeatureUsageParams {
|
|
|
9
10
|
includeUsageAggregation?: boolean;
|
|
10
11
|
/** Page limit (default 100) */
|
|
11
12
|
limit?: number;
|
|
13
|
+
/** Filter for features managed by a billing provider, or by Schematic (no billing provider) */
|
|
14
|
+
managedBy?: Schematic.BillingProviderType;
|
|
12
15
|
/** Page offset (default 0) */
|
|
13
16
|
offset?: number;
|
|
14
17
|
q?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* Input parameters
|
|
3
4
|
*/
|
|
@@ -9,6 +10,8 @@ export interface ListFeatureUsageParams {
|
|
|
9
10
|
includeUsageAggregation?: boolean;
|
|
10
11
|
/** Page limit (default 100) */
|
|
11
12
|
limit?: number;
|
|
13
|
+
/** Filter for features managed by a billing provider, or by Schematic (no billing provider) */
|
|
14
|
+
managedBy?: Schematic.BillingProviderType;
|
|
12
15
|
/** Page offset (default 0) */
|
|
13
16
|
offset?: number;
|
|
14
17
|
q?: string;
|
|
@@ -8,13 +8,7 @@ export * from "./CountFeatureUsersParams";
|
|
|
8
8
|
export * from "./CountFeatureUsersResponse";
|
|
9
9
|
export * from "./CountPlanEntitlementsParams";
|
|
10
10
|
export * from "./CountPlanEntitlementsResponse";
|
|
11
|
-
export * from "./CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod";
|
|
12
|
-
export * from "./CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset";
|
|
13
|
-
export * from "./CreateCompanyOverrideRequestBodyMetricPeriod";
|
|
14
|
-
export * from "./CreateCompanyOverrideRequestBodyMetricPeriodMonthReset";
|
|
15
11
|
export * from "./CreateCompanyOverrideResponse";
|
|
16
|
-
export * from "./CreatePlanEntitlementRequestBodyMetricPeriod";
|
|
17
|
-
export * from "./CreatePlanEntitlementRequestBodyMetricPeriodMonthReset";
|
|
18
12
|
export * from "./CreatePlanEntitlementResponse";
|
|
19
13
|
export * from "./DeleteCompanyOverrideResponse";
|
|
20
14
|
export * from "./DeletePlanEntitlementResponse";
|
|
@@ -35,10 +29,6 @@ export * from "./ListFeatureUsersParams";
|
|
|
35
29
|
export * from "./ListFeatureUsersResponse";
|
|
36
30
|
export * from "./ListPlanEntitlementsParams";
|
|
37
31
|
export * from "./ListPlanEntitlementsResponse";
|
|
38
|
-
export * from "./UpdateCompanyOverrideRequestBodyMetricPeriod";
|
|
39
|
-
export * from "./UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset";
|
|
40
32
|
export * from "./UpdateCompanyOverrideResponse";
|
|
41
|
-
export * from "./UpdatePlanEntitlementRequestBodyMetricPeriod";
|
|
42
|
-
export * from "./UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset";
|
|
43
33
|
export * from "./UpdatePlanEntitlementResponse";
|
|
44
34
|
export * from "./UpsertPlanEntitlementForBillingProductResponse";
|
|
@@ -42,6 +42,7 @@ export declare class EventsClient {
|
|
|
42
42
|
* @example
|
|
43
43
|
* await client.events.getEventSummaries({
|
|
44
44
|
* q: "q",
|
|
45
|
+
* eventSubtypes: ["event_subtypes"],
|
|
45
46
|
* limit: 1000000,
|
|
46
47
|
* offset: 1000000
|
|
47
48
|
* })
|
|
@@ -62,7 +63,9 @@ export declare class EventsClient {
|
|
|
62
63
|
* await client.events.listEvents({
|
|
63
64
|
* companyId: "company_id",
|
|
64
65
|
* eventSubtype: "event_subtype",
|
|
66
|
+
* eventTypes: ["flag_check"],
|
|
65
67
|
* flagId: "flag_id",
|
|
68
|
+
* idempotencyKey: "idempotency_key",
|
|
66
69
|
* userId: "user_id",
|
|
67
70
|
* limit: 1000000,
|
|
68
71
|
* offset: 1000000
|
|
@@ -4,7 +4,9 @@ import type * as Schematic from "../../../../index";
|
|
|
4
4
|
* {
|
|
5
5
|
* companyId: "company_id",
|
|
6
6
|
* eventSubtype: "event_subtype",
|
|
7
|
+
* eventTypes: ["flag_check"],
|
|
7
8
|
* flagId: "flag_id",
|
|
9
|
+
* idempotencyKey: "idempotency_key",
|
|
8
10
|
* userId: "user_id",
|
|
9
11
|
* limit: 1000000,
|
|
10
12
|
* offset: 1000000
|
|
@@ -15,6 +17,7 @@ export interface ListEventsRequest {
|
|
|
15
17
|
eventSubtype?: string;
|
|
16
18
|
eventTypes?: Schematic.EventType | Schematic.EventType[];
|
|
17
19
|
flagId?: string;
|
|
20
|
+
idempotencyKey?: string;
|
|
18
21
|
userId?: string;
|
|
19
22
|
/** Page limit (default 100) */
|
|
20
23
|
limit?: number;
|
|
@@ -23,6 +23,9 @@ export declare class FeaturesClient {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.features.listFeatures({
|
|
25
25
|
* booleanRequireEvent: true,
|
|
26
|
+
* featureType: ["boolean"],
|
|
27
|
+
* ids: ["ids"],
|
|
28
|
+
* managedBy: "metronome",
|
|
26
29
|
* planVersionId: "plan_version_id",
|
|
27
30
|
* q: "q",
|
|
28
31
|
* withoutCompanyOverrideFor: "without_company_override_for",
|
|
@@ -109,7 +112,7 @@ export declare class FeaturesClient {
|
|
|
109
112
|
*
|
|
110
113
|
* @example
|
|
111
114
|
* await client.features.upsertFeatureForBillingProduct({
|
|
112
|
-
* billingProvider: "
|
|
115
|
+
* billingProvider: "metronome",
|
|
113
116
|
* description: "description",
|
|
114
117
|
* externalResourceId: "external_resource_id",
|
|
115
118
|
* featureType: "boolean",
|
|
@@ -131,6 +134,9 @@ export declare class FeaturesClient {
|
|
|
131
134
|
* @example
|
|
132
135
|
* await client.features.countFeatures({
|
|
133
136
|
* booleanRequireEvent: true,
|
|
137
|
+
* featureType: ["boolean"],
|
|
138
|
+
* ids: ["ids"],
|
|
139
|
+
* managedBy: "metronome",
|
|
134
140
|
* planVersionId: "plan_version_id",
|
|
135
141
|
* q: "q",
|
|
136
142
|
* withoutCompanyOverrideFor: "without_company_override_for",
|
|
@@ -154,6 +160,7 @@ export declare class FeaturesClient {
|
|
|
154
160
|
* @example
|
|
155
161
|
* await client.features.listFlags({
|
|
156
162
|
* featureId: "feature_id",
|
|
163
|
+
* ids: ["ids"],
|
|
157
164
|
* q: "q",
|
|
158
165
|
* limit: 1000000,
|
|
159
166
|
* offset: 1000000
|
|
@@ -249,13 +256,13 @@ export declare class FeaturesClient {
|
|
|
249
256
|
* rules: [{
|
|
250
257
|
* conditionGroups: [{
|
|
251
258
|
* conditions: [{
|
|
252
|
-
* conditionType: "
|
|
259
|
+
* conditionType: "base_plan",
|
|
253
260
|
* operator: "eq",
|
|
254
261
|
* resourceIds: ["resource_ids"]
|
|
255
262
|
* }]
|
|
256
263
|
* }],
|
|
257
264
|
* conditions: [{
|
|
258
|
-
* conditionType: "
|
|
265
|
+
* conditionType: "base_plan",
|
|
259
266
|
* operator: "eq",
|
|
260
267
|
* resourceIds: ["resource_ids"]
|
|
261
268
|
* }],
|
|
@@ -328,6 +335,7 @@ export declare class FeaturesClient {
|
|
|
328
335
|
* @example
|
|
329
336
|
* await client.features.countFlags({
|
|
330
337
|
* featureId: "feature_id",
|
|
338
|
+
* ids: ["ids"],
|
|
331
339
|
* q: "q",
|
|
332
340
|
* limit: 1000000,
|
|
333
341
|
* offset: 1000000
|
|
@@ -3,6 +3,9 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* booleanRequireEvent: true,
|
|
6
|
+
* featureType: ["boolean"],
|
|
7
|
+
* ids: ["ids"],
|
|
8
|
+
* managedBy: "metronome",
|
|
6
9
|
* planVersionId: "plan_version_id",
|
|
7
10
|
* q: "q",
|
|
8
11
|
* withoutCompanyOverrideFor: "without_company_override_for",
|
|
@@ -17,6 +20,8 @@ export interface CountFeaturesRequest {
|
|
|
17
20
|
/** Filter by one or more feature types (boolean, event, trait) */
|
|
18
21
|
featureType?: Schematic.FeatureType | Schematic.FeatureType[];
|
|
19
22
|
ids?: string | string[];
|
|
23
|
+
/** Filter for features managed by a billing provider, or by Schematic (no billing provider) */
|
|
24
|
+
managedBy?: Schematic.BillingProviderType;
|
|
20
25
|
/** Filter by plan version ID when used with without_plan_entitlement_for; if not provided, the latest published version is used */
|
|
21
26
|
planVersionId?: string;
|
|
22
27
|
/** Search by feature name or ID */
|