@schematichq/schematic-typescript-node 1.3.1 → 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 +9 -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/requests/CreateInvoiceRequestBody.d.ts +2 -0
- 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 +50 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +3 -1
- 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 +2 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -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 +4 -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 +8 -0
- package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +1 -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 -0
- 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/BillingCreditResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditView.d.ts +22 -0
- 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 +2 -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/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
- package/dist/api/types/CreateEventRequestBody.d.ts +1 -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/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/PlanChangeAction.d.ts +1 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +4 -2
- package/dist/api/types/PlanCreditGrantView.d.ts +10 -3
- package/dist/api/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -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/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/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/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 +1 -0
- package/dist/api/types/WhoAmIResponseData.d.ts +12 -0
- package/dist/api/types/index.d.ts +43 -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/CreateInvoiceRequestBody.d.ts +2 -0
- 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/types/CountBillingPlanCreditGrantsParams.d.ts +1 -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 +4 -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 +7 -0
- package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +1 -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 -0
- 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/BillingCreditResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditView.d.ts +32 -0
- 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 +2 -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/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -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/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/PlanChangeAction.d.ts +1 -1
- package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -4
- package/dist/serialization/types/PlanCreditGrantView.d.ts +7 -3
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -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/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/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/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 +43 -6
- package/dist/wrapper.d.ts +48 -4
- 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/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/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,83 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../core";
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export declare namespace ScheduledcheckoutClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ScheduledcheckoutClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ScheduledcheckoutClient.Options>;
|
|
12
|
+
constructor(options: ScheduledcheckoutClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {Schematic.ListScheduledCheckoutsRequest} request
|
|
15
|
+
* @param {ScheduledcheckoutClient.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.scheduledcheckout.listScheduledCheckouts({
|
|
25
|
+
* companyId: "company_id",
|
|
26
|
+
* status: "cancelled",
|
|
27
|
+
* limit: 1,
|
|
28
|
+
* offset: 1
|
|
29
|
+
* })
|
|
30
|
+
*/
|
|
31
|
+
listScheduledCheckouts(request?: Schematic.ListScheduledCheckoutsRequest, requestOptions?: ScheduledcheckoutClient.RequestOptions): core.HttpResponsePromise<Schematic.ListScheduledCheckoutsResponse>;
|
|
32
|
+
private __listScheduledCheckouts;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Schematic.CreateScheduledCheckoutRequest} request
|
|
35
|
+
* @param {ScheduledcheckoutClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Schematic.BadRequestError}
|
|
38
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
39
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
40
|
+
* @throws {@link Schematic.NotFoundError}
|
|
41
|
+
* @throws {@link Schematic.InternalServerError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.scheduledcheckout.createScheduledCheckout({
|
|
45
|
+
* companyId: "company_id",
|
|
46
|
+
* executeAfter: new Date("2024-01-15T09:30:00.000Z"),
|
|
47
|
+
* fromPlanId: "from_plan_id",
|
|
48
|
+
* toPlanId: "to_plan_id"
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
createScheduledCheckout(request: Schematic.CreateScheduledCheckoutRequest, requestOptions?: ScheduledcheckoutClient.RequestOptions): core.HttpResponsePromise<Schematic.CreateScheduledCheckoutResponse>;
|
|
52
|
+
private __createScheduledCheckout;
|
|
53
|
+
/**
|
|
54
|
+
* @param {string} scheduled_checkout_id - scheduled_checkout_id
|
|
55
|
+
* @param {ScheduledcheckoutClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
58
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
59
|
+
* @throws {@link Schematic.NotFoundError}
|
|
60
|
+
* @throws {@link Schematic.InternalServerError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.scheduledcheckout.getScheduledCheckout("scheduled_checkout_id")
|
|
64
|
+
*/
|
|
65
|
+
getScheduledCheckout(scheduled_checkout_id: string, requestOptions?: ScheduledcheckoutClient.RequestOptions): core.HttpResponsePromise<Schematic.GetScheduledCheckoutResponse>;
|
|
66
|
+
private __getScheduledCheckout;
|
|
67
|
+
/**
|
|
68
|
+
* @param {string} scheduled_checkout_id - scheduled_checkout_id
|
|
69
|
+
* @param {Schematic.UpdateScheduledCheckoutRequest} request
|
|
70
|
+
* @param {ScheduledcheckoutClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link Schematic.BadRequestError}
|
|
73
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
74
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
75
|
+
* @throws {@link Schematic.NotFoundError}
|
|
76
|
+
* @throws {@link Schematic.InternalServerError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.scheduledcheckout.updateScheduledCheckout("scheduled_checkout_id")
|
|
80
|
+
*/
|
|
81
|
+
updateScheduledCheckout(scheduled_checkout_id: string, request?: Schematic.UpdateScheduledCheckoutRequest, requestOptions?: ScheduledcheckoutClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateScheduledCheckoutResponse>;
|
|
82
|
+
private __updateScheduledCheckout;
|
|
83
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
package/dist/api/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* companyId: "company_id",
|
|
5
|
+
* executeAfter: new Date("2024-01-15T09:30:00.000Z"),
|
|
6
|
+
* fromPlanId: "from_plan_id",
|
|
7
|
+
* toPlanId: "to_plan_id"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CreateScheduledCheckoutRequest {
|
|
11
|
+
companyId: string;
|
|
12
|
+
executeAfter: Date;
|
|
13
|
+
fromPlanId: string;
|
|
14
|
+
toPlanId: string;
|
|
15
|
+
}
|
package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* companyId: "company_id",
|
|
6
|
+
* status: "cancelled",
|
|
7
|
+
* limit: 1,
|
|
8
|
+
* offset: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ListScheduledCheckoutsRequest {
|
|
12
|
+
companyId?: string;
|
|
13
|
+
status?: Schematic.ScheduledCheckoutStatus;
|
|
14
|
+
/** Page limit (default 100) */
|
|
15
|
+
limit?: number;
|
|
16
|
+
/** Page offset (default 0) */
|
|
17
|
+
offset?: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Input parameters
|
|
4
|
+
*/
|
|
5
|
+
export interface ListScheduledCheckoutsParams {
|
|
6
|
+
companyId?: string;
|
|
7
|
+
/** Page limit (default 100) */
|
|
8
|
+
limit?: number;
|
|
9
|
+
/** Page offset (default 0) */
|
|
10
|
+
offset?: number;
|
|
11
|
+
status?: Schematic.ScheduledCheckoutStatus;
|
|
12
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const ActorType: {
|
|
2
2
|
readonly ApiKey: "api_key";
|
|
3
3
|
readonly AppUser: "app_user";
|
|
4
|
+
readonly StripeApp: "stripe_app";
|
|
4
5
|
readonly System: "system";
|
|
5
6
|
readonly TemporaryAccessToken: "temporary_access_token";
|
|
6
7
|
};
|
|
7
|
-
export type
|
|
8
|
+
export type ActorType = (typeof ActorType)[keyof typeof ActorType];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface AuditLogListResponseData {
|
|
3
|
+
actorType: Schematic.ActorType;
|
|
4
|
+
apiKeyId?: string;
|
|
3
5
|
endedAt?: Date;
|
|
4
6
|
environmentId?: string;
|
|
5
7
|
id: string;
|
|
6
8
|
method: string;
|
|
7
|
-
reqBody?: string;
|
|
8
|
-
requestType?: string;
|
|
9
9
|
resourceId?: number;
|
|
10
10
|
resourceIdString?: string;
|
|
11
11
|
resourceName?: string;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
apiKeyId
|
|
2
|
+
export interface AuditLogResponseData {
|
|
3
|
+
actorType: Schematic.ActorType;
|
|
4
|
+
apiKeyId?: string;
|
|
5
5
|
endedAt?: Date;
|
|
6
6
|
environmentId?: string;
|
|
7
7
|
id: string;
|
|
8
8
|
method: string;
|
|
9
9
|
reqBody?: string;
|
|
10
|
-
requestType?: string;
|
|
11
10
|
resourceId?: number;
|
|
12
11
|
resourceIdString?: string;
|
|
13
12
|
resourceName?: string;
|
|
@@ -17,7 +16,6 @@ export interface ApiKeyRequestResponseData {
|
|
|
17
16
|
secondaryResource?: string;
|
|
18
17
|
startedAt: Date;
|
|
19
18
|
url: string;
|
|
20
|
-
userAgent?: string;
|
|
21
19
|
userId?: string;
|
|
22
20
|
userName?: string;
|
|
23
21
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface BillingCreditResponseData {
|
|
3
3
|
burnStrategy: Schematic.BillingCreditBurnStrategy;
|
|
4
|
+
costEditable: boolean;
|
|
4
5
|
createdAt: Date;
|
|
5
6
|
defaultExpiryUnit: Schematic.BillingCreditExpiryUnit;
|
|
6
7
|
defaultExpiryUnitCount?: number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface BillingCreditView {
|
|
3
|
+
accountId: string;
|
|
4
|
+
burnStrategy: Schematic.BillingCreditBurnStrategy;
|
|
5
|
+
costEditable: boolean;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
defaultExpiryUnit: Schematic.BillingCreditExpiryUnit;
|
|
8
|
+
defaultExpiryUnitCount?: number;
|
|
9
|
+
defaultRolloverPolicy: Schematic.BillingCreditRolloverPolicy;
|
|
10
|
+
description: string;
|
|
11
|
+
environmentId: string;
|
|
12
|
+
icon?: string;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
pluralName?: string;
|
|
16
|
+
price?: Schematic.BillingPriceView;
|
|
17
|
+
pricePerUnit?: number;
|
|
18
|
+
pricePerUnitDecimal?: string;
|
|
19
|
+
product?: Schematic.BillingProductResponseData;
|
|
20
|
+
singularName?: string;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
}
|
|
@@ -8,19 +8,26 @@ export interface BillingPlanCreditGrantResponseData {
|
|
|
8
8
|
autoTopupExpiryUnitCount?: number;
|
|
9
9
|
autoTopupThresholdPercent?: number;
|
|
10
10
|
createdAt: Date;
|
|
11
|
+
credit?: Schematic.BillingCreditResponseData;
|
|
11
12
|
creditAmount: number;
|
|
12
13
|
creditId: string;
|
|
14
|
+
/** Use credit.name from the nested credit object instead */
|
|
13
15
|
creditName: string;
|
|
16
|
+
/** Use plural_name from the nested credit object instead */
|
|
14
17
|
creditPluralName?: string;
|
|
18
|
+
/** Use singular_name from the nested credit object instead */
|
|
15
19
|
creditSingularName?: string;
|
|
16
20
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
17
21
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
18
22
|
expiryUnitCount?: number;
|
|
19
23
|
id: string;
|
|
24
|
+
plan?: Schematic.PreviewObjectResponseData;
|
|
20
25
|
planId: string;
|
|
26
|
+
/** Use plan.name from the nested plan object instead */
|
|
21
27
|
planName: string;
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
planVersionId?: string;
|
|
29
|
+
resetCadence?: Schematic.BillingPlanCreditGrantResetCadence;
|
|
30
|
+
resetStart?: Schematic.BillingPlanCreditGrantResetStart;
|
|
24
31
|
resetType?: Schematic.BillingPlanCreditGrantResetType;
|
|
25
32
|
updatedAt: Date;
|
|
26
33
|
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
1
2
|
export interface CheckFlagResponseData {
|
|
2
3
|
/** If company keys were provided and matched a company, its ID */
|
|
3
4
|
companyId?: string;
|
|
5
|
+
/** If a feature entitlement rule was matched, its entitlement details */
|
|
6
|
+
entitlement?: Schematic.FeatureEntitlement;
|
|
4
7
|
/** If an error occurred while checking the flag, the error message */
|
|
5
8
|
error?: string;
|
|
6
|
-
/**
|
|
9
|
+
/** Deprecated: Use Entitlement.Allocation instead. */
|
|
7
10
|
featureAllocation?: number;
|
|
8
|
-
/**
|
|
11
|
+
/** Deprecated: Use Entitlement.Usage instead. */
|
|
9
12
|
featureUsage?: number;
|
|
10
|
-
/**
|
|
13
|
+
/** Deprecated: Use Entitlement.EventName instead. */
|
|
11
14
|
featureUsageEvent?: string;
|
|
12
|
-
/**
|
|
15
|
+
/** Deprecated: Use Entitlement.MetricPeriod instead. */
|
|
13
16
|
featureUsagePeriod?: string;
|
|
14
|
-
/**
|
|
17
|
+
/** Deprecated: Use Entitlement.MetricResetAt instead. */
|
|
15
18
|
featureUsageResetAt?: Date;
|
|
16
19
|
/** The key used to check the flag */
|
|
17
20
|
flag: string;
|
|
@@ -6,6 +6,7 @@ export interface CompanyDetailResponseData {
|
|
|
6
6
|
billingSubscriptions: Schematic.BillingSubscriptionView[];
|
|
7
7
|
createdAt: Date;
|
|
8
8
|
defaultPaymentMethod?: Schematic.PaymentMethodResponseData;
|
|
9
|
+
entitlements: Schematic.FeatureEntitlement[];
|
|
9
10
|
entityTraits: Schematic.EntityTraitDetailResponseData[];
|
|
10
11
|
environmentId: string;
|
|
11
12
|
id: string;
|
|
@@ -18,6 +19,7 @@ export interface CompanyDetailResponseData {
|
|
|
18
19
|
plan?: Schematic.CompanyPlanWithBillingSubView;
|
|
19
20
|
plans: Schematic.GenericPreviewObject[];
|
|
20
21
|
rules: Schematic.Rule[];
|
|
22
|
+
scheduledDowngrade?: Schematic.ScheduledDowngradeResponseData;
|
|
21
23
|
/** A map of trait names to trait values */
|
|
22
24
|
traits?: Record<string, unknown>;
|
|
23
25
|
updatedAt: Date;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface CompanyPlanDetailResponseData {
|
|
3
|
+
activeVersion?: Schematic.PlanVersionResponseData;
|
|
3
4
|
audienceType?: string;
|
|
4
5
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
5
6
|
chargeType: Schematic.ChargeType;
|
|
@@ -12,6 +13,7 @@ export interface CompanyPlanDetailResponseData {
|
|
|
12
13
|
custom: boolean;
|
|
13
14
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
14
15
|
description: string;
|
|
16
|
+
draftVersion?: Schematic.PlanVersionResponseData;
|
|
15
17
|
entitlements: Schematic.PlanEntitlementResponseData[];
|
|
16
18
|
features: Schematic.FeatureDetailResponseData[];
|
|
17
19
|
icon: string;
|
|
@@ -17,6 +17,7 @@ export interface ComponentHydrateResponseData {
|
|
|
17
17
|
preventSelfServiceDowngrade: boolean;
|
|
18
18
|
preventSelfServiceDowngradeButtonText?: string;
|
|
19
19
|
preventSelfServiceDowngradeUrl?: string;
|
|
20
|
+
scheduledDowngrade?: Schematic.ScheduledDowngradeResponseData;
|
|
20
21
|
showAsMonthlyPrices: boolean;
|
|
21
22
|
showCredits: boolean;
|
|
22
23
|
showPeriodToggle: boolean;
|
|
@@ -18,6 +18,7 @@ export interface ComponentPreviewResponseData {
|
|
|
18
18
|
preventSelfServiceDowngrade: boolean;
|
|
19
19
|
preventSelfServiceDowngradeButtonText?: string;
|
|
20
20
|
preventSelfServiceDowngradeUrl?: string;
|
|
21
|
+
scheduledDowngrade?: Schematic.ScheduledDowngradeResponseData;
|
|
21
22
|
showAsMonthlyPrices: boolean;
|
|
22
23
|
showCredits: boolean;
|
|
23
24
|
showPeriodToggle: boolean;
|
|
@@ -3,9 +3,9 @@ export declare const ConditionConditionType: {
|
|
|
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,12 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface ConditionGroupView {
|
|
3
|
+
accountId: string;
|
|
4
|
+
conditions: Schematic.ConditionView[];
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
environmentId: string;
|
|
7
|
+
flagId?: string;
|
|
8
|
+
id: string;
|
|
9
|
+
planVersionId?: string;
|
|
10
|
+
ruleId: string;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface ConditionResponseData {
|
|
3
|
+
accountId: string;
|
|
4
|
+
comparisonTraitId?: string;
|
|
5
|
+
conditionGroupId?: string;
|
|
6
|
+
conditionType: string;
|
|
7
|
+
consumptionRate?: number;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
creditId?: string;
|
|
10
|
+
environmentId: string;
|
|
11
|
+
eventSubtype?: string;
|
|
12
|
+
flagId?: string;
|
|
13
|
+
id: string;
|
|
14
|
+
metricPeriod?: string;
|
|
15
|
+
metricPeriodMonthReset?: string;
|
|
16
|
+
metricValue?: number;
|
|
17
|
+
operator: string;
|
|
18
|
+
planVersionId?: string;
|
|
19
|
+
resourceUnspecifiedIds: string[];
|
|
20
|
+
ruleId: string;
|
|
21
|
+
traitEntityType?: Schematic.EntityType;
|
|
22
|
+
traitId?: string;
|
|
23
|
+
traitValue: string;
|
|
24
|
+
traitValueBool: boolean;
|
|
25
|
+
traitValueDate?: Date;
|
|
26
|
+
traitValueInt: number;
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface ConditionView {
|
|
3
|
+
accountId: string;
|
|
4
|
+
billingProducts: Schematic.GenericPreviewObject[];
|
|
5
|
+
companies: Schematic.GenericPreviewObject[];
|
|
6
|
+
comparisonTrait?: Schematic.EntityTraitDefinitionResponseData;
|
|
7
|
+
comparisonTraitId?: string;
|
|
8
|
+
conditionGroupId?: string;
|
|
9
|
+
conditionType: string;
|
|
10
|
+
consumptionRate?: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
creditId?: string;
|
|
13
|
+
environmentId: string;
|
|
14
|
+
eventSubtype?: string;
|
|
15
|
+
flagId?: string;
|
|
16
|
+
id: string;
|
|
17
|
+
metricPeriod?: string;
|
|
18
|
+
metricPeriodMonthReset?: string;
|
|
19
|
+
metricValue?: number;
|
|
20
|
+
operator: string;
|
|
21
|
+
planVersionId?: string;
|
|
22
|
+
planVersions: Schematic.GenericPreviewObject[];
|
|
23
|
+
plans: Schematic.GenericPreviewObject[];
|
|
24
|
+
resourceUnspecifiedIds: string[];
|
|
25
|
+
ruleId: string;
|
|
26
|
+
trait?: Schematic.EntityTraitDefinitionResponseData;
|
|
27
|
+
traitEntityType?: Schematic.EntityType;
|
|
28
|
+
traitId?: string;
|
|
29
|
+
traitValue: string;
|
|
30
|
+
traitValueBool: boolean;
|
|
31
|
+
traitValueDate?: Date;
|
|
32
|
+
traitValueInt: number;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
users: Schematic.GenericPreviewObject[];
|
|
35
|
+
}
|
|
@@ -14,6 +14,7 @@ export interface CreateBillingPlanCreditGrantRequestBody {
|
|
|
14
14
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
15
15
|
expiryUnitCount?: number;
|
|
16
16
|
planId: string;
|
|
17
|
+
planVersionId?: string;
|
|
17
18
|
resetCadence: Schematic.BillingPlanCreditGrantResetCadence;
|
|
18
19
|
resetStart: Schematic.BillingPlanCreditGrantResetStart;
|
|
19
20
|
resetType?: Schematic.BillingPlanCreditGrantResetType;
|
|
@@ -12,6 +12,8 @@ export interface CreateEntitlementInBundleRequestBody {
|
|
|
12
12
|
monthlyUnitPrice?: number;
|
|
13
13
|
monthlyUnitPriceDecimal?: string;
|
|
14
14
|
overageBillingProductId?: string;
|
|
15
|
+
planId: string;
|
|
16
|
+
planVersionId?: string;
|
|
15
17
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
16
18
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
17
19
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface CreateEventRequestBody {
|
|
3
3
|
body?: Schematic.EventBody;
|
|
4
|
+
/** Either 'identify' or 'track' */
|
|
4
5
|
eventType: Schematic.EventType;
|
|
5
6
|
/** Optionally provide a timestamp at which the event was sent to Schematic */
|
|
6
7
|
sentAt?: Date;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CreditEventLedgerResponseData {
|
|
3
|
+
amount: number;
|
|
4
|
+
autoTopupLogId?: string;
|
|
5
|
+
billingCreditBundleId?: string;
|
|
6
|
+
billingCreditId: string;
|
|
7
|
+
company?: Schematic.CompanyLedgerResponseData;
|
|
8
|
+
companyId: string;
|
|
9
|
+
credit?: Schematic.BillingCreditLedgerResponseData;
|
|
10
|
+
creditName: string;
|
|
11
|
+
environmentId: string;
|
|
12
|
+
eventAt: Date;
|
|
13
|
+
eventId: string;
|
|
14
|
+
eventType: Schematic.CreditEventType;
|
|
15
|
+
expiryType?: Schematic.BillingCreditExpiryType;
|
|
16
|
+
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
17
|
+
expiryUnitCount?: number;
|
|
18
|
+
feature?: Schematic.FeatureLedgerResponseData;
|
|
19
|
+
featureId?: string;
|
|
20
|
+
fromGrantId?: string;
|
|
21
|
+
grantExpiresAt?: Date;
|
|
22
|
+
grantId?: string;
|
|
23
|
+
grantQuantity?: number;
|
|
24
|
+
grantQuantityRemaining?: number;
|
|
25
|
+
grantReason?: Schematic.BillingCreditGrantReason;
|
|
26
|
+
grantValidFrom?: Date;
|
|
27
|
+
planId?: string;
|
|
28
|
+
quantityConsumed?: number;
|
|
29
|
+
quantityRemainingAtZeroOut?: number;
|
|
30
|
+
sourceId: number;
|
|
31
|
+
toGrantId?: string;
|
|
32
|
+
usageEventId?: string;
|
|
33
|
+
zeroedOutReason?: Schematic.BillingCreditGrantZeroedOutReason;
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CreditsAutoTopupRetryFailure {
|
|
3
|
+
company?: Schematic.CreditsAutoTopupCompanySummary;
|
|
4
|
+
consecutiveFailures: number;
|
|
5
|
+
credit?: Schematic.CreditsAutoTopupCreditSummary;
|
|
6
|
+
lastErrorMessage?: string;
|
|
7
|
+
stripeErrorCode?: string;
|
|
8
|
+
}
|