@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface ListIntegrationsParams {
|
|
6
|
+
billingOnly?: boolean;
|
|
7
|
+
excludeIds?: string[];
|
|
8
|
+
id?: string;
|
|
9
|
+
/** Page limit (default 100) */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Page offset (default 0) */
|
|
12
|
+
offset?: number;
|
|
13
|
+
state?: Schematic.IntegrationState;
|
|
14
|
+
type?: Schematic.IntegrationType;
|
|
15
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Schematic from "../../../index";
|
|
2
|
-
export interface
|
|
3
|
-
data: Schematic.
|
|
2
|
+
export interface RunIntegrationResponse {
|
|
3
|
+
data: Schematic.IntegrationsResponseData;
|
|
4
4
|
/** Input parameters */
|
|
5
5
|
params: Record<string, unknown>;
|
|
6
6
|
}
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
export * from "./AssumeStripeInstalledResponse";
|
|
1
2
|
export * from "./GetIntegrationWebhookUrlResponse";
|
|
3
|
+
export * from "./InstallIntegrationResponse";
|
|
4
|
+
export * from "./InstallStripeResponse";
|
|
5
|
+
export * from "./ListIntegrationsParams";
|
|
6
|
+
export * from "./ListIntegrationsResponse";
|
|
7
|
+
export * from "./LoadSampleDataSetResponse";
|
|
8
|
+
export * from "./RunIntegrationResponse";
|
|
9
|
+
export * from "./StartDataImportResponse";
|
|
10
|
+
export * from "./UninstallIntegrationResponse";
|
|
@@ -10,6 +10,25 @@ export declare namespace PlanbundleClient {
|
|
|
10
10
|
export declare class PlanbundleClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<PlanbundleClient.Options>;
|
|
12
12
|
constructor(options: PlanbundleClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {Schematic.CreateCustomPlanBundleRequestBody} request
|
|
15
|
+
* @param {PlanbundleClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link Schematic.BadRequestError}
|
|
18
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
19
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
20
|
+
* @throws {@link Schematic.NotFoundError}
|
|
21
|
+
* @throws {@link Schematic.InternalServerError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.planbundle.createCustomPlanBundle({
|
|
25
|
+
* entitlements: [{
|
|
26
|
+
* action: "create"
|
|
27
|
+
* }]
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
createCustomPlanBundle(request: Schematic.CreateCustomPlanBundleRequestBody, requestOptions?: PlanbundleClient.RequestOptions): core.HttpResponsePromise<Schematic.CreateCustomPlanBundleResponse>;
|
|
31
|
+
private __createCustomPlanBundle;
|
|
13
32
|
/**
|
|
14
33
|
* @param {Schematic.CreatePlanBundleRequestBody} request
|
|
15
34
|
* @param {PlanbundleClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* entitlements: [{
|
|
6
|
+
* action: "create"
|
|
7
|
+
* }]
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateCustomPlanBundleRequestBody {
|
|
11
|
+
billingProduct?: Schematic.UpsertBillingProductRequestBody;
|
|
12
|
+
entitlements: Schematic.PlanBundleEntitlementRequestBody[];
|
|
13
|
+
plan?: Schematic.CreateCustomPlanBundlePlanRequestBody;
|
|
14
|
+
}
|
|
@@ -35,6 +35,7 @@ export interface CreatePlanGroupRequestBody {
|
|
|
35
35
|
checkoutCollectAddress: boolean;
|
|
36
36
|
checkoutCollectEmail: boolean;
|
|
37
37
|
checkoutCollectPhone: boolean;
|
|
38
|
+
customCheckoutFields?: Schematic.CheckoutFieldInput[];
|
|
38
39
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
39
40
|
customPlanId?: string;
|
|
40
41
|
enableTaxCollection: boolean;
|
|
@@ -35,6 +35,7 @@ export interface UpdatePlanGroupRequestBody {
|
|
|
35
35
|
checkoutCollectAddress: boolean;
|
|
36
36
|
checkoutCollectEmail: boolean;
|
|
37
37
|
checkoutCollectPhone: boolean;
|
|
38
|
+
customCheckoutFields?: Schematic.CheckoutFieldInput[];
|
|
38
39
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
39
40
|
customPlanId?: string;
|
|
40
41
|
enableTaxCollection: boolean;
|
|
@@ -31,6 +31,21 @@ export declare class PlanmigrationsClient {
|
|
|
31
31
|
*/
|
|
32
32
|
listCompanyMigrations(request?: Schematic.ListCompanyMigrationsRequest, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCompanyMigrationsResponse>;
|
|
33
33
|
private __listCompanyMigrations;
|
|
34
|
+
/**
|
|
35
|
+
* @param {string} plan_version_company_migration_id - plan_version_company_migration_id
|
|
36
|
+
* @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @throws {@link Schematic.BadRequestError}
|
|
39
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
40
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
41
|
+
* @throws {@link Schematic.NotFoundError}
|
|
42
|
+
* @throws {@link Schematic.InternalServerError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.planmigrations.retryCompanyMigration("plan_version_company_migration_id")
|
|
46
|
+
*/
|
|
47
|
+
retryCompanyMigration(plan_version_company_migration_id: string, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.RetryCompanyMigrationResponse>;
|
|
48
|
+
private __retryCompanyMigration;
|
|
34
49
|
/**
|
|
35
50
|
* @param {Schematic.CountCompanyMigrationsRequest} request
|
|
36
51
|
* @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -72,6 +87,29 @@ export declare class PlanmigrationsClient {
|
|
|
72
87
|
*/
|
|
73
88
|
listMigrations(request?: Schematic.ListMigrationsRequest, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListMigrationsResponse>;
|
|
74
89
|
private __listMigrations;
|
|
90
|
+
/**
|
|
91
|
+
* @param {Schematic.CreateMigrationInput} request
|
|
92
|
+
* @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link Schematic.BadRequestError}
|
|
95
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
96
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
97
|
+
* @throws {@link Schematic.NotFoundError}
|
|
98
|
+
* @throws {@link Schematic.InternalServerError}
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* await client.planmigrations.createMigration({
|
|
102
|
+
* companyIds: ["company_ids"],
|
|
103
|
+
* excludedCompanyIds: ["excluded_company_ids"],
|
|
104
|
+
* planId: "plan_id",
|
|
105
|
+
* planVersionIdTo: "plan_version_id_to",
|
|
106
|
+
* planVersionIdsFrom: ["plan_version_ids_from"],
|
|
107
|
+
* strategy: "immediate",
|
|
108
|
+
* targetPlanType: "plan"
|
|
109
|
+
* })
|
|
110
|
+
*/
|
|
111
|
+
createMigration(request: Schematic.CreateMigrationInput, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.CreateMigrationResponse>;
|
|
112
|
+
private __createMigration;
|
|
75
113
|
/**
|
|
76
114
|
* @param {string} plan_version_migration_id - plan_version_migration_id
|
|
77
115
|
* @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -86,6 +124,24 @@ export declare class PlanmigrationsClient {
|
|
|
86
124
|
*/
|
|
87
125
|
getMigration(plan_version_migration_id: string, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetMigrationResponse>;
|
|
88
126
|
private __getMigration;
|
|
127
|
+
/**
|
|
128
|
+
* @param {string} plan_version_migration_id - plan_version_migration_id
|
|
129
|
+
* @param {Schematic.RetryMigrationRequestBody} request
|
|
130
|
+
* @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link Schematic.BadRequestError}
|
|
133
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
134
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
135
|
+
* @throws {@link Schematic.NotFoundError}
|
|
136
|
+
* @throws {@link Schematic.InternalServerError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.planmigrations.retryMigration("plan_version_migration_id", {
|
|
140
|
+
* errorCodes: ["ambiguous_subscription_item"]
|
|
141
|
+
* })
|
|
142
|
+
*/
|
|
143
|
+
retryMigration(plan_version_migration_id: string, request: Schematic.RetryMigrationRequestBody, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.RetryMigrationResponse>;
|
|
144
|
+
private __retryMigration;
|
|
89
145
|
/**
|
|
90
146
|
* @param {Schematic.CountMigrationsRequest} request
|
|
91
147
|
* @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* companyIds: ["company_ids"],
|
|
6
|
+
* excludedCompanyIds: ["excluded_company_ids"],
|
|
7
|
+
* planId: "plan_id",
|
|
8
|
+
* planVersionIdTo: "plan_version_id_to",
|
|
9
|
+
* planVersionIdsFrom: ["plan_version_ids_from"],
|
|
10
|
+
* strategy: "immediate",
|
|
11
|
+
* targetPlanType: "plan"
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateMigrationInput {
|
|
15
|
+
companyIds: string[];
|
|
16
|
+
excludedCompanyIds: string[];
|
|
17
|
+
planId: string;
|
|
18
|
+
planVersionIdTo: string;
|
|
19
|
+
planVersionIdsFrom: string[];
|
|
20
|
+
strategy: Schematic.PlanVersionMigrationStrategy;
|
|
21
|
+
targetPlanType: Schematic.PlanType;
|
|
22
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { CountCompanyMigrationsRequest } from "./CountCompanyMigrationsRequest";
|
|
2
2
|
export type { CountMigrationsRequest } from "./CountMigrationsRequest";
|
|
3
|
+
export type { CreateMigrationInput } from "./CreateMigrationInput";
|
|
3
4
|
export type { ListCompanyMigrationsRequest } from "./ListCompanyMigrationsRequest";
|
|
4
5
|
export type { ListMigrationsRequest } from "./ListMigrationsRequest";
|
|
6
|
+
export type { RetryMigrationRequestBody } from "./RetryMigrationRequestBody";
|
|
@@ -2,8 +2,11 @@ export * from "./CountCompanyMigrationsParams";
|
|
|
2
2
|
export * from "./CountCompanyMigrationsResponse";
|
|
3
3
|
export * from "./CountMigrationsParams";
|
|
4
4
|
export * from "./CountMigrationsResponse";
|
|
5
|
+
export * from "./CreateMigrationResponse";
|
|
5
6
|
export * from "./GetMigrationResponse";
|
|
6
7
|
export * from "./ListCompanyMigrationsParams";
|
|
7
8
|
export * from "./ListCompanyMigrationsResponse";
|
|
8
9
|
export * from "./ListMigrationsParams";
|
|
9
10
|
export * from "./ListMigrationsResponse";
|
|
11
|
+
export * from "./RetryCompanyMigrationResponse";
|
|
12
|
+
export * from "./RetryMigrationResponse";
|
|
@@ -28,6 +28,68 @@ export declare class PlansClient {
|
|
|
28
28
|
*/
|
|
29
29
|
updateCompanyPlans(company_plan_id: string, request: Schematic.UpdateCompanyPlansRequestBody, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCompanyPlansResponse>;
|
|
30
30
|
private __updateCompanyPlans;
|
|
31
|
+
/**
|
|
32
|
+
* @param {Schematic.ListCustomPlanBillingsRequest} request
|
|
33
|
+
* @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link Schematic.BadRequestError}
|
|
36
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
37
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
38
|
+
* @throws {@link Schematic.NotFoundError}
|
|
39
|
+
* @throws {@link Schematic.InternalServerError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.plans.listCustomPlanBillings({
|
|
43
|
+
* companyId: "company_id",
|
|
44
|
+
* planId: "plan_id",
|
|
45
|
+
* status: "active",
|
|
46
|
+
* statuses: ["active"],
|
|
47
|
+
* limit: 1000000,
|
|
48
|
+
* offset: 1000000
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
listCustomPlanBillings(request?: Schematic.ListCustomPlanBillingsRequest, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCustomPlanBillingsResponse>;
|
|
52
|
+
private __listCustomPlanBillings;
|
|
53
|
+
/**
|
|
54
|
+
* @param {string} custom_plan_billing_id - custom_plan_billing_id
|
|
55
|
+
* @param {Schematic.MarkCustomPlanBillingPaidRequestBody} request
|
|
56
|
+
* @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link Schematic.BadRequestError}
|
|
59
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
60
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
61
|
+
* @throws {@link Schematic.NotFoundError}
|
|
62
|
+
* @throws {@link Schematic.InternalServerError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.plans.markCustomPlanBillingPaid("custom_plan_billing_id", {
|
|
66
|
+
* "key": "value"
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
markCustomPlanBillingPaid(custom_plan_billing_id: string, request: Schematic.MarkCustomPlanBillingPaidRequestBody, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.MarkCustomPlanBillingPaidResponse>;
|
|
70
|
+
private __markCustomPlanBillingPaid;
|
|
71
|
+
/**
|
|
72
|
+
* @param {string} custom_plan_billing_id - custom_plan_billing_id
|
|
73
|
+
* @param {Schematic.RetryCustomPlanBillingRequestBody} request
|
|
74
|
+
* @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link Schematic.BadRequestError}
|
|
77
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
78
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
79
|
+
* @throws {@link Schematic.NotFoundError}
|
|
80
|
+
* @throws {@link Schematic.InternalServerError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.plans.retryCustomPlanBilling("custom_plan_billing_id", {
|
|
84
|
+
* customerEmail: "customer_email",
|
|
85
|
+
* payInAdvance: [{
|
|
86
|
+
* priceId: "price_id",
|
|
87
|
+
* quantity: 1000000
|
|
88
|
+
* }]
|
|
89
|
+
* })
|
|
90
|
+
*/
|
|
91
|
+
retryCustomPlanBilling(custom_plan_billing_id: string, request: Schematic.RetryCustomPlanBillingRequestBody, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.RetryCustomPlanBillingResponse>;
|
|
92
|
+
private __retryCustomPlanBilling;
|
|
31
93
|
/**
|
|
32
94
|
* @param {Schematic.CreateCustomPlanRequestBody} request
|
|
33
95
|
* @param {PlansClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -60,14 +122,18 @@ export declare class PlansClient {
|
|
|
60
122
|
* @example
|
|
61
123
|
* await client.plans.listPlans({
|
|
62
124
|
* companyId: "company_id",
|
|
125
|
+
* companyScopedOnly: true,
|
|
126
|
+
* excludeCompanyScoped: true,
|
|
63
127
|
* forFallbackPlan: true,
|
|
64
128
|
* forInitialPlan: true,
|
|
65
129
|
* forTrialExpiryPlan: true,
|
|
66
130
|
* hasProductId: true,
|
|
131
|
+
* ids: ["ids"],
|
|
67
132
|
* includeDraftVersions: true,
|
|
68
133
|
* planType: "plan",
|
|
69
134
|
* q: "q",
|
|
70
135
|
* scopedToCompanyId: "scoped_to_company_id",
|
|
136
|
+
* withEntitlements: true,
|
|
71
137
|
* withoutEntitlementFor: "without_entitlement_for",
|
|
72
138
|
* withoutPaidProductId: true,
|
|
73
139
|
* limit: 1000000,
|
|
@@ -176,7 +242,7 @@ export declare class PlansClient {
|
|
|
176
242
|
*
|
|
177
243
|
* @example
|
|
178
244
|
* await client.plans.upsertPlanForBillingProduct({
|
|
179
|
-
* billingProvider: "
|
|
245
|
+
* billingProvider: "metronome",
|
|
180
246
|
* description: "description",
|
|
181
247
|
* externalResourceId: "external_resource_id",
|
|
182
248
|
* name: "name",
|
|
@@ -238,14 +304,18 @@ export declare class PlansClient {
|
|
|
238
304
|
* @example
|
|
239
305
|
* await client.plans.countPlans({
|
|
240
306
|
* companyId: "company_id",
|
|
307
|
+
* companyScopedOnly: true,
|
|
308
|
+
* excludeCompanyScoped: true,
|
|
241
309
|
* forFallbackPlan: true,
|
|
242
310
|
* forInitialPlan: true,
|
|
243
311
|
* forTrialExpiryPlan: true,
|
|
244
312
|
* hasProductId: true,
|
|
313
|
+
* ids: ["ids"],
|
|
245
314
|
* includeDraftVersions: true,
|
|
246
315
|
* planType: "plan",
|
|
247
316
|
* q: "q",
|
|
248
317
|
* scopedToCompanyId: "scoped_to_company_id",
|
|
318
|
+
* withEntitlements: true,
|
|
249
319
|
* withoutEntitlementFor: "without_entitlement_for",
|
|
250
320
|
* withoutPaidProductId: true,
|
|
251
321
|
* limit: 1000000,
|
|
@@ -3,14 +3,18 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* companyId: "company_id",
|
|
6
|
+
* companyScopedOnly: true,
|
|
7
|
+
* excludeCompanyScoped: true,
|
|
6
8
|
* forFallbackPlan: true,
|
|
7
9
|
* forInitialPlan: true,
|
|
8
10
|
* forTrialExpiryPlan: true,
|
|
9
11
|
* hasProductId: true,
|
|
12
|
+
* ids: ["ids"],
|
|
10
13
|
* includeDraftVersions: true,
|
|
11
14
|
* planType: "plan",
|
|
12
15
|
* q: "q",
|
|
13
16
|
* scopedToCompanyId: "scoped_to_company_id",
|
|
17
|
+
* withEntitlements: true,
|
|
14
18
|
* withoutEntitlementFor: "without_entitlement_for",
|
|
15
19
|
* withoutPaidProductId: true,
|
|
16
20
|
* limit: 1000000,
|
|
@@ -19,6 +23,10 @@ import type * as Schematic from "../../../../index";
|
|
|
19
23
|
*/
|
|
20
24
|
export interface CountPlansRequest {
|
|
21
25
|
companyId?: string;
|
|
26
|
+
/** Only return plans that are scoped to a company (custom plans assigned to a company) */
|
|
27
|
+
companyScopedOnly?: boolean;
|
|
28
|
+
/** Exclude plans that are scoped to a company (custom plans assigned to a company) */
|
|
29
|
+
excludeCompanyScoped?: boolean;
|
|
22
30
|
/** Filter for plans valid as fallback plans (not linked to billing) */
|
|
23
31
|
forFallbackPlan?: boolean;
|
|
24
32
|
/** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
|
|
@@ -35,6 +43,8 @@ export interface CountPlansRequest {
|
|
|
35
43
|
q?: string;
|
|
36
44
|
/** Filter plans scoped to a specific company (custom plans) */
|
|
37
45
|
scopedToCompanyId?: string;
|
|
46
|
+
/** Include each plan's entitlements in the response */
|
|
47
|
+
withEntitlements?: boolean;
|
|
38
48
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
39
49
|
withoutEntitlementFor?: string;
|
|
40
50
|
/** Filter out plans that have a paid billing product ID */
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* billingProvider: "
|
|
5
|
+
* billingProvider: "metronome",
|
|
6
6
|
* description: "description",
|
|
7
7
|
* externalResourceId: "external_resource_id",
|
|
8
8
|
* name: "name",
|
|
@@ -13,6 +13,7 @@ export interface CreateBillingLinkedPlanRequestBody {
|
|
|
13
13
|
billingProvider: Schematic.BillingProviderType;
|
|
14
14
|
description: string;
|
|
15
15
|
externalResourceId: string;
|
|
16
|
+
externalResourceVersion?: string;
|
|
16
17
|
icon?: Schematic.PlanIcon;
|
|
17
18
|
name: string;
|
|
18
19
|
planType: Schematic.PlanType;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* companyId: "company_id",
|
|
6
|
+
* planId: "plan_id",
|
|
7
|
+
* status: "active",
|
|
8
|
+
* statuses: ["active"],
|
|
9
|
+
* limit: 1000000,
|
|
10
|
+
* offset: 1000000
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface ListCustomPlanBillingsRequest {
|
|
14
|
+
/** Filter by company ID */
|
|
15
|
+
companyId?: string;
|
|
16
|
+
/** Filter by plan ID */
|
|
17
|
+
planId?: string;
|
|
18
|
+
/** Filter by billing status */
|
|
19
|
+
status?: Schematic.CustomPlanBillingStatus;
|
|
20
|
+
/** Filter by multiple billing statuses */
|
|
21
|
+
statuses?: Schematic.CustomPlanBillingStatus | Schematic.CustomPlanBillingStatus[];
|
|
22
|
+
/** Page limit (default 100) */
|
|
23
|
+
limit?: number;
|
|
24
|
+
/** Page offset (default 0) */
|
|
25
|
+
offset?: number;
|
|
26
|
+
}
|
|
@@ -3,14 +3,18 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* companyId: "company_id",
|
|
6
|
+
* companyScopedOnly: true,
|
|
7
|
+
* excludeCompanyScoped: true,
|
|
6
8
|
* forFallbackPlan: true,
|
|
7
9
|
* forInitialPlan: true,
|
|
8
10
|
* forTrialExpiryPlan: true,
|
|
9
11
|
* hasProductId: true,
|
|
12
|
+
* ids: ["ids"],
|
|
10
13
|
* includeDraftVersions: true,
|
|
11
14
|
* planType: "plan",
|
|
12
15
|
* q: "q",
|
|
13
16
|
* scopedToCompanyId: "scoped_to_company_id",
|
|
17
|
+
* withEntitlements: true,
|
|
14
18
|
* withoutEntitlementFor: "without_entitlement_for",
|
|
15
19
|
* withoutPaidProductId: true,
|
|
16
20
|
* limit: 1000000,
|
|
@@ -19,6 +23,10 @@ import type * as Schematic from "../../../../index";
|
|
|
19
23
|
*/
|
|
20
24
|
export interface ListPlansRequest {
|
|
21
25
|
companyId?: string;
|
|
26
|
+
/** Only return plans that are scoped to a company (custom plans assigned to a company) */
|
|
27
|
+
companyScopedOnly?: boolean;
|
|
28
|
+
/** Exclude plans that are scoped to a company (custom plans assigned to a company) */
|
|
29
|
+
excludeCompanyScoped?: boolean;
|
|
22
30
|
/** Filter for plans valid as fallback plans (not linked to billing) */
|
|
23
31
|
forFallbackPlan?: boolean;
|
|
24
32
|
/** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
|
|
@@ -35,6 +43,8 @@ export interface ListPlansRequest {
|
|
|
35
43
|
q?: string;
|
|
36
44
|
/** Filter plans scoped to a specific company (custom plans) */
|
|
37
45
|
scopedToCompanyId?: string;
|
|
46
|
+
/** Include each plan's entitlements in the response */
|
|
47
|
+
withEntitlements?: boolean;
|
|
38
48
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
39
49
|
withoutEntitlementFor?: string;
|
|
40
50
|
/** Filter out plans that have a paid billing product ID */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* customerEmail: "customer_email",
|
|
6
|
+
* payInAdvance: [{
|
|
7
|
+
* priceId: "price_id",
|
|
8
|
+
* quantity: 1000000
|
|
9
|
+
* }]
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface RetryCustomPlanBillingRequestBody {
|
|
13
|
+
activationStrategy?: Schematic.CustomPlanActivationStrategy;
|
|
14
|
+
customerEmail: string;
|
|
15
|
+
daysUntilDue?: number;
|
|
16
|
+
payInAdvance: Schematic.UpdatePayInAdvanceRequestBody[];
|
|
17
|
+
}
|
|
@@ -5,7 +5,9 @@ export type { CreateCustomPlanRequestBody } from "./CreateCustomPlanRequestBody"
|
|
|
5
5
|
export type { DeletePlanVersionRequest } from "./DeletePlanVersionRequest";
|
|
6
6
|
export type { GetPlanRequest } from "./GetPlanRequest";
|
|
7
7
|
export type { ListBillingProductMatchCompaniesRequest } from "./ListBillingProductMatchCompaniesRequest";
|
|
8
|
+
export type { ListCustomPlanBillingsRequest } from "./ListCustomPlanBillingsRequest";
|
|
8
9
|
export type { ListPlanIssuesRequest } from "./ListPlanIssuesRequest";
|
|
9
10
|
export type { ListPlansRequest } from "./ListPlansRequest";
|
|
10
11
|
export type { PublishPlanVersionRequestBody } from "./PublishPlanVersionRequestBody";
|
|
12
|
+
export type { RetryCustomPlanBillingRequestBody } from "./RetryCustomPlanBillingRequestBody";
|
|
11
13
|
export type { UpdateCompanyPlansRequestBody } from "./UpdateCompanyPlansRequestBody";
|
|
@@ -4,6 +4,10 @@ import type * as Schematic from "../../../index";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface CountPlansParams {
|
|
6
6
|
companyId?: string;
|
|
7
|
+
/** Only return plans that are scoped to a company (custom plans assigned to a company) */
|
|
8
|
+
companyScopedOnly?: boolean;
|
|
9
|
+
/** Exclude plans that are scoped to a company (custom plans assigned to a company) */
|
|
10
|
+
excludeCompanyScoped?: boolean;
|
|
7
11
|
/** Filter for plans valid as fallback plans (not linked to billing) */
|
|
8
12
|
forFallbackPlan?: boolean;
|
|
9
13
|
/** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
|
|
@@ -24,6 +28,8 @@ export interface CountPlansParams {
|
|
|
24
28
|
q?: string;
|
|
25
29
|
/** Filter plans scoped to a specific company (custom plans) */
|
|
26
30
|
scopedToCompanyId?: string;
|
|
31
|
+
/** Include each plan's entitlements in the response */
|
|
32
|
+
withEntitlements?: boolean;
|
|
27
33
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
28
34
|
withoutEntitlementFor?: string;
|
|
29
35
|
/** Filter out plans that have a paid billing product ID */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface ListCustomPlanBillingsParams {
|
|
6
|
+
/** Filter by company ID */
|
|
7
|
+
companyId?: string;
|
|
8
|
+
/** Page limit (default 100) */
|
|
9
|
+
limit?: number;
|
|
10
|
+
/** Page offset (default 0) */
|
|
11
|
+
offset?: number;
|
|
12
|
+
/** Filter by plan ID */
|
|
13
|
+
planId?: string;
|
|
14
|
+
/** Filter by billing status */
|
|
15
|
+
status?: Schematic.CustomPlanBillingStatus;
|
|
16
|
+
/** Filter by multiple billing statuses */
|
|
17
|
+
statuses?: Schematic.CustomPlanBillingStatus[];
|
|
18
|
+
}
|
|
@@ -4,6 +4,10 @@ import type * as Schematic from "../../../index";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ListPlansParams {
|
|
6
6
|
companyId?: string;
|
|
7
|
+
/** Only return plans that are scoped to a company (custom plans assigned to a company) */
|
|
8
|
+
companyScopedOnly?: boolean;
|
|
9
|
+
/** Exclude plans that are scoped to a company (custom plans assigned to a company) */
|
|
10
|
+
excludeCompanyScoped?: boolean;
|
|
7
11
|
/** Filter for plans valid as fallback plans (not linked to billing) */
|
|
8
12
|
forFallbackPlan?: boolean;
|
|
9
13
|
/** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
|
|
@@ -24,6 +28,8 @@ export interface ListPlansParams {
|
|
|
24
28
|
q?: string;
|
|
25
29
|
/** Filter plans scoped to a specific company (custom plans) */
|
|
26
30
|
scopedToCompanyId?: string;
|
|
31
|
+
/** Include each plan's entitlements in the response */
|
|
32
|
+
withEntitlements?: boolean;
|
|
27
33
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
28
34
|
withoutEntitlementFor?: string;
|
|
29
35
|
/** Filter out plans that have a paid billing product ID */
|