@schematichq/schematic-typescript-node 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -2
- package/dist/Client.d.ts +12 -0
- package/dist/api/resources/accounts/client/Client.d.ts +33 -16
- package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +24 -0
- package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +24 -0
- package/dist/api/resources/accounts/client/requests/index.d.ts +2 -2
- package/dist/api/resources/accounts/types/{ListApiRequestsParams.d.ts → CountAuditLogsParams.d.ts} +5 -2
- package/dist/api/resources/accounts/types/{CountApiRequestsResponse.d.ts → CountAuditLogsResponse.d.ts} +2 -2
- package/dist/api/resources/accounts/types/{GetApiRequestResponse.d.ts → GetAuditLogResponse.d.ts} +2 -2
- package/dist/api/resources/accounts/types/GetWhoAmIResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/{CountApiRequestsParams.d.ts → ListAuditLogsParams.d.ts} +5 -2
- package/dist/api/resources/accounts/types/ListAuditLogsResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +6 -5
- package/dist/api/resources/billing/client/Client.d.ts +0 -3
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +0 -2
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/api/resources/companies/client/Client.d.ts +12 -48
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +27 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +27 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +0 -2
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +21 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +21 -0
- package/dist/api/resources/companies/types/index.d.ts +0 -4
- package/dist/api/resources/componentspublic/client/Client.d.ts +26 -0
- package/dist/api/resources/componentspublic/client/index.d.ts +1 -0
- package/dist/api/resources/componentspublic/index.d.ts +2 -0
- package/dist/api/resources/componentspublic/types/GetPublicPlansResponse.d.ts +6 -0
- package/dist/api/resources/componentspublic/types/index.d.ts +1 -0
- package/dist/api/resources/credits/client/Client.d.ts +71 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +3 -1
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +3 -1
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +3 -2
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsParams.d.ts +13 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CountCreditEventLedgerParams.d.ts +16 -0
- package/dist/api/resources/credits/types/CountCreditEventLedgerResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/ListCreditEventLedgerParams.d.ts +16 -0
- package/dist/api/resources/credits/types/ListCreditEventLedgerResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +6 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +22 -0
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageTimeSeriesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +4 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +11 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +4 -0
- package/dist/api/resources/entitlements/types/index.d.ts +2 -0
- package/dist/api/resources/features/client/Client.d.ts +2 -0
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +3 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +3 -0
- 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 +11 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +52 -0
- package/dist/api/resources/planbundle/client/index.d.ts +1 -0
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +16 -0
- package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +17 -0
- package/dist/api/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/api/resources/planbundle/index.d.ts +2 -0
- package/dist/api/resources/planbundle/types/CreatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/Client.d.ts +4 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +6 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +6 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +109 -0
- package/dist/api/resources/planmigrations/client/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +18 -0
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +18 -0
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +4 -0
- package/dist/api/resources/planmigrations/index.d.ts +2 -0
- package/dist/api/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +13 -0
- package/dist/api/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +12 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/GetMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +13 -0
- package/dist/api/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +12 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +9 -0
- package/dist/api/resources/plans/client/Client.d.ts +41 -3
- package/dist/api/resources/plans/client/requests/GetPlanRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/ListPlanIssuesRequest.d.ts +3 -1
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +12 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +2 -3
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/GetPlanParams.d.ts +7 -0
- package/dist/api/resources/plans/types/GetPlanResponse.d.ts +1 -1
- package/dist/api/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/api/resources/plans/types/PublishPlanVersionResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +3 -0
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +83 -0
- package/dist/api/resources/scheduledcheckout/client/index.d.ts +1 -0
- package/dist/api/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +15 -0
- package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +18 -0
- package/dist/api/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +9 -0
- package/dist/api/resources/scheduledcheckout/client/requests/index.d.ts +3 -0
- package/dist/api/resources/scheduledcheckout/index.d.ts +2 -0
- package/dist/api/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +12 -0
- package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/index.d.ts +5 -0
- package/dist/api/types/{PlanChangeActorType.d.ts → ActorType.d.ts} +3 -2
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/api/types/{ApiKeyRequestListResponseData.d.ts → AuditLogListResponseData.d.ts} +4 -4
- package/dist/api/types/{ApiKeyRequestResponseData.d.ts → AuditLogResponseData.d.ts} +3 -5
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditView.d.ts +22 -0
- package/dist/api/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +9 -2
- package/dist/api/types/CheckFlagResponseData.d.ts +8 -5
- package/dist/api/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/api/types/ComponentDisplaySettings.d.ts +2 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/ComponentSettingsResponseData.d.ts +2 -0
- package/dist/api/types/ConditionConditionType.d.ts +1 -1
- package/dist/api/types/ConditionGroupResponseData.d.ts +10 -0
- package/dist/api/types/ConditionGroupView.d.ts +12 -0
- package/dist/api/types/ConditionResponseData.d.ts +28 -0
- package/dist/api/types/ConditionView.d.ts +35 -0
- package/dist/api/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -11
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +31 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/CreateEventRequestBody.d.ts +1 -0
- package/dist/api/types/CreatePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +34 -0
- package/dist/api/types/CreditEventType.d.ts +7 -0
- package/dist/api/types/CreditsAutoTopupCompanySummary.d.ts +4 -0
- package/dist/api/types/CreditsAutoTopupCreditSummary.d.ts +4 -0
- package/dist/api/types/CreditsAutoTopupHardFailure.d.ts +7 -0
- package/dist/api/types/CreditsAutoTopupRetryFailure.d.ts +8 -0
- package/dist/api/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -1
- package/dist/api/types/EventResponseData.d.ts +1 -1
- package/dist/api/types/FeatureCompanyResponseData.d.ts +3 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/api/types/FeatureEntitlement.d.ts +31 -0
- package/dist/api/types/FeatureEntitlementMetricPeriod.d.ts +8 -0
- package/dist/api/types/FeatureEntitlementMonthReset.d.ts +6 -0
- package/dist/api/types/FeatureUsageLegacyResponseData.d.ts +9 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +3 -0
- package/dist/api/types/FeatureUsageTimeSeriesResponseData.d.ts +8 -0
- package/dist/api/types/FeatureView.d.ts +21 -0
- package/dist/api/types/FlagView.d.ts +17 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/api/types/InvoiceResponseData.d.ts +1 -0
- package/dist/api/types/InvoiceStatus.d.ts +8 -0
- package/dist/api/types/LimitTimeSeriesPointResponseData.d.ts +9 -0
- package/dist/api/types/PlanBundleAction.d.ts +6 -0
- package/dist/api/types/PlanBundleCreditGrantRequestBody.d.ts +8 -0
- package/dist/api/types/PlanBundleEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/PlanBundleResponseData.d.ts +8 -0
- package/dist/api/types/PlanChangeAction.d.ts +1 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +4 -2
- package/dist/api/types/PlanChangeSubscriptionAction.d.ts +1 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +10 -3
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +8 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +18 -0
- package/dist/api/types/PlanVersionMigrationStatus.d.ts +7 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +5 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionStatus.d.ts +6 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +32 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/api/types/PublicPlansResponseData.d.ts +12 -0
- package/dist/api/types/RawEventResponseData.d.ts +1 -1
- package/dist/api/types/RuleView.d.ts +16 -0
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCheckFlagResult.d.ts +1 -0
- package/dist/api/types/RulesengineCompany.d.ts +2 -1
- package/dist/api/types/RulesengineConditionConditionType.d.ts +1 -1
- package/dist/api/types/RulesengineEntitlementValueType.d.ts +9 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +31 -0
- package/dist/api/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +8 -0
- package/dist/api/types/RulesengineFeatureEntitlementMonthReset.d.ts +6 -0
- package/dist/api/types/ScheduledCheckoutResponseData.d.ts +17 -0
- package/dist/api/types/ScheduledCheckoutStatus.d.ts +8 -0
- package/dist/api/types/ScheduledDowngradeConfigBehavior.d.ts +5 -0
- package/dist/api/types/ScheduledDowngradeResponseData.d.ts +13 -0
- package/dist/api/types/TimeSeriesGranularity.d.ts +7 -0
- package/dist/api/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -8
- package/dist/api/{resources/plans/client/requests → types}/UpdatePlanRequestBody.d.ts +0 -6
- package/dist/api/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +1 -8
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UsageTimeSeriesPointResponseData.d.ts +6 -0
- package/dist/api/types/WebFeatureUsageWebhookOutput.d.ts +10 -0
- package/dist/api/types/WebhookRequestType.d.ts +3 -0
- package/dist/api/types/WhoAmIResponseData.d.ts +12 -0
- package/dist/api/types/index.d.ts +58 -6
- package/dist/cache/index.d.ts +3 -0
- package/dist/{cache.d.ts → cache/local.d.ts} +9 -10
- package/dist/cache/redis.d.ts +38 -0
- package/dist/cache/types.d.ts +19 -0
- package/dist/datastream/datastream-client.d.ts +239 -0
- package/dist/datastream/index.d.ts +2 -0
- package/dist/datastream/types.d.ts +48 -0
- package/dist/datastream/websocket-client.d.ts +127 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -3
- package/dist/rules-engine.d.ts +54 -0
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/CountAuditLogsParams.d.ts +16 -0
- package/dist/serialization/resources/accounts/types/CountAuditLogsResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/GetAuditLogResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/GetWhoAmIResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/ListAuditLogsParams.d.ts +16 -0
- package/dist/serialization/resources/accounts/types/ListAuditLogsResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +6 -5
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +13 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +13 -0
- package/dist/serialization/resources/companies/types/index.d.ts +0 -4
- package/dist/serialization/resources/componentspublic/index.d.ts +1 -0
- package/dist/serialization/resources/componentspublic/types/GetPublicPlansResponse.d.ts +11 -0
- package/dist/serialization/resources/componentspublic/types/index.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/CountCreditEventLedgerParams.d.ts +17 -0
- package/dist/serialization/resources/credits/types/CountCreditEventLedgerResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ListCreditEventLedgerParams.d.ts +17 -0
- package/dist/serialization/resources/credits/types/ListCreditEventLedgerResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/index.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +14 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
- package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +1 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +1 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/planbundle/client/index.d.ts +1 -0
- package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +18 -0
- package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +19 -0
- package/dist/serialization/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/types/CreatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -0
- package/dist/serialization/resources/planmigrations/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +14 -0
- package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/GetMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +14 -0
- package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +9 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +11 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -3
- package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/GetPlanParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/GetPlanResponse.d.ts +2 -1
- package/dist/serialization/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/PublishPlanVersionResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +3 -0
- package/dist/serialization/resources/scheduledcheckout/client/index.d.ts +1 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +12 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/scheduledcheckout/index.d.ts +2 -0
- package/dist/serialization/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +13 -0
- package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +12 -0
- package/dist/serialization/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/index.d.ts +5 -0
- package/dist/serialization/types/ActorType.d.ts +7 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/serialization/types/{ApiKeyRequestListResponseData.d.ts → AuditLogListResponseData.d.ts} +5 -5
- package/dist/serialization/types/{ApiKeyRequestResponseData.d.ts → AuditLogResponseData.d.ts} +5 -7
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditView.d.ts +32 -0
- package/dist/serialization/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -2
- package/dist/serialization/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/serialization/types/ComponentDisplaySettings.d.ts +2 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentSettingsResponseData.d.ts +2 -0
- package/dist/serialization/types/ConditionConditionType.d.ts +1 -1
- package/dist/serialization/types/ConditionGroupResponseData.d.ts +16 -0
- package/dist/serialization/types/ConditionGroupView.d.ts +18 -0
- package/dist/serialization/types/ConditionResponseData.d.ts +34 -0
- package/dist/serialization/types/ConditionView.d.ts +43 -0
- package/dist/serialization/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +11 -10
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +41 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +13 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +47 -0
- package/dist/serialization/types/CreditEventType.d.ts +7 -0
- package/dist/serialization/types/CreditsAutoTopupCompanySummary.d.ts +10 -0
- package/dist/serialization/types/CreditsAutoTopupCreditSummary.d.ts +10 -0
- package/dist/serialization/types/CreditsAutoTopupHardFailure.d.ts +14 -0
- package/dist/serialization/types/CreditsAutoTopupRetryFailure.d.ts +15 -0
- package/dist/serialization/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +9 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/EventResponseData.d.ts +1 -1
- package/dist/serialization/types/FeatureEntitlement.d.ts +25 -0
- package/dist/serialization/types/FeatureEntitlementMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/FeatureEntitlementMonthReset.d.ts +7 -0
- package/dist/serialization/types/FeatureUsageLegacyResponseData.d.ts +16 -0
- package/dist/serialization/types/FeatureUsageTimeSeriesResponseData.d.ts +16 -0
- package/dist/serialization/types/FeatureView.d.ts +32 -0
- package/dist/serialization/types/FlagView.d.ts +25 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +2 -0
- package/dist/serialization/types/InvoiceStatus.d.ts +7 -0
- package/dist/serialization/types/LimitTimeSeriesPointResponseData.d.ts +16 -0
- package/dist/serialization/types/PlanBundleAction.d.ts +7 -0
- package/dist/serialization/types/PlanBundleCreditGrantRequestBody.d.ts +17 -0
- package/dist/serialization/types/PlanBundleEntitlementRequestBody.d.ts +13 -0
- package/dist/serialization/types/PlanBundleResponseData.d.ts +18 -0
- package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
- package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -4
- package/dist/serialization/types/PlanChangeSubscriptionAction.d.ts +1 -1
- package/dist/serialization/types/PlanCreditGrantView.d.ts +7 -3
- package/dist/serialization/types/PlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +20 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +7 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +25 -0
- package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +7 -0
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +7 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +21 -0
- package/dist/serialization/types/PlanVersionStatus.d.ts +7 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +47 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/serialization/types/PublicPlansResponseData.d.ts +21 -0
- package/dist/serialization/types/RawEventResponseData.d.ts +1 -1
- package/dist/serialization/types/RuleView.d.ts +23 -0
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCheckFlagResult.d.ts +2 -0
- package/dist/serialization/types/RulesengineCompany.d.ts +3 -1
- package/dist/serialization/types/RulesengineConditionConditionType.d.ts +1 -1
- package/dist/serialization/types/RulesengineEntitlementValueType.d.ts +7 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +25 -0
- package/dist/serialization/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/RulesengineFeatureEntitlementMonthReset.d.ts +7 -0
- package/dist/serialization/types/ScheduledCheckoutResponseData.d.ts +23 -0
- package/dist/serialization/types/ScheduledCheckoutStatus.d.ts +7 -0
- package/dist/serialization/types/ScheduledDowngradeConfigBehavior.d.ts +7 -0
- package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +19 -0
- package/dist/serialization/types/TimeSeriesGranularity.d.ts +7 -0
- package/dist/serialization/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +10 -10
- package/dist/serialization/types/UpdatePlanRequestBody.d.ts +11 -0
- package/dist/serialization/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +5 -5
- package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/serialization/types/UsageTimeSeriesPointResponseData.d.ts +12 -0
- package/dist/serialization/types/WebFeatureUsageWebhookOutput.d.ts +18 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/WhoAmIResponseData.d.ts +18 -0
- package/dist/serialization/types/index.d.ts +58 -6
- package/dist/wrapper.d.ts +58 -5
- package/package.json +4 -2
- package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.d.ts +0 -19
- package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.d.ts +0 -19
- package/dist/api/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -6
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +0 -46
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +0 -46
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -35
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -6
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -35
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -6
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -15
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -26
- package/dist/api/types/CreditUsageResponseData.d.ts +0 -12
- package/dist/api/types/FeatureUsageDataResponseData.d.ts +0 -19
- package/dist/serialization/resources/accounts/types/CountApiRequestsParams.d.ts +0 -13
- package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.d.ts +0 -12
- package/dist/serialization/resources/accounts/types/GetApiRequestResponse.d.ts +0 -11
- package/dist/serialization/resources/accounts/types/ListApiRequestsParams.d.ts +0 -13
- package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -12
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -26
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -12
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -26
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -12
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -13
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -11
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -39
- package/dist/serialization/types/CreditUsageResponseData.d.ts +0 -17
- package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +0 -27
- package/dist/serialization/types/PlanChangeActorType.d.ts +0 -7
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const InvoiceStatus: {
|
|
2
|
+
readonly Draft: "draft";
|
|
3
|
+
readonly Open: "open";
|
|
4
|
+
readonly Paid: "paid";
|
|
5
|
+
readonly Uncollectible: "uncollectible";
|
|
6
|
+
readonly Void: "void";
|
|
7
|
+
};
|
|
8
|
+
export type InvoiceStatus = (typeof InvoiceStatus)[keyof typeof InvoiceStatus];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface LimitTimeSeriesPointResponseData {
|
|
3
|
+
effectiveAt: Date;
|
|
4
|
+
isSoftLimit: boolean;
|
|
5
|
+
limitSource: Schematic.EntitlementType;
|
|
6
|
+
limitValue?: number;
|
|
7
|
+
planId?: string;
|
|
8
|
+
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanBundleCreditGrantRequestBody {
|
|
3
|
+
action: Schematic.PlanBundleAction;
|
|
4
|
+
createReq?: Schematic.CreateBillingPlanCreditGrantRequestBody;
|
|
5
|
+
creditGrantId?: string;
|
|
6
|
+
deleteReq?: Schematic.DeleteBillingPlanCreditGrantRequestBody;
|
|
7
|
+
updateReq?: Schematic.UpdateBillingPlanCreditGrantRequestBody;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanBundleResponseData {
|
|
3
|
+
billingProduct?: Schematic.BillingProductPlanResponseData;
|
|
4
|
+
creditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
|
|
5
|
+
entitlements?: Schematic.PlanEntitlementResponseData[];
|
|
6
|
+
plan?: Schematic.PlanResponseData;
|
|
7
|
+
traits?: Schematic.PlanTraitResponseData[];
|
|
8
|
+
}
|
|
@@ -7,6 +7,7 @@ export declare const PlanChangeAction: {
|
|
|
7
7
|
readonly PlanBillingProductChanged: "plan_billing_product_changed";
|
|
8
8
|
readonly PlanDeleted: "plan_deleted";
|
|
9
9
|
readonly PlanTraitChange: "plan_trait_change";
|
|
10
|
+
readonly PlanVersionMigration: "plan_version_migration";
|
|
10
11
|
readonly Quickstart: "quickstart";
|
|
11
12
|
readonly SubscriptionChange: "subscription_change";
|
|
12
13
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface PlanChangeResponseData {
|
|
3
3
|
action: Schematic.PlanChangeAction;
|
|
4
|
-
actorType: Schematic.
|
|
4
|
+
actorType: Schematic.ActorType;
|
|
5
5
|
addOnsAdded: Schematic.PlanSnapshotView[];
|
|
6
6
|
addOnsRemoved: Schematic.PlanSnapshotView[];
|
|
7
7
|
apiKey?: Schematic.ApiKeyResponseData;
|
|
8
|
-
|
|
8
|
+
auditLog?: Schematic.AuditLogListResponseData;
|
|
9
9
|
basePlan?: Schematic.PlanSnapshotView;
|
|
10
|
+
/** Any special behavior that affected the assignment of the base plan during this change. */
|
|
10
11
|
basePlanAction?: Schematic.PlanChangeBasePlanAction;
|
|
11
12
|
company?: Schematic.CompanyResponseData;
|
|
12
13
|
companyId: string;
|
|
@@ -15,6 +16,7 @@ export interface PlanChangeResponseData {
|
|
|
15
16
|
id: string;
|
|
16
17
|
previousBasePlan?: Schematic.PlanSnapshotView;
|
|
17
18
|
requestId?: string;
|
|
19
|
+
/** If a subscription was changed as a part of this plan change, indicates the type of change that was made. */
|
|
18
20
|
subscriptionChangeAction?: Schematic.PlanChangeSubscriptionAction;
|
|
19
21
|
/** Any traits were updated as part of this plan change (via pay-in-advance entitlements). */
|
|
20
22
|
traitsUpdated: Schematic.SubscriptionTraitUpdate[];
|
|
@@ -8,21 +8,28 @@ export interface PlanCreditGrantView {
|
|
|
8
8
|
billingCreditAutoTopupExpiryUnitCount?: number;
|
|
9
9
|
billingCreditAutoTopupThresholdPercent?: number;
|
|
10
10
|
createdAt: Date;
|
|
11
|
+
credit?: Schematic.BillingCreditView;
|
|
11
12
|
creditAmount: number;
|
|
13
|
+
/** Deprecated field, will be removed in the future. Use Credit.Description instead. */
|
|
12
14
|
creditDescription: string;
|
|
15
|
+
/** Deprecated field, will be removed in the future. Use Credit.Icon instead. */
|
|
13
16
|
creditIcon?: string;
|
|
14
17
|
creditId: string;
|
|
18
|
+
/** Deprecated field, will be removed in the future. Use Credit.Name instead. */
|
|
15
19
|
creditName: string;
|
|
16
20
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
17
21
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
18
22
|
expiryUnitCount?: number;
|
|
19
23
|
id: string;
|
|
24
|
+
plan?: Schematic.GenericPreviewObject;
|
|
20
25
|
planId: string;
|
|
21
|
-
|
|
26
|
+
planVersionId?: string;
|
|
27
|
+
/** Deprecated field, will be removed in the future. Use Credit.PluralName instead. */
|
|
22
28
|
pluralName?: string;
|
|
23
|
-
resetCadence
|
|
24
|
-
resetStart
|
|
29
|
+
resetCadence?: Schematic.BillingPlanCreditGrantResetCadence;
|
|
30
|
+
resetStart?: Schematic.BillingPlanCreditGrantResetStart;
|
|
25
31
|
resetType: Schematic.BillingPlanCreditGrantResetType;
|
|
32
|
+
/** Deprecated field, will be removed in the future. Use Credit.SingularName instead. */
|
|
26
33
|
singularName?: string;
|
|
27
34
|
updatedAt: Date;
|
|
28
35
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface PlanDetailResponseData {
|
|
3
|
+
activeVersion?: Schematic.PlanVersionResponseData;
|
|
3
4
|
audienceType?: string;
|
|
4
5
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
5
6
|
chargeType: Schematic.ChargeType;
|
|
@@ -7,6 +8,7 @@ export interface PlanDetailResponseData {
|
|
|
7
8
|
controlledBy: Schematic.PlanControlledByType;
|
|
8
9
|
createdAt: Date;
|
|
9
10
|
description: string;
|
|
11
|
+
draftVersion?: Schematic.PlanVersionResponseData;
|
|
10
12
|
features: Schematic.FeatureDetailResponseData[];
|
|
11
13
|
icon: string;
|
|
12
14
|
id: string;
|
|
@@ -20,5 +22,6 @@ export interface PlanDetailResponseData {
|
|
|
20
22
|
planType: Schematic.PlanType;
|
|
21
23
|
trialDays?: number;
|
|
22
24
|
updatedAt: Date;
|
|
25
|
+
versions: Schematic.PlanVersionResponseData[];
|
|
23
26
|
yearlyPrice?: Schematic.BillingPriceResponseData;
|
|
24
27
|
}
|
|
@@ -23,6 +23,8 @@ export interface PlanGroupDetailResponseData {
|
|
|
23
23
|
preventSelfServiceDowngradeButtonText?: string;
|
|
24
24
|
preventSelfServiceDowngradeUrl?: string;
|
|
25
25
|
prorationBehavior: string;
|
|
26
|
+
scheduledDowngradeBehavior?: string;
|
|
27
|
+
scheduledDowngradePreventWhenOverLimit?: boolean;
|
|
26
28
|
showAsMonthlyPrices: boolean;
|
|
27
29
|
showCredits: boolean;
|
|
28
30
|
showPeriodToggle: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface PlanGroupPlanDetailResponseData {
|
|
3
|
+
activeVersion?: Schematic.PlanVersionResponseData;
|
|
3
4
|
audienceType?: string;
|
|
4
5
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
5
6
|
chargeType: Schematic.ChargeType;
|
|
@@ -9,6 +10,7 @@ export interface PlanGroupPlanDetailResponseData {
|
|
|
9
10
|
createdAt: Date;
|
|
10
11
|
customPlanConfig?: Schematic.CustomPlanViewConfigResponseData;
|
|
11
12
|
description: string;
|
|
13
|
+
draftVersion?: Schematic.PlanVersionResponseData;
|
|
12
14
|
entitlements: Schematic.PlanEntitlementResponseData[];
|
|
13
15
|
features: Schematic.FeatureDetailResponseData[];
|
|
14
16
|
icon: string;
|
|
@@ -24,5 +26,6 @@ export interface PlanGroupPlanDetailResponseData {
|
|
|
24
26
|
planType: Schematic.PlanType;
|
|
25
27
|
trialDays?: number;
|
|
26
28
|
updatedAt: Date;
|
|
29
|
+
versions: Schematic.PlanVersionResponseData[];
|
|
27
30
|
yearlyPrice?: Schematic.BillingPriceResponseData;
|
|
28
31
|
}
|
|
@@ -16,6 +16,8 @@ export interface PlanGroupResponseData {
|
|
|
16
16
|
preventSelfServiceDowngradeButtonText?: string;
|
|
17
17
|
preventSelfServiceDowngradeUrl?: string;
|
|
18
18
|
prorationBehavior: string;
|
|
19
|
+
scheduledDowngradeBehavior?: string;
|
|
20
|
+
scheduledDowngradePreventWhenOverLimit?: boolean;
|
|
19
21
|
showAsMonthlyPrices: boolean;
|
|
20
22
|
showCredits: boolean;
|
|
21
23
|
showPeriodToggle: boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanVersionCompanyMigrationResponseData {
|
|
3
|
+
companyId: string;
|
|
4
|
+
companyName: string;
|
|
5
|
+
completedAt?: Date;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
error?: string;
|
|
8
|
+
id: string;
|
|
9
|
+
migrationId: string;
|
|
10
|
+
planVersionIdFrom?: string;
|
|
11
|
+
startedAt?: Date;
|
|
12
|
+
status: Schematic.PlanVersionCompanyMigrationStatus;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const PlanVersionCompanyMigrationStatus: {
|
|
2
|
+
readonly Completed: "completed";
|
|
3
|
+
readonly Failed: "failed";
|
|
4
|
+
readonly InProgress: "in_progress";
|
|
5
|
+
readonly Pending: "pending";
|
|
6
|
+
readonly Skipped: "skipped";
|
|
7
|
+
};
|
|
8
|
+
export type PlanVersionCompanyMigrationStatus = (typeof PlanVersionCompanyMigrationStatus)[keyof typeof PlanVersionCompanyMigrationStatus];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanVersionMigrationResponseData {
|
|
3
|
+
completedAt?: Date;
|
|
4
|
+
completedCompanies: number;
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
error?: string;
|
|
7
|
+
failedCompanies: number;
|
|
8
|
+
id: string;
|
|
9
|
+
planId: string;
|
|
10
|
+
planVersionIdFrom?: string;
|
|
11
|
+
planVersionIdTo: string;
|
|
12
|
+
skippedCompanies: number;
|
|
13
|
+
startedAt?: Date;
|
|
14
|
+
status: Schematic.PlanVersionMigrationStatus;
|
|
15
|
+
strategy: Schematic.PlanVersionMigrationStrategy;
|
|
16
|
+
totalCompanies: number;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const PlanVersionMigrationStatus: {
|
|
2
|
+
readonly Completed: "completed";
|
|
3
|
+
readonly Failed: "failed";
|
|
4
|
+
readonly InProgress: "in_progress";
|
|
5
|
+
readonly Pending: "pending";
|
|
6
|
+
};
|
|
7
|
+
export type PlanVersionMigrationStatus = (typeof PlanVersionMigrationStatus)[keyof typeof PlanVersionMigrationStatus];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanVersionResponseData {
|
|
3
|
+
createdAt: Date;
|
|
4
|
+
description: string;
|
|
5
|
+
environmentId: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
originalPlanId?: string;
|
|
10
|
+
planType: Schematic.PlanType;
|
|
11
|
+
status: Schematic.PlanVersionStatus;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
version: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanViewPublicResponseData {
|
|
3
|
+
activeVersion?: Schematic.PlanVersionResponseData;
|
|
4
|
+
audienceType?: string;
|
|
5
|
+
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
6
|
+
chargeType: Schematic.ChargeType;
|
|
7
|
+
companyCount: number;
|
|
8
|
+
compatiblePlanIds: string[];
|
|
9
|
+
controlledBy: Schematic.PlanControlledByType;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
custom: boolean;
|
|
12
|
+
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
13
|
+
description: string;
|
|
14
|
+
draftVersion?: Schematic.PlanVersionResponseData;
|
|
15
|
+
entitlements: Schematic.PlanEntitlementResponseData[];
|
|
16
|
+
features: Schematic.FeatureDetailResponseData[];
|
|
17
|
+
icon: string;
|
|
18
|
+
id: string;
|
|
19
|
+
includedCreditGrants: Schematic.PlanCreditGrantView[];
|
|
20
|
+
isCustom: boolean;
|
|
21
|
+
isDefault: boolean;
|
|
22
|
+
isFree: boolean;
|
|
23
|
+
isTrialable: boolean;
|
|
24
|
+
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
25
|
+
name: string;
|
|
26
|
+
oneTimePrice?: Schematic.BillingPriceResponseData;
|
|
27
|
+
planType: Schematic.PlanType;
|
|
28
|
+
trialDays?: number;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
versions: Schematic.PlanVersionResponseData[];
|
|
31
|
+
yearlyPrice?: Schematic.BillingPriceResponseData;
|
|
32
|
+
}
|
|
@@ -3,12 +3,14 @@ export interface PreviewSubscriptionChangeResponseData {
|
|
|
3
3
|
amountOff: number;
|
|
4
4
|
dueNow: number;
|
|
5
5
|
finance?: Schematic.PreviewSubscriptionFinanceResponseData;
|
|
6
|
+
isScheduledDowngrade: boolean;
|
|
6
7
|
newCharges: number;
|
|
7
8
|
paymentMethodRequired: boolean;
|
|
8
9
|
percentOff: number;
|
|
9
10
|
periodStart: Date;
|
|
10
11
|
promoCodeApplied: boolean;
|
|
11
12
|
proration: number;
|
|
13
|
+
scheduledChangeTime?: Date;
|
|
12
14
|
trialEnd?: Date;
|
|
13
15
|
usageViolations: Schematic.FeatureUsageResponseData[];
|
|
14
16
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PublicPlansResponseData {
|
|
3
|
+
activeAddOns: Schematic.PlanViewPublicResponseData[];
|
|
4
|
+
activePlans: Schematic.PlanViewPublicResponseData[];
|
|
5
|
+
addOnCompatibilities: Schematic.CompatiblePlans[];
|
|
6
|
+
capabilities?: Schematic.ComponentCapabilities;
|
|
7
|
+
displaySettings: Schematic.ComponentDisplaySettings;
|
|
8
|
+
showAsMonthlyPrices: boolean;
|
|
9
|
+
showCredits: boolean;
|
|
10
|
+
showPeriodToggle: boolean;
|
|
11
|
+
showZeroPriceAsFree: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface RuleView {
|
|
3
|
+
accountId: string;
|
|
4
|
+
conditionGroups: Schematic.ConditionGroupView[];
|
|
5
|
+
conditions: Schematic.ConditionView[];
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
environmentId: string;
|
|
8
|
+
flagId?: string;
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
planVersionId?: string;
|
|
12
|
+
priority: number;
|
|
13
|
+
ruleType: string;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
value: boolean;
|
|
16
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The current schema version hash for rules engine types. The first enum value is always the current version. */
|
|
2
2
|
export declare const RulesEngineSchemaVersion: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly V0F048Dd3: "v0f048dd3";
|
|
4
4
|
readonly PlaceholderForFernCompatibility: "placeholder-for-fern-compatibility";
|
|
5
5
|
};
|
|
6
6
|
export type RulesEngineSchemaVersion = (typeof RulesEngineSchemaVersion)[keyof typeof RulesEngineSchemaVersion];
|
|
@@ -4,12 +4,13 @@ export interface RulesengineCompany {
|
|
|
4
4
|
basePlanId?: string;
|
|
5
5
|
billingProductIds: string[];
|
|
6
6
|
creditBalances: Record<string, number>;
|
|
7
|
-
|
|
7
|
+
entitlements?: Schematic.RulesengineFeatureEntitlement[];
|
|
8
8
|
environmentId: string;
|
|
9
9
|
id: string;
|
|
10
10
|
keys: Record<string, string>;
|
|
11
11
|
metrics: Schematic.RulesengineCompanyMetric[];
|
|
12
12
|
planIds: string[];
|
|
13
|
+
planVersionIds: string[];
|
|
13
14
|
rules: Schematic.RulesengineRule[];
|
|
14
15
|
subscription?: Schematic.RulesengineSubscription;
|
|
15
16
|
traits: Schematic.RulesengineTrait[];
|
|
@@ -3,9 +3,9 @@ export declare const RulesengineConditionConditionType: {
|
|
|
3
3
|
readonly BillingProduct: "billing_product";
|
|
4
4
|
readonly Company: "company";
|
|
5
5
|
readonly Credit: "credit";
|
|
6
|
-
readonly CrmProduct: "crm_product";
|
|
7
6
|
readonly Metric: "metric";
|
|
8
7
|
readonly Plan: "plan";
|
|
8
|
+
readonly PlanVersion: "plan_version";
|
|
9
9
|
readonly Trait: "trait";
|
|
10
10
|
readonly User: "user";
|
|
11
11
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const RulesengineEntitlementValueType: {
|
|
2
|
+
readonly Boolean: "boolean";
|
|
3
|
+
readonly Credit: "credit";
|
|
4
|
+
readonly Numeric: "numeric";
|
|
5
|
+
readonly Trait: "trait";
|
|
6
|
+
readonly Unknown: "unknown";
|
|
7
|
+
readonly Unlimited: "unlimited";
|
|
8
|
+
};
|
|
9
|
+
export type RulesengineEntitlementValueType = (typeof RulesengineEntitlementValueType)[keyof typeof RulesengineEntitlementValueType];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface RulesengineFeatureEntitlement {
|
|
3
|
+
/** If the company has a numeric entitlement for this feature, the allocated amount */
|
|
4
|
+
allocation?: number;
|
|
5
|
+
/** If the company has a credit-based entitlement for this feature, the ID of the credit */
|
|
6
|
+
creditId?: string;
|
|
7
|
+
/** If the company has a credit-based entitlement for this feature, the remaining credit amount */
|
|
8
|
+
creditRemaining?: number;
|
|
9
|
+
/** If the company has a credit-based entitlement for this feature, the total credit amount */
|
|
10
|
+
creditTotal?: number;
|
|
11
|
+
/** If the company has a credit-based entitlement for this feature, the amount of credit used */
|
|
12
|
+
creditUsed?: number;
|
|
13
|
+
/** If the feature is event-based, the name of the event tracked for usage */
|
|
14
|
+
eventName?: string;
|
|
15
|
+
/** The ID of the feature */
|
|
16
|
+
featureId: string;
|
|
17
|
+
/** The key of the flag associated with the feature */
|
|
18
|
+
featureKey: string;
|
|
19
|
+
/** For event-based feature entitlements, the period over which usage is tracked */
|
|
20
|
+
metricPeriod?: Schematic.RulesengineFeatureEntitlementMetricPeriod;
|
|
21
|
+
/** For event-based feature entitlements, when the usage period will reset */
|
|
22
|
+
metricResetAt?: Date;
|
|
23
|
+
/** For event-based feature entitlements that have a monthly period, whether that monthly reset is based on the calendar month or a billing cycle */
|
|
24
|
+
monthReset?: Schematic.RulesengineFeatureEntitlementMonthReset;
|
|
25
|
+
/** For usage-based pricing, the soft limit for overage charges or the next tier boundary */
|
|
26
|
+
softLimit?: number;
|
|
27
|
+
/** If the company has a numeric entitlement for this feature, the current usage amount */
|
|
28
|
+
usage?: number;
|
|
29
|
+
/** The type of the entitlement value */
|
|
30
|
+
valueType: Schematic.RulesengineEntitlementValueType;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** For event-based feature entitlements, the period over which usage is tracked */
|
|
2
|
+
export declare const RulesengineFeatureEntitlementMetricPeriod: {
|
|
3
|
+
readonly AllTime: "all_time";
|
|
4
|
+
readonly CurrentDay: "current_day";
|
|
5
|
+
readonly CurrentMonth: "current_month";
|
|
6
|
+
readonly CurrentWeek: "current_week";
|
|
7
|
+
};
|
|
8
|
+
export type RulesengineFeatureEntitlementMetricPeriod = (typeof RulesengineFeatureEntitlementMetricPeriod)[keyof typeof RulesengineFeatureEntitlementMetricPeriod];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** For event-based feature entitlements that have a monthly period, whether that monthly reset is based on the calendar month or a billing cycle */
|
|
2
|
+
export declare const RulesengineFeatureEntitlementMonthReset: {
|
|
3
|
+
readonly FirstOfMonth: "first_of_month";
|
|
4
|
+
readonly BillingCycle: "billing_cycle";
|
|
5
|
+
};
|
|
6
|
+
export type RulesengineFeatureEntitlementMonthReset = (typeof RulesengineFeatureEntitlementMonthReset)[keyof typeof RulesengineFeatureEntitlementMonthReset];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface ScheduledCheckoutResponseData {
|
|
3
|
+
actorType: string;
|
|
4
|
+
companyId: string;
|
|
5
|
+
completedAt?: Date;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
executeAfter: Date;
|
|
9
|
+
fromPlanId: string;
|
|
10
|
+
id: string;
|
|
11
|
+
scheduledInterval?: string;
|
|
12
|
+
scheduledPrice?: number;
|
|
13
|
+
startedAt?: Date;
|
|
14
|
+
status: Schematic.ScheduledCheckoutStatus;
|
|
15
|
+
toPlanId: string;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ScheduledCheckoutStatus: {
|
|
2
|
+
readonly Cancelled: "cancelled";
|
|
3
|
+
readonly Error: "error";
|
|
4
|
+
readonly Executing: "executing";
|
|
5
|
+
readonly Pending: "pending";
|
|
6
|
+
readonly Success: "success";
|
|
7
|
+
};
|
|
8
|
+
export type ScheduledCheckoutStatus = (typeof ScheduledCheckoutStatus)[keyof typeof ScheduledCheckoutStatus];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ScheduledDowngradeConfigBehavior: {
|
|
2
|
+
readonly EndOfBillingPeriod: "end_of_billing_period";
|
|
3
|
+
readonly None: "none";
|
|
4
|
+
};
|
|
5
|
+
export type ScheduledDowngradeConfigBehavior = (typeof ScheduledDowngradeConfigBehavior)[keyof typeof ScheduledDowngradeConfigBehavior];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ScheduledDowngradeResponseData {
|
|
2
|
+
currency: string;
|
|
3
|
+
effectiveAfter: Date;
|
|
4
|
+
fromPlanId: string;
|
|
5
|
+
fromPlanName: string;
|
|
6
|
+
fromSubscriptionPrice: number;
|
|
7
|
+
id: string;
|
|
8
|
+
interval: string;
|
|
9
|
+
scheduledInterval?: string;
|
|
10
|
+
scheduledPrice?: number;
|
|
11
|
+
toPlanId: string;
|
|
12
|
+
toPlanName: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const TimeSeriesGranularity: {
|
|
2
|
+
readonly Daily: "daily";
|
|
3
|
+
readonly Hourly: "hourly";
|
|
4
|
+
readonly Monthly: "monthly";
|
|
5
|
+
readonly Weekly: "weekly";
|
|
6
|
+
};
|
|
7
|
+
export type TimeSeriesGranularity = (typeof TimeSeriesGranularity)[keyof typeof TimeSeriesGranularity];
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type * as Schematic from "
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* resetCadence: "daily",
|
|
6
|
-
* resetStart: "billing_period"
|
|
7
|
-
* }
|
|
8
|
-
*/
|
|
1
|
+
import type * as Schematic from "../index";
|
|
9
2
|
export interface UpdateBillingPlanCreditGrantRequestBody {
|
|
10
3
|
applyToExisting?: boolean;
|
|
11
4
|
autoTopupAmount?: number;
|
package/dist/api/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts
RENAMED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type * as Schematic from "
|
|
2
|
-
/**
|
|
3
|
-
* @example
|
|
4
|
-
* {
|
|
5
|
-
* chargeType: "free",
|
|
6
|
-
* isTrialable: true
|
|
7
|
-
* }
|
|
8
|
-
*/
|
|
1
|
+
import type * as Schematic from "../index";
|
|
9
2
|
export interface UpsertBillingProductRequestBody {
|
|
10
3
|
billingProductId?: string;
|
|
11
4
|
chargeType: Schematic.ChargeType;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface WebFeatureUsageWebhookOutput {
|
|
3
|
+
allocation?: number;
|
|
4
|
+
creditUsage?: Schematic.CreditUsage;
|
|
5
|
+
entitlement: string;
|
|
6
|
+
feature?: Schematic.FeatureView;
|
|
7
|
+
metricResetAt?: Date;
|
|
8
|
+
usage?: number;
|
|
9
|
+
company?: Schematic.CompanyDetailResponseData;
|
|
10
|
+
}
|
|
@@ -29,10 +29,13 @@ export declare const WebhookRequestType: {
|
|
|
29
29
|
readonly PlanEntitlementDeleted: "plan.entitlement.deleted";
|
|
30
30
|
readonly PlanEntitlementUpdated: "plan.entitlement.updated";
|
|
31
31
|
readonly PlanUpdated: "plan.updated";
|
|
32
|
+
readonly PlanVersionDeleted: "plan_version.deleted";
|
|
32
33
|
readonly RuleDeleted: "rule.deleted";
|
|
33
34
|
readonly TestSend: "test.send";
|
|
34
35
|
readonly UserCreated: "user.created";
|
|
35
36
|
readonly UserDeleted: "user.deleted";
|
|
36
37
|
readonly UserUpdated: "user.updated";
|
|
38
|
+
readonly AutoTopupHardFailure: "auto.topup.hard.failure";
|
|
39
|
+
readonly AutoTopupRetryExceeded: "auto.topup.retry.exceeded";
|
|
37
40
|
};
|
|
38
41
|
export type WebhookRequestType = (typeof WebhookRequestType)[keyof typeof WebhookRequestType];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface WhoAmIResponseData {
|
|
3
|
+
accountId: string;
|
|
4
|
+
accountName: string;
|
|
5
|
+
actorType: string;
|
|
6
|
+
apiKeyId?: string;
|
|
7
|
+
environmentId?: string;
|
|
8
|
+
environments: Schematic.EnvironmentResponseData[];
|
|
9
|
+
stripeUserId?: string;
|
|
10
|
+
userId?: string;
|
|
11
|
+
userName?: string;
|
|
12
|
+
}
|