@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,47 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
5
|
+
import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
6
|
+
import { ChargeType } from "./ChargeType";
|
|
7
|
+
import { CustomPlanConfig } from "./CustomPlanConfig";
|
|
8
|
+
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
9
|
+
import { PlanControlledByType } from "./PlanControlledByType";
|
|
10
|
+
import { PlanCreditGrantView } from "./PlanCreditGrantView";
|
|
11
|
+
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
12
|
+
import { PlanType } from "./PlanType";
|
|
13
|
+
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
14
|
+
export declare const PlanViewPublicResponseData: core.serialization.ObjectSchema<serializers.PlanViewPublicResponseData.Raw, Schematic.PlanViewPublicResponseData>;
|
|
15
|
+
export declare namespace PlanViewPublicResponseData {
|
|
16
|
+
interface Raw {
|
|
17
|
+
active_version?: PlanVersionResponseData.Raw | null;
|
|
18
|
+
audience_type?: string | null;
|
|
19
|
+
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
20
|
+
charge_type: ChargeType.Raw;
|
|
21
|
+
company_count: number;
|
|
22
|
+
compatible_plan_ids: string[];
|
|
23
|
+
controlled_by: PlanControlledByType.Raw;
|
|
24
|
+
created_at: string;
|
|
25
|
+
custom: boolean;
|
|
26
|
+
custom_plan_config?: CustomPlanConfig.Raw | null;
|
|
27
|
+
description: string;
|
|
28
|
+
draft_version?: PlanVersionResponseData.Raw | null;
|
|
29
|
+
entitlements: PlanEntitlementResponseData.Raw[];
|
|
30
|
+
features: FeatureDetailResponseData.Raw[];
|
|
31
|
+
icon: string;
|
|
32
|
+
id: string;
|
|
33
|
+
included_credit_grants: PlanCreditGrantView.Raw[];
|
|
34
|
+
is_custom: boolean;
|
|
35
|
+
is_default: boolean;
|
|
36
|
+
is_free: boolean;
|
|
37
|
+
is_trialable: boolean;
|
|
38
|
+
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
39
|
+
name: string;
|
|
40
|
+
one_time_price?: BillingPriceResponseData.Raw | null;
|
|
41
|
+
plan_type: PlanType.Raw;
|
|
42
|
+
trial_days?: number | null;
|
|
43
|
+
updated_at: string;
|
|
44
|
+
versions: PlanVersionResponseData.Raw[];
|
|
45
|
+
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -9,12 +9,14 @@ export declare namespace PreviewSubscriptionChangeResponseData {
|
|
|
9
9
|
amount_off: number;
|
|
10
10
|
due_now: number;
|
|
11
11
|
finance?: PreviewSubscriptionFinanceResponseData.Raw | null;
|
|
12
|
+
is_scheduled_downgrade: boolean;
|
|
12
13
|
new_charges: number;
|
|
13
14
|
payment_method_required: boolean;
|
|
14
15
|
percent_off: number;
|
|
15
16
|
period_start: string;
|
|
16
17
|
promo_code_applied: boolean;
|
|
17
18
|
proration: number;
|
|
19
|
+
scheduled_change_time?: string | null;
|
|
18
20
|
trial_end?: string | null;
|
|
19
21
|
usage_violations: FeatureUsageResponseData.Raw[];
|
|
20
22
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CompatiblePlans } from "./CompatiblePlans";
|
|
5
|
+
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
6
|
+
import { ComponentDisplaySettings } from "./ComponentDisplaySettings";
|
|
7
|
+
import { PlanViewPublicResponseData } from "./PlanViewPublicResponseData";
|
|
8
|
+
export declare const PublicPlansResponseData: core.serialization.ObjectSchema<serializers.PublicPlansResponseData.Raw, Schematic.PublicPlansResponseData>;
|
|
9
|
+
export declare namespace PublicPlansResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
active_add_ons: PlanViewPublicResponseData.Raw[];
|
|
12
|
+
active_plans: PlanViewPublicResponseData.Raw[];
|
|
13
|
+
add_on_compatibilities: CompatiblePlans.Raw[];
|
|
14
|
+
capabilities?: ComponentCapabilities.Raw | null;
|
|
15
|
+
display_settings: ComponentDisplaySettings.Raw;
|
|
16
|
+
show_as_monthly_prices: boolean;
|
|
17
|
+
show_credits: boolean;
|
|
18
|
+
show_period_toggle: boolean;
|
|
19
|
+
show_zero_price_as_free: boolean;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { ConditionGroupView } from "./ConditionGroupView";
|
|
5
|
+
import { ConditionView } from "./ConditionView";
|
|
6
|
+
export declare const RuleView: core.serialization.ObjectSchema<serializers.RuleView.Raw, Schematic.RuleView>;
|
|
7
|
+
export declare namespace RuleView {
|
|
8
|
+
interface Raw {
|
|
9
|
+
account_id: string;
|
|
10
|
+
condition_groups: ConditionGroupView.Raw[];
|
|
11
|
+
conditions: ConditionView.Raw[];
|
|
12
|
+
created_at: string;
|
|
13
|
+
environment_id: string;
|
|
14
|
+
flag_id?: string | null;
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
plan_version_id?: string | null;
|
|
18
|
+
priority: number;
|
|
19
|
+
rule_type: string;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
value: boolean;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const RulesEngineSchemaVersion: core.serialization.Schema<serializers.RulesEngineSchemaVersion.Raw, Schematic.RulesEngineSchemaVersion>;
|
|
5
5
|
export declare namespace RulesEngineSchemaVersion {
|
|
6
|
-
type Raw = "
|
|
6
|
+
type Raw = "v0f048dd3" | "placeholder-for-fern-compatibility";
|
|
7
7
|
}
|
|
@@ -3,10 +3,12 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { RulesengineCheckFlagResultFeatureUsagePeriod } from "./RulesengineCheckFlagResultFeatureUsagePeriod";
|
|
5
5
|
import { RulesengineCheckFlagResultRuleType } from "./RulesengineCheckFlagResultRuleType";
|
|
6
|
+
import { RulesengineFeatureEntitlement } from "./RulesengineFeatureEntitlement";
|
|
6
7
|
export declare const RulesengineCheckFlagResult: core.serialization.ObjectSchema<serializers.RulesengineCheckFlagResult.Raw, Schematic.RulesengineCheckFlagResult>;
|
|
7
8
|
export declare namespace RulesengineCheckFlagResult {
|
|
8
9
|
interface Raw {
|
|
9
10
|
company_id?: string | null;
|
|
11
|
+
entitlement?: RulesengineFeatureEntitlement.Raw | null;
|
|
10
12
|
err?: string | null;
|
|
11
13
|
feature_allocation?: number | null;
|
|
12
14
|
feature_usage?: number | null;
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { RulesengineCompanyMetric } from "./RulesengineCompanyMetric";
|
|
5
|
+
import { RulesengineFeatureEntitlement } from "./RulesengineFeatureEntitlement";
|
|
5
6
|
import { RulesengineRule } from "./RulesengineRule";
|
|
6
7
|
import { RulesengineSubscription } from "./RulesengineSubscription";
|
|
7
8
|
import { RulesengineTrait } from "./RulesengineTrait";
|
|
@@ -12,12 +13,13 @@ export declare namespace RulesengineCompany {
|
|
|
12
13
|
base_plan_id?: string | null;
|
|
13
14
|
billing_product_ids: string[];
|
|
14
15
|
credit_balances: Record<string, number>;
|
|
15
|
-
|
|
16
|
+
entitlements?: RulesengineFeatureEntitlement.Raw[] | null;
|
|
16
17
|
environment_id: string;
|
|
17
18
|
id: string;
|
|
18
19
|
keys: Record<string, string>;
|
|
19
20
|
metrics: RulesengineCompanyMetric.Raw[];
|
|
20
21
|
plan_ids: string[];
|
|
22
|
+
plan_version_ids: string[];
|
|
21
23
|
rules: RulesengineRule.Raw[];
|
|
22
24
|
subscription?: RulesengineSubscription.Raw | null;
|
|
23
25
|
traits: RulesengineTrait.Raw[];
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const RulesengineConditionConditionType: core.serialization.Schema<serializers.RulesengineConditionConditionType.Raw, Schematic.RulesengineConditionConditionType>;
|
|
5
5
|
export declare namespace RulesengineConditionConditionType {
|
|
6
|
-
type Raw = "base_plan" | "billing_product" | "company" | "credit" | "
|
|
6
|
+
type Raw = "base_plan" | "billing_product" | "company" | "credit" | "metric" | "plan" | "plan_version" | "trait" | "user";
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const RulesengineEntitlementValueType: core.serialization.Schema<serializers.RulesengineEntitlementValueType.Raw, Schematic.RulesengineEntitlementValueType>;
|
|
5
|
+
export declare namespace RulesengineEntitlementValueType {
|
|
6
|
+
type Raw = "boolean" | "credit" | "numeric" | "trait" | "unknown" | "unlimited";
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { RulesengineEntitlementValueType } from "./RulesengineEntitlementValueType";
|
|
5
|
+
import { RulesengineFeatureEntitlementMetricPeriod } from "./RulesengineFeatureEntitlementMetricPeriod";
|
|
6
|
+
import { RulesengineFeatureEntitlementMonthReset } from "./RulesengineFeatureEntitlementMonthReset";
|
|
7
|
+
export declare const RulesengineFeatureEntitlement: core.serialization.ObjectSchema<serializers.RulesengineFeatureEntitlement.Raw, Schematic.RulesengineFeatureEntitlement>;
|
|
8
|
+
export declare namespace RulesengineFeatureEntitlement {
|
|
9
|
+
interface Raw {
|
|
10
|
+
allocation?: number | null;
|
|
11
|
+
credit_id?: string | null;
|
|
12
|
+
credit_remaining?: number | null;
|
|
13
|
+
credit_total?: number | null;
|
|
14
|
+
credit_used?: number | null;
|
|
15
|
+
event_name?: string | null;
|
|
16
|
+
feature_id: string;
|
|
17
|
+
feature_key: string;
|
|
18
|
+
metric_period?: RulesengineFeatureEntitlementMetricPeriod.Raw | null;
|
|
19
|
+
metric_reset_at?: string | null;
|
|
20
|
+
month_reset?: RulesengineFeatureEntitlementMonthReset.Raw | null;
|
|
21
|
+
soft_limit?: number | null;
|
|
22
|
+
usage?: number | null;
|
|
23
|
+
value_type: RulesengineEntitlementValueType.Raw;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const RulesengineFeatureEntitlementMetricPeriod: core.serialization.Schema<serializers.RulesengineFeatureEntitlementMetricPeriod.Raw, Schematic.RulesengineFeatureEntitlementMetricPeriod>;
|
|
5
|
+
export declare namespace RulesengineFeatureEntitlementMetricPeriod {
|
|
6
|
+
type Raw = "all_time" | "current_day" | "current_month" | "current_week";
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const RulesengineFeatureEntitlementMonthReset: core.serialization.Schema<serializers.RulesengineFeatureEntitlementMonthReset.Raw, Schematic.RulesengineFeatureEntitlementMonthReset>;
|
|
5
|
+
export declare namespace RulesengineFeatureEntitlementMonthReset {
|
|
6
|
+
type Raw = "first_of_month" | "billing_cycle";
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { ScheduledCheckoutStatus } from "./ScheduledCheckoutStatus";
|
|
5
|
+
export declare const ScheduledCheckoutResponseData: core.serialization.ObjectSchema<serializers.ScheduledCheckoutResponseData.Raw, Schematic.ScheduledCheckoutResponseData>;
|
|
6
|
+
export declare namespace ScheduledCheckoutResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
actor_type: string;
|
|
9
|
+
company_id: string;
|
|
10
|
+
completed_at?: string | null;
|
|
11
|
+
created_at: string;
|
|
12
|
+
error_message?: string | null;
|
|
13
|
+
execute_after: string;
|
|
14
|
+
from_plan_id: string;
|
|
15
|
+
id: string;
|
|
16
|
+
scheduled_interval?: string | null;
|
|
17
|
+
scheduled_price?: number | null;
|
|
18
|
+
started_at?: string | null;
|
|
19
|
+
status: ScheduledCheckoutStatus.Raw;
|
|
20
|
+
to_plan_id: string;
|
|
21
|
+
updated_at: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const ScheduledCheckoutStatus: core.serialization.Schema<serializers.ScheduledCheckoutStatus.Raw, Schematic.ScheduledCheckoutStatus>;
|
|
5
|
+
export declare namespace ScheduledCheckoutStatus {
|
|
6
|
+
type Raw = "cancelled" | "error" | "executing" | "pending" | "success";
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const ScheduledDowngradeConfigBehavior: core.serialization.Schema<serializers.ScheduledDowngradeConfigBehavior.Raw, Schematic.ScheduledDowngradeConfigBehavior>;
|
|
5
|
+
export declare namespace ScheduledDowngradeConfigBehavior {
|
|
6
|
+
type Raw = "end_of_billing_period" | "none";
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const ScheduledDowngradeResponseData: core.serialization.ObjectSchema<serializers.ScheduledDowngradeResponseData.Raw, Schematic.ScheduledDowngradeResponseData>;
|
|
5
|
+
export declare namespace ScheduledDowngradeResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
currency: string;
|
|
8
|
+
effective_after: string;
|
|
9
|
+
from_plan_id: string;
|
|
10
|
+
from_plan_name: string;
|
|
11
|
+
from_subscription_price: number;
|
|
12
|
+
id: string;
|
|
13
|
+
interval: string;
|
|
14
|
+
scheduled_interval?: string | null;
|
|
15
|
+
scheduled_price?: number | null;
|
|
16
|
+
to_plan_id: string;
|
|
17
|
+
to_plan_name: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const TimeSeriesGranularity: core.serialization.Schema<serializers.TimeSeriesGranularity.Raw, Schematic.TimeSeriesGranularity>;
|
|
5
|
+
export declare namespace TimeSeriesGranularity {
|
|
6
|
+
type Raw = "daily" | "hourly" | "monthly" | "weekly";
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const UsageTimeSeriesPointResponseData: core.serialization.ObjectSchema<serializers.UsageTimeSeriesPointResponseData.Raw, Schematic.UsageTimeSeriesPointResponseData>;
|
|
5
|
+
export declare namespace UsageTimeSeriesPointResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
period_end?: string | null;
|
|
8
|
+
period_start?: string | null;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
usage: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
5
|
+
import { CreditUsage } from "./CreditUsage";
|
|
6
|
+
import { FeatureView } from "./FeatureView";
|
|
7
|
+
export declare const WebFeatureUsageWebhookOutput: core.serialization.ObjectSchema<serializers.WebFeatureUsageWebhookOutput.Raw, Schematic.WebFeatureUsageWebhookOutput>;
|
|
8
|
+
export declare namespace WebFeatureUsageWebhookOutput {
|
|
9
|
+
interface Raw {
|
|
10
|
+
Allocation?: number | null;
|
|
11
|
+
CreditUsage?: CreditUsage.Raw | null;
|
|
12
|
+
Entitlement: string;
|
|
13
|
+
Feature?: FeatureView.Raw | null;
|
|
14
|
+
MetricResetAt?: string | null;
|
|
15
|
+
Usage?: number | null;
|
|
16
|
+
company?: CompanyDetailResponseData.Raw | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const WebhookRequestType: core.serialization.Schema<serializers.WebhookRequestType.Raw, Schematic.WebhookRequestType>;
|
|
5
5
|
export declare namespace WebhookRequestType {
|
|
6
|
-
type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded";
|
|
6
|
+
type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "plan_version.deleted" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded";
|
|
7
7
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { EnvironmentResponseData } from "./EnvironmentResponseData";
|
|
5
|
+
export declare const WhoAmIResponseData: core.serialization.ObjectSchema<serializers.WhoAmIResponseData.Raw, Schematic.WhoAmIResponseData>;
|
|
6
|
+
export declare namespace WhoAmIResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
account_id: string;
|
|
9
|
+
account_name: string;
|
|
10
|
+
actor_type: string;
|
|
11
|
+
api_key_id?: string | null;
|
|
12
|
+
environment_id?: string | null;
|
|
13
|
+
environments: EnvironmentResponseData.Raw[];
|
|
14
|
+
stripe_user_id?: string | null;
|
|
15
|
+
user_id?: string | null;
|
|
16
|
+
user_name?: string | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
export * from "./ActorType";
|
|
1
2
|
export * from "./ApiError";
|
|
2
3
|
export * from "./ApiKeyCreateResponseData";
|
|
3
|
-
export * from "./ApiKeyRequestListResponseData";
|
|
4
|
-
export * from "./ApiKeyRequestResponseData";
|
|
5
4
|
export * from "./ApiKeyResponseData";
|
|
6
5
|
export * from "./ApiKeyScope";
|
|
6
|
+
export * from "./AuditLogListResponseData";
|
|
7
|
+
export * from "./AuditLogResponseData";
|
|
7
8
|
export * from "./BillingCouponResponseData";
|
|
8
9
|
export * from "./BillingCreditBundleResponseData";
|
|
9
10
|
export * from "./BillingCreditBundleStatus";
|
|
@@ -18,6 +19,7 @@ export * from "./BillingCreditGrantZeroedOutReason";
|
|
|
18
19
|
export * from "./BillingCreditLedgerResponseData";
|
|
19
20
|
export * from "./BillingCreditResponseData";
|
|
20
21
|
export * from "./BillingCreditRolloverPolicy";
|
|
22
|
+
export * from "./BillingCreditView";
|
|
21
23
|
export * from "./BillingCustomerResponseData";
|
|
22
24
|
export * from "./BillingCustomerSubscription";
|
|
23
25
|
export * from "./BillingCustomerWithSubscriptionsResponseData";
|
|
@@ -67,7 +69,6 @@ export * from "./CompanyPlanInvalidReason";
|
|
|
67
69
|
export * from "./CompanyPlanWithBillingSubView";
|
|
68
70
|
export * from "./CompanyResponseData";
|
|
69
71
|
export * from "./CompanySubscriptionResponseData";
|
|
70
|
-
export * from "./CompanyViewWithFeatureUsageResponseData";
|
|
71
72
|
export * from "./CompatiblePlans";
|
|
72
73
|
export * from "./CompatiblePlansResponseData";
|
|
73
74
|
export * from "./ComponentCapabilities";
|
|
@@ -82,9 +83,13 @@ export * from "./ComponentState";
|
|
|
82
83
|
export * from "./Condition";
|
|
83
84
|
export * from "./ConditionConditionType";
|
|
84
85
|
export * from "./ConditionGroup";
|
|
86
|
+
export * from "./ConditionGroupResponseData";
|
|
87
|
+
export * from "./ConditionGroupView";
|
|
85
88
|
export * from "./ConditionMetricPeriod";
|
|
86
89
|
export * from "./ConditionMetricPeriodMonthReset";
|
|
87
90
|
export * from "./ConditionOperator";
|
|
91
|
+
export * from "./ConditionResponseData";
|
|
92
|
+
export * from "./ConditionView";
|
|
88
93
|
export * from "./CountResponse";
|
|
89
94
|
export * from "./CouponRequestBody";
|
|
90
95
|
export * from "./CreateBillingPlanCreditGrantRequestBody";
|
|
@@ -111,17 +116,22 @@ export * from "./CreatePriceTierRequestBody";
|
|
|
111
116
|
export * from "./CreditAutoTopupAmountType";
|
|
112
117
|
export * from "./CreditBundlePurchaseResponseData";
|
|
113
118
|
export * from "./CreditCompanyGrantView";
|
|
119
|
+
export * from "./CreditEventLedgerResponseData";
|
|
120
|
+
export * from "./CreditEventType";
|
|
114
121
|
export * from "./CreditGrantDetail";
|
|
115
122
|
export * from "./CreditGrantExpiryRequestBody";
|
|
116
123
|
export * from "./CreditGrantSortOrder";
|
|
117
124
|
export * from "./CreditLedgerEnrichedEntryResponseData";
|
|
118
125
|
export * from "./CreditLedgerPeriod";
|
|
126
|
+
export * from "./CreditsAutoTopupCompanySummary";
|
|
127
|
+
export * from "./CreditsAutoTopupCreditSummary";
|
|
128
|
+
export * from "./CreditsAutoTopupHardFailure";
|
|
129
|
+
export * from "./CreditsAutoTopupRetryFailure";
|
|
119
130
|
export * from "./CreditTransferResponseData";
|
|
120
131
|
export * from "./CreditTransferView";
|
|
121
132
|
export * from "./CreditTriggerConfig";
|
|
122
133
|
export * from "./CreditUsage";
|
|
123
134
|
export * from "./CreditUsageAggregation";
|
|
124
|
-
export * from "./CreditUsageResponseData";
|
|
125
135
|
export * from "./CustomPlanConfig";
|
|
126
136
|
export * from "./CustomPlanViewConfigResponseData";
|
|
127
137
|
export * from "./DataExportOutputFileType";
|
|
@@ -160,21 +170,29 @@ export * from "./EventType";
|
|
|
160
170
|
export * from "./FeatureCompanyResponseData";
|
|
161
171
|
export * from "./FeatureCompanyUserResponseData";
|
|
162
172
|
export * from "./FeatureDetailResponseData";
|
|
173
|
+
export * from "./FeatureEntitlement";
|
|
174
|
+
export * from "./FeatureEntitlementMetricPeriod";
|
|
175
|
+
export * from "./FeatureEntitlementMonthReset";
|
|
163
176
|
export * from "./FeatureLedgerResponseData";
|
|
164
177
|
export * from "./FeatureLifecyclePhase";
|
|
165
178
|
export * from "./FeatureResponseData";
|
|
166
179
|
export * from "./FeatureType";
|
|
167
|
-
export * from "./FeatureUsageDataResponseData";
|
|
168
180
|
export * from "./FeatureUsageDetailResponseData";
|
|
181
|
+
export * from "./FeatureUsageLegacyResponseData";
|
|
169
182
|
export * from "./FeatureUsageResponseData";
|
|
183
|
+
export * from "./FeatureUsageTimeSeriesResponseData";
|
|
184
|
+
export * from "./FeatureView";
|
|
170
185
|
export * from "./FlagDetailResponseData";
|
|
171
186
|
export * from "./FlagResponseData";
|
|
172
187
|
export * from "./FlagType";
|
|
188
|
+
export * from "./FlagView";
|
|
173
189
|
export * from "./GenericPreviewObject";
|
|
174
190
|
export * from "./InvoiceRequestBody";
|
|
175
191
|
export * from "./InvoiceResponseData";
|
|
192
|
+
export * from "./InvoiceStatus";
|
|
176
193
|
export * from "./IssueTemporaryAccessTokenResponseData";
|
|
177
194
|
export * from "./KeysRequestBody";
|
|
195
|
+
export * from "./LimitTimeSeriesPointResponseData";
|
|
178
196
|
export * from "./ManagePlanPreviewResponseResponseData";
|
|
179
197
|
export * from "./ManagePlanRequest";
|
|
180
198
|
export * from "./ManagePlanResponseResponseData";
|
|
@@ -187,7 +205,6 @@ export * from "./PlanBundleCreditGrantRequestBody";
|
|
|
187
205
|
export * from "./PlanBundleEntitlementRequestBody";
|
|
188
206
|
export * from "./PlanBundleResponseData";
|
|
189
207
|
export * from "./PlanChangeAction";
|
|
190
|
-
export * from "./PlanChangeActorType";
|
|
191
208
|
export * from "./PlanChangeBasePlanAction";
|
|
192
209
|
export * from "./PlanChangeResponseData";
|
|
193
210
|
export * from "./PlanChangeSubscriptionAction";
|
|
@@ -207,14 +224,21 @@ export * from "./PlanSelection";
|
|
|
207
224
|
export * from "./PlanSnapshotView";
|
|
208
225
|
export * from "./PlanTraitResponseData";
|
|
209
226
|
export * from "./PlanType";
|
|
227
|
+
export * from "./PlanVersionCompanyMigrationResponseData";
|
|
228
|
+
export * from "./PlanVersionCompanyMigrationStatus";
|
|
229
|
+
export * from "./PlanVersionMigrationResponseData";
|
|
230
|
+
export * from "./PlanVersionMigrationStatus";
|
|
231
|
+
export * from "./PlanVersionMigrationStrategy";
|
|
210
232
|
export * from "./PlanVersionResponseData";
|
|
211
233
|
export * from "./PlanVersionStatus";
|
|
234
|
+
export * from "./PlanViewPublicResponseData";
|
|
212
235
|
export * from "./PreviewObject";
|
|
213
236
|
export * from "./PreviewObjectResponseData";
|
|
214
237
|
export * from "./PreviewSubscriptionChangeResponseData";
|
|
215
238
|
export * from "./PreviewSubscriptionFinanceResponseData";
|
|
216
239
|
export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
|
|
217
240
|
export * from "./ProrationBehavior";
|
|
241
|
+
export * from "./PublicPlansResponseData";
|
|
218
242
|
export * from "./QuickstartResp";
|
|
219
243
|
export * from "./RawEventBatchResponseData";
|
|
220
244
|
export * from "./RawEventResponseData";
|
|
@@ -241,7 +265,11 @@ export * from "./RulesengineConditionGroup";
|
|
|
241
265
|
export * from "./RulesengineConditionMetricPeriod";
|
|
242
266
|
export * from "./RulesengineConditionMetricPeriodMonthReset";
|
|
243
267
|
export * from "./RulesengineConditionOperator";
|
|
268
|
+
export * from "./RulesengineEntitlementValueType";
|
|
244
269
|
export * from "./RulesengineEntityType";
|
|
270
|
+
export * from "./RulesengineFeatureEntitlement";
|
|
271
|
+
export * from "./RulesengineFeatureEntitlementMetricPeriod";
|
|
272
|
+
export * from "./RulesengineFeatureEntitlementMonthReset";
|
|
245
273
|
export * from "./RulesengineFlag";
|
|
246
274
|
export * from "./RulesengineRule";
|
|
247
275
|
export * from "./RulesengineRuleRuleType";
|
|
@@ -250,6 +278,11 @@ export * from "./RulesengineTrait";
|
|
|
250
278
|
export * from "./RulesengineTraitDefinition";
|
|
251
279
|
export * from "./RulesengineTraitDefinitionComparableType";
|
|
252
280
|
export * from "./RulesengineUser";
|
|
281
|
+
export * from "./RuleView";
|
|
282
|
+
export * from "./ScheduledCheckoutResponseData";
|
|
283
|
+
export * from "./ScheduledCheckoutStatus";
|
|
284
|
+
export * from "./ScheduledDowngradeConfigBehavior";
|
|
285
|
+
export * from "./ScheduledDowngradeResponseData";
|
|
253
286
|
export * from "./SegmentStatusResp";
|
|
254
287
|
export * from "./SkippedEntitlementErrorResponseData";
|
|
255
288
|
export * from "./SkippedEntitlementResponseData";
|
|
@@ -260,6 +293,7 @@ export * from "./SubscriptionTraitUpdate";
|
|
|
260
293
|
export * from "./SubscriptionType";
|
|
261
294
|
export * from "./TemporaryAccessTokenResourceType";
|
|
262
295
|
export * from "./TemporaryAccessTokenResponseData";
|
|
296
|
+
export * from "./TimeSeriesGranularity";
|
|
263
297
|
export * from "./TraitDefinition";
|
|
264
298
|
export * from "./TraitDefinitionComparableType";
|
|
265
299
|
export * from "./TraitType";
|
|
@@ -280,11 +314,14 @@ export * from "./UpsertUserRequestBody";
|
|
|
280
314
|
export * from "./UpsertUserSubRequestBody";
|
|
281
315
|
export * from "./UsageBasedEntitlementRequestBody";
|
|
282
316
|
export * from "./UsageBasedEntitlementResponseData";
|
|
317
|
+
export * from "./UsageTimeSeriesPointResponseData";
|
|
283
318
|
export * from "./UserDetailResponseData";
|
|
284
319
|
export * from "./UserResponseData";
|
|
320
|
+
export * from "./WebFeatureUsageWebhookOutput";
|
|
285
321
|
export * from "./WebhookEventDetailResponseData";
|
|
286
322
|
export * from "./WebhookEventResponseData";
|
|
287
323
|
export * from "./WebhookEventStatus";
|
|
288
324
|
export * from "./WebhookRequestType";
|
|
289
325
|
export * from "./WebhookResponseData";
|
|
290
326
|
export * from "./WebhookStatus";
|
|
327
|
+
export * from "./WhoAmIResponseData";
|
package/dist/wrapper.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as api from "./api";
|
|
2
2
|
import { SchematicClient as BaseClient } from "./Client";
|
|
3
|
-
import { CacheProvider } from "./cache";
|
|
3
|
+
import { type CacheProvider } from "./cache";
|
|
4
4
|
import { Logger } from "./logger";
|
|
5
|
+
import type { RedisClient } from "./cache/redis";
|
|
5
6
|
/**
|
|
6
7
|
* Configuration options for the SchematicClient
|
|
7
8
|
*/
|
|
@@ -13,7 +14,24 @@ export interface SchematicOptions {
|
|
|
13
14
|
/** Cache provider configuration */
|
|
14
15
|
cacheProviders?: {
|
|
15
16
|
/** Providers for caching flag check results */
|
|
16
|
-
flagChecks?: CacheProvider<
|
|
17
|
+
flagChecks?: CacheProvider<CheckFlagWithEntitlementResponse>[];
|
|
18
|
+
};
|
|
19
|
+
/** Enable DataStream for real-time updates */
|
|
20
|
+
useDataStream?: boolean;
|
|
21
|
+
/** DataStream configuration options */
|
|
22
|
+
dataStream?: {
|
|
23
|
+
/** Cache TTL in milliseconds (default: 5 minutes) */
|
|
24
|
+
cacheTTL?: number;
|
|
25
|
+
/** Pre-created, connected redis client for DataStream caching */
|
|
26
|
+
redisClient?: RedisClient;
|
|
27
|
+
/** Redis key prefix for all cache keys (default: 'schematic:') */
|
|
28
|
+
redisKeyPrefix?: string;
|
|
29
|
+
/** Enable replicator mode for external data synchronization */
|
|
30
|
+
replicatorMode?: boolean;
|
|
31
|
+
/** Health check URL for replicator mode */
|
|
32
|
+
replicatorHealthURL?: string;
|
|
33
|
+
/** Health check interval for replicator mode in milliseconds */
|
|
34
|
+
replicatorHealthCheck?: number;
|
|
17
35
|
};
|
|
18
36
|
/** If using an API key that is not environment-specific, use this option to specify the environment */
|
|
19
37
|
environmentId?: string;
|
|
@@ -38,7 +56,20 @@ export interface CheckFlagOptions {
|
|
|
38
56
|
/** The maximum time to wait for a response in milliseconds */
|
|
39
57
|
timeoutMs?: number;
|
|
40
58
|
}
|
|
59
|
+
export interface CheckFlagWithEntitlementResponse {
|
|
60
|
+
companyId?: string;
|
|
61
|
+
entitlement?: api.RulesengineFeatureEntitlement;
|
|
62
|
+
err?: string;
|
|
63
|
+
flagKey: string;
|
|
64
|
+
flagId?: string;
|
|
65
|
+
reason: string;
|
|
66
|
+
ruleId?: string;
|
|
67
|
+
ruleType?: api.RulesengineCheckFlagResultRuleType;
|
|
68
|
+
userId?: string;
|
|
69
|
+
value: boolean;
|
|
70
|
+
}
|
|
41
71
|
export declare class SchematicClient extends BaseClient {
|
|
72
|
+
private datastreamClient?;
|
|
42
73
|
private eventBuffer;
|
|
43
74
|
private flagCheckCacheProviders;
|
|
44
75
|
private flagDefaults;
|
|
@@ -49,6 +80,10 @@ export declare class SchematicClient extends BaseClient {
|
|
|
49
80
|
* @param opts - Configuration options for the client
|
|
50
81
|
*/
|
|
51
82
|
constructor(opts?: SchematicOptions);
|
|
83
|
+
/**
|
|
84
|
+
* Returns whether DataStream is enabled and available
|
|
85
|
+
*/
|
|
86
|
+
private useDataStream;
|
|
52
87
|
/**
|
|
53
88
|
* Checks the value of a feature flag for the given evaluation context
|
|
54
89
|
* @param evalCtx - The context (company and/or user) for evaluating the feature flag
|
|
@@ -58,6 +93,15 @@ export declare class SchematicClient extends BaseClient {
|
|
|
58
93
|
* @throws Will log error and return flag default if check fails
|
|
59
94
|
*/
|
|
60
95
|
checkFlag(evalCtx: api.CheckFlagRequestBody, key: string, options?: CheckFlagOptions): Promise<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Checks the value of a feature flag and returns entitlement details for the given evaluation context
|
|
98
|
+
* @param evalCtx - The context (company and/or user) for evaluating the feature flag
|
|
99
|
+
* @param key - The unique identifier of the feature flag
|
|
100
|
+
* @param options - Optional configuration for the flag check
|
|
101
|
+
* @returns Promise resolving to the flag check response including entitlement details
|
|
102
|
+
*/
|
|
103
|
+
checkFlagWithEntitlement(evalCtx: api.CheckFlagRequestBody, key: string, options?: CheckFlagOptions): Promise<CheckFlagWithEntitlementResponse>;
|
|
104
|
+
private checkFlagViaAPI;
|
|
61
105
|
/**
|
|
62
106
|
* Checks multiple feature flags with caching optimization
|
|
63
107
|
* @param evalCtx - The context (company and/or user) for evaluating the feature flags
|
|
@@ -67,8 +111,8 @@ export declare class SchematicClient extends BaseClient {
|
|
|
67
111
|
*/
|
|
68
112
|
checkFlags(evalCtx: api.CheckFlagRequestBody, keys?: string[]): Promise<api.CheckFlagResponseData[]>;
|
|
69
113
|
/**
|
|
70
|
-
* Gracefully shuts down the client by stopping the event buffer
|
|
71
|
-
* @returns Promise that resolves when
|
|
114
|
+
* Gracefully shuts down the client by stopping the event buffer and DataStream client
|
|
115
|
+
* @returns Promise that resolves when everything has been stopped
|
|
72
116
|
*/
|
|
73
117
|
close(): Promise<void>;
|
|
74
118
|
/**
|