@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,54 @@
|
|
|
1
|
+
import * as Schematic from './api/types';
|
|
2
|
+
/** Entitlement details returned by the WASM rules engine */
|
|
3
|
+
export interface WasmFeatureEntitlement {
|
|
4
|
+
featureId: string;
|
|
5
|
+
featureKey: string;
|
|
6
|
+
valueType: Schematic.RulesengineEntitlementValueType;
|
|
7
|
+
allocation?: number;
|
|
8
|
+
softLimit?: number;
|
|
9
|
+
usage?: number;
|
|
10
|
+
eventName?: string;
|
|
11
|
+
metricPeriod?: Schematic.RulesengineFeatureEntitlementMetricPeriod;
|
|
12
|
+
monthReset?: Schematic.RulesengineFeatureEntitlementMonthReset;
|
|
13
|
+
metricResetAt?: string;
|
|
14
|
+
creditId?: string;
|
|
15
|
+
creditTotal?: number;
|
|
16
|
+
creditUsed?: number;
|
|
17
|
+
creditRemaining?: number;
|
|
18
|
+
}
|
|
19
|
+
/** Result returned by the WASM rules engine */
|
|
20
|
+
export interface WasmCheckFlagResult {
|
|
21
|
+
value: boolean;
|
|
22
|
+
reason: string;
|
|
23
|
+
ruleId?: string;
|
|
24
|
+
flagId?: string;
|
|
25
|
+
flagKey?: string;
|
|
26
|
+
companyId?: string;
|
|
27
|
+
userId?: string;
|
|
28
|
+
ruleType?: Schematic.RulesengineCheckFlagResultRuleType;
|
|
29
|
+
err?: string;
|
|
30
|
+
entitlement?: WasmFeatureEntitlement;
|
|
31
|
+
featureAllocation?: number;
|
|
32
|
+
featureUsage?: number;
|
|
33
|
+
featureUsageEvent?: string;
|
|
34
|
+
featureUsagePeriod?: string;
|
|
35
|
+
featureUsageResetAt?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare class RulesEngineClient {
|
|
38
|
+
private wasmInstance;
|
|
39
|
+
private initialized;
|
|
40
|
+
constructor();
|
|
41
|
+
initialize(): Promise<void>;
|
|
42
|
+
checkFlag(flag: object, company?: object | null, user?: object | null): Promise<WasmCheckFlagResult>;
|
|
43
|
+
/**
|
|
44
|
+
* Get the version key of the WASM rules engine.
|
|
45
|
+
* Useful for debugging and compatibility checking.
|
|
46
|
+
*/
|
|
47
|
+
getVersionKey(): string;
|
|
48
|
+
/**
|
|
49
|
+
* Check if the engine is initialized.
|
|
50
|
+
*/
|
|
51
|
+
isInitialized(): boolean;
|
|
52
|
+
private ensureInitialized;
|
|
53
|
+
}
|
|
54
|
+
export { RulesEngineClient as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ActorType } from "../../../types/ActorType";
|
|
5
|
+
export declare const CountAuditLogsParams: core.serialization.ObjectSchema<serializers.CountAuditLogsParams.Raw, Schematic.CountAuditLogsParams>;
|
|
6
|
+
export declare namespace CountAuditLogsParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
actor_type?: ActorType.Raw | null;
|
|
9
|
+
end_time?: string | null;
|
|
10
|
+
environment_id?: string | null;
|
|
11
|
+
limit?: number | null;
|
|
12
|
+
offset?: number | null;
|
|
13
|
+
q?: string | null;
|
|
14
|
+
start_time?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -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
|
+
import { CountResponse } from "../../../types/CountResponse";
|
|
5
|
+
import { CountAuditLogsParams } from "./CountAuditLogsParams";
|
|
6
|
+
export declare const CountAuditLogsResponse: core.serialization.ObjectSchema<serializers.CountAuditLogsResponse.Raw, Schematic.CountAuditLogsResponse>;
|
|
7
|
+
export declare namespace CountAuditLogsResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: CountResponse.Raw;
|
|
10
|
+
params: CountAuditLogsParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { AuditLogResponseData } from "../../../types/AuditLogResponseData";
|
|
5
|
+
export declare const GetAuditLogResponse: core.serialization.ObjectSchema<serializers.GetAuditLogResponse.Raw, Schematic.GetAuditLogResponse>;
|
|
6
|
+
export declare namespace GetAuditLogResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: AuditLogResponseData.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { WhoAmIResponseData } from "../../../types/WhoAmIResponseData";
|
|
5
|
+
export declare const GetWhoAmIResponse: core.serialization.ObjectSchema<serializers.GetWhoAmIResponse.Raw, Schematic.GetWhoAmIResponse>;
|
|
6
|
+
export declare namespace GetWhoAmIResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: WhoAmIResponseData.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { ActorType } from "../../../types/ActorType";
|
|
5
|
+
export declare const ListAuditLogsParams: core.serialization.ObjectSchema<serializers.ListAuditLogsParams.Raw, Schematic.ListAuditLogsParams>;
|
|
6
|
+
export declare namespace ListAuditLogsParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
actor_type?: ActorType.Raw | null;
|
|
9
|
+
end_time?: string | null;
|
|
10
|
+
environment_id?: string | null;
|
|
11
|
+
limit?: number | null;
|
|
12
|
+
offset?: number | null;
|
|
13
|
+
q?: string | null;
|
|
14
|
+
start_time?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -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
|
+
import { AuditLogListResponseData } from "../../../types/AuditLogListResponseData";
|
|
5
|
+
import { ListAuditLogsParams } from "./ListAuditLogsParams";
|
|
6
|
+
export declare const ListAuditLogsResponse: core.serialization.ObjectSchema<serializers.ListAuditLogsResponse.Raw, Schematic.ListAuditLogsResponse>;
|
|
7
|
+
export declare namespace ListAuditLogsResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: AuditLogListResponseData.Raw[];
|
|
10
|
+
params: ListAuditLogsParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
export * from "./CountApiKeysParams";
|
|
2
2
|
export * from "./CountApiKeysResponse";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
3
|
+
export * from "./CountAuditLogsParams";
|
|
4
|
+
export * from "./CountAuditLogsResponse";
|
|
5
5
|
export * from "./CreateApiKeyResponse";
|
|
6
6
|
export * from "./CreateEnvironmentResponse";
|
|
7
7
|
export * from "./DeleteApiKeyResponse";
|
|
8
8
|
export * from "./DeleteEnvironmentResponse";
|
|
9
9
|
export * from "./GetApiKeyResponse";
|
|
10
|
-
export * from "./
|
|
10
|
+
export * from "./GetAuditLogResponse";
|
|
11
11
|
export * from "./GetEnvironmentResponse";
|
|
12
|
+
export * from "./GetWhoAmIResponse";
|
|
12
13
|
export * from "./ListApiKeysParams";
|
|
13
14
|
export * from "./ListApiKeysResponse";
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
15
|
+
export * from "./ListAuditLogsParams";
|
|
16
|
+
export * from "./ListAuditLogsResponse";
|
|
16
17
|
export * from "./ListEnvironmentsParams";
|
|
17
18
|
export * from "./ListEnvironmentsResponse";
|
|
18
19
|
export * from "./QuickstartResponse";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../../../../../api/index";
|
|
2
2
|
import * as core from "../../../../../core";
|
|
3
3
|
import type * as serializers from "../../../../index";
|
|
4
|
+
import { InvoiceStatus } from "../../../../types/InvoiceStatus";
|
|
4
5
|
export declare const CreateInvoiceRequestBody: core.serialization.Schema<serializers.CreateInvoiceRequestBody.Raw, Schematic.CreateInvoiceRequestBody>;
|
|
5
6
|
export declare namespace CreateInvoiceRequestBody {
|
|
6
7
|
interface Raw {
|
|
@@ -13,6 +14,7 @@ export declare namespace CreateInvoiceRequestBody {
|
|
|
13
14
|
due_date?: string | null;
|
|
14
15
|
external_id?: string | null;
|
|
15
16
|
payment_method_external_id?: string | null;
|
|
17
|
+
status?: InvoiceStatus.Raw | null;
|
|
16
18
|
subscription_external_id?: string | null;
|
|
17
19
|
subtotal: number;
|
|
18
20
|
url?: string | null;
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
import type * as Schematic from "../../../../api/index";
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
|
+
import { SortDirection } from "../../../types/SortDirection";
|
|
5
|
+
import { SubscriptionStatus } from "../../../types/SubscriptionStatus";
|
|
6
|
+
import { SubscriptionType } from "../../../types/SubscriptionType";
|
|
4
7
|
export declare const CountCompaniesParams: core.serialization.ObjectSchema<serializers.CountCompaniesParams.Raw, Schematic.CountCompaniesParams>;
|
|
5
8
|
export declare namespace CountCompaniesParams {
|
|
6
9
|
interface Raw {
|
|
10
|
+
credit_type_ids?: string[] | null;
|
|
7
11
|
ids?: string[] | null;
|
|
8
12
|
limit?: number | null;
|
|
13
|
+
monetized_subscriptions?: boolean | null;
|
|
9
14
|
offset?: number | null;
|
|
10
15
|
plan_id?: string | null;
|
|
16
|
+
plan_ids?: string[] | null;
|
|
17
|
+
plan_version_id?: string | null;
|
|
11
18
|
q?: string | null;
|
|
19
|
+
sort_order_column?: string | null;
|
|
20
|
+
sort_order_direction?: SortDirection.Raw | null;
|
|
21
|
+
subscription_statuses?: SubscriptionStatus.Raw[] | null;
|
|
22
|
+
subscription_types?: SubscriptionType.Raw[] | null;
|
|
23
|
+
with_entitlement_for?: string | null;
|
|
12
24
|
with_subscription?: boolean | null;
|
|
13
25
|
without_feature_override_for?: string | null;
|
|
14
26
|
without_plan?: boolean | null;
|
|
27
|
+
without_subscription?: boolean | null;
|
|
15
28
|
}
|
|
16
29
|
}
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
import type * as Schematic from "../../../../api/index";
|
|
2
2
|
import * as core from "../../../../core";
|
|
3
3
|
import type * as serializers from "../../../index";
|
|
4
|
+
import { SortDirection } from "../../../types/SortDirection";
|
|
5
|
+
import { SubscriptionStatus } from "../../../types/SubscriptionStatus";
|
|
6
|
+
import { SubscriptionType } from "../../../types/SubscriptionType";
|
|
4
7
|
export declare const ListCompaniesParams: core.serialization.ObjectSchema<serializers.ListCompaniesParams.Raw, Schematic.ListCompaniesParams>;
|
|
5
8
|
export declare namespace ListCompaniesParams {
|
|
6
9
|
interface Raw {
|
|
10
|
+
credit_type_ids?: string[] | null;
|
|
7
11
|
ids?: string[] | null;
|
|
8
12
|
limit?: number | null;
|
|
13
|
+
monetized_subscriptions?: boolean | null;
|
|
9
14
|
offset?: number | null;
|
|
10
15
|
plan_id?: string | null;
|
|
16
|
+
plan_ids?: string[] | null;
|
|
17
|
+
plan_version_id?: string | null;
|
|
11
18
|
q?: string | null;
|
|
19
|
+
sort_order_column?: string | null;
|
|
20
|
+
sort_order_direction?: SortDirection.Raw | null;
|
|
21
|
+
subscription_statuses?: SubscriptionStatus.Raw[] | null;
|
|
22
|
+
subscription_types?: SubscriptionType.Raw[] | null;
|
|
23
|
+
with_entitlement_for?: string | null;
|
|
12
24
|
with_subscription?: boolean | null;
|
|
13
25
|
without_feature_override_for?: string | null;
|
|
14
26
|
without_plan?: boolean | null;
|
|
27
|
+
without_subscription?: boolean | null;
|
|
15
28
|
}
|
|
16
29
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from "./CountCompaniesForAdvancedFilterParams";
|
|
2
|
-
export * from "./CountCompaniesForAdvancedFilterResponse";
|
|
3
1
|
export * from "./CountCompaniesParams";
|
|
4
2
|
export * from "./CountCompaniesResponse";
|
|
5
3
|
export * from "./CountEntityKeyDefinitionsParams";
|
|
@@ -31,8 +29,6 @@ export * from "./GetOrCreateEntityTraitDefinitionResponse";
|
|
|
31
29
|
export * from "./GetPlanChangeResponse";
|
|
32
30
|
export * from "./GetPlanTraitResponse";
|
|
33
31
|
export * from "./GetUserResponse";
|
|
34
|
-
export * from "./ListCompaniesForAdvancedFilterParams";
|
|
35
|
-
export * from "./ListCompaniesForAdvancedFilterResponse";
|
|
36
32
|
export * from "./ListCompaniesParams";
|
|
37
33
|
export * from "./ListCompaniesResponse";
|
|
38
34
|
export * from "./ListCompanyMembershipsParams";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { PublicPlansResponseData } from "../../../types/PublicPlansResponseData";
|
|
5
|
+
export declare const GetPublicPlansResponse: core.serialization.ObjectSchema<serializers.GetPublicPlansResponse.Raw, Schematic.GetPublicPlansResponse>;
|
|
6
|
+
export declare namespace GetPublicPlansResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: PublicPlansResponseData.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./GetPublicPlansResponse";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { CreditEventType } from "../../../types/CreditEventType";
|
|
5
|
+
export declare const CountCreditEventLedgerParams: core.serialization.ObjectSchema<serializers.CountCreditEventLedgerParams.Raw, Schematic.CountCreditEventLedgerParams>;
|
|
6
|
+
export declare namespace CountCreditEventLedgerParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
billing_credit_id?: string | null;
|
|
9
|
+
company_id?: string | null;
|
|
10
|
+
end_time?: string | null;
|
|
11
|
+
event_type?: CreditEventType.Raw | null;
|
|
12
|
+
feature_id?: string | null;
|
|
13
|
+
limit?: number | null;
|
|
14
|
+
offset?: number | null;
|
|
15
|
+
start_time?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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
|
+
import { CountResponse } from "../../../types/CountResponse";
|
|
5
|
+
import { CountCreditEventLedgerParams } from "./CountCreditEventLedgerParams";
|
|
6
|
+
export declare const CountCreditEventLedgerResponse: core.serialization.ObjectSchema<serializers.CountCreditEventLedgerResponse.Raw, Schematic.CountCreditEventLedgerResponse>;
|
|
7
|
+
export declare namespace CountCreditEventLedgerResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: CountResponse.Raw;
|
|
10
|
+
params: CountCreditEventLedgerParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { CreditEventType } from "../../../types/CreditEventType";
|
|
5
|
+
export declare const ListCreditEventLedgerParams: core.serialization.ObjectSchema<serializers.ListCreditEventLedgerParams.Raw, Schematic.ListCreditEventLedgerParams>;
|
|
6
|
+
export declare namespace ListCreditEventLedgerParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
billing_credit_id?: string | null;
|
|
9
|
+
company_id?: string | null;
|
|
10
|
+
end_time?: string | null;
|
|
11
|
+
event_type?: CreditEventType.Raw | null;
|
|
12
|
+
feature_id?: string | null;
|
|
13
|
+
limit?: number | null;
|
|
14
|
+
offset?: number | null;
|
|
15
|
+
start_time?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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
|
+
import { CreditEventLedgerResponseData } from "../../../types/CreditEventLedgerResponseData";
|
|
5
|
+
import { ListCreditEventLedgerParams } from "./ListCreditEventLedgerParams";
|
|
6
|
+
export declare const ListCreditEventLedgerResponse: core.serialization.ObjectSchema<serializers.ListCreditEventLedgerResponse.Raw, Schematic.ListCreditEventLedgerResponse>;
|
|
7
|
+
export declare namespace ListCreditEventLedgerResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: CreditEventLedgerResponseData.Raw[];
|
|
10
|
+
params: ListCreditEventLedgerParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -8,6 +8,8 @@ export * from "./CountCompanyGrantsParams";
|
|
|
8
8
|
export * from "./CountCompanyGrantsResponse";
|
|
9
9
|
export * from "./CountCreditBundlesParams";
|
|
10
10
|
export * from "./CountCreditBundlesResponse";
|
|
11
|
+
export * from "./CountCreditEventLedgerParams";
|
|
12
|
+
export * from "./CountCreditEventLedgerResponse";
|
|
11
13
|
export * from "./CountCreditLedgerParams";
|
|
12
14
|
export * from "./CountCreditLedgerResponse";
|
|
13
15
|
export * from "./CreateBillingCreditResponse";
|
|
@@ -29,6 +31,8 @@ export * from "./ListCompanyGrantsParams";
|
|
|
29
31
|
export * from "./ListCompanyGrantsResponse";
|
|
30
32
|
export * from "./ListCreditBundlesParams";
|
|
31
33
|
export * from "./ListCreditBundlesResponse";
|
|
34
|
+
export * from "./ListCreditEventLedgerParams";
|
|
35
|
+
export * from "./ListCreditEventLedgerResponse";
|
|
32
36
|
export * from "./ListGrantsForCreditParams";
|
|
33
37
|
export * from "./ListGrantsForCreditResponse";
|
|
34
38
|
export * from "./SoftDeleteBillingCreditResponse";
|
|
@@ -23,6 +23,7 @@ export declare namespace CreatePlanEntitlementRequestBody {
|
|
|
23
23
|
monthly_unit_price_decimal?: string | null;
|
|
24
24
|
overage_billing_product_id?: string | null;
|
|
25
25
|
plan_id: string;
|
|
26
|
+
plan_version_id?: string | null;
|
|
26
27
|
price_behavior?: EntitlementPriceBehavior.Raw | null;
|
|
27
28
|
price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
|
|
28
29
|
soft_limit?: number | null;
|
|
@@ -11,6 +11,8 @@ export declare namespace CountPlanEntitlementsParams {
|
|
|
11
11
|
offset?: number | null;
|
|
12
12
|
plan_id?: string | null;
|
|
13
13
|
plan_ids?: string[] | null;
|
|
14
|
+
plan_version_id?: string | null;
|
|
15
|
+
plan_version_ids?: string[] | null;
|
|
14
16
|
q?: string | null;
|
|
15
17
|
with_metered_products?: boolean | null;
|
|
16
18
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { TimeSeriesGranularity } from "../../../types/TimeSeriesGranularity";
|
|
5
|
+
export declare const GetFeatureUsageTimeSeriesParams: core.serialization.ObjectSchema<serializers.GetFeatureUsageTimeSeriesParams.Raw, Schematic.GetFeatureUsageTimeSeriesParams>;
|
|
6
|
+
export declare namespace GetFeatureUsageTimeSeriesParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
company_id?: string | null;
|
|
9
|
+
end_time?: string | null;
|
|
10
|
+
feature_id?: string | null;
|
|
11
|
+
granularity?: TimeSeriesGranularity.Raw | null;
|
|
12
|
+
start_time?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts
ADDED
|
@@ -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
|
+
import { FeatureUsageTimeSeriesResponseData } from "../../../types/FeatureUsageTimeSeriesResponseData";
|
|
5
|
+
import { GetFeatureUsageTimeSeriesParams } from "./GetFeatureUsageTimeSeriesParams";
|
|
6
|
+
export declare const GetFeatureUsageTimeSeriesResponse: core.serialization.ObjectSchema<serializers.GetFeatureUsageTimeSeriesResponse.Raw, Schematic.GetFeatureUsageTimeSeriesResponse>;
|
|
7
|
+
export declare namespace GetFeatureUsageTimeSeriesResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: FeatureUsageTimeSeriesResponseData.Raw;
|
|
10
|
+
params: GetFeatureUsageTimeSeriesParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -11,6 +11,8 @@ export declare namespace ListPlanEntitlementsParams {
|
|
|
11
11
|
offset?: number | null;
|
|
12
12
|
plan_id?: string | null;
|
|
13
13
|
plan_ids?: string[] | null;
|
|
14
|
+
plan_version_id?: string | null;
|
|
15
|
+
plan_version_ids?: string[] | null;
|
|
14
16
|
q?: string | null;
|
|
15
17
|
with_metered_products?: boolean | null;
|
|
16
18
|
}
|
|
@@ -20,6 +20,8 @@ export * from "./DuplicatePlanEntitlementsResponse";
|
|
|
20
20
|
export * from "./GetCompanyOverrideResponse";
|
|
21
21
|
export * from "./GetFeatureUsageByCompanyParams";
|
|
22
22
|
export * from "./GetFeatureUsageByCompanyResponse";
|
|
23
|
+
export * from "./GetFeatureUsageTimeSeriesParams";
|
|
24
|
+
export * from "./GetFeatureUsageTimeSeriesResponse";
|
|
23
25
|
export * from "./GetPlanEntitlementResponse";
|
|
24
26
|
export * from "./ListCompanyOverridesParams";
|
|
25
27
|
export * from "./ListCompanyOverridesResponse";
|
|
@@ -10,6 +10,7 @@ export declare namespace CountFeaturesParams {
|
|
|
10
10
|
ids?: string[] | null;
|
|
11
11
|
limit?: number | null;
|
|
12
12
|
offset?: number | null;
|
|
13
|
+
plan_version_id?: string | null;
|
|
13
14
|
q?: string | null;
|
|
14
15
|
without_company_override_for?: string | null;
|
|
15
16
|
without_plan_entitlement_for?: string | null;
|
|
@@ -10,6 +10,7 @@ export declare namespace ListFeaturesParams {
|
|
|
10
10
|
ids?: string[] | null;
|
|
11
11
|
limit?: number | null;
|
|
12
12
|
offset?: number | null;
|
|
13
|
+
plan_version_id?: string | null;
|
|
13
14
|
q?: string | null;
|
|
14
15
|
without_company_override_for?: string | null;
|
|
15
16
|
without_plan_entitlement_for?: string | null;
|
|
@@ -16,6 +16,8 @@ export * from "./companies/types";
|
|
|
16
16
|
export * as components from "./components";
|
|
17
17
|
export * from "./components/client/requests";
|
|
18
18
|
export * from "./components/types";
|
|
19
|
+
export * as componentspublic from "./componentspublic";
|
|
20
|
+
export * from "./componentspublic/types";
|
|
19
21
|
export * as credits from "./credits";
|
|
20
22
|
export * from "./credits/client/requests";
|
|
21
23
|
export * from "./credits/types";
|
|
@@ -37,9 +39,14 @@ export * from "./planbundle/types";
|
|
|
37
39
|
export * as plangroups from "./plangroups";
|
|
38
40
|
export * from "./plangroups/client/requests";
|
|
39
41
|
export * from "./plangroups/types";
|
|
42
|
+
export * as planmigrations from "./planmigrations";
|
|
43
|
+
export * from "./planmigrations/types";
|
|
40
44
|
export * as plans from "./plans";
|
|
41
45
|
export * from "./plans/client/requests";
|
|
42
46
|
export * from "./plans/types";
|
|
47
|
+
export * as scheduledcheckout from "./scheduledcheckout";
|
|
48
|
+
export * from "./scheduledcheckout/client/requests";
|
|
49
|
+
export * from "./scheduledcheckout/types";
|
|
43
50
|
export * as webhooks from "./webhooks";
|
|
44
51
|
export * from "./webhooks/client/requests";
|
|
45
52
|
export * from "./webhooks/types";
|
package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare namespace UpdatePlanBundleRequestBody {
|
|
|
13
13
|
credit_grants?: PlanBundleCreditGrantRequestBody.Raw[] | null;
|
|
14
14
|
entitlements: PlanBundleEntitlementRequestBody.Raw[];
|
|
15
15
|
plan?: UpdatePlanRequestBody.Raw | null;
|
|
16
|
+
plan_version_id?: string | null;
|
|
16
17
|
traits?: UpdatePlanTraitTraitRequestBody.Raw[] | null;
|
|
17
18
|
}
|
|
18
19
|
}
|
package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { CustomPlanConfig } from "../../../../types/CustomPlanConfig";
|
|
|
6
6
|
import { OrderedPlansInGroup } from "../../../../types/OrderedPlansInGroup";
|
|
7
7
|
import { PlanGroupBundleOrder } from "../../../../types/PlanGroupBundleOrder";
|
|
8
8
|
import { ProrationBehavior } from "../../../../types/ProrationBehavior";
|
|
9
|
+
import { ScheduledDowngradeConfigBehavior } from "../../../../types/ScheduledDowngradeConfigBehavior";
|
|
9
10
|
export declare const CreatePlanGroupRequestBody: core.serialization.Schema<serializers.CreatePlanGroupRequestBody.Raw, Schematic.CreatePlanGroupRequestBody>;
|
|
10
11
|
export declare namespace CreatePlanGroupRequestBody {
|
|
11
12
|
interface Raw {
|
|
@@ -28,8 +29,12 @@ export declare namespace CreatePlanGroupRequestBody {
|
|
|
28
29
|
prevent_self_service_downgrade_button_text?: string | null;
|
|
29
30
|
prevent_self_service_downgrade_url?: string | null;
|
|
30
31
|
proration_behavior: ProrationBehavior.Raw;
|
|
32
|
+
scheduled_downgrade_behavior?: ScheduledDowngradeConfigBehavior.Raw | null;
|
|
33
|
+
scheduled_downgrade_prevent_when_over_limit?: boolean | null;
|
|
31
34
|
show_as_monthly_prices: boolean;
|
|
32
35
|
show_credits: boolean;
|
|
36
|
+
show_feature_description: boolean;
|
|
37
|
+
show_hard_limit: boolean;
|
|
33
38
|
show_period_toggle: boolean;
|
|
34
39
|
show_zero_price_as_free: boolean;
|
|
35
40
|
sync_customer_billing_details: boolean;
|
package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { CustomPlanConfig } from "../../../../types/CustomPlanConfig";
|
|
|
6
6
|
import { OrderedPlansInGroup } from "../../../../types/OrderedPlansInGroup";
|
|
7
7
|
import { PlanGroupBundleOrder } from "../../../../types/PlanGroupBundleOrder";
|
|
8
8
|
import { ProrationBehavior } from "../../../../types/ProrationBehavior";
|
|
9
|
+
import { ScheduledDowngradeConfigBehavior } from "../../../../types/ScheduledDowngradeConfigBehavior";
|
|
9
10
|
export declare const UpdatePlanGroupRequestBody: core.serialization.Schema<serializers.UpdatePlanGroupRequestBody.Raw, Schematic.UpdatePlanGroupRequestBody>;
|
|
10
11
|
export declare namespace UpdatePlanGroupRequestBody {
|
|
11
12
|
interface Raw {
|
|
@@ -28,8 +29,12 @@ export declare namespace UpdatePlanGroupRequestBody {
|
|
|
28
29
|
prevent_self_service_downgrade_button_text?: string | null;
|
|
29
30
|
prevent_self_service_downgrade_url?: string | null;
|
|
30
31
|
proration_behavior: ProrationBehavior.Raw;
|
|
32
|
+
scheduled_downgrade_behavior?: ScheduledDowngradeConfigBehavior.Raw | null;
|
|
33
|
+
scheduled_downgrade_prevent_when_over_limit?: boolean | null;
|
|
31
34
|
show_as_monthly_prices: boolean;
|
|
32
35
|
show_credits: boolean;
|
|
36
|
+
show_feature_description: boolean;
|
|
37
|
+
show_hard_limit: boolean;
|
|
33
38
|
show_period_toggle: boolean;
|
|
34
39
|
show_zero_price_as_free: boolean;
|
|
35
40
|
sync_customer_billing_details: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { PlanVersionCompanyMigrationStatus } from "../../../types/PlanVersionCompanyMigrationStatus";
|
|
5
|
+
export declare const CountCompanyMigrationsParams: core.serialization.ObjectSchema<serializers.CountCompanyMigrationsParams.Raw, Schematic.CountCompanyMigrationsParams>;
|
|
6
|
+
export declare namespace CountCompanyMigrationsParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
limit?: number | null;
|
|
9
|
+
migration_id?: string | null;
|
|
10
|
+
offset?: number | null;
|
|
11
|
+
q?: string | null;
|
|
12
|
+
status?: PlanVersionCompanyMigrationStatus.Raw | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -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
|
+
import { CountResponse } from "../../../types/CountResponse";
|
|
5
|
+
import { CountCompanyMigrationsParams } from "./CountCompanyMigrationsParams";
|
|
6
|
+
export declare const CountCompanyMigrationsResponse: core.serialization.ObjectSchema<serializers.CountCompanyMigrationsResponse.Raw, Schematic.CountCompanyMigrationsResponse>;
|
|
7
|
+
export declare namespace CountCompanyMigrationsResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: CountResponse.Raw;
|
|
10
|
+
params: CountCompanyMigrationsParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { PlanVersionMigrationStatus } from "../../../types/PlanVersionMigrationStatus";
|
|
5
|
+
export declare const CountMigrationsParams: core.serialization.ObjectSchema<serializers.CountMigrationsParams.Raw, Schematic.CountMigrationsParams>;
|
|
6
|
+
export declare namespace CountMigrationsParams {
|
|
7
|
+
interface Raw {
|
|
8
|
+
limit?: number | null;
|
|
9
|
+
offset?: number | null;
|
|
10
|
+
plan_version_id?: string | null;
|
|
11
|
+
status?: PlanVersionMigrationStatus.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -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
|
+
import { CountResponse } from "../../../types/CountResponse";
|
|
5
|
+
import { CountMigrationsParams } from "./CountMigrationsParams";
|
|
6
|
+
export declare const CountMigrationsResponse: core.serialization.ObjectSchema<serializers.CountMigrationsResponse.Raw, Schematic.CountMigrationsResponse>;
|
|
7
|
+
export declare namespace CountMigrationsResponse {
|
|
8
|
+
interface Raw {
|
|
9
|
+
data: CountResponse.Raw;
|
|
10
|
+
params: CountMigrationsParams.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../api/index";
|
|
2
|
+
import * as core from "../../../../core";
|
|
3
|
+
import type * as serializers from "../../../index";
|
|
4
|
+
import { PlanVersionMigrationResponseData } from "../../../types/PlanVersionMigrationResponseData";
|
|
5
|
+
export declare const GetMigrationResponse: core.serialization.ObjectSchema<serializers.GetMigrationResponse.Raw, Schematic.GetMigrationResponse>;
|
|
6
|
+
export declare namespace GetMigrationResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data: PlanVersionMigrationResponseData.Raw;
|
|
9
|
+
params: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
}
|