@schematichq/schematic-typescript-node 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -2
- package/dist/Client.d.ts +12 -0
- package/dist/api/resources/accounts/client/Client.d.ts +33 -16
- package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +24 -0
- package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +24 -0
- package/dist/api/resources/accounts/client/requests/index.d.ts +2 -2
- package/dist/api/resources/accounts/types/{ListApiRequestsParams.d.ts → CountAuditLogsParams.d.ts} +5 -2
- package/dist/api/resources/accounts/types/{CountApiRequestsResponse.d.ts → CountAuditLogsResponse.d.ts} +2 -2
- package/dist/api/resources/accounts/types/{GetApiRequestResponse.d.ts → GetAuditLogResponse.d.ts} +2 -2
- package/dist/api/resources/accounts/types/GetWhoAmIResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/{CountApiRequestsParams.d.ts → ListAuditLogsParams.d.ts} +5 -2
- package/dist/api/resources/accounts/types/ListAuditLogsResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +6 -5
- package/dist/api/resources/billing/client/Client.d.ts +0 -3
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +0 -2
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/api/resources/companies/client/Client.d.ts +12 -48
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +27 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +27 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +0 -2
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +21 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +21 -0
- package/dist/api/resources/companies/types/index.d.ts +0 -4
- package/dist/api/resources/componentspublic/client/Client.d.ts +26 -0
- package/dist/api/resources/componentspublic/client/index.d.ts +1 -0
- package/dist/api/resources/componentspublic/index.d.ts +2 -0
- package/dist/api/resources/componentspublic/types/GetPublicPlansResponse.d.ts +6 -0
- package/dist/api/resources/componentspublic/types/index.d.ts +1 -0
- package/dist/api/resources/credits/client/Client.d.ts +71 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +3 -1
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +3 -1
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +3 -2
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsParams.d.ts +13 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CountCreditEventLedgerParams.d.ts +16 -0
- package/dist/api/resources/credits/types/CountCreditEventLedgerResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/ListCreditEventLedgerParams.d.ts +16 -0
- package/dist/api/resources/credits/types/ListCreditEventLedgerResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +6 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +22 -0
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageTimeSeriesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +4 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +11 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +4 -0
- package/dist/api/resources/entitlements/types/index.d.ts +2 -0
- package/dist/api/resources/features/client/Client.d.ts +2 -0
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +3 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +3 -0
- package/dist/api/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/dist/api/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/dist/api/resources/index.d.ts +11 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +52 -0
- package/dist/api/resources/planbundle/client/index.d.ts +1 -0
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +16 -0
- package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +17 -0
- package/dist/api/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/api/resources/planbundle/index.d.ts +2 -0
- package/dist/api/resources/planbundle/types/CreatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/Client.d.ts +4 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +6 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +6 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +109 -0
- package/dist/api/resources/planmigrations/client/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +18 -0
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +18 -0
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +4 -0
- package/dist/api/resources/planmigrations/index.d.ts +2 -0
- package/dist/api/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +13 -0
- package/dist/api/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +12 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/GetMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +13 -0
- package/dist/api/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +12 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +9 -0
- package/dist/api/resources/plans/client/Client.d.ts +41 -3
- package/dist/api/resources/plans/client/requests/GetPlanRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/ListPlanIssuesRequest.d.ts +3 -1
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +12 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +2 -3
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/GetPlanParams.d.ts +7 -0
- package/dist/api/resources/plans/types/GetPlanResponse.d.ts +1 -1
- package/dist/api/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/api/resources/plans/types/PublishPlanVersionResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +3 -0
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +83 -0
- package/dist/api/resources/scheduledcheckout/client/index.d.ts +1 -0
- package/dist/api/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +15 -0
- package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +18 -0
- package/dist/api/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +9 -0
- package/dist/api/resources/scheduledcheckout/client/requests/index.d.ts +3 -0
- package/dist/api/resources/scheduledcheckout/index.d.ts +2 -0
- package/dist/api/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +12 -0
- package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/index.d.ts +5 -0
- package/dist/api/types/{PlanChangeActorType.d.ts → ActorType.d.ts} +3 -2
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/api/types/{ApiKeyRequestListResponseData.d.ts → AuditLogListResponseData.d.ts} +4 -4
- package/dist/api/types/{ApiKeyRequestResponseData.d.ts → AuditLogResponseData.d.ts} +3 -5
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditView.d.ts +22 -0
- package/dist/api/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +9 -2
- package/dist/api/types/CheckFlagResponseData.d.ts +8 -5
- package/dist/api/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/api/types/ComponentDisplaySettings.d.ts +2 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/ComponentSettingsResponseData.d.ts +2 -0
- package/dist/api/types/ConditionConditionType.d.ts +1 -1
- package/dist/api/types/ConditionGroupResponseData.d.ts +10 -0
- package/dist/api/types/ConditionGroupView.d.ts +12 -0
- package/dist/api/types/ConditionResponseData.d.ts +28 -0
- package/dist/api/types/ConditionView.d.ts +35 -0
- package/dist/api/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -11
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +31 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/CreateEventRequestBody.d.ts +1 -0
- package/dist/api/types/CreatePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +34 -0
- package/dist/api/types/CreditEventType.d.ts +7 -0
- package/dist/api/types/CreditsAutoTopupCompanySummary.d.ts +4 -0
- package/dist/api/types/CreditsAutoTopupCreditSummary.d.ts +4 -0
- package/dist/api/types/CreditsAutoTopupHardFailure.d.ts +7 -0
- package/dist/api/types/CreditsAutoTopupRetryFailure.d.ts +8 -0
- package/dist/api/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -1
- package/dist/api/types/EventResponseData.d.ts +1 -1
- package/dist/api/types/FeatureCompanyResponseData.d.ts +3 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/api/types/FeatureEntitlement.d.ts +31 -0
- package/dist/api/types/FeatureEntitlementMetricPeriod.d.ts +8 -0
- package/dist/api/types/FeatureEntitlementMonthReset.d.ts +6 -0
- package/dist/api/types/FeatureUsageLegacyResponseData.d.ts +9 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +3 -0
- package/dist/api/types/FeatureUsageTimeSeriesResponseData.d.ts +8 -0
- package/dist/api/types/FeatureView.d.ts +21 -0
- package/dist/api/types/FlagView.d.ts +17 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/api/types/InvoiceResponseData.d.ts +1 -0
- package/dist/api/types/InvoiceStatus.d.ts +8 -0
- package/dist/api/types/LimitTimeSeriesPointResponseData.d.ts +9 -0
- package/dist/api/types/PlanBundleAction.d.ts +6 -0
- package/dist/api/types/PlanBundleCreditGrantRequestBody.d.ts +8 -0
- package/dist/api/types/PlanBundleEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/PlanBundleResponseData.d.ts +8 -0
- package/dist/api/types/PlanChangeAction.d.ts +1 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +4 -2
- package/dist/api/types/PlanChangeSubscriptionAction.d.ts +1 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +10 -3
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +8 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +18 -0
- package/dist/api/types/PlanVersionMigrationStatus.d.ts +7 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +5 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionStatus.d.ts +6 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +32 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/api/types/PublicPlansResponseData.d.ts +12 -0
- package/dist/api/types/RawEventResponseData.d.ts +1 -1
- package/dist/api/types/RuleView.d.ts +16 -0
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCheckFlagResult.d.ts +1 -0
- package/dist/api/types/RulesengineCompany.d.ts +2 -1
- package/dist/api/types/RulesengineConditionConditionType.d.ts +1 -1
- package/dist/api/types/RulesengineEntitlementValueType.d.ts +9 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +31 -0
- package/dist/api/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +8 -0
- package/dist/api/types/RulesengineFeatureEntitlementMonthReset.d.ts +6 -0
- package/dist/api/types/ScheduledCheckoutResponseData.d.ts +17 -0
- package/dist/api/types/ScheduledCheckoutStatus.d.ts +8 -0
- package/dist/api/types/ScheduledDowngradeConfigBehavior.d.ts +5 -0
- package/dist/api/types/ScheduledDowngradeResponseData.d.ts +13 -0
- package/dist/api/types/TimeSeriesGranularity.d.ts +7 -0
- package/dist/api/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -8
- package/dist/api/{resources/plans/client/requests → types}/UpdatePlanRequestBody.d.ts +0 -6
- package/dist/api/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +1 -8
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UsageTimeSeriesPointResponseData.d.ts +6 -0
- package/dist/api/types/WebFeatureUsageWebhookOutput.d.ts +10 -0
- package/dist/api/types/WebhookRequestType.d.ts +3 -0
- package/dist/api/types/WhoAmIResponseData.d.ts +12 -0
- package/dist/api/types/index.d.ts +58 -6
- package/dist/cache/index.d.ts +3 -0
- package/dist/{cache.d.ts → cache/local.d.ts} +9 -10
- package/dist/cache/redis.d.ts +38 -0
- package/dist/cache/types.d.ts +19 -0
- package/dist/datastream/datastream-client.d.ts +239 -0
- package/dist/datastream/index.d.ts +2 -0
- package/dist/datastream/types.d.ts +48 -0
- package/dist/datastream/websocket-client.d.ts +127 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -3
- package/dist/rules-engine.d.ts +54 -0
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/CountAuditLogsParams.d.ts +16 -0
- package/dist/serialization/resources/accounts/types/CountAuditLogsResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/GetAuditLogResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/GetWhoAmIResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/ListAuditLogsParams.d.ts +16 -0
- package/dist/serialization/resources/accounts/types/ListAuditLogsResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +6 -5
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +13 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +13 -0
- package/dist/serialization/resources/companies/types/index.d.ts +0 -4
- package/dist/serialization/resources/componentspublic/index.d.ts +1 -0
- package/dist/serialization/resources/componentspublic/types/GetPublicPlansResponse.d.ts +11 -0
- package/dist/serialization/resources/componentspublic/types/index.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/CountCreditEventLedgerParams.d.ts +17 -0
- package/dist/serialization/resources/credits/types/CountCreditEventLedgerResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ListCreditEventLedgerParams.d.ts +17 -0
- package/dist/serialization/resources/credits/types/ListCreditEventLedgerResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/index.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +14 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
- package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +1 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +1 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/planbundle/client/index.d.ts +1 -0
- package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +18 -0
- package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +19 -0
- package/dist/serialization/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/types/CreatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -0
- package/dist/serialization/resources/planmigrations/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +14 -0
- package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/GetMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +14 -0
- package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +9 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +11 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -3
- package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/GetPlanParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/GetPlanResponse.d.ts +2 -1
- package/dist/serialization/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/PublishPlanVersionResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +3 -0
- package/dist/serialization/resources/scheduledcheckout/client/index.d.ts +1 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +12 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/scheduledcheckout/index.d.ts +2 -0
- package/dist/serialization/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +13 -0
- package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +12 -0
- package/dist/serialization/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/index.d.ts +5 -0
- package/dist/serialization/types/ActorType.d.ts +7 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/serialization/types/{ApiKeyRequestListResponseData.d.ts → AuditLogListResponseData.d.ts} +5 -5
- package/dist/serialization/types/{ApiKeyRequestResponseData.d.ts → AuditLogResponseData.d.ts} +5 -7
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditView.d.ts +32 -0
- package/dist/serialization/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -2
- package/dist/serialization/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/serialization/types/ComponentDisplaySettings.d.ts +2 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentSettingsResponseData.d.ts +2 -0
- package/dist/serialization/types/ConditionConditionType.d.ts +1 -1
- package/dist/serialization/types/ConditionGroupResponseData.d.ts +16 -0
- package/dist/serialization/types/ConditionGroupView.d.ts +18 -0
- package/dist/serialization/types/ConditionResponseData.d.ts +34 -0
- package/dist/serialization/types/ConditionView.d.ts +43 -0
- package/dist/serialization/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +11 -10
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +41 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +13 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +47 -0
- package/dist/serialization/types/CreditEventType.d.ts +7 -0
- package/dist/serialization/types/CreditsAutoTopupCompanySummary.d.ts +10 -0
- package/dist/serialization/types/CreditsAutoTopupCreditSummary.d.ts +10 -0
- package/dist/serialization/types/CreditsAutoTopupHardFailure.d.ts +14 -0
- package/dist/serialization/types/CreditsAutoTopupRetryFailure.d.ts +15 -0
- package/dist/serialization/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +9 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/EventResponseData.d.ts +1 -1
- package/dist/serialization/types/FeatureEntitlement.d.ts +25 -0
- package/dist/serialization/types/FeatureEntitlementMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/FeatureEntitlementMonthReset.d.ts +7 -0
- package/dist/serialization/types/FeatureUsageLegacyResponseData.d.ts +16 -0
- package/dist/serialization/types/FeatureUsageTimeSeriesResponseData.d.ts +16 -0
- package/dist/serialization/types/FeatureView.d.ts +32 -0
- package/dist/serialization/types/FlagView.d.ts +25 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +2 -0
- package/dist/serialization/types/InvoiceStatus.d.ts +7 -0
- package/dist/serialization/types/LimitTimeSeriesPointResponseData.d.ts +16 -0
- package/dist/serialization/types/PlanBundleAction.d.ts +7 -0
- package/dist/serialization/types/PlanBundleCreditGrantRequestBody.d.ts +17 -0
- package/dist/serialization/types/PlanBundleEntitlementRequestBody.d.ts +13 -0
- package/dist/serialization/types/PlanBundleResponseData.d.ts +18 -0
- package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
- package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -4
- package/dist/serialization/types/PlanChangeSubscriptionAction.d.ts +1 -1
- package/dist/serialization/types/PlanCreditGrantView.d.ts +7 -3
- package/dist/serialization/types/PlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +20 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +7 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +25 -0
- package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +7 -0
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +7 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +21 -0
- package/dist/serialization/types/PlanVersionStatus.d.ts +7 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +47 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/serialization/types/PublicPlansResponseData.d.ts +21 -0
- package/dist/serialization/types/RawEventResponseData.d.ts +1 -1
- package/dist/serialization/types/RuleView.d.ts +23 -0
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCheckFlagResult.d.ts +2 -0
- package/dist/serialization/types/RulesengineCompany.d.ts +3 -1
- package/dist/serialization/types/RulesengineConditionConditionType.d.ts +1 -1
- package/dist/serialization/types/RulesengineEntitlementValueType.d.ts +7 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +25 -0
- package/dist/serialization/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/RulesengineFeatureEntitlementMonthReset.d.ts +7 -0
- package/dist/serialization/types/ScheduledCheckoutResponseData.d.ts +23 -0
- package/dist/serialization/types/ScheduledCheckoutStatus.d.ts +7 -0
- package/dist/serialization/types/ScheduledDowngradeConfigBehavior.d.ts +7 -0
- package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +19 -0
- package/dist/serialization/types/TimeSeriesGranularity.d.ts +7 -0
- package/dist/serialization/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +10 -10
- package/dist/serialization/types/UpdatePlanRequestBody.d.ts +11 -0
- package/dist/serialization/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +5 -5
- package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/serialization/types/UsageTimeSeriesPointResponseData.d.ts +12 -0
- package/dist/serialization/types/WebFeatureUsageWebhookOutput.d.ts +18 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/WhoAmIResponseData.d.ts +18 -0
- package/dist/serialization/types/index.d.ts +58 -6
- package/dist/wrapper.d.ts +58 -5
- package/package.json +4 -2
- package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.d.ts +0 -19
- package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.d.ts +0 -19
- package/dist/api/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -6
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +0 -46
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +0 -46
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -35
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -6
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -35
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -6
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -15
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -26
- package/dist/api/types/CreditUsageResponseData.d.ts +0 -12
- package/dist/api/types/FeatureUsageDataResponseData.d.ts +0 -19
- package/dist/serialization/resources/accounts/types/CountApiRequestsParams.d.ts +0 -13
- package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.d.ts +0 -12
- package/dist/serialization/resources/accounts/types/GetApiRequestResponse.d.ts +0 -11
- package/dist/serialization/resources/accounts/types/ListApiRequestsParams.d.ts +0 -13
- package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -12
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -26
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -12
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -26
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -12
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -13
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -11
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -39
- package/dist/serialization/types/CreditUsageResponseData.d.ts +0 -17
- package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +0 -27
- package/dist/serialization/types/PlanChangeActorType.d.ts +0 -7
|
@@ -3,9 +3,11 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
5
5
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
6
|
+
import { BillingCreditResponseData } from "./BillingCreditResponseData";
|
|
6
7
|
import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
|
|
7
8
|
import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
|
|
8
9
|
import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
|
|
10
|
+
import { PreviewObjectResponseData } from "./PreviewObjectResponseData";
|
|
9
11
|
export declare const BillingPlanCreditGrantResponseData: core.serialization.ObjectSchema<serializers.BillingPlanCreditGrantResponseData.Raw, Schematic.BillingPlanCreditGrantResponseData>;
|
|
10
12
|
export declare namespace BillingPlanCreditGrantResponseData {
|
|
11
13
|
interface Raw {
|
|
@@ -17,6 +19,7 @@ export declare namespace BillingPlanCreditGrantResponseData {
|
|
|
17
19
|
auto_topup_expiry_unit_count?: number | null;
|
|
18
20
|
auto_topup_threshold_percent?: number | null;
|
|
19
21
|
created_at: string;
|
|
22
|
+
credit?: BillingCreditResponseData.Raw | null;
|
|
20
23
|
credit_amount: number;
|
|
21
24
|
credit_id: string;
|
|
22
25
|
credit_name: string;
|
|
@@ -26,10 +29,12 @@ export declare namespace BillingPlanCreditGrantResponseData {
|
|
|
26
29
|
expiry_unit?: BillingCreditExpiryUnit.Raw | null;
|
|
27
30
|
expiry_unit_count?: number | null;
|
|
28
31
|
id: string;
|
|
32
|
+
plan?: PreviewObjectResponseData.Raw | null;
|
|
29
33
|
plan_id: string;
|
|
30
34
|
plan_name: string;
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
plan_version_id?: string | null;
|
|
36
|
+
reset_cadence?: BillingPlanCreditGrantResetCadence.Raw | null;
|
|
37
|
+
reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
|
|
33
38
|
reset_type?: BillingPlanCreditGrantResetType.Raw | null;
|
|
34
39
|
updated_at: string;
|
|
35
40
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
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 { FeatureEntitlement } from "./FeatureEntitlement";
|
|
4
5
|
export declare const CheckFlagResponseData: core.serialization.ObjectSchema<serializers.CheckFlagResponseData.Raw, Schematic.CheckFlagResponseData>;
|
|
5
6
|
export declare namespace CheckFlagResponseData {
|
|
6
7
|
interface Raw {
|
|
7
8
|
company_id?: string | null;
|
|
9
|
+
entitlement?: FeatureEntitlement.Raw | null;
|
|
8
10
|
error?: string | null;
|
|
9
11
|
feature_allocation?: number | null;
|
|
10
12
|
feature_usage?: number | null;
|
|
@@ -6,9 +6,11 @@ import { CompanyEventPeriodMetricsResponseData } from "./CompanyEventPeriodMetri
|
|
|
6
6
|
import { CompanyPlanWithBillingSubView } from "./CompanyPlanWithBillingSubView";
|
|
7
7
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
8
8
|
import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
9
|
+
import { FeatureEntitlement } from "./FeatureEntitlement";
|
|
9
10
|
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
10
11
|
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
11
12
|
import { Rule } from "./Rule";
|
|
13
|
+
import { ScheduledDowngradeResponseData } from "./ScheduledDowngradeResponseData";
|
|
12
14
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
13
15
|
export declare namespace CompanyDetailResponseData {
|
|
14
16
|
interface Raw {
|
|
@@ -18,6 +20,7 @@ export declare namespace CompanyDetailResponseData {
|
|
|
18
20
|
billing_subscriptions: BillingSubscriptionView.Raw[];
|
|
19
21
|
created_at: string;
|
|
20
22
|
default_payment_method?: PaymentMethodResponseData.Raw | null;
|
|
23
|
+
entitlements: FeatureEntitlement.Raw[];
|
|
21
24
|
entity_traits: EntityTraitDetailResponseData.Raw[];
|
|
22
25
|
environment_id: string;
|
|
23
26
|
id: string;
|
|
@@ -30,6 +33,7 @@ export declare namespace CompanyDetailResponseData {
|
|
|
30
33
|
plan?: CompanyPlanWithBillingSubView.Raw | null;
|
|
31
34
|
plans: GenericPreviewObject.Raw[];
|
|
32
35
|
rules: Rule.Raw[];
|
|
36
|
+
scheduled_downgrade?: ScheduledDowngradeResponseData.Raw | null;
|
|
33
37
|
traits?: Record<string, unknown> | null;
|
|
34
38
|
updated_at: string;
|
|
35
39
|
user_count: number;
|
|
@@ -12,9 +12,11 @@ import { PlanControlledByType } from "./PlanControlledByType";
|
|
|
12
12
|
import { PlanCreditGrantView } from "./PlanCreditGrantView";
|
|
13
13
|
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
14
14
|
import { PlanType } from "./PlanType";
|
|
15
|
+
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
15
16
|
export declare const CompanyPlanDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyPlanDetailResponseData.Raw, Schematic.CompanyPlanDetailResponseData>;
|
|
16
17
|
export declare namespace CompanyPlanDetailResponseData {
|
|
17
18
|
interface Raw {
|
|
19
|
+
active_version?: PlanVersionResponseData.Raw | null;
|
|
18
20
|
audience_type?: string | null;
|
|
19
21
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
20
22
|
charge_type: ChargeType.Raw;
|
|
@@ -27,6 +29,7 @@ export declare namespace CompanyPlanDetailResponseData {
|
|
|
27
29
|
custom: boolean;
|
|
28
30
|
custom_plan_config?: CustomPlanConfig.Raw | null;
|
|
29
31
|
description: string;
|
|
32
|
+
draft_version?: PlanVersionResponseData.Raw | null;
|
|
30
33
|
entitlements: PlanEntitlementResponseData.Raw[];
|
|
31
34
|
features: FeatureDetailResponseData.Raw[];
|
|
32
35
|
icon: string;
|
|
@@ -45,6 +48,7 @@ export declare namespace CompanyPlanDetailResponseData {
|
|
|
45
48
|
updated_at: string;
|
|
46
49
|
usage_violations: FeatureUsageResponseData.Raw[];
|
|
47
50
|
valid: boolean;
|
|
51
|
+
versions: PlanVersionResponseData.Raw[];
|
|
48
52
|
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
49
53
|
}
|
|
50
54
|
}
|
|
@@ -6,6 +6,8 @@ export declare namespace ComponentDisplaySettings {
|
|
|
6
6
|
interface Raw {
|
|
7
7
|
show_as_monthly_prices: boolean;
|
|
8
8
|
show_credits: boolean;
|
|
9
|
+
show_feature_description: boolean;
|
|
10
|
+
show_hard_limit: boolean;
|
|
9
11
|
show_period_toggle: boolean;
|
|
10
12
|
show_zero_price_as_free: boolean;
|
|
11
13
|
}
|
|
@@ -14,6 +14,7 @@ import { CreditCompanyGrantView } from "./CreditCompanyGrantView";
|
|
|
14
14
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
15
15
|
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
16
16
|
import { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
17
|
+
import { ScheduledDowngradeResponseData } from "./ScheduledDowngradeResponseData";
|
|
17
18
|
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
18
19
|
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
19
20
|
export declare const ComponentHydrateResponseData: core.serialization.ObjectSchema<serializers.ComponentHydrateResponseData.Raw, Schematic.ComponentHydrateResponseData>;
|
|
@@ -36,6 +37,7 @@ export declare namespace ComponentHydrateResponseData {
|
|
|
36
37
|
prevent_self_service_downgrade: boolean;
|
|
37
38
|
prevent_self_service_downgrade_button_text?: string | null;
|
|
38
39
|
prevent_self_service_downgrade_url?: string | null;
|
|
40
|
+
scheduled_downgrade?: ScheduledDowngradeResponseData.Raw | null;
|
|
39
41
|
show_as_monthly_prices: boolean;
|
|
40
42
|
show_credits: boolean;
|
|
41
43
|
show_period_toggle: boolean;
|
|
@@ -14,6 +14,7 @@ import { CreditCompanyGrantView } from "./CreditCompanyGrantView";
|
|
|
14
14
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
15
15
|
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
16
16
|
import { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
17
|
+
import { ScheduledDowngradeResponseData } from "./ScheduledDowngradeResponseData";
|
|
17
18
|
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
18
19
|
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
19
20
|
export declare const ComponentPreviewResponseData: core.serialization.ObjectSchema<serializers.ComponentPreviewResponseData.Raw, Schematic.ComponentPreviewResponseData>;
|
|
@@ -37,6 +38,7 @@ export declare namespace ComponentPreviewResponseData {
|
|
|
37
38
|
prevent_self_service_downgrade: boolean;
|
|
38
39
|
prevent_self_service_downgrade_button_text?: string | null;
|
|
39
40
|
prevent_self_service_downgrade_url?: string | null;
|
|
41
|
+
scheduled_downgrade?: ScheduledDowngradeResponseData.Raw | null;
|
|
40
42
|
show_as_monthly_prices: boolean;
|
|
41
43
|
show_credits: boolean;
|
|
42
44
|
show_period_toggle: boolean;
|
|
@@ -6,6 +6,8 @@ export declare namespace ComponentSettingsResponseData {
|
|
|
6
6
|
interface Raw {
|
|
7
7
|
show_as_monthly_prices: boolean;
|
|
8
8
|
show_credits: boolean;
|
|
9
|
+
show_feature_description: boolean;
|
|
10
|
+
show_hard_limit: boolean;
|
|
9
11
|
show_period_toggle: boolean;
|
|
10
12
|
show_zero_price_as_free: boolean;
|
|
11
13
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const ConditionConditionType: core.serialization.Schema<serializers.ConditionConditionType.Raw, Schematic.ConditionConditionType>;
|
|
5
5
|
export declare namespace ConditionConditionType {
|
|
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,16 @@
|
|
|
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 ConditionGroupResponseData: core.serialization.ObjectSchema<serializers.ConditionGroupResponseData.Raw, Schematic.ConditionGroupResponseData>;
|
|
5
|
+
export declare namespace ConditionGroupResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
account_id: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
environment_id: string;
|
|
10
|
+
flag_id?: string | null;
|
|
11
|
+
id: string;
|
|
12
|
+
plan_version_id?: string | null;
|
|
13
|
+
rule_id: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -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 { ConditionView } from "./ConditionView";
|
|
5
|
+
export declare const ConditionGroupView: core.serialization.ObjectSchema<serializers.ConditionGroupView.Raw, Schematic.ConditionGroupView>;
|
|
6
|
+
export declare namespace ConditionGroupView {
|
|
7
|
+
interface Raw {
|
|
8
|
+
account_id: string;
|
|
9
|
+
conditions: ConditionView.Raw[];
|
|
10
|
+
created_at: string;
|
|
11
|
+
environment_id: string;
|
|
12
|
+
flag_id?: string | null;
|
|
13
|
+
id: string;
|
|
14
|
+
plan_version_id?: string | null;
|
|
15
|
+
rule_id: string;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { EntityType } from "./EntityType";
|
|
5
|
+
export declare const ConditionResponseData: core.serialization.ObjectSchema<serializers.ConditionResponseData.Raw, Schematic.ConditionResponseData>;
|
|
6
|
+
export declare namespace ConditionResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
account_id: string;
|
|
9
|
+
comparison_trait_id?: string | null;
|
|
10
|
+
condition_group_id?: string | null;
|
|
11
|
+
condition_type: string;
|
|
12
|
+
consumption_rate?: number | null;
|
|
13
|
+
created_at: string;
|
|
14
|
+
credit_id?: string | null;
|
|
15
|
+
environment_id: string;
|
|
16
|
+
event_subtype?: string | null;
|
|
17
|
+
flag_id?: string | null;
|
|
18
|
+
id: string;
|
|
19
|
+
metric_period?: string | null;
|
|
20
|
+
metric_period_month_reset?: string | null;
|
|
21
|
+
metric_value?: number | null;
|
|
22
|
+
operator: string;
|
|
23
|
+
plan_version_id?: string | null;
|
|
24
|
+
resource_unspecified_ids: string[];
|
|
25
|
+
rule_id: string;
|
|
26
|
+
trait_entity_type?: EntityType.Raw | null;
|
|
27
|
+
trait_id?: string | null;
|
|
28
|
+
trait_value: string;
|
|
29
|
+
trait_value_bool: boolean;
|
|
30
|
+
trait_value_date?: string | null;
|
|
31
|
+
trait_value_int: number;
|
|
32
|
+
updated_at: string;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
|
|
5
|
+
import { EntityType } from "./EntityType";
|
|
6
|
+
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
7
|
+
export declare const ConditionView: core.serialization.ObjectSchema<serializers.ConditionView.Raw, Schematic.ConditionView>;
|
|
8
|
+
export declare namespace ConditionView {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
billing_products: GenericPreviewObject.Raw[];
|
|
12
|
+
companies: GenericPreviewObject.Raw[];
|
|
13
|
+
comparison_trait?: EntityTraitDefinitionResponseData.Raw | null;
|
|
14
|
+
comparison_trait_id?: string | null;
|
|
15
|
+
condition_group_id?: string | null;
|
|
16
|
+
condition_type: string;
|
|
17
|
+
consumption_rate?: number | null;
|
|
18
|
+
created_at: string;
|
|
19
|
+
credit_id?: string | null;
|
|
20
|
+
environment_id: string;
|
|
21
|
+
event_subtype?: string | null;
|
|
22
|
+
flag_id?: string | null;
|
|
23
|
+
id: string;
|
|
24
|
+
metric_period?: string | null;
|
|
25
|
+
metric_period_month_reset?: string | null;
|
|
26
|
+
metric_value?: number | null;
|
|
27
|
+
operator: string;
|
|
28
|
+
plan_version_id?: string | null;
|
|
29
|
+
plan_versions: GenericPreviewObject.Raw[];
|
|
30
|
+
plans: GenericPreviewObject.Raw[];
|
|
31
|
+
resource_unspecified_ids: string[];
|
|
32
|
+
rule_id: string;
|
|
33
|
+
trait?: EntityTraitDefinitionResponseData.Raw | null;
|
|
34
|
+
trait_entity_type?: EntityType.Raw | null;
|
|
35
|
+
trait_id?: string | null;
|
|
36
|
+
trait_value: string;
|
|
37
|
+
trait_value_bool: boolean;
|
|
38
|
+
trait_value_date?: string | null;
|
|
39
|
+
trait_value_int: number;
|
|
40
|
+
updated_at: string;
|
|
41
|
+
users: GenericPreviewObject.Raw[];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type * as Schematic from "
|
|
2
|
-
import * as core from "
|
|
3
|
-
import type * as serializers from "
|
|
4
|
-
import { BillingCreditExpiryType } from "
|
|
5
|
-
import { BillingCreditExpiryUnit } from "
|
|
6
|
-
import { BillingPlanCreditGrantResetCadence } from "
|
|
7
|
-
import { BillingPlanCreditGrantResetStart } from "
|
|
8
|
-
import { BillingPlanCreditGrantResetType } from "
|
|
9
|
-
import { CreditAutoTopupAmountType } from "
|
|
10
|
-
export declare const CreateBillingPlanCreditGrantRequestBody: core.serialization.
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
5
|
+
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
6
|
+
import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
|
|
7
|
+
import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
|
|
8
|
+
import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
|
|
9
|
+
import { CreditAutoTopupAmountType } from "./CreditAutoTopupAmountType";
|
|
10
|
+
export declare const CreateBillingPlanCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.CreateBillingPlanCreditGrantRequestBody.Raw, Schematic.CreateBillingPlanCreditGrantRequestBody>;
|
|
11
11
|
export declare namespace CreateBillingPlanCreditGrantRequestBody {
|
|
12
12
|
interface Raw {
|
|
13
13
|
apply_to_existing?: boolean | null;
|
|
@@ -24,6 +24,7 @@ export declare namespace CreateBillingPlanCreditGrantRequestBody {
|
|
|
24
24
|
expiry_unit?: BillingCreditExpiryUnit.Raw | null;
|
|
25
25
|
expiry_unit_count?: number | null;
|
|
26
26
|
plan_id: string;
|
|
27
|
+
plan_version_id?: string | null;
|
|
27
28
|
reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
|
|
28
29
|
reset_start: BillingPlanCreditGrantResetStart.Raw;
|
|
29
30
|
reset_type?: BillingPlanCreditGrantResetType.Raw | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingTiersMode } from "./BillingTiersMode";
|
|
5
|
+
import { CreateEntitlementInBundleRequestBodyMetricPeriod } from "./CreateEntitlementInBundleRequestBodyMetricPeriod";
|
|
6
|
+
import { CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset } from "./CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset";
|
|
7
|
+
import { CreatePriceTierRequestBody } from "./CreatePriceTierRequestBody";
|
|
8
|
+
import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
|
|
9
|
+
import { EntitlementValueType } from "./EntitlementValueType";
|
|
10
|
+
export declare const CreateEntitlementInBundleRequestBody: core.serialization.ObjectSchema<serializers.CreateEntitlementInBundleRequestBody.Raw, Schematic.CreateEntitlementInBundleRequestBody>;
|
|
11
|
+
export declare namespace CreateEntitlementInBundleRequestBody {
|
|
12
|
+
interface Raw {
|
|
13
|
+
billing_product_id?: string | null;
|
|
14
|
+
billing_threshold?: number | null;
|
|
15
|
+
credit_consumption_rate?: number | null;
|
|
16
|
+
currency?: string | null;
|
|
17
|
+
feature_id: string;
|
|
18
|
+
metric_period?: CreateEntitlementInBundleRequestBodyMetricPeriod.Raw | null;
|
|
19
|
+
metric_period_month_reset?: CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.Raw | null;
|
|
20
|
+
monthly_metered_price_id?: string | null;
|
|
21
|
+
monthly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
|
|
22
|
+
monthly_unit_price?: number | null;
|
|
23
|
+
monthly_unit_price_decimal?: string | null;
|
|
24
|
+
overage_billing_product_id?: string | null;
|
|
25
|
+
plan_id: string;
|
|
26
|
+
plan_version_id?: string | null;
|
|
27
|
+
price_behavior?: EntitlementPriceBehavior.Raw | null;
|
|
28
|
+
price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
|
|
29
|
+
soft_limit?: number | null;
|
|
30
|
+
tier_mode?: BillingTiersMode.Raw | null;
|
|
31
|
+
value_bool?: boolean | null;
|
|
32
|
+
value_credit_id?: string | null;
|
|
33
|
+
value_numeric?: number | null;
|
|
34
|
+
value_trait_id?: string | null;
|
|
35
|
+
value_type: EntitlementValueType.Raw;
|
|
36
|
+
yearly_metered_price_id?: string | null;
|
|
37
|
+
yearly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
|
|
38
|
+
yearly_unit_price?: number | null;
|
|
39
|
+
yearly_unit_price_decimal?: string | null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -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 CreateEntitlementInBundleRequestBodyMetricPeriod: core.serialization.Schema<serializers.CreateEntitlementInBundleRequestBodyMetricPeriod.Raw, Schematic.CreateEntitlementInBundleRequestBodyMetricPeriod>;
|
|
5
|
+
export declare namespace CreateEntitlementInBundleRequestBodyMetricPeriod {
|
|
6
|
+
type Raw = "all_time" | "current_month" | "current_week" | "current_day";
|
|
7
|
+
}
|
package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts
ADDED
|
@@ -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 CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset: core.serialization.Schema<serializers.CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.Raw, Schematic.CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset>;
|
|
5
|
+
export declare namespace CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset {
|
|
6
|
+
type Raw = "first_of_month" | "billing_cycle";
|
|
7
|
+
}
|
|
@@ -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 { PlanType } from "./PlanType";
|
|
5
|
+
export declare const CreatePlanRequestBody: core.serialization.ObjectSchema<serializers.CreatePlanRequestBody.Raw, Schematic.CreatePlanRequestBody>;
|
|
6
|
+
export declare namespace CreatePlanRequestBody {
|
|
7
|
+
interface Raw {
|
|
8
|
+
description: string;
|
|
9
|
+
icon?: string | null;
|
|
10
|
+
name: string;
|
|
11
|
+
plan_type: PlanType.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -5,6 +5,7 @@ import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
|
5
5
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
6
6
|
import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
|
|
7
7
|
import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOutReason";
|
|
8
|
+
import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
|
|
8
9
|
import { BillingProductPriceResponseData } from "./BillingProductPriceResponseData";
|
|
9
10
|
import { CreditTransferView } from "./CreditTransferView";
|
|
10
11
|
export declare const CreditCompanyGrantView: core.serialization.ObjectSchema<serializers.CreditCompanyGrantView.Raw, Schematic.CreditCompanyGrantView>;
|
|
@@ -32,6 +33,8 @@ export declare namespace CreditCompanyGrantView {
|
|
|
32
33
|
quantity: number;
|
|
33
34
|
quantity_remaining: number;
|
|
34
35
|
quantity_used: number;
|
|
36
|
+
renewal_enabled: boolean;
|
|
37
|
+
renewal_period?: BillingPlanCreditGrantResetCadence.Raw | null;
|
|
35
38
|
singular_name?: string | null;
|
|
36
39
|
source_label: string;
|
|
37
40
|
transfers?: CreditTransferView.Raw[] | null;
|
|
@@ -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 { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
5
|
+
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
6
|
+
import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
|
|
7
|
+
import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOutReason";
|
|
8
|
+
import { BillingCreditLedgerResponseData } from "./BillingCreditLedgerResponseData";
|
|
9
|
+
import { CompanyLedgerResponseData } from "./CompanyLedgerResponseData";
|
|
10
|
+
import { CreditEventType } from "./CreditEventType";
|
|
11
|
+
import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
|
|
12
|
+
export declare const CreditEventLedgerResponseData: core.serialization.ObjectSchema<serializers.CreditEventLedgerResponseData.Raw, Schematic.CreditEventLedgerResponseData>;
|
|
13
|
+
export declare namespace CreditEventLedgerResponseData {
|
|
14
|
+
interface Raw {
|
|
15
|
+
amount: number;
|
|
16
|
+
auto_topup_log_id?: string | null;
|
|
17
|
+
billing_credit_bundle_id?: string | null;
|
|
18
|
+
billing_credit_id: string;
|
|
19
|
+
company?: CompanyLedgerResponseData.Raw | null;
|
|
20
|
+
company_id: string;
|
|
21
|
+
credit?: BillingCreditLedgerResponseData.Raw | null;
|
|
22
|
+
credit_name: string;
|
|
23
|
+
environment_id: string;
|
|
24
|
+
event_at: string;
|
|
25
|
+
event_id: string;
|
|
26
|
+
event_type: CreditEventType.Raw;
|
|
27
|
+
expiry_type?: BillingCreditExpiryType.Raw | null;
|
|
28
|
+
expiry_unit?: BillingCreditExpiryUnit.Raw | null;
|
|
29
|
+
expiry_unit_count?: number | null;
|
|
30
|
+
feature?: FeatureLedgerResponseData.Raw | null;
|
|
31
|
+
feature_id?: string | null;
|
|
32
|
+
from_grant_id?: string | null;
|
|
33
|
+
grant_expires_at?: string | null;
|
|
34
|
+
grant_id?: string | null;
|
|
35
|
+
grant_quantity?: number | null;
|
|
36
|
+
grant_quantity_remaining?: number | null;
|
|
37
|
+
grant_reason?: BillingCreditGrantReason.Raw | null;
|
|
38
|
+
grant_valid_from?: string | null;
|
|
39
|
+
plan_id?: string | null;
|
|
40
|
+
quantity_consumed?: number | null;
|
|
41
|
+
quantity_remaining_at_zero_out?: number | null;
|
|
42
|
+
source_id: number;
|
|
43
|
+
to_grant_id?: string | null;
|
|
44
|
+
usage_event_id?: string | null;
|
|
45
|
+
zeroed_out_reason?: BillingCreditGrantZeroedOutReason.Raw | null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -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 CreditEventType: core.serialization.Schema<serializers.CreditEventType.Raw, Schematic.CreditEventType>;
|
|
5
|
+
export declare namespace CreditEventType {
|
|
6
|
+
type Raw = "grant" | "transfer" | "usage" | "zero_out";
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 CreditsAutoTopupCompanySummary: core.serialization.ObjectSchema<serializers.CreditsAutoTopupCompanySummary.Raw, Schematic.CreditsAutoTopupCompanySummary>;
|
|
5
|
+
export declare namespace CreditsAutoTopupCompanySummary {
|
|
6
|
+
interface Raw {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 CreditsAutoTopupCreditSummary: core.serialization.ObjectSchema<serializers.CreditsAutoTopupCreditSummary.Raw, Schematic.CreditsAutoTopupCreditSummary>;
|
|
5
|
+
export declare namespace CreditsAutoTopupCreditSummary {
|
|
6
|
+
interface Raw {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -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 { CreditsAutoTopupCompanySummary } from "./CreditsAutoTopupCompanySummary";
|
|
5
|
+
import { CreditsAutoTopupCreditSummary } from "./CreditsAutoTopupCreditSummary";
|
|
6
|
+
export declare const CreditsAutoTopupHardFailure: core.serialization.ObjectSchema<serializers.CreditsAutoTopupHardFailure.Raw, Schematic.CreditsAutoTopupHardFailure>;
|
|
7
|
+
export declare namespace CreditsAutoTopupHardFailure {
|
|
8
|
+
interface Raw {
|
|
9
|
+
company?: CreditsAutoTopupCompanySummary.Raw | null;
|
|
10
|
+
credit?: CreditsAutoTopupCreditSummary.Raw | null;
|
|
11
|
+
error_message?: string | null;
|
|
12
|
+
stripe_error_code?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CreditsAutoTopupCompanySummary } from "./CreditsAutoTopupCompanySummary";
|
|
5
|
+
import { CreditsAutoTopupCreditSummary } from "./CreditsAutoTopupCreditSummary";
|
|
6
|
+
export declare const CreditsAutoTopupRetryFailure: core.serialization.ObjectSchema<serializers.CreditsAutoTopupRetryFailure.Raw, Schematic.CreditsAutoTopupRetryFailure>;
|
|
7
|
+
export declare namespace CreditsAutoTopupRetryFailure {
|
|
8
|
+
interface Raw {
|
|
9
|
+
company?: CreditsAutoTopupCompanySummary.Raw | null;
|
|
10
|
+
consecutive_failures: number;
|
|
11
|
+
credit?: CreditsAutoTopupCreditSummary.Raw | null;
|
|
12
|
+
last_error_message?: string | null;
|
|
13
|
+
stripe_error_code?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 DeleteBillingPlanCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.DeleteBillingPlanCreditGrantRequestBody.Raw, Schematic.DeleteBillingPlanCreditGrantRequestBody>;
|
|
5
|
+
export declare namespace DeleteBillingPlanCreditGrantRequestBody {
|
|
6
|
+
interface Raw {
|
|
7
|
+
apply_to_existing?: boolean | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -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 { EntitlementValueType } from "./EntitlementValueType";
|
|
5
|
+
import { FeatureEntitlementMetricPeriod } from "./FeatureEntitlementMetricPeriod";
|
|
6
|
+
import { FeatureEntitlementMonthReset } from "./FeatureEntitlementMonthReset";
|
|
7
|
+
export declare const FeatureEntitlement: core.serialization.ObjectSchema<serializers.FeatureEntitlement.Raw, Schematic.FeatureEntitlement>;
|
|
8
|
+
export declare namespace FeatureEntitlement {
|
|
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?: FeatureEntitlementMetricPeriod.Raw | null;
|
|
19
|
+
metric_reset_at?: string | null;
|
|
20
|
+
month_reset?: FeatureEntitlementMonthReset.Raw | null;
|
|
21
|
+
soft_limit?: number | null;
|
|
22
|
+
usage?: number | null;
|
|
23
|
+
value_type: EntitlementValueType.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 FeatureEntitlementMetricPeriod: core.serialization.Schema<serializers.FeatureEntitlementMetricPeriod.Raw, Schematic.FeatureEntitlementMetricPeriod>;
|
|
5
|
+
export declare namespace FeatureEntitlementMetricPeriod {
|
|
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 FeatureEntitlementMonthReset: core.serialization.Schema<serializers.FeatureEntitlementMonthReset.Raw, Schematic.FeatureEntitlementMonthReset>;
|
|
5
|
+
export declare namespace FeatureEntitlementMonthReset {
|
|
6
|
+
type Raw = "first_of_month" | "billing_cycle";
|
|
7
|
+
}
|
|
@@ -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 { CreditUsage } from "./CreditUsage";
|
|
5
|
+
import { FeatureView } from "./FeatureView";
|
|
6
|
+
export declare const FeatureUsageLegacyResponseData: core.serialization.ObjectSchema<serializers.FeatureUsageLegacyResponseData.Raw, Schematic.FeatureUsageLegacyResponseData>;
|
|
7
|
+
export declare namespace FeatureUsageLegacyResponseData {
|
|
8
|
+
interface Raw {
|
|
9
|
+
Allocation?: number | null;
|
|
10
|
+
CreditUsage?: CreditUsage.Raw | null;
|
|
11
|
+
Entitlement: string;
|
|
12
|
+
Feature?: FeatureView.Raw | null;
|
|
13
|
+
MetricResetAt?: string | null;
|
|
14
|
+
Usage?: number | null;
|
|
15
|
+
}
|
|
16
|
+
}
|