@schematichq/schematic-typescript-node 1.4.6 → 1.4.8
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 +118 -2
- package/dist/BaseClient.d.ts +3 -0
- package/dist/Client.d.ts +5 -20
- package/dist/api/resources/accounts/client/Client.d.ts +22 -0
- package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +18 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
- package/dist/api/resources/accounts/types/CountAccountMembersResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +2 -0
- package/dist/api/resources/billing/client/Client.d.ts +31 -6
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +5 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +2 -1
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +5 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +2 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/dist/api/resources/billing/types/DeletePaymentMethodByExternalIdResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/dist/api/resources/billing/types/index.d.ts +1 -0
- package/dist/api/resources/checkout/client/Client.d.ts +22 -0
- package/dist/api/resources/companies/client/Client.d.ts +27 -53
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +8 -0
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +8 -0
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +2 -0
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +1 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +0 -2
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/index.d.ts +0 -3
- package/dist/api/resources/credits/client/Client.d.ts +84 -0
- package/dist/api/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +14 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +4 -0
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +10 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +4 -0
- package/dist/api/resources/credits/client/requests/ListCompanyCreditBalancesRequest.d.ts +9 -0
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +3 -0
- package/dist/api/resources/credits/types/AcquireCreditLeaseResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/ExtendCreditLeaseResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/ListCompanyCreditBalancesParams.d.ts +6 -0
- package/dist/api/resources/credits/types/ListCompanyCreditBalancesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ReleaseCreditLeaseResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +5 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +19 -1
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +3 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +9 -3
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +8 -2
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +3 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +4 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +8 -2
- package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +3 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +3 -0
- package/dist/api/resources/entitlements/types/index.d.ts +0 -10
- package/dist/api/resources/events/client/Client.d.ts +3 -0
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +1 -0
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +3 -0
- package/dist/api/resources/events/types/ListEventsParams.d.ts +1 -0
- package/dist/api/resources/features/client/Client.d.ts +11 -3
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +5 -0
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +1 -0
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -2
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +5 -0
- package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +1 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +2 -2
- 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 +4 -0
- package/dist/api/resources/insights/client/Client.d.ts +114 -0
- package/dist/api/resources/insights/client/index.d.ts +1 -0
- package/dist/api/resources/insights/client/requests/GetActivityRequest.d.ts +9 -0
- package/dist/api/resources/insights/client/requests/GetEnvironmentFeatureUsageTimeSeriesRequest.d.ts +16 -0
- package/dist/api/resources/insights/client/requests/GetEnvironmentTraitUsageTimeSeriesRequest.d.ts +16 -0
- package/dist/api/resources/insights/client/requests/GetPlanGrowthRequest.d.ts +9 -0
- package/dist/api/resources/insights/client/requests/GetTopFeaturesByUsageRequest.d.ts +13 -0
- package/dist/api/resources/insights/client/requests/index.d.ts +5 -0
- package/dist/api/resources/insights/exports.d.ts +2 -0
- package/dist/api/resources/insights/index.d.ts +2 -0
- package/dist/api/resources/insights/types/GetActivityParams.d.ts +6 -0
- package/dist/api/resources/insights/types/GetActivityResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesParams.d.ts +10 -0
- package/dist/api/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesParams.d.ts +10 -0
- package/dist/api/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/GetPlanGrowthParams.d.ts +6 -0
- package/dist/api/resources/insights/types/GetPlanGrowthResponse.d.ts +6 -0
- package/dist/api/resources/{companies/types/UpdatePlanTraitResponse.d.ts → insights/types/GetSummaryResponse.d.ts} +2 -2
- package/dist/api/resources/insights/types/GetTopFeaturesByUsageParams.d.ts +8 -0
- package/dist/api/resources/insights/types/GetTopFeaturesByUsageResponse.d.ts +6 -0
- package/dist/api/resources/insights/types/index.d.ts +11 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +133 -0
- package/dist/api/resources/integrationsapi/client/index.d.ts +1 -1
- package/dist/api/resources/integrationsapi/client/requests/ListIntegrationsRequest.d.ts +24 -0
- package/dist/api/resources/integrationsapi/client/requests/StartDataImportRequestBody.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/InstallStripeResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/ListIntegrationsParams.d.ts +15 -0
- package/dist/api/resources/integrationsapi/types/ListIntegrationsResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/LoadSampleDataSetResponse.d.ts +6 -0
- package/dist/api/resources/{companies/types/CreatePlanTraitResponse.d.ts → integrationsapi/types/RunIntegrationResponse.d.ts} +2 -2
- package/dist/api/resources/integrationsapi/types/StartDataImportResponse.d.ts +6 -0
- package/dist/api/resources/{companies/types/DeletePlanTraitResponse.d.ts → integrationsapi/types/UninstallIntegrationResponse.d.ts} +1 -1
- package/dist/api/resources/integrationsapi/types/index.d.ts +9 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +19 -0
- package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +14 -0
- package/dist/api/resources/planbundle/client/requests/index.d.ts +1 -0
- package/dist/api/resources/planbundle/types/CreateCustomPlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/index.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +56 -0
- package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +22 -0
- package/dist/api/resources/planmigrations/client/requests/RetryMigrationRequestBody.d.ts +10 -0
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +2 -0
- package/dist/api/resources/planmigrations/types/CreateMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/RetryCompanyMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/RetryMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +3 -0
- package/dist/api/resources/plans/client/Client.d.ts +71 -1
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +2 -1
- package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +26 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +17 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +6 -0
- package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +18 -0
- package/dist/api/resources/plans/types/ListCustomPlanBillingsResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +6 -0
- package/dist/api/resources/plans/types/MarkCustomPlanBillingPaidResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/RetryCustomPlanBillingResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +4 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +2 -0
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -0
- package/dist/api/types/AccountMemberResponseData.d.ts +2 -0
- package/dist/api/types/ActivityEntryResponseData.d.ts +8 -0
- package/dist/api/types/ActivityResponseResponseData.d.ts +4 -0
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +2 -0
- package/dist/api/types/ApiKeyIntegrationResponseData.d.ts +6 -0
- package/dist/api/types/ApiKeyResponseData.d.ts +2 -0
- package/dist/api/types/AuditLogListResponseData.d.ts +2 -0
- package/dist/api/types/AuditLogResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditBundleView.d.ts +1 -1
- package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +4 -0
- package/dist/api/types/BillingCreditLedgerAuthority.d.ts +6 -0
- package/dist/api/types/BillingCreditView.d.ts +2 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +2 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingProviderType.d.ts +1 -0
- package/dist/api/types/BillingStrategy.d.ts +6 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/dist/api/types/ChargeType.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -2
- package/dist/api/types/CheckoutDataResponseData.d.ts +1 -0
- package/dist/api/types/CheckoutFieldInput.d.ts +8 -0
- package/dist/api/types/CheckoutFieldResponseData.d.ts +12 -0
- package/dist/api/types/CheckoutFieldValue.d.ts +4 -0
- package/dist/api/types/CheckoutFieldWithValue.d.ts +9 -0
- package/dist/api/types/CheckoutSubscription.d.ts +1 -0
- package/dist/api/types/ClerkIntegrationConfig.d.ts +6 -0
- package/dist/api/types/CompanyCreditBalanceResponseData.d.ts +9 -0
- package/dist/api/types/CompanyEventPeriodMetricsResponseData.d.ts +3 -2
- package/dist/api/types/CompanyMatchingCriteria.d.ts +5 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -2
- package/dist/api/types/CompanyPlanCreditGrantView.d.ts +41 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +7 -3
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -1
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -0
- package/dist/api/types/{ConditionOperator.d.ts → ComparableOperator.d.ts} +5 -5
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/Condition.d.ts +4 -4
- package/dist/api/types/ConditionResponseData.d.ts +4 -4
- package/dist/api/types/{ConditionConditionType.d.ts → ConditionType.d.ts} +2 -2
- package/dist/api/types/ConditionView.d.ts +4 -4
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +8 -2
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -2
- package/dist/api/types/CreateEventRequestBody.d.ts +6 -0
- package/dist/api/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +4 -4
- package/dist/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateRuleRequestBody.d.ts +1 -1
- package/dist/api/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/api/types/CreditCurrencyPrice.d.ts +5 -0
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +1 -0
- package/dist/api/types/CreditLeaseResponseData.d.ts +10 -0
- package/dist/api/types/CreditUsageReason.d.ts +8 -0
- package/dist/api/types/CurrencyPriceRequestBody.d.ts +3 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/api/types/CustomPlanBillingStatus.d.ts +1 -0
- package/dist/api/types/DataEventPayload.d.ts +3 -0
- package/dist/api/types/DuplicatePlanEntitlementsResponseResponseData.d.ts +1 -0
- package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -0
- package/dist/api/types/EnvironmentFeatureUsageTimeSeriesResponseData.d.ts +6 -0
- package/dist/api/types/EnvironmentTraitUsageTimeSeriesResponseData.d.ts +6 -0
- package/dist/api/types/EnvironmentUsagePointResponseData.d.ts +4 -0
- package/dist/api/types/EventBodyTrack.d.ts +2 -0
- package/dist/api/types/EventDetailResponseData.d.ts +3 -0
- package/dist/api/types/EventResponseData.d.ts +2 -0
- package/dist/api/types/FeatureCompanyResponseData.d.ts +4 -3
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -2
- package/dist/api/types/FeatureDetailResponseData.d.ts +2 -1
- package/dist/api/types/FeatureEntitlement.d.ts +2 -2
- package/dist/api/types/FeatureInPlanResponseData.d.ts +21 -0
- package/dist/api/types/FeatureResponseData.d.ts +1 -1
- package/dist/api/types/FeatureUsageResponseData.d.ts +4 -3
- package/dist/api/types/FeatureView.d.ts +1 -1
- package/dist/api/types/FlagDetailResponseData.d.ts +2 -1
- package/dist/api/types/FlagInPlanResponseData.d.ts +16 -0
- package/dist/api/types/FlagResponseData.d.ts +1 -1
- package/dist/api/types/FlagView.d.ts +0 -1
- package/dist/api/types/InsightsSummaryResponseData.d.ts +9 -0
- package/dist/api/types/InstallIntegrationRequestBody.d.ts +9 -0
- package/dist/api/types/IntegrationCapabilities.d.ts +5 -0
- package/dist/api/types/IntegrationConfig.d.ts +19 -0
- package/dist/api/types/IntegrationInstallConfig.d.ts +13 -0
- package/dist/api/types/IntegrationInstallResponseData.d.ts +6 -0
- package/dist/api/types/IntegrationResponseData.d.ts +8 -0
- package/dist/api/types/IntegrationState.d.ts +6 -0
- package/dist/api/types/IntegrationType.d.ts +2 -0
- package/dist/api/types/IntegrationsDataSetResponseData.d.ts +3 -0
- package/dist/api/types/IntegrationsListResponseData.d.ts +10 -0
- package/dist/api/types/IntegrationsResponseData.d.ts +8 -0
- package/dist/api/types/ManagePlanRequest.d.ts +1 -0
- package/dist/api/types/MarkCustomPlanBillingPaidRequestBody.d.ts +1 -0
- package/dist/api/types/{ConditionMetricPeriod.d.ts → MetricPeriod.d.ts} +2 -2
- package/dist/api/types/MetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/MetronomeIntegrationConfig.d.ts +1 -0
- package/dist/api/types/MigrationErrorCode.d.ts +15 -0
- package/dist/api/types/MrrResponseData.d.ts +4 -0
- package/dist/api/types/OrbIntegrationConfig.d.ts +4 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +1 -0
- package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +6 -2
- package/dist/api/types/PlanEntitlementResponseData.d.ts +5 -2
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +7 -3
- package/dist/api/types/PlanGrowthPointResponseData.d.ts +6 -0
- package/dist/api/types/PlanGrowthResponseData.d.ts +4 -0
- package/dist/api/types/PlanPriceCadence.d.ts +6 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -3
- package/dist/api/types/ReleaseCreditLeaseRequestBody.d.ts +1 -0
- package/dist/api/types/Rule.d.ts +1 -1
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +4 -4
- package/dist/api/types/RuleConditionResponseData.d.ts +4 -4
- package/dist/api/types/RuleDetailResponseData.d.ts +1 -1
- package/dist/api/types/RuleResponseData.d.ts +2 -1
- package/dist/api/types/{RuleRuleType.d.ts → RuleType.d.ts} +4 -4
- package/dist/api/types/RuleView.d.ts +1 -1
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCheckFlagResult.d.ts +2 -2
- package/dist/api/types/RulesengineCompanyMetric.d.ts +2 -2
- package/dist/api/types/RulesengineCondition.d.ts +4 -4
- package/dist/api/types/{RulesengineConditionConditionType.d.ts → RulesengineConditionType.d.ts} +2 -2
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -2
- package/dist/api/types/RulesengineMetricPeriod.d.ts +7 -0
- package/dist/api/types/RulesengineMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/RulesengineRule.d.ts +1 -1
- package/dist/api/types/{RulesengineRuleRuleType.d.ts → RulesengineRuleType.d.ts} +4 -4
- package/dist/api/types/StripeIntegrationConfig.d.ts +14 -0
- package/dist/api/types/TopFeatureByUsageResponseData.d.ts +8 -0
- package/dist/api/types/TopFeaturesByUsageResponseData.d.ts +4 -0
- package/dist/api/types/UpdateAutoTopupOverrideRequestBody.d.ts +6 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -2
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +3 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +5 -2
- package/dist/api/types/WorkOsIntegrationConfig.d.ts +6 -0
- package/dist/api/types/index.d.ts +56 -29
- package/dist/core/auth/AuthProvider.d.ts +1 -0
- package/dist/core/auth/BasicAuth.d.ts +2 -2
- package/dist/core/auth/index.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +8 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -1
- package/dist/core/url/QueryStringBuilder.d.ts +47 -0
- package/dist/core/url/index.d.ts +1 -0
- package/dist/core/url/qs.d.ts +2 -1
- package/dist/datastream/merge.d.ts +13 -10
- package/dist/datastream/websocket-client.d.ts +1 -1
- package/dist/errors/SchematicError.d.ts +3 -1
- package/dist/errors/SchematicTimeoutError.d.ts +4 -1
- package/dist/event-capture.d.ts +28 -0
- package/dist/events.d.ts +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/logger.d.ts +20 -0
- package/dist/rules-engine.d.ts +3 -3
- package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/CountAccountMembersResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/DeletePaymentMethodByExternalIdResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/index.d.ts +1 -0
- package/dist/serialization/resources/companies/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/index.d.ts +0 -3
- package/dist/serialization/resources/credits/client/requests/AcquireCreditLeaseRequestBody.d.ts +12 -0
- package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +10 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/credits/types/AcquireCreditLeaseResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ExtendCreditLeaseResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ListCompanyCreditBalancesParams.d.ts +9 -0
- package/dist/serialization/resources/credits/types/ListCompanyCreditBalancesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/ReleaseCreditLeaseResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +5 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +9 -4
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -4
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +9 -4
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -4
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +9 -4
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +0 -10
- package/dist/serialization/resources/events/types/ListEventsParams.d.ts +1 -0
- package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +1 -1
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/index.d.ts +4 -0
- package/dist/serialization/resources/insights/index.d.ts +1 -0
- package/dist/serialization/resources/insights/types/GetActivityParams.d.ts +9 -0
- package/dist/serialization/resources/insights/types/GetActivityResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesParams.d.ts +13 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentFeatureUsageTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesParams.d.ts +13 -0
- package/dist/serialization/resources/insights/types/GetEnvironmentTraitUsageTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetPlanGrowthParams.d.ts +9 -0
- package/dist/serialization/resources/insights/types/GetPlanGrowthResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/GetSummaryResponse.d.ts +11 -0
- package/dist/serialization/resources/insights/types/GetTopFeaturesByUsageParams.d.ts +11 -0
- package/dist/serialization/resources/insights/types/GetTopFeaturesByUsageResponse.d.ts +12 -0
- package/dist/serialization/resources/insights/types/index.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/client/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/client/requests/StartDataImportRequestBody.d.ts +12 -0
- package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/InstallStripeResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/ListIntegrationsParams.d.ts +17 -0
- package/dist/serialization/resources/integrationsapi/types/ListIntegrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/integrationsapi/types/LoadSampleDataSetResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/RunIntegrationResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/StartDataImportResponse.d.ts +11 -0
- package/dist/serialization/resources/{companies/types/DeletePlanTraitResponse.d.ts → integrationsapi/types/UninstallIntegrationResponse.d.ts} +2 -2
- package/dist/serialization/resources/integrationsapi/types/index.d.ts +9 -0
- package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +14 -0
- package/dist/serialization/resources/planbundle/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/planbundle/types/CreateCustomPlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/index.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/planmigrations/client/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +17 -0
- package/dist/serialization/resources/planmigrations/client/requests/RetryMigrationRequestBody.d.ts +10 -0
- package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/planmigrations/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CreateMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/RetryCompanyMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/RetryMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +3 -0
- package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +3 -0
- package/dist/serialization/resources/plans/types/ListCustomPlanBillingsParams.d.ts +15 -0
- package/dist/serialization/resources/plans/types/ListCustomPlanBillingsResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +3 -0
- package/dist/serialization/resources/plans/types/MarkCustomPlanBillingPaidResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/RetryCustomPlanBillingResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +4 -0
- package/dist/serialization/types/AccountMemberResponseData.d.ts +2 -0
- package/dist/serialization/types/ActivityEntryResponseData.d.ts +14 -0
- package/dist/serialization/types/ActivityResponseResponseData.d.ts +10 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +4 -0
- package/dist/serialization/types/ApiKeyIntegrationResponseData.d.ts +13 -0
- package/dist/serialization/types/ApiKeyResponseData.d.ts +4 -0
- package/dist/serialization/types/AuditLogListResponseData.d.ts +4 -0
- package/dist/serialization/types/AuditLogResponseData.d.ts +4 -0
- package/dist/serialization/types/BillingCreditBundleView.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditLedgerAuthority.d.ts +7 -0
- package/dist/serialization/types/BillingCreditView.d.ts +4 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceView.d.ts +2 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProviderType.d.ts +1 -1
- package/dist/serialization/types/BillingStrategy.d.ts +7 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +4 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +4 -0
- package/dist/serialization/types/ChargeType.d.ts +1 -1
- package/dist/serialization/types/CheckFlagResponseData.d.ts +4 -2
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/serialization/types/CheckoutFieldInput.d.ts +14 -0
- package/dist/serialization/types/CheckoutFieldResponseData.d.ts +18 -0
- package/dist/serialization/types/CheckoutFieldValue.d.ts +10 -0
- package/dist/serialization/types/CheckoutFieldWithValue.d.ts +15 -0
- package/dist/serialization/types/CheckoutSubscription.d.ts +1 -0
- package/dist/serialization/types/ClerkIntegrationConfig.d.ts +10 -0
- package/dist/serialization/types/CompanyCreditBalanceResponseData.d.ts +15 -0
- package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.d.ts +4 -2
- package/dist/serialization/types/CompanyMatchingCriteria.d.ts +7 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +4 -2
- package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +48 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +10 -4
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/serialization/types/ComparableOperator.d.ts +7 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/Condition.d.ts +8 -8
- package/dist/serialization/types/ConditionResponseData.d.ts +8 -4
- package/dist/serialization/types/{ConditionConditionType.d.ts → ConditionType.d.ts} +2 -2
- package/dist/serialization/types/ConditionView.d.ts +8 -4
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreateCustomPlanBundlePlanRequestBody.d.ts +13 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +9 -4
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +4 -4
- package/dist/serialization/types/CreateEventRequestBody.d.ts +3 -0
- package/dist/serialization/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +8 -8
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateRuleRequestBody.d.ts +2 -2
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CreditCurrencyPrice.d.ts +11 -0
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +2 -0
- package/dist/serialization/types/CreditLeaseResponseData.d.ts +16 -0
- package/dist/serialization/types/CreditUsageReason.d.ts +7 -0
- package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +3 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/CustomPlanBillingStatus.d.ts +1 -1
- package/dist/serialization/types/DataEventPayload.d.ts +3 -0
- package/dist/serialization/types/DuplicatePlanEntitlementsResponseResponseData.d.ts +2 -0
- package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +1 -0
- package/dist/serialization/types/EnvironmentFeatureUsageTimeSeriesResponseData.d.ts +12 -0
- package/dist/serialization/types/EnvironmentTraitUsageTimeSeriesResponseData.d.ts +12 -0
- package/dist/serialization/types/EnvironmentUsagePointResponseData.d.ts +10 -0
- package/dist/serialization/types/EventBodyTrack.d.ts +1 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/EventResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +7 -4
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +4 -2
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +3 -1
- package/dist/serialization/types/FeatureEntitlement.d.ts +4 -4
- package/dist/serialization/types/FeatureInPlanResponseData.d.ts +33 -0
- package/dist/serialization/types/FeatureResponseData.d.ts +1 -1
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +7 -4
- package/dist/serialization/types/FeatureView.d.ts +1 -1
- package/dist/serialization/types/FlagDetailResponseData.d.ts +3 -1
- package/dist/serialization/types/FlagInPlanResponseData.d.ts +24 -0
- package/dist/serialization/types/FlagResponseData.d.ts +1 -1
- package/dist/serialization/types/FlagView.d.ts +0 -1
- package/dist/serialization/types/InsightsSummaryResponseData.d.ts +15 -0
- package/dist/serialization/types/InstallIntegrationRequestBody.d.ts +16 -0
- package/dist/serialization/types/IntegrationCapabilities.d.ts +11 -0
- package/dist/serialization/types/IntegrationConfig.d.ts +27 -0
- package/dist/serialization/types/IntegrationInstallConfig.d.ts +20 -0
- package/dist/serialization/types/IntegrationInstallResponseData.d.ts +14 -0
- package/dist/serialization/types/IntegrationResponseData.d.ts +15 -0
- package/dist/serialization/types/IntegrationState.d.ts +7 -0
- package/dist/serialization/types/IntegrationType.d.ts +1 -1
- package/dist/serialization/types/IntegrationsDataSetResponseData.d.ts +9 -0
- package/dist/serialization/types/IntegrationsListResponseData.d.ts +19 -0
- package/dist/serialization/types/IntegrationsResponseData.d.ts +15 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +2 -0
- package/dist/serialization/types/MarkCustomPlanBillingPaidRequestBody.d.ts +7 -0
- package/dist/serialization/types/{ConditionMetricPeriod.d.ts → MetricPeriod.d.ts} +2 -2
- package/dist/serialization/types/MetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/MetronomeIntegrationConfig.d.ts +7 -0
- package/dist/serialization/types/MigrationErrorCode.d.ts +7 -0
- package/dist/serialization/types/MrrResponseData.d.ts +10 -0
- package/dist/serialization/types/OrbIntegrationConfig.d.ts +9 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +2 -0
- package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +1 -0
- package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +9 -3
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +6 -2
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +10 -4
- package/dist/serialization/types/PlanGrowthPointResponseData.d.ts +12 -0
- package/dist/serialization/types/PlanGrowthResponseData.d.ts +10 -0
- package/dist/serialization/types/PlanPriceCadence.d.ts +7 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -4
- package/dist/serialization/types/ReleaseCreditLeaseRequestBody.d.ts +7 -0
- package/dist/serialization/types/Rule.d.ts +2 -2
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +8 -4
- package/dist/serialization/types/RuleConditionResponseData.d.ts +8 -4
- package/dist/serialization/types/RuleDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/RuleResponseData.d.ts +2 -1
- package/dist/serialization/types/RuleType.d.ts +7 -0
- package/dist/serialization/types/RuleView.d.ts +2 -1
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCheckFlagResult.d.ts +4 -4
- package/dist/serialization/types/RulesengineCompanyMetric.d.ts +4 -4
- package/dist/serialization/types/RulesengineCondition.d.ts +8 -8
- package/dist/serialization/types/{RulesengineConditionConditionType.d.ts → RulesengineConditionType.d.ts} +2 -2
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +4 -4
- package/dist/serialization/types/RulesengineMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/RulesengineMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/RulesengineRule.d.ts +2 -2
- package/dist/serialization/types/RulesengineRuleType.d.ts +7 -0
- package/dist/serialization/types/StripeIntegrationConfig.d.ts +14 -0
- package/dist/serialization/types/TopFeatureByUsageResponseData.d.ts +14 -0
- package/dist/serialization/types/TopFeaturesByUsageResponseData.d.ts +10 -0
- package/dist/serialization/types/UpdateAutoTopupOverrideRequestBody.d.ts +12 -0
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +2 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +4 -4
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +4 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +5 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +6 -2
- package/dist/serialization/types/WorkOsIntegrationConfig.d.ts +10 -0
- package/dist/serialization/types/index.d.ts +56 -29
- package/dist/version.d.ts +2 -0
- package/dist/wasm/rulesengine.d.ts +1 -0
- package/dist/wasm/rulesengine.js +43 -11
- package/dist/wasm/rulesengine_bg.wasm.d.ts +1 -0
- package/dist/wrapper.d.ts +40 -5
- package/package.json +3 -3
- package/dist/api/resources/companies/client/requests/CreatePlanTraitRequestBody.d.ts +0 -13
- package/dist/api/resources/companies/client/requests/UpdatePlanTraitRequestBody.d.ts +0 -11
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/ConditionMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +0 -10
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +0 -8
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +0 -6
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +0 -11
- package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +0 -8
- package/dist/api/types/FeatureEntitlementMetricPeriod.d.ts +0 -8
- package/dist/api/types/FeatureEntitlementMonthReset.d.ts +0 -6
- package/dist/api/types/RulesengineCheckFlagResultFeatureUsagePeriod.d.ts +0 -7
- package/dist/api/types/RulesengineCheckFlagResultRuleType.d.ts +0 -10
- package/dist/api/types/RulesengineCompanyMetricMonthReset.d.ts +0 -5
- package/dist/api/types/RulesengineCompanyMetricPeriod.d.ts +0 -7
- package/dist/api/types/RulesengineConditionMetricPeriod.d.ts +0 -7
- package/dist/api/types/RulesengineConditionMetricPeriodMonthReset.d.ts +0 -5
- package/dist/api/types/RulesengineConditionOperator.d.ts +0 -11
- package/dist/api/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +0 -8
- package/dist/api/types/RulesengineFeatureEntitlementMonthReset.d.ts +0 -6
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -5
- package/dist/serialization/resources/companies/client/requests/CreatePlanTraitRequestBody.d.ts +0 -11
- package/dist/serialization/resources/companies/client/requests/UpdatePlanTraitRequestBody.d.ts +0 -10
- package/dist/serialization/resources/companies/types/CreatePlanTraitResponse.d.ts +0 -11
- package/dist/serialization/resources/companies/types/UpdatePlanTraitResponse.d.ts +0 -11
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/ConditionMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/ConditionOperator.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +0 -7
- package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +0 -7
- package/dist/serialization/types/FeatureEntitlementMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/FeatureEntitlementMonthReset.d.ts +0 -7
- package/dist/serialization/types/RuleRuleType.d.ts +0 -7
- package/dist/serialization/types/RulesengineCheckFlagResultFeatureUsagePeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineCheckFlagResultRuleType.d.ts +0 -7
- package/dist/serialization/types/RulesengineCompanyMetricMonthReset.d.ts +0 -7
- package/dist/serialization/types/RulesengineCompanyMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineConditionMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineConditionMetricPeriodMonthReset.d.ts +0 -7
- package/dist/serialization/types/RulesengineConditionOperator.d.ts +0 -7
- package/dist/serialization/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/RulesengineFeatureEntitlementMonthReset.d.ts +0 -7
- package/dist/serialization/types/RulesengineRuleRuleType.d.ts +0 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +0 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +0 -7
- package/dist/wasm/rulesengine_bg.wasm +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface UpdateEntitlementReqCommon {
|
|
3
3
|
creditConsumptionRate?: number;
|
|
4
|
-
metricPeriod?: Schematic.
|
|
5
|
-
metricPeriodMonthReset?: Schematic.
|
|
4
|
+
metricPeriod?: Schematic.MetricPeriod;
|
|
5
|
+
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
6
6
|
valueBool?: boolean;
|
|
7
7
|
valueCreditId?: string;
|
|
8
8
|
valueNumeric?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface UpsertBillingProductRequestBody {
|
|
3
3
|
billingProductId?: string;
|
|
4
|
+
billingStrategy?: Schematic.BillingStrategy;
|
|
4
5
|
chargeType: Schematic.ChargeType;
|
|
5
6
|
currency?: string;
|
|
6
7
|
currencyPrices?: Schematic.PlanCurrencyPriceRequestBody[];
|
|
@@ -9,6 +10,8 @@ export interface UpsertBillingProductRequestBody {
|
|
|
9
10
|
monthlyPriceId?: string;
|
|
10
11
|
oneTimePrice?: number;
|
|
11
12
|
oneTimePriceId?: string;
|
|
13
|
+
quarterlyPrice?: number;
|
|
14
|
+
quarterlyPriceId?: string;
|
|
12
15
|
trialDays?: number;
|
|
13
16
|
yearlyPrice?: number;
|
|
14
17
|
yearlyPriceId?: string;
|
|
@@ -12,8 +12,14 @@ export interface UsageBasedEntitlementRequestBody {
|
|
|
12
12
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
13
13
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
14
14
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
15
|
+
quarterlyMeteredPriceId?: string;
|
|
16
|
+
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
17
|
+
quarterlyUnitPrice?: number;
|
|
18
|
+
quarterlyUnitPriceDecimal?: string;
|
|
15
19
|
softLimit?: number;
|
|
16
20
|
tierMode?: Schematic.BillingTiersMode;
|
|
21
|
+
/** The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use. */
|
|
22
|
+
usageQuantity?: number;
|
|
17
23
|
yearlyMeteredPriceId?: string;
|
|
18
24
|
yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
19
25
|
yearlyUnitPrice?: number;
|
|
@@ -4,10 +4,13 @@ export interface UsageBasedEntitlementResponseData {
|
|
|
4
4
|
consumptionRate?: number;
|
|
5
5
|
featureId: string;
|
|
6
6
|
meteredPrice?: Schematic.BillingPriceView;
|
|
7
|
-
metricPeriod?:
|
|
8
|
-
metricPeriodMonthReset?:
|
|
7
|
+
metricPeriod?: Schematic.MetricPeriod;
|
|
8
|
+
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
9
9
|
monthlyUsageBasedPrice?: Schematic.BillingPriceView;
|
|
10
10
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
11
|
+
quarterlyUsageBasedPrice?: Schematic.BillingPriceView;
|
|
12
|
+
/** The committed unit quantity for this entitlement. For custom plans this is the quantity the company is contractually committed to; for standard plans it is the quantity pre-filled when subscribing. Only applies to pay-in-advance entitlements. Note: this is not yet enforced/auto-provisioned as a true default — it is currently stored for downstream billing use. */
|
|
13
|
+
usageQuantity?: number;
|
|
11
14
|
valueBool?: boolean;
|
|
12
15
|
valueNumeric?: number;
|
|
13
16
|
valueType: Schematic.EntitlementValueType;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface WorkOsIntegrationConfig {
|
|
2
|
+
/** Whether Schematic has received the first webhook event from WorkOS after install */
|
|
3
|
+
firstEventsReceived?: boolean;
|
|
4
|
+
/** URL configured on the WorkOS webhook endpoint that delivers events to Schematic */
|
|
5
|
+
webhookUrl?: string;
|
|
6
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export * from "./AccountMemberPermission";
|
|
2
2
|
export * from "./AccountMemberResponseData";
|
|
3
3
|
export * from "./AccountMemberRole";
|
|
4
|
+
export * from "./ActivityEntryResponseData";
|
|
5
|
+
export * from "./ActivityResponseResponseData";
|
|
4
6
|
export * from "./ActorType";
|
|
5
7
|
export * from "./ApiError";
|
|
6
8
|
export * from "./ApiKeyCreateResponseData";
|
|
9
|
+
export * from "./ApiKeyIntegrationResponseData";
|
|
7
10
|
export * from "./ApiKeyResponseData";
|
|
8
11
|
export * from "./ApiKeyScope";
|
|
9
12
|
export * from "./AuditLogListResponseData";
|
|
@@ -19,6 +22,7 @@ export * from "./BillingCreditExpiryUnit";
|
|
|
19
22
|
export * from "./BillingCreditGrantReason";
|
|
20
23
|
export * from "./BillingCreditGrantResponseData";
|
|
21
24
|
export * from "./BillingCreditGrantZeroedOutReason";
|
|
25
|
+
export * from "./BillingCreditLedgerAuthority";
|
|
22
26
|
export * from "./BillingCreditLedgerResponseData";
|
|
23
27
|
export * from "./BillingCreditResponseData";
|
|
24
28
|
export * from "./BillingCreditRolloverPolicy";
|
|
@@ -45,6 +49,7 @@ export * from "./BillingProductPriceTierResponseData";
|
|
|
45
49
|
export * from "./BillingProductPricing";
|
|
46
50
|
export * from "./BillingProductResponseData";
|
|
47
51
|
export * from "./BillingProviderType";
|
|
52
|
+
export * from "./BillingStrategy";
|
|
48
53
|
export * from "./BillingSubscriptionDiscount";
|
|
49
54
|
export * from "./BillingSubscriptionDiscountView";
|
|
50
55
|
export * from "./BillingSubscriptionResponseData";
|
|
@@ -61,20 +66,29 @@ export * from "./CheckFlagResponseData";
|
|
|
61
66
|
export * from "./CheckFlagsBulkResponseData";
|
|
62
67
|
export * from "./CheckFlagsResponseData";
|
|
63
68
|
export * from "./CheckoutDataResponseData";
|
|
69
|
+
export * from "./CheckoutFieldInput";
|
|
70
|
+
export * from "./CheckoutFieldResponseData";
|
|
71
|
+
export * from "./CheckoutFieldValue";
|
|
72
|
+
export * from "./CheckoutFieldWithValue";
|
|
64
73
|
export * from "./CheckoutSettingsResponseData";
|
|
65
74
|
export * from "./CheckoutSubscription";
|
|
75
|
+
export * from "./ClerkIntegrationConfig";
|
|
76
|
+
export * from "./CompanyCreditBalanceResponseData";
|
|
66
77
|
export * from "./CompanyDetailResponseData";
|
|
67
78
|
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
68
79
|
export * from "./CompanyLedgerResponseData";
|
|
80
|
+
export * from "./CompanyMatchingCriteria";
|
|
69
81
|
export * from "./CompanyMembershipDetailResponseData";
|
|
70
82
|
export * from "./CompanyMembershipResponseData";
|
|
71
83
|
export * from "./CompanyOverrideNoteResponseData";
|
|
72
84
|
export * from "./CompanyOverrideResponseData";
|
|
85
|
+
export * from "./CompanyPlanCreditGrantView";
|
|
73
86
|
export * from "./CompanyPlanDetailResponseData";
|
|
74
87
|
export * from "./CompanyPlanInvalidReason";
|
|
75
88
|
export * from "./CompanyPlanWithBillingSubView";
|
|
76
89
|
export * from "./CompanyResponseData";
|
|
77
90
|
export * from "./CompanySubscriptionResponseData";
|
|
91
|
+
export * from "./ComparableOperator";
|
|
78
92
|
export * from "./CompatiblePlans";
|
|
79
93
|
export * from "./CompatiblePlansResponseData";
|
|
80
94
|
export * from "./ComponentCapabilities";
|
|
@@ -87,36 +101,25 @@ export * from "./ComponentResponseData";
|
|
|
87
101
|
export * from "./ComponentSettingsResponseData";
|
|
88
102
|
export * from "./ComponentState";
|
|
89
103
|
export * from "./Condition";
|
|
90
|
-
export * from "./ConditionConditionType";
|
|
91
104
|
export * from "./ConditionGroup";
|
|
92
105
|
export * from "./ConditionGroupResponseData";
|
|
93
106
|
export * from "./ConditionGroupView";
|
|
94
|
-
export * from "./ConditionMetricPeriod";
|
|
95
|
-
export * from "./ConditionMetricPeriodMonthReset";
|
|
96
|
-
export * from "./ConditionOperator";
|
|
97
107
|
export * from "./ConditionResponseData";
|
|
108
|
+
export * from "./ConditionType";
|
|
98
109
|
export * from "./ConditionView";
|
|
99
110
|
export * from "./CountResponse";
|
|
100
111
|
export * from "./CouponRequestBody";
|
|
101
112
|
export * from "./CreateBillingPlanCreditGrantRequestBody";
|
|
102
113
|
export * from "./CreateBillingPriceTierRequestBody";
|
|
114
|
+
export * from "./CreateCustomPlanBundlePlanRequestBody";
|
|
103
115
|
export * from "./CreateEntitlementInBundleRequestBody";
|
|
104
|
-
export * from "./CreateEntitlementInBundleRequestBodyMetricPeriod";
|
|
105
|
-
export * from "./CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset";
|
|
106
116
|
export * from "./CreateEntitlementReqCommon";
|
|
107
|
-
export * from "./CreateEntitlementReqCommonMetricPeriod";
|
|
108
|
-
export * from "./CreateEntitlementReqCommonMetricPeriodMonthReset";
|
|
109
117
|
export * from "./CreateEventRequestBody";
|
|
110
118
|
export * from "./CreateFlagRequestBody";
|
|
111
119
|
export * from "./CreateOrUpdateConditionGroupRequestBody";
|
|
112
120
|
export * from "./CreateOrUpdateConditionRequestBody";
|
|
113
|
-
export * from "./CreateOrUpdateConditionRequestBodyConditionType";
|
|
114
|
-
export * from "./CreateOrUpdateConditionRequestBodyMetricPeriod";
|
|
115
|
-
export * from "./CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset";
|
|
116
|
-
export * from "./CreateOrUpdateConditionRequestBodyOperator";
|
|
117
121
|
export * from "./CreateOrUpdateFlagRequestBody";
|
|
118
122
|
export * from "./CreateOrUpdateRuleRequestBody";
|
|
119
|
-
export * from "./CreateOrUpdateRuleRequestBodyRuleType";
|
|
120
123
|
export * from "./CreatePlanRequestBody";
|
|
121
124
|
export * from "./CreatePriceTierRequestBody";
|
|
122
125
|
export * from "./CreditAutoTopupAmountType";
|
|
@@ -125,6 +128,7 @@ export * from "./CreditBundleCurrencyPriceRequestBody";
|
|
|
125
128
|
export * from "./CreditBundleCurrencyPriceResponseData";
|
|
126
129
|
export * from "./CreditBundlePurchaseResponseData";
|
|
127
130
|
export * from "./CreditCompanyGrantView";
|
|
131
|
+
export * from "./CreditCurrencyPrice";
|
|
128
132
|
export * from "./CreditCurrencyPriceRequestBody";
|
|
129
133
|
export * from "./CreditCurrencyPriceResponseData";
|
|
130
134
|
export * from "./CreditEventLedgerResponseData";
|
|
@@ -132,6 +136,7 @@ export * from "./CreditEventType";
|
|
|
132
136
|
export * from "./CreditGrantDetail";
|
|
133
137
|
export * from "./CreditGrantExpiryRequestBody";
|
|
134
138
|
export * from "./CreditGrantSortOrder";
|
|
139
|
+
export * from "./CreditLeaseResponseData";
|
|
135
140
|
export * from "./CreditLedgerEnrichedEntryResponseData";
|
|
136
141
|
export * from "./CreditLedgerPeriod";
|
|
137
142
|
export * from "./CreditsAutoTopupCompanySummary";
|
|
@@ -143,6 +148,7 @@ export * from "./CreditTransferView";
|
|
|
143
148
|
export * from "./CreditTriggerConfig";
|
|
144
149
|
export * from "./CreditUsage";
|
|
145
150
|
export * from "./CreditUsageAggregation";
|
|
151
|
+
export * from "./CreditUsageReason";
|
|
146
152
|
export * from "./CurrencyPriceRequestBody";
|
|
147
153
|
export * from "./CustomPlanActivationStrategy";
|
|
148
154
|
export * from "./CustomPlanBillingResponseData";
|
|
@@ -173,8 +179,11 @@ export * from "./EntityTraitResponseData";
|
|
|
173
179
|
export * from "./EntityTraitValue";
|
|
174
180
|
export * from "./EntityType";
|
|
175
181
|
export * from "./EnvironmentDetailResponseData";
|
|
182
|
+
export * from "./EnvironmentFeatureUsageTimeSeriesResponseData";
|
|
176
183
|
export * from "./EnvironmentResponseData";
|
|
184
|
+
export * from "./EnvironmentTraitUsageTimeSeriesResponseData";
|
|
177
185
|
export * from "./EnvironmentType";
|
|
186
|
+
export * from "./EnvironmentUsagePointResponseData";
|
|
178
187
|
export * from "./EventBody";
|
|
179
188
|
export * from "./EventBodyFlagCheck";
|
|
180
189
|
export * from "./EventBodyIdentify";
|
|
@@ -189,8 +198,7 @@ export * from "./FeatureCompanyResponseData";
|
|
|
189
198
|
export * from "./FeatureCompanyUserResponseData";
|
|
190
199
|
export * from "./FeatureDetailResponseData";
|
|
191
200
|
export * from "./FeatureEntitlement";
|
|
192
|
-
export * from "./
|
|
193
|
-
export * from "./FeatureEntitlementMonthReset";
|
|
201
|
+
export * from "./FeatureInPlanResponseData";
|
|
194
202
|
export * from "./FeatureLedgerResponseData";
|
|
195
203
|
export * from "./FeatureLifecyclePhase";
|
|
196
204
|
export * from "./FeatureResponseData";
|
|
@@ -201,10 +209,22 @@ export * from "./FeatureUsageResponseData";
|
|
|
201
209
|
export * from "./FeatureUsageTimeSeriesResponseData";
|
|
202
210
|
export * from "./FeatureView";
|
|
203
211
|
export * from "./FlagDetailResponseData";
|
|
212
|
+
export * from "./FlagInPlanResponseData";
|
|
204
213
|
export * from "./FlagResponseData";
|
|
205
214
|
export * from "./FlagType";
|
|
206
215
|
export * from "./FlagView";
|
|
207
216
|
export * from "./GenericPreviewObject";
|
|
217
|
+
export * from "./InsightsSummaryResponseData";
|
|
218
|
+
export * from "./InstallIntegrationRequestBody";
|
|
219
|
+
export * from "./IntegrationCapabilities";
|
|
220
|
+
export * from "./IntegrationConfig";
|
|
221
|
+
export * from "./IntegrationInstallConfig";
|
|
222
|
+
export * from "./IntegrationInstallResponseData";
|
|
223
|
+
export * from "./IntegrationResponseData";
|
|
224
|
+
export * from "./IntegrationState";
|
|
225
|
+
export * from "./IntegrationsDataSetResponseData";
|
|
226
|
+
export * from "./IntegrationsListResponseData";
|
|
227
|
+
export * from "./IntegrationsResponseData";
|
|
208
228
|
export * from "./IntegrationType";
|
|
209
229
|
export * from "./IntegrationWebhookUrlResponseData";
|
|
210
230
|
export * from "./InvoiceRequestBody";
|
|
@@ -216,7 +236,14 @@ export * from "./LimitTimeSeriesPointResponseData";
|
|
|
216
236
|
export * from "./ManagePlanPreviewResponseResponseData";
|
|
217
237
|
export * from "./ManagePlanRequest";
|
|
218
238
|
export * from "./ManagePlanResponseResponseData";
|
|
239
|
+
export * from "./MarkCustomPlanBillingPaidRequestBody";
|
|
219
240
|
export * from "./MeterRequestBody";
|
|
241
|
+
export * from "./MetricPeriod";
|
|
242
|
+
export * from "./MetricPeriodMonthReset";
|
|
243
|
+
export * from "./MetronomeIntegrationConfig";
|
|
244
|
+
export * from "./MigrationErrorCode";
|
|
245
|
+
export * from "./MrrResponseData";
|
|
246
|
+
export * from "./OrbIntegrationConfig";
|
|
220
247
|
export * from "./OrderedPlansInGroup";
|
|
221
248
|
export * from "./PaymentMethodRequestBody";
|
|
222
249
|
export * from "./PaymentMethodResponseData";
|
|
@@ -239,8 +266,11 @@ export * from "./PlanGroupDetailResponseData";
|
|
|
239
266
|
export * from "./PlanGroupPlanDetailResponseData";
|
|
240
267
|
export * from "./PlanGroupPlanEntitlementsOrder";
|
|
241
268
|
export * from "./PlanGroupResponseData";
|
|
269
|
+
export * from "./PlanGrowthPointResponseData";
|
|
270
|
+
export * from "./PlanGrowthResponseData";
|
|
242
271
|
export * from "./PlanIcon";
|
|
243
272
|
export * from "./PlanIssueResponseData";
|
|
273
|
+
export * from "./PlanPriceCadence";
|
|
244
274
|
export * from "./PlanResponseData";
|
|
245
275
|
export * from "./PlanSelection";
|
|
246
276
|
export * from "./PlanSnapshotView";
|
|
@@ -265,6 +295,7 @@ export * from "./PublicPlansResponseData";
|
|
|
265
295
|
export * from "./QuickstartResp";
|
|
266
296
|
export * from "./RawEventBatchResponseData";
|
|
267
297
|
export * from "./RawEventResponseData";
|
|
298
|
+
export * from "./ReleaseCreditLeaseRequestBody";
|
|
268
299
|
export * from "./Rule";
|
|
269
300
|
export * from "./RuleConditionDetailResponseData";
|
|
270
301
|
export * from "./RuleConditionGroupDetailResponseData";
|
|
@@ -272,35 +303,28 @@ export * from "./RuleConditionGroupResponseData";
|
|
|
272
303
|
export * from "./RuleConditionResponseData";
|
|
273
304
|
export * from "./RuleDetailResponseData";
|
|
274
305
|
export * from "./RuleResponseData";
|
|
275
|
-
export * from "./RuleRuleType";
|
|
276
306
|
export * from "./RulesDetailResponseData";
|
|
277
307
|
export * from "./RulesEngineSchemaVersion";
|
|
278
308
|
export * from "./RulesengineCheckFlagResult";
|
|
279
|
-
export * from "./RulesengineCheckFlagResultFeatureUsagePeriod";
|
|
280
|
-
export * from "./RulesengineCheckFlagResultRuleType";
|
|
281
309
|
export * from "./RulesengineCompany";
|
|
282
310
|
export * from "./RulesengineCompanyMetric";
|
|
283
|
-
export * from "./RulesengineCompanyMetricMonthReset";
|
|
284
|
-
export * from "./RulesengineCompanyMetricPeriod";
|
|
285
311
|
export * from "./RulesengineCondition";
|
|
286
|
-
export * from "./RulesengineConditionConditionType";
|
|
287
312
|
export * from "./RulesengineConditionGroup";
|
|
288
|
-
export * from "./
|
|
289
|
-
export * from "./RulesengineConditionMetricPeriodMonthReset";
|
|
290
|
-
export * from "./RulesengineConditionOperator";
|
|
313
|
+
export * from "./RulesengineConditionType";
|
|
291
314
|
export * from "./RulesengineEntitlementValueType";
|
|
292
315
|
export * from "./RulesengineEntityType";
|
|
293
316
|
export * from "./RulesengineFeatureEntitlement";
|
|
294
|
-
export * from "./RulesengineFeatureEntitlementMetricPeriod";
|
|
295
|
-
export * from "./RulesengineFeatureEntitlementMonthReset";
|
|
296
317
|
export * from "./RulesengineFlag";
|
|
318
|
+
export * from "./RulesengineMetricPeriod";
|
|
319
|
+
export * from "./RulesengineMetricPeriodMonthReset";
|
|
297
320
|
export * from "./RulesengineRule";
|
|
298
|
-
export * from "./
|
|
321
|
+
export * from "./RulesengineRuleType";
|
|
299
322
|
export * from "./RulesengineSubscription";
|
|
300
323
|
export * from "./RulesengineTrait";
|
|
301
324
|
export * from "./RulesengineTraitDefinition";
|
|
302
325
|
export * from "./RulesengineTraitDefinitionComparableType";
|
|
303
326
|
export * from "./RulesengineUser";
|
|
327
|
+
export * from "./RuleType";
|
|
304
328
|
export * from "./RuleView";
|
|
305
329
|
export * from "./ScheduledCheckoutResponseData";
|
|
306
330
|
export * from "./ScheduledCheckoutStatus";
|
|
@@ -311,22 +335,24 @@ export * from "./SkippedEntitlementErrorResponseData";
|
|
|
311
335
|
export * from "./SkippedEntitlementResponseData";
|
|
312
336
|
export * from "./SortDirection";
|
|
313
337
|
export * from "./StripeEmbedInfo";
|
|
338
|
+
export * from "./StripeIntegrationConfig";
|
|
314
339
|
export * from "./SubscriptionStatus";
|
|
315
340
|
export * from "./SubscriptionTraitUpdate";
|
|
316
341
|
export * from "./SubscriptionType";
|
|
317
342
|
export * from "./TemporaryAccessTokenResourceType";
|
|
318
343
|
export * from "./TemporaryAccessTokenResponseData";
|
|
319
344
|
export * from "./TimeSeriesGranularity";
|
|
345
|
+
export * from "./TopFeatureByUsageResponseData";
|
|
346
|
+
export * from "./TopFeaturesByUsageResponseData";
|
|
320
347
|
export * from "./TraitDefinition";
|
|
321
348
|
export * from "./TraitDefinitionComparableType";
|
|
322
349
|
export * from "./TraitType";
|
|
323
350
|
export * from "./TrialStatus";
|
|
324
351
|
export * from "./UpdateAddOnRequestBody";
|
|
352
|
+
export * from "./UpdateAutoTopupOverrideRequestBody";
|
|
325
353
|
export * from "./UpdateBillingPlanCreditGrantRequestBody";
|
|
326
354
|
export * from "./UpdateCreditBundleRequestBody";
|
|
327
355
|
export * from "./UpdateEntitlementReqCommon";
|
|
328
|
-
export * from "./UpdateEntitlementReqCommonMetricPeriod";
|
|
329
|
-
export * from "./UpdateEntitlementReqCommonMetricPeriodMonthReset";
|
|
330
356
|
export * from "./UpdatePayInAdvanceRequestBody";
|
|
331
357
|
export * from "./UpdatePlanRequestBody";
|
|
332
358
|
export * from "./UpdatePlanTraitTraitRequestBody";
|
|
@@ -351,3 +377,4 @@ export * from "./WebhookStatus";
|
|
|
351
377
|
export * from "./WebhookUrl";
|
|
352
378
|
export * from "./WebScheduledDowngradeWebhookOutput";
|
|
353
379
|
export * from "./WhoAmIResponseData";
|
|
380
|
+
export * from "./WorkOsIntegrationConfig";
|
|
@@ -8,7 +8,13 @@ export declare namespace Fetcher {
|
|
|
8
8
|
method: string;
|
|
9
9
|
contentType?: string;
|
|
10
10
|
headers?: Record<string, unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Prefer `queryString` (produced by `core.url.queryBuilder()`).
|
|
13
|
+
* Retained for backwards compatibility with custom fetchers and callers that
|
|
14
|
+
* still construct request args with a query-parameter object.
|
|
15
|
+
*/
|
|
11
16
|
queryParameters?: Record<string, unknown>;
|
|
17
|
+
queryString?: string;
|
|
12
18
|
body?: unknown;
|
|
13
19
|
timeoutMs?: number;
|
|
14
20
|
maxRetries?: number;
|
|
@@ -38,10 +44,12 @@ export declare namespace Fetcher {
|
|
|
38
44
|
}
|
|
39
45
|
interface TimeoutError {
|
|
40
46
|
reason: "timeout";
|
|
47
|
+
cause?: unknown;
|
|
41
48
|
}
|
|
42
49
|
interface UnknownError {
|
|
43
50
|
reason: "unknown";
|
|
44
51
|
errorMessage: string;
|
|
52
|
+
cause?: unknown;
|
|
45
53
|
}
|
|
46
54
|
}
|
|
47
55
|
export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { enum_ } from "./enum";
|
|
1
|
+
export { enum_, forwardCompatibleEnum_ } from "./enum";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a fluent builder for constructing URL query strings.
|
|
3
|
+
*
|
|
4
|
+
* Each `.add()` call serializes its value immediately (like C#'s builder),
|
|
5
|
+
* so no format tracking is needed — the style is applied at add-time.
|
|
6
|
+
*
|
|
7
|
+
* Usage (generated code):
|
|
8
|
+
*
|
|
9
|
+
* const qs = core.url.queryBuilder()
|
|
10
|
+
* .add("limit", limit)
|
|
11
|
+
* .add("tags", tags, { style: "comma" }) // explode: false
|
|
12
|
+
* .mergeAdditional(requestOptions?.queryParams)
|
|
13
|
+
* .build();
|
|
14
|
+
*/
|
|
15
|
+
export declare function queryBuilder(): QueryStringBuilder;
|
|
16
|
+
declare class QueryStringBuilder {
|
|
17
|
+
private parts;
|
|
18
|
+
/**
|
|
19
|
+
* Adds a query parameter, serializing it immediately.
|
|
20
|
+
*
|
|
21
|
+
* By default arrays use "repeat" format (`key=a&key=b`).
|
|
22
|
+
* Pass `{ style: "comma" }` for OpenAPI `explode: false` parameters
|
|
23
|
+
* to get comma-separated values (`key=a,b,c`).
|
|
24
|
+
*
|
|
25
|
+
* Null / undefined values are silently skipped.
|
|
26
|
+
*/
|
|
27
|
+
add(key: string, value: unknown, options?: {
|
|
28
|
+
style?: "comma";
|
|
29
|
+
}): this;
|
|
30
|
+
/**
|
|
31
|
+
* Adds multiple query parameters at once from a record.
|
|
32
|
+
* All parameters use the default "repeat" array format.
|
|
33
|
+
* Null / undefined values are silently skipped.
|
|
34
|
+
*/
|
|
35
|
+
addMany(params: Record<string, unknown>): this;
|
|
36
|
+
/**
|
|
37
|
+
* Merges additional query parameters supplied at call-time via
|
|
38
|
+
* `requestOptions.queryParams`. Overrides existing keys (last-write-wins).
|
|
39
|
+
*/
|
|
40
|
+
mergeAdditional(additionalParams?: Record<string, unknown>): this;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the assembled query string (without the leading `?`).
|
|
43
|
+
* Returns an empty string when no parameters were added.
|
|
44
|
+
*/
|
|
45
|
+
build(): string;
|
|
46
|
+
}
|
|
47
|
+
export {};
|
package/dist/core/url/index.d.ts
CHANGED
package/dist/core/url/qs.d.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import type * as Schematic from "../api/types";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a complete deep copy of a Company object.
|
|
4
|
-
*/
|
|
5
2
|
export declare function deepCopyCompany(c: Schematic.RulesengineCompany): Schematic.RulesengineCompany;
|
|
6
|
-
/**
|
|
7
|
-
* Creates a complete deep copy of a User object.
|
|
8
|
-
*/
|
|
9
3
|
export declare function deepCopyUser(u: Schematic.RulesengineUser): Schematic.RulesengineUser;
|
|
10
4
|
/**
|
|
11
5
|
* Merges a partial update into an existing Company.
|
|
12
6
|
* Deep-copies the existing company, then applies only the fields
|
|
13
|
-
* present in the partial object.
|
|
7
|
+
* present in the partial object. Maps (keys, credit_balances) merge
|
|
8
|
+
* additively. Metrics are upserted by (eventSubtype, period, monthReset).
|
|
9
|
+
* All other fields replace the existing value. The original is not mutated.
|
|
10
|
+
*
|
|
11
|
+
* Partials don't carry refreshed entitlements, so when their derived fields
|
|
12
|
+
* change in another part of the company we sync them here to match server
|
|
13
|
+
* behavior:
|
|
14
|
+
* - creditRemaining ← credit_balances[credit_id]
|
|
15
|
+
* - usage ← metric value matching (eventName, metricPeriod, monthReset)
|
|
16
|
+
* Both are skipped when the partial also sends entitlements wholesale.
|
|
14
17
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
+
* Partial updates arrive as raw wire payloads (snake_case keys) and are merged
|
|
19
|
+
* into an existing camelCase-canonicalized entity; each case writes the
|
|
20
|
+
* corresponding camelCase field so the cached entity stays in a single shape.
|
|
18
21
|
*/
|
|
19
22
|
export declare function partialCompany(existing: Schematic.RulesengineCompany, partial: Record<string, unknown>): Schematic.RulesengineCompany;
|
|
20
23
|
/**
|
|
@@ -36,7 +36,7 @@ export interface ClientOptions {
|
|
|
36
36
|
*/
|
|
37
37
|
export declare class DatastreamWSClient extends LazyEmitter {
|
|
38
38
|
private readonly url;
|
|
39
|
-
|
|
39
|
+
readonly headers: Record<string, string>;
|
|
40
40
|
private readonly logger;
|
|
41
41
|
private readonly messageHandler;
|
|
42
42
|
private readonly connectionReadyHandler?;
|
|
@@ -3,10 +3,12 @@ export declare class SchematicError extends Error {
|
|
|
3
3
|
readonly statusCode?: number;
|
|
4
4
|
readonly body?: unknown;
|
|
5
5
|
readonly rawResponse?: core.RawResponse;
|
|
6
|
-
|
|
6
|
+
readonly cause?: unknown;
|
|
7
|
+
constructor({ message, statusCode, body, rawResponse, cause, }: {
|
|
7
8
|
message?: string;
|
|
8
9
|
statusCode?: number;
|
|
9
10
|
body?: unknown;
|
|
10
11
|
rawResponse?: core.RawResponse;
|
|
12
|
+
cause?: unknown;
|
|
11
13
|
});
|
|
12
14
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CreateEventRequestBody } from "./api";
|
|
2
|
+
import type { FetchFunction } from "./core/fetcher/Fetcher";
|
|
3
|
+
export declare const DEFAULT_EVENT_CAPTURE_BASE_URL = "https://c.schematichq.com";
|
|
4
|
+
export interface EventCaptureClientOptions {
|
|
5
|
+
apiKey: string;
|
|
6
|
+
/** Fetcher created by the SchematicClient — reused so that offline mode,
|
|
7
|
+
* default headers, and retry/logging behavior stay consistent. */
|
|
8
|
+
fetcher: FetchFunction;
|
|
9
|
+
/** Static headers to include on every request (e.g. X-Fern-SDK-Name,
|
|
10
|
+
* X-Fern-SDK-Version) so the capture service receives the same SDK
|
|
11
|
+
* identifying headers as the REST API. */
|
|
12
|
+
headers?: Record<string, string>;
|
|
13
|
+
baseUrl?: string;
|
|
14
|
+
timeoutMs?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* HTTP client for sending event batches directly to the Schematic event
|
|
18
|
+
* capture service (default: https://c.schematichq.com/batch).
|
|
19
|
+
*/
|
|
20
|
+
export declare class EventCaptureClient {
|
|
21
|
+
private readonly apiKey;
|
|
22
|
+
private readonly baseUrl;
|
|
23
|
+
private readonly timeoutMs;
|
|
24
|
+
private readonly fetcher;
|
|
25
|
+
private readonly headers;
|
|
26
|
+
constructor(options: EventCaptureClientOptions);
|
|
27
|
+
sendBatch(events: CreateEventRequestBody[]): Promise<void>;
|
|
28
|
+
}
|
package/dist/events.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateEventRequestBody } from "./api";
|
|
2
|
-
import {
|
|
2
|
+
import { EventCaptureClient } from "./event-capture";
|
|
3
3
|
import { Logger } from "./logger";
|
|
4
4
|
interface EventBufferOptions {
|
|
5
5
|
interval?: number;
|
|
@@ -11,7 +11,7 @@ interface EventBufferOptions {
|
|
|
11
11
|
}
|
|
12
12
|
declare class EventBuffer {
|
|
13
13
|
private events;
|
|
14
|
-
private
|
|
14
|
+
private captureClient;
|
|
15
15
|
private interval;
|
|
16
16
|
private intervalId;
|
|
17
17
|
private logger;
|
|
@@ -22,7 +22,7 @@ declare class EventBuffer {
|
|
|
22
22
|
private shutdown;
|
|
23
23
|
private stopped;
|
|
24
24
|
private flushing;
|
|
25
|
-
constructor(
|
|
25
|
+
constructor(captureClient: EventCaptureClient, opts?: EventBufferOptions);
|
|
26
26
|
flush(): Promise<void>;
|
|
27
27
|
push(event: CreateEventRequestBody): Promise<void>;
|
|
28
28
|
stop(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export * as Schematic from "./api";
|
|
2
2
|
export { LocalCache } from "./cache/local";
|
|
3
3
|
export { RedisCacheProvider, type RedisClient } from "./cache/redis";
|
|
4
|
-
export { SchematicClient, type CheckFlagWithEntitlementResponse } from "./wrapper";
|
|
4
|
+
export { SchematicClient, type CheckFlagWithEntitlementResponse, type CheckFlagOptions, type TrackOptions, type IdentifyOptions, } from "./wrapper";
|
|
5
|
+
export { ConsoleLogger, LogLevel, type Logger } from "./logger";
|
|
5
6
|
export { SchematicEnvironment } from "./environments";
|
|
6
7
|
export { SchematicError, SchematicTimeoutError } from "./errors";
|
|
7
8
|
export { RulesEngineClient } from "./rules-engine";
|