@schematichq/schematic-typescript-node 1.4.5 → 1.4.7
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 +8 -20
- package/dist/api/resources/accounts/client/Client.d.ts +35 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +18 -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/GetAccountMemberResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
- package/dist/api/resources/accounts/types/ListAccountMembersResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +3 -0
- package/dist/api/resources/billing/client/Client.d.ts +33 -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/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +6 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +6 -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/ListBillingPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -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 +6 -0
- package/dist/api/resources/companies/client/Client.d.ts +31 -55
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -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 +11 -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 +7 -4
- 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 +4 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +4 -0
- package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +3 -2
- package/dist/api/resources/companies/types/index.d.ts +0 -3
- package/dist/api/resources/credits/client/Client.d.ts +99 -1
- 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/CreateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.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/UpdateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.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/GetSingleBillingPlanCreditGrantResponse.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 +6 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +39 -0
- 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 +50 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +9 -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 +9 -2
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
- 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/UpsertPlanEntitlementForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/index.d.ts +1 -8
- 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 +35 -6
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +13 -8
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +1 -0
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +26 -0
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +13 -8
- 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/client/requests/index.d.ts +1 -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/features/types/UpsertFeatureForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/features/types/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +6 -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 +109 -0
- package/dist/api/resources/integrationsapi/client/index.d.ts +1 -0
- 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/exports.d.ts +2 -0
- package/dist/api/resources/integrationsapi/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.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/LoadSampleDataSetV2Response.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 +7 -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/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 +162 -3
- package/dist/api/resources/plans/client/requests/CountBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +13 -0
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/DeletePlanVersionRequest.d.ts +9 -0
- package/dist/api/resources/plans/client/requests/ListBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +26 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +13 -0
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +17 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +7 -0
- package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +13 -0
- package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +8 -0
- package/dist/api/resources/plans/types/CreateCustomPlanResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/DeletePlanVersionParams.d.ts +6 -0
- package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +1 -1
- package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +13 -0
- package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesResponse.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 +8 -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/UpsertPlanForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +11 -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/AccountMemberPermission.d.ts +18 -0
- package/dist/api/types/AccountMemberResponseData.d.ts +11 -0
- package/dist/api/types/AccountMemberRole.d.ts +5 -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/BillingCreditBundleResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditView.d.ts +1 -0
- package/dist/api/types/BillingLinkedResourceResponseData.d.ts +6 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +2 -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 +2 -1
- 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 +1 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/types/ChargeType.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -2
- package/dist/api/types/CheckoutSubscription.d.ts +2 -0
- package/dist/api/types/ClerkIntegrationConfig.d.ts +6 -0
- package/dist/api/types/CompanyCreditBalanceResponseData.d.ts +7 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -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 +40 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +13 -4
- 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/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 +2 -0
- package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +9 -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/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/types/CreditBundleCurrencyPrice.d.ts +5 -0
- package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +5 -0
- package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +5 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +1 -0
- package/dist/api/types/CreditCurrencyPrice.d.ts +5 -0
- package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +5 -0
- package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +5 -0
- package/dist/api/types/CreditLeaseResponseData.d.ts +10 -0
- package/dist/api/types/CurrencyPriceRequestBody.d.ts +13 -0
- package/dist/api/types/CustomPlanActivationStrategy.d.ts +5 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +15 -0
- package/dist/api/types/CustomPlanBillingStatus.d.ts +7 -0
- package/dist/api/types/DataEventPayload.d.ts +3 -0
- package/dist/api/types/DatastreamCompanyPlan.d.ts +2 -0
- package/dist/api/types/DuplicatePlanEntitlementsResponseResponseData.d.ts +1 -0
- package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +7 -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 +2 -0
- package/dist/api/types/EventResponseData.d.ts +1 -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 +3 -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 +2 -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/IntegrationCapabilities.d.ts +5 -0
- package/dist/api/types/IntegrationConfig.d.ts +16 -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 +8 -0
- package/dist/api/types/IntegrationWebhookUrlResponseData.d.ts +5 -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/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/MigrationErrorCode.d.ts +14 -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 +7 -0
- package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +8 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +12 -3
- package/dist/api/types/PlanEntitlementResponseData.d.ts +7 -2
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +13 -4
- package/dist/api/types/PlanGrowthPointResponseData.d.ts +6 -0
- package/dist/api/types/PlanGrowthResponseData.d.ts +4 -0
- package/dist/api/types/PlanIcon.d.ts +28 -0
- package/dist/api/types/PlanPriceCadence.d.ts +6 -0
- package/dist/api/types/PlanResponseData.d.ts +3 -1
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +1 -1
- package/dist/api/types/PlanViewPublicResponseData.d.ts +13 -4
- 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/TrialStatus.d.ts +6 -0
- package/dist/api/types/UpdateAutoTopupOverrideRequestBody.d.ts +6 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +2 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -2
- package/dist/api/types/UpdatePlanRequestBody.d.ts +2 -1
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +4 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +5 -2
- package/dist/api/types/WebhookUrl.d.ts +5 -0
- package/dist/api/types/WorkOsIntegrationConfig.d.ts +6 -0
- package/dist/api/types/index.d.ts +67 -30
- 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 +11 -7
- package/dist/datastream/types.d.ts +1 -0
- 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/GetAccountMemberResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.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/ListBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -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 +2 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +4 -2
- 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/CreateBillingCreditRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/ExtendCreditLeaseRequestBody.d.ts +10 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -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/GetSingleBillingPlanCreditGrantResponse.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 +6 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +51 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -4
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +11 -4
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -4
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +11 -4
- package/dist/serialization/resources/entitlements/client/requests/index.d.ts +1 -0
- 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/UpsertPlanEntitlementForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +1 -8
- package/dist/serialization/resources/events/types/ListEventsParams.d.ts +1 -0
- package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +25 -0
- 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/client/requests/index.d.ts +1 -0
- 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/features/types/UpsertFeatureForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/features/types/index.d.ts +1 -0
- package/dist/serialization/resources/index.d.ts +6 -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 +2 -0
- package/dist/serialization/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.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/LoadSampleDataSetV2Response.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 +7 -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/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 +18 -0
- package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/serialization/resources/plans/types/CreateCustomPlanResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/DeletePlanVersionParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +2 -1
- package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +12 -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 +4 -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/UpsertPlanForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +11 -0
- package/dist/serialization/types/AccountMemberPermission.d.ts +7 -0
- package/dist/serialization/types/AccountMemberResponseData.d.ts +18 -0
- package/dist/serialization/types/AccountMemberRole.d.ts +7 -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/BillingCreditBundleResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditBundleView.d.ts +2 -0
- package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingCreditView.d.ts +2 -0
- package/dist/serialization/types/BillingLinkedResourceResponseData.d.ts +12 -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 +4 -2
- 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 +2 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/dist/serialization/types/ChargeType.d.ts +1 -1
- package/dist/serialization/types/CheckFlagResponseData.d.ts +4 -2
- package/dist/serialization/types/CheckoutSubscription.d.ts +2 -0
- package/dist/serialization/types/ClerkIntegrationConfig.d.ts +10 -0
- package/dist/serialization/types/CompanyCreditBalanceResponseData.d.ts +13 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -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 +47 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +19 -6
- 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/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 +11 -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/CreatePlanRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +11 -0
- package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +11 -0
- package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +11 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +1 -0
- package/dist/serialization/types/CreditCurrencyPrice.d.ts +11 -0
- package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +11 -0
- package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +11 -0
- package/dist/serialization/types/CreditLeaseResponseData.d.ts +16 -0
- package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +19 -0
- package/dist/serialization/types/CustomPlanActivationStrategy.d.ts +7 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +22 -0
- package/dist/serialization/types/CustomPlanBillingStatus.d.ts +7 -0
- package/dist/serialization/types/DataEventPayload.d.ts +3 -0
- package/dist/serialization/types/DatastreamCompanyPlan.d.ts +2 -0
- package/dist/serialization/types/DuplicatePlanEntitlementsResponseResponseData.d.ts +2 -0
- package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +13 -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 +3 -0
- package/dist/serialization/types/EventResponseData.d.ts +1 -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 +5 -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 +3 -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/IntegrationCapabilities.d.ts +11 -0
- package/dist/serialization/types/IntegrationConfig.d.ts +23 -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 +7 -0
- package/dist/serialization/types/IntegrationWebhookUrlResponseData.d.ts +11 -0
- 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/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/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 +13 -0
- package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +18 -5
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +10 -2
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +19 -6
- package/dist/serialization/types/PlanGrowthPointResponseData.d.ts +12 -0
- package/dist/serialization/types/PlanGrowthResponseData.d.ts +10 -0
- package/dist/serialization/types/PlanIcon.d.ts +7 -0
- package/dist/serialization/types/PlanPriceCadence.d.ts +7 -0
- package/dist/serialization/types/PlanResponseData.d.ts +4 -1
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +19 -6
- 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/TrialStatus.d.ts +7 -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/UpdatePlanRequestBody.d.ts +2 -1
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +6 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +6 -2
- package/dist/serialization/types/WebhookUrl.d.ts +11 -0
- package/dist/serialization/types/WorkOsIntegrationConfig.d.ts +10 -0
- package/dist/serialization/types/index.d.ts +67 -30
- package/dist/version.d.ts +2 -0
- package/dist/wasm/rulesengine.d.ts +1 -0
- package/dist/wasm/rulesengine.js +41 -9
- package/dist/wasm/rulesengine_bg.wasm +0 -0
- package/dist/wasm/rulesengine_bg.wasm.d.ts +1 -0
- package/dist/wrapper.d.ts +40 -5
- package/package.json +9 -9
- 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/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/PlanControlledByType.d.ts +0 -5
- 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/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/PlanControlledByType.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
|
@@ -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 WorkOsIntegrationConfig: core.serialization.ObjectSchema<serializers.WorkOsIntegrationConfig.Raw, Schematic.WorkOsIntegrationConfig>;
|
|
5
|
+
export declare namespace WorkOsIntegrationConfig {
|
|
6
|
+
interface Raw {
|
|
7
|
+
first_events_received?: boolean | null;
|
|
8
|
+
webhook_url?: string | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
export * from "./AccountMemberPermission";
|
|
2
|
+
export * from "./AccountMemberResponseData";
|
|
3
|
+
export * from "./AccountMemberRole";
|
|
4
|
+
export * from "./ActivityEntryResponseData";
|
|
5
|
+
export * from "./ActivityResponseResponseData";
|
|
1
6
|
export * from "./ActorType";
|
|
2
7
|
export * from "./ApiError";
|
|
3
8
|
export * from "./ApiKeyCreateResponseData";
|
|
9
|
+
export * from "./ApiKeyIntegrationResponseData";
|
|
4
10
|
export * from "./ApiKeyResponseData";
|
|
5
11
|
export * from "./ApiKeyScope";
|
|
6
12
|
export * from "./AuditLogListResponseData";
|
|
@@ -23,6 +29,7 @@ export * from "./BillingCreditView";
|
|
|
23
29
|
export * from "./BillingCustomerResponseData";
|
|
24
30
|
export * from "./BillingCustomerSubscription";
|
|
25
31
|
export * from "./BillingCustomerWithSubscriptionsResponseData";
|
|
32
|
+
export * from "./BillingLinkedResourceResponseData";
|
|
26
33
|
export * from "./BillingMeterResponseData";
|
|
27
34
|
export * from "./BillingPlanCreditGrantResetCadence";
|
|
28
35
|
export * from "./BillingPlanCreditGrantResetStart";
|
|
@@ -41,6 +48,7 @@ export * from "./BillingProductPriceTierResponseData";
|
|
|
41
48
|
export * from "./BillingProductPricing";
|
|
42
49
|
export * from "./BillingProductResponseData";
|
|
43
50
|
export * from "./BillingProviderType";
|
|
51
|
+
export * from "./BillingStrategy";
|
|
44
52
|
export * from "./BillingSubscriptionDiscount";
|
|
45
53
|
export * from "./BillingSubscriptionDiscountView";
|
|
46
54
|
export * from "./BillingSubscriptionResponseData";
|
|
@@ -59,18 +67,23 @@ export * from "./CheckFlagsResponseData";
|
|
|
59
67
|
export * from "./CheckoutDataResponseData";
|
|
60
68
|
export * from "./CheckoutSettingsResponseData";
|
|
61
69
|
export * from "./CheckoutSubscription";
|
|
70
|
+
export * from "./ClerkIntegrationConfig";
|
|
71
|
+
export * from "./CompanyCreditBalanceResponseData";
|
|
62
72
|
export * from "./CompanyDetailResponseData";
|
|
63
73
|
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
64
74
|
export * from "./CompanyLedgerResponseData";
|
|
75
|
+
export * from "./CompanyMatchingCriteria";
|
|
65
76
|
export * from "./CompanyMembershipDetailResponseData";
|
|
66
77
|
export * from "./CompanyMembershipResponseData";
|
|
67
78
|
export * from "./CompanyOverrideNoteResponseData";
|
|
68
79
|
export * from "./CompanyOverrideResponseData";
|
|
80
|
+
export * from "./CompanyPlanCreditGrantView";
|
|
69
81
|
export * from "./CompanyPlanDetailResponseData";
|
|
70
82
|
export * from "./CompanyPlanInvalidReason";
|
|
71
83
|
export * from "./CompanyPlanWithBillingSubView";
|
|
72
84
|
export * from "./CompanyResponseData";
|
|
73
85
|
export * from "./CompanySubscriptionResponseData";
|
|
86
|
+
export * from "./ComparableOperator";
|
|
74
87
|
export * from "./CompatiblePlans";
|
|
75
88
|
export * from "./CompatiblePlansResponseData";
|
|
76
89
|
export * from "./ComponentCapabilities";
|
|
@@ -83,46 +96,42 @@ export * from "./ComponentResponseData";
|
|
|
83
96
|
export * from "./ComponentSettingsResponseData";
|
|
84
97
|
export * from "./ComponentState";
|
|
85
98
|
export * from "./Condition";
|
|
86
|
-
export * from "./ConditionConditionType";
|
|
87
99
|
export * from "./ConditionGroup";
|
|
88
100
|
export * from "./ConditionGroupResponseData";
|
|
89
101
|
export * from "./ConditionGroupView";
|
|
90
|
-
export * from "./ConditionMetricPeriod";
|
|
91
|
-
export * from "./ConditionMetricPeriodMonthReset";
|
|
92
|
-
export * from "./ConditionOperator";
|
|
93
102
|
export * from "./ConditionResponseData";
|
|
103
|
+
export * from "./ConditionType";
|
|
94
104
|
export * from "./ConditionView";
|
|
95
105
|
export * from "./CountResponse";
|
|
96
106
|
export * from "./CouponRequestBody";
|
|
97
107
|
export * from "./CreateBillingPlanCreditGrantRequestBody";
|
|
98
108
|
export * from "./CreateBillingPriceTierRequestBody";
|
|
109
|
+
export * from "./CreateCustomPlanBundlePlanRequestBody";
|
|
99
110
|
export * from "./CreateEntitlementInBundleRequestBody";
|
|
100
|
-
export * from "./CreateEntitlementInBundleRequestBodyMetricPeriod";
|
|
101
|
-
export * from "./CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset";
|
|
102
111
|
export * from "./CreateEntitlementReqCommon";
|
|
103
|
-
export * from "./CreateEntitlementReqCommonMetricPeriod";
|
|
104
|
-
export * from "./CreateEntitlementReqCommonMetricPeriodMonthReset";
|
|
105
112
|
export * from "./CreateEventRequestBody";
|
|
106
113
|
export * from "./CreateFlagRequestBody";
|
|
107
114
|
export * from "./CreateOrUpdateConditionGroupRequestBody";
|
|
108
115
|
export * from "./CreateOrUpdateConditionRequestBody";
|
|
109
|
-
export * from "./CreateOrUpdateConditionRequestBodyConditionType";
|
|
110
|
-
export * from "./CreateOrUpdateConditionRequestBodyMetricPeriod";
|
|
111
|
-
export * from "./CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset";
|
|
112
|
-
export * from "./CreateOrUpdateConditionRequestBodyOperator";
|
|
113
116
|
export * from "./CreateOrUpdateFlagRequestBody";
|
|
114
117
|
export * from "./CreateOrUpdateRuleRequestBody";
|
|
115
|
-
export * from "./CreateOrUpdateRuleRequestBodyRuleType";
|
|
116
118
|
export * from "./CreatePlanRequestBody";
|
|
117
119
|
export * from "./CreatePriceTierRequestBody";
|
|
118
120
|
export * from "./CreditAutoTopupAmountType";
|
|
121
|
+
export * from "./CreditBundleCurrencyPrice";
|
|
122
|
+
export * from "./CreditBundleCurrencyPriceRequestBody";
|
|
123
|
+
export * from "./CreditBundleCurrencyPriceResponseData";
|
|
119
124
|
export * from "./CreditBundlePurchaseResponseData";
|
|
120
125
|
export * from "./CreditCompanyGrantView";
|
|
126
|
+
export * from "./CreditCurrencyPrice";
|
|
127
|
+
export * from "./CreditCurrencyPriceRequestBody";
|
|
128
|
+
export * from "./CreditCurrencyPriceResponseData";
|
|
121
129
|
export * from "./CreditEventLedgerResponseData";
|
|
122
130
|
export * from "./CreditEventType";
|
|
123
131
|
export * from "./CreditGrantDetail";
|
|
124
132
|
export * from "./CreditGrantExpiryRequestBody";
|
|
125
133
|
export * from "./CreditGrantSortOrder";
|
|
134
|
+
export * from "./CreditLeaseResponseData";
|
|
126
135
|
export * from "./CreditLedgerEnrichedEntryResponseData";
|
|
127
136
|
export * from "./CreditLedgerPeriod";
|
|
128
137
|
export * from "./CreditsAutoTopupCompanySummary";
|
|
@@ -134,6 +143,10 @@ export * from "./CreditTransferView";
|
|
|
134
143
|
export * from "./CreditTriggerConfig";
|
|
135
144
|
export * from "./CreditUsage";
|
|
136
145
|
export * from "./CreditUsageAggregation";
|
|
146
|
+
export * from "./CurrencyPriceRequestBody";
|
|
147
|
+
export * from "./CustomPlanActivationStrategy";
|
|
148
|
+
export * from "./CustomPlanBillingResponseData";
|
|
149
|
+
export * from "./CustomPlanBillingStatus";
|
|
137
150
|
export * from "./CustomPlanConfig";
|
|
138
151
|
export * from "./CustomPlanViewConfigResponseData";
|
|
139
152
|
export * from "./DataEventPayload";
|
|
@@ -145,6 +158,7 @@ export * from "./DatastreamCompanyPlan";
|
|
|
145
158
|
export * from "./DeleteBillingPlanCreditGrantRequestBody";
|
|
146
159
|
export * from "./DeleteResponse";
|
|
147
160
|
export * from "./DuplicatePlanEntitlementsResponseResponseData";
|
|
161
|
+
export * from "./EntitlementCurrencyPricesResponseData";
|
|
148
162
|
export * from "./EntitlementPriceBehavior";
|
|
149
163
|
export * from "./EntitlementsInPlan";
|
|
150
164
|
export * from "./EntitlementTriggerConfig";
|
|
@@ -159,8 +173,11 @@ export * from "./EntityTraitResponseData";
|
|
|
159
173
|
export * from "./EntityTraitValue";
|
|
160
174
|
export * from "./EntityType";
|
|
161
175
|
export * from "./EnvironmentDetailResponseData";
|
|
176
|
+
export * from "./EnvironmentFeatureUsageTimeSeriesResponseData";
|
|
162
177
|
export * from "./EnvironmentResponseData";
|
|
178
|
+
export * from "./EnvironmentTraitUsageTimeSeriesResponseData";
|
|
163
179
|
export * from "./EnvironmentType";
|
|
180
|
+
export * from "./EnvironmentUsagePointResponseData";
|
|
164
181
|
export * from "./EventBody";
|
|
165
182
|
export * from "./EventBodyFlagCheck";
|
|
166
183
|
export * from "./EventBodyIdentify";
|
|
@@ -175,8 +192,7 @@ export * from "./FeatureCompanyResponseData";
|
|
|
175
192
|
export * from "./FeatureCompanyUserResponseData";
|
|
176
193
|
export * from "./FeatureDetailResponseData";
|
|
177
194
|
export * from "./FeatureEntitlement";
|
|
178
|
-
export * from "./
|
|
179
|
-
export * from "./FeatureEntitlementMonthReset";
|
|
195
|
+
export * from "./FeatureInPlanResponseData";
|
|
180
196
|
export * from "./FeatureLedgerResponseData";
|
|
181
197
|
export * from "./FeatureLifecyclePhase";
|
|
182
198
|
export * from "./FeatureResponseData";
|
|
@@ -187,10 +203,21 @@ export * from "./FeatureUsageResponseData";
|
|
|
187
203
|
export * from "./FeatureUsageTimeSeriesResponseData";
|
|
188
204
|
export * from "./FeatureView";
|
|
189
205
|
export * from "./FlagDetailResponseData";
|
|
206
|
+
export * from "./FlagInPlanResponseData";
|
|
190
207
|
export * from "./FlagResponseData";
|
|
191
208
|
export * from "./FlagType";
|
|
192
209
|
export * from "./FlagView";
|
|
193
210
|
export * from "./GenericPreviewObject";
|
|
211
|
+
export * from "./InsightsSummaryResponseData";
|
|
212
|
+
export * from "./IntegrationCapabilities";
|
|
213
|
+
export * from "./IntegrationConfig";
|
|
214
|
+
export * from "./IntegrationResponseData";
|
|
215
|
+
export * from "./IntegrationState";
|
|
216
|
+
export * from "./IntegrationsDataSetResponseData";
|
|
217
|
+
export * from "./IntegrationsListResponseData";
|
|
218
|
+
export * from "./IntegrationsResponseData";
|
|
219
|
+
export * from "./IntegrationType";
|
|
220
|
+
export * from "./IntegrationWebhookUrlResponseData";
|
|
194
221
|
export * from "./InvoiceRequestBody";
|
|
195
222
|
export * from "./InvoiceResponseData";
|
|
196
223
|
export * from "./InvoiceStatus";
|
|
@@ -200,7 +227,13 @@ export * from "./LimitTimeSeriesPointResponseData";
|
|
|
200
227
|
export * from "./ManagePlanPreviewResponseResponseData";
|
|
201
228
|
export * from "./ManagePlanRequest";
|
|
202
229
|
export * from "./ManagePlanResponseResponseData";
|
|
230
|
+
export * from "./MarkCustomPlanBillingPaidRequestBody";
|
|
203
231
|
export * from "./MeterRequestBody";
|
|
232
|
+
export * from "./MetricPeriod";
|
|
233
|
+
export * from "./MetricPeriodMonthReset";
|
|
234
|
+
export * from "./MigrationErrorCode";
|
|
235
|
+
export * from "./MrrResponseData";
|
|
236
|
+
export * from "./OrbIntegrationConfig";
|
|
204
237
|
export * from "./OrderedPlansInGroup";
|
|
205
238
|
export * from "./PaymentMethodRequestBody";
|
|
206
239
|
export * from "./PaymentMethodResponseData";
|
|
@@ -212,8 +245,9 @@ export * from "./PlanChangeAction";
|
|
|
212
245
|
export * from "./PlanChangeBasePlanAction";
|
|
213
246
|
export * from "./PlanChangeResponseData";
|
|
214
247
|
export * from "./PlanChangeSubscriptionAction";
|
|
215
|
-
export * from "./PlanControlledByType";
|
|
216
248
|
export * from "./PlanCreditGrantView";
|
|
249
|
+
export * from "./PlanCurrencyPriceRequestBody";
|
|
250
|
+
export * from "./PlanCurrencyPricesResponseData";
|
|
217
251
|
export * from "./PlanDetailResponseData";
|
|
218
252
|
export * from "./PlanEntitlementResponseData";
|
|
219
253
|
export * from "./PlanEntitlementsOrder";
|
|
@@ -222,7 +256,11 @@ export * from "./PlanGroupDetailResponseData";
|
|
|
222
256
|
export * from "./PlanGroupPlanDetailResponseData";
|
|
223
257
|
export * from "./PlanGroupPlanEntitlementsOrder";
|
|
224
258
|
export * from "./PlanGroupResponseData";
|
|
259
|
+
export * from "./PlanGrowthPointResponseData";
|
|
260
|
+
export * from "./PlanGrowthResponseData";
|
|
261
|
+
export * from "./PlanIcon";
|
|
225
262
|
export * from "./PlanIssueResponseData";
|
|
263
|
+
export * from "./PlanPriceCadence";
|
|
226
264
|
export * from "./PlanResponseData";
|
|
227
265
|
export * from "./PlanSelection";
|
|
228
266
|
export * from "./PlanSnapshotView";
|
|
@@ -247,6 +285,7 @@ export * from "./PublicPlansResponseData";
|
|
|
247
285
|
export * from "./QuickstartResp";
|
|
248
286
|
export * from "./RawEventBatchResponseData";
|
|
249
287
|
export * from "./RawEventResponseData";
|
|
288
|
+
export * from "./ReleaseCreditLeaseRequestBody";
|
|
250
289
|
export * from "./Rule";
|
|
251
290
|
export * from "./RuleConditionDetailResponseData";
|
|
252
291
|
export * from "./RuleConditionGroupDetailResponseData";
|
|
@@ -254,35 +293,28 @@ export * from "./RuleConditionGroupResponseData";
|
|
|
254
293
|
export * from "./RuleConditionResponseData";
|
|
255
294
|
export * from "./RuleDetailResponseData";
|
|
256
295
|
export * from "./RuleResponseData";
|
|
257
|
-
export * from "./RuleRuleType";
|
|
258
296
|
export * from "./RulesDetailResponseData";
|
|
259
297
|
export * from "./RulesEngineSchemaVersion";
|
|
260
298
|
export * from "./RulesengineCheckFlagResult";
|
|
261
|
-
export * from "./RulesengineCheckFlagResultFeatureUsagePeriod";
|
|
262
|
-
export * from "./RulesengineCheckFlagResultRuleType";
|
|
263
299
|
export * from "./RulesengineCompany";
|
|
264
300
|
export * from "./RulesengineCompanyMetric";
|
|
265
|
-
export * from "./RulesengineCompanyMetricMonthReset";
|
|
266
|
-
export * from "./RulesengineCompanyMetricPeriod";
|
|
267
301
|
export * from "./RulesengineCondition";
|
|
268
|
-
export * from "./RulesengineConditionConditionType";
|
|
269
302
|
export * from "./RulesengineConditionGroup";
|
|
270
|
-
export * from "./
|
|
271
|
-
export * from "./RulesengineConditionMetricPeriodMonthReset";
|
|
272
|
-
export * from "./RulesengineConditionOperator";
|
|
303
|
+
export * from "./RulesengineConditionType";
|
|
273
304
|
export * from "./RulesengineEntitlementValueType";
|
|
274
305
|
export * from "./RulesengineEntityType";
|
|
275
306
|
export * from "./RulesengineFeatureEntitlement";
|
|
276
|
-
export * from "./RulesengineFeatureEntitlementMetricPeriod";
|
|
277
|
-
export * from "./RulesengineFeatureEntitlementMonthReset";
|
|
278
307
|
export * from "./RulesengineFlag";
|
|
308
|
+
export * from "./RulesengineMetricPeriod";
|
|
309
|
+
export * from "./RulesengineMetricPeriodMonthReset";
|
|
279
310
|
export * from "./RulesengineRule";
|
|
280
|
-
export * from "./
|
|
311
|
+
export * from "./RulesengineRuleType";
|
|
281
312
|
export * from "./RulesengineSubscription";
|
|
282
313
|
export * from "./RulesengineTrait";
|
|
283
314
|
export * from "./RulesengineTraitDefinition";
|
|
284
315
|
export * from "./RulesengineTraitDefinitionComparableType";
|
|
285
316
|
export * from "./RulesengineUser";
|
|
317
|
+
export * from "./RuleType";
|
|
286
318
|
export * from "./RuleView";
|
|
287
319
|
export * from "./ScheduledCheckoutResponseData";
|
|
288
320
|
export * from "./ScheduledCheckoutStatus";
|
|
@@ -293,21 +325,24 @@ export * from "./SkippedEntitlementErrorResponseData";
|
|
|
293
325
|
export * from "./SkippedEntitlementResponseData";
|
|
294
326
|
export * from "./SortDirection";
|
|
295
327
|
export * from "./StripeEmbedInfo";
|
|
328
|
+
export * from "./StripeIntegrationConfig";
|
|
296
329
|
export * from "./SubscriptionStatus";
|
|
297
330
|
export * from "./SubscriptionTraitUpdate";
|
|
298
331
|
export * from "./SubscriptionType";
|
|
299
332
|
export * from "./TemporaryAccessTokenResourceType";
|
|
300
333
|
export * from "./TemporaryAccessTokenResponseData";
|
|
301
334
|
export * from "./TimeSeriesGranularity";
|
|
335
|
+
export * from "./TopFeatureByUsageResponseData";
|
|
336
|
+
export * from "./TopFeaturesByUsageResponseData";
|
|
302
337
|
export * from "./TraitDefinition";
|
|
303
338
|
export * from "./TraitDefinitionComparableType";
|
|
304
339
|
export * from "./TraitType";
|
|
340
|
+
export * from "./TrialStatus";
|
|
305
341
|
export * from "./UpdateAddOnRequestBody";
|
|
342
|
+
export * from "./UpdateAutoTopupOverrideRequestBody";
|
|
306
343
|
export * from "./UpdateBillingPlanCreditGrantRequestBody";
|
|
307
344
|
export * from "./UpdateCreditBundleRequestBody";
|
|
308
345
|
export * from "./UpdateEntitlementReqCommon";
|
|
309
|
-
export * from "./UpdateEntitlementReqCommonMetricPeriod";
|
|
310
|
-
export * from "./UpdateEntitlementReqCommonMetricPeriodMonthReset";
|
|
311
346
|
export * from "./UpdatePayInAdvanceRequestBody";
|
|
312
347
|
export * from "./UpdatePlanRequestBody";
|
|
313
348
|
export * from "./UpdatePlanTraitTraitRequestBody";
|
|
@@ -329,5 +364,7 @@ export * from "./WebhookEventStatus";
|
|
|
329
364
|
export * from "./WebhookRequestType";
|
|
330
365
|
export * from "./WebhookResponseData";
|
|
331
366
|
export * from "./WebhookStatus";
|
|
367
|
+
export * from "./WebhookUrl";
|
|
332
368
|
export * from "./WebScheduledDowngradeWebhookOutput";
|
|
333
369
|
export * from "./WhoAmIResponseData";
|
|
370
|
+
export * from "./WorkOsIntegrationConfig";
|
|
@@ -5,6 +5,7 @@ export class RulesEngineJS {
|
|
|
5
5
|
free(): void;
|
|
6
6
|
[Symbol.dispose](): void;
|
|
7
7
|
checkFlag(flag_json: string, company_json?: string | null, user_json?: string | null): string;
|
|
8
|
+
checkFlagWithOptions(flag_json: string, company_json?: string | null, user_json?: string | null, options_json?: string | null): string;
|
|
8
9
|
getVersionKey(): string;
|
|
9
10
|
constructor();
|
|
10
11
|
}
|
package/dist/wasm/rulesengine.js
CHANGED
|
@@ -41,6 +41,39 @@ class RulesEngineJS {
|
|
|
41
41
|
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @param {string} flag_json
|
|
46
|
+
* @param {string | null} [company_json]
|
|
47
|
+
* @param {string | null} [user_json]
|
|
48
|
+
* @param {string | null} [options_json]
|
|
49
|
+
* @returns {string}
|
|
50
|
+
*/
|
|
51
|
+
checkFlagWithOptions(flag_json, company_json, user_json, options_json) {
|
|
52
|
+
let deferred6_0;
|
|
53
|
+
let deferred6_1;
|
|
54
|
+
try {
|
|
55
|
+
const ptr0 = passStringToWasm0(flag_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
56
|
+
const len0 = WASM_VECTOR_LEN;
|
|
57
|
+
var ptr1 = isLikeNone(company_json) ? 0 : passStringToWasm0(company_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
58
|
+
var len1 = WASM_VECTOR_LEN;
|
|
59
|
+
var ptr2 = isLikeNone(user_json) ? 0 : passStringToWasm0(user_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
60
|
+
var len2 = WASM_VECTOR_LEN;
|
|
61
|
+
var ptr3 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
62
|
+
var len3 = WASM_VECTOR_LEN;
|
|
63
|
+
const ret = wasm.rulesenginejs_checkFlagWithOptions(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
64
|
+
var ptr5 = ret[0];
|
|
65
|
+
var len5 = ret[1];
|
|
66
|
+
if (ret[3]) {
|
|
67
|
+
ptr5 = 0; len5 = 0;
|
|
68
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
69
|
+
}
|
|
70
|
+
deferred6_0 = ptr5;
|
|
71
|
+
deferred6_1 = len5;
|
|
72
|
+
return getStringFromWasm0(ptr5, len5);
|
|
73
|
+
} finally {
|
|
74
|
+
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
44
77
|
/**
|
|
45
78
|
* @returns {string}
|
|
46
79
|
*/
|
|
@@ -58,25 +91,24 @@ class RulesEngineJS {
|
|
|
58
91
|
}
|
|
59
92
|
constructor() {
|
|
60
93
|
const ret = wasm.rulesenginejs_new();
|
|
61
|
-
this.__wbg_ptr = ret
|
|
94
|
+
this.__wbg_ptr = ret;
|
|
62
95
|
RulesEngineJSFinalization.register(this, this.__wbg_ptr, this);
|
|
63
96
|
return this;
|
|
64
97
|
}
|
|
65
98
|
}
|
|
66
99
|
if (Symbol.dispose) RulesEngineJS.prototype[Symbol.dispose] = RulesEngineJS.prototype.free;
|
|
67
100
|
exports.RulesEngineJS = RulesEngineJS;
|
|
68
|
-
|
|
69
101
|
function __wbg_get_imports() {
|
|
70
102
|
const import0 = {
|
|
71
103
|
__proto__: null,
|
|
72
|
-
|
|
104
|
+
__wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
|
|
73
105
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
74
106
|
},
|
|
75
|
-
|
|
107
|
+
__wbg_getTime_09f1dd40a44edb30: function(arg0) {
|
|
76
108
|
const ret = arg0.getTime();
|
|
77
109
|
return ret;
|
|
78
110
|
},
|
|
79
|
-
|
|
111
|
+
__wbg_new_0_2722fcdb71a888a6: function() {
|
|
80
112
|
const ret = new Date();
|
|
81
113
|
return ret;
|
|
82
114
|
},
|
|
@@ -103,11 +135,10 @@ function __wbg_get_imports() {
|
|
|
103
135
|
|
|
104
136
|
const RulesEngineJSFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
105
137
|
? { register: () => {}, unregister: () => {} }
|
|
106
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_rulesenginejs_free(ptr
|
|
138
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rulesenginejs_free(ptr, 1));
|
|
107
139
|
|
|
108
140
|
function getStringFromWasm0(ptr, len) {
|
|
109
|
-
|
|
110
|
-
return decodeText(ptr, len);
|
|
141
|
+
return decodeText(ptr >>> 0, len);
|
|
111
142
|
}
|
|
112
143
|
|
|
113
144
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -189,5 +220,6 @@ let WASM_VECTOR_LEN = 0;
|
|
|
189
220
|
const wasmPath = `${__dirname}/rulesengine_bg.wasm`;
|
|
190
221
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
191
222
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
192
|
-
let
|
|
223
|
+
let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
|
|
224
|
+
let wasm = wasmInstance.exports;
|
|
193
225
|
wasm.__wbindgen_start();
|
|
Binary file
|
|
@@ -14,6 +14,7 @@ export const getResultJson: () => number;
|
|
|
14
14
|
export const getResultJsonLength: () => number;
|
|
15
15
|
export const get_version_key_wasm: () => number;
|
|
16
16
|
export const rulesenginejs_checkFlag: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
17
|
+
export const rulesenginejs_checkFlagWithOptions: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
|
|
17
18
|
export const rulesenginejs_getVersionKey: (a: number) => [number, number];
|
|
18
19
|
export const rulesenginejs_new: () => number;
|
|
19
20
|
export const test_function: () => number;
|
package/dist/wrapper.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as api from "./api";
|
|
2
2
|
import { SchematicClient as BaseClient } from "./Client";
|
|
3
3
|
import { type CacheProvider } from "./cache";
|
|
4
|
-
import { Logger } from "./logger";
|
|
4
|
+
import { type Logger, type LogLevel } from "./logger";
|
|
5
5
|
import type { RedisClient } from "./cache/redis";
|
|
6
6
|
/**
|
|
7
7
|
* Configuration options for the SchematicClient
|
|
@@ -35,6 +35,8 @@ export interface SchematicOptions {
|
|
|
35
35
|
};
|
|
36
36
|
/** If using an API key that is not environment-specific, use this option to specify the environment */
|
|
37
37
|
environmentId?: string;
|
|
38
|
+
/** Custom base URL for the event capture service (default: https://c.schematichq.com) */
|
|
39
|
+
eventCaptureBaseURL?: string;
|
|
38
40
|
/** Interval in milliseconds for flushing event buffer */
|
|
39
41
|
eventBufferInterval?: number;
|
|
40
42
|
/** Default values for feature flags */
|
|
@@ -43,8 +45,10 @@ export interface SchematicOptions {
|
|
|
43
45
|
};
|
|
44
46
|
/** Additional HTTP headers for API requests */
|
|
45
47
|
headers?: Record<string, string>;
|
|
46
|
-
/** Custom logger implementation */
|
|
48
|
+
/** Custom logger implementation. When provided, its own level configuration is respected and `logLevel` is ignored. */
|
|
47
49
|
logger?: Logger;
|
|
50
|
+
/** Minimum level for the default logger (default: "warn"). Ignored when a custom `logger` is provided. */
|
|
51
|
+
logLevel?: LogLevel;
|
|
48
52
|
/** Enable offline mode to prevent network activity */
|
|
49
53
|
offline?: boolean;
|
|
50
54
|
/** The default maximum time to wait for a response in milliseconds */
|
|
@@ -56,6 +60,28 @@ export interface CheckFlagOptions {
|
|
|
56
60
|
/** The maximum time to wait for a response in milliseconds */
|
|
57
61
|
timeoutMs?: number;
|
|
58
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Optional metadata for a track event. Only fields that are explicitly set are
|
|
65
|
+
* sent to the capture service.
|
|
66
|
+
*/
|
|
67
|
+
export interface TrackOptions {
|
|
68
|
+
/** Client-supplied dedupe key. Duplicate events with the same key (scoped to the environment) are dropped server-side for 24 hours. */
|
|
69
|
+
idempotencyKey?: string;
|
|
70
|
+
/** Timestamp the event was sent. Required when trustedClientClock is true. Defaults to the time the event is enqueued. */
|
|
71
|
+
sentAt?: Date;
|
|
72
|
+
/** When true, use sentAt as the effective event timestamp instead of server receipt time. Requires a secret API key and sentAt. */
|
|
73
|
+
trustedClientClock?: boolean;
|
|
74
|
+
/** Import historical data without affecting billing. Requires a secret API key and trustedClientClock. */
|
|
75
|
+
backfill?: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Optional metadata for an identify event. Only fields that are explicitly set
|
|
79
|
+
* are sent to the capture service.
|
|
80
|
+
*/
|
|
81
|
+
export interface IdentifyOptions {
|
|
82
|
+
/** Client-supplied dedupe key. Duplicate events with the same key (scoped to the environment) are dropped server-side for 24 hours. */
|
|
83
|
+
idempotencyKey?: string;
|
|
84
|
+
}
|
|
59
85
|
export interface CheckFlagWithEntitlementResponse {
|
|
60
86
|
companyId?: string;
|
|
61
87
|
entitlement?: api.RulesengineFeatureEntitlement;
|
|
@@ -64,7 +90,7 @@ export interface CheckFlagWithEntitlementResponse {
|
|
|
64
90
|
flagId?: string;
|
|
65
91
|
reason: string;
|
|
66
92
|
ruleId?: string;
|
|
67
|
-
ruleType?: api.
|
|
93
|
+
ruleType?: api.RulesengineRuleType;
|
|
68
94
|
userId?: string;
|
|
69
95
|
value: boolean;
|
|
70
96
|
}
|
|
@@ -110,6 +136,13 @@ export declare class SchematicClient extends BaseClient {
|
|
|
110
136
|
* @throws Will log error and return default values if check fails
|
|
111
137
|
*/
|
|
112
138
|
checkFlags(evalCtx: api.CheckFlagRequestBody, keys?: string[]): Promise<api.CheckFlagResponseData[]>;
|
|
139
|
+
/**
|
|
140
|
+
* Evaluate all requested keys via the DataStream client. Returns an array of
|
|
141
|
+
* results on full success, or null if any key can't be evaluated (caller should
|
|
142
|
+
* fall back to the API path). No flag_check events are enqueued here — bulk
|
|
143
|
+
* checks intentionally do not emit per-flag events.
|
|
144
|
+
*/
|
|
145
|
+
private checkFlagsViaDataStream;
|
|
113
146
|
/**
|
|
114
147
|
* Gracefully shuts down the client by stopping the event buffer and DataStream client
|
|
115
148
|
* @returns Promise that resolves when everything has been stopped
|
|
@@ -118,17 +151,19 @@ export declare class SchematicClient extends BaseClient {
|
|
|
118
151
|
/**
|
|
119
152
|
* Send a non-blocking event to create or update companies and users
|
|
120
153
|
* @param body - The identify event payload containing user properties
|
|
154
|
+
* @param options - Optional event metadata (e.g. idempotencyKey)
|
|
121
155
|
* @returns Promise that resolves when the event has been enqueued
|
|
122
156
|
* @throws Will log error if event enqueueing fails
|
|
123
157
|
*/
|
|
124
|
-
identify(body: api.EventBodyIdentify): Promise<void>;
|
|
158
|
+
identify(body: api.EventBodyIdentify, options?: IdentifyOptions): Promise<void>;
|
|
125
159
|
/**
|
|
126
160
|
* Send a non-blocking event to track usage
|
|
127
161
|
* @param body - The track event payload containing event details
|
|
162
|
+
* @param options - Optional event metadata (e.g. idempotencyKey, trustedClientClock)
|
|
128
163
|
* @returns Promise that resolves when the event has been enqueued
|
|
129
164
|
* @throws Will log error if event enqueueing fails
|
|
130
165
|
*/
|
|
131
|
-
track(body: api.EventBodyTrack): Promise<void>;
|
|
166
|
+
track(body: api.EventBodyTrack, options?: TrackOptions): Promise<void>;
|
|
132
167
|
/**
|
|
133
168
|
* Sets the default value for a specific feature flag
|
|
134
169
|
* @param flag - The feature flag identifier
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-typescript-node",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,26 +27,26 @@
|
|
|
27
27
|
"form-data": "^4.0.4",
|
|
28
28
|
"formdata-node": "^6.0.3",
|
|
29
29
|
"node-fetch": "^2.7.0",
|
|
30
|
-
"readable-stream": "^4.
|
|
30
|
+
"readable-stream": "^4.7.0",
|
|
31
31
|
"ws": "^8.18.1",
|
|
32
32
|
"@types/ws": "^8.18.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node-fetch": "^2.6.12",
|
|
36
|
-
"@types/readable-stream": "^4.0.
|
|
37
|
-
"webpack": "^5.
|
|
38
|
-
"ts-loader": "^9.5.
|
|
36
|
+
"@types/readable-stream": "^4.0.23",
|
|
37
|
+
"webpack": "^5.105.4",
|
|
38
|
+
"ts-loader": "^9.5.4",
|
|
39
39
|
"jest": "^29.7.0",
|
|
40
40
|
"@jest/globals": "^29.7.0",
|
|
41
41
|
"@types/jest": "^29.5.14",
|
|
42
42
|
"ts-jest": "^29.3.4",
|
|
43
43
|
"jest-environment-jsdom": "^29.7.0",
|
|
44
44
|
"msw": "2.11.2",
|
|
45
|
-
"@types/node": "^
|
|
46
|
-
"typescript": "~5.
|
|
47
|
-
"@biomejs/biome": "2.4.
|
|
45
|
+
"@types/node": "^20.0.0",
|
|
46
|
+
"typescript": "~5.9.3",
|
|
47
|
+
"@biomejs/biome": "2.4.10",
|
|
48
48
|
"esbuild": "^0.25.9",
|
|
49
|
-
"miniflare": "^4.
|
|
49
|
+
"miniflare": "^4.20260421.0"
|
|
50
50
|
},
|
|
51
51
|
"browser": {
|
|
52
52
|
"fs": false,
|
package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const CreateCompanyOverrideRequestBodyMetricPeriod: {
|
|
2
|
-
readonly AllTime: "all_time";
|
|
3
|
-
readonly CurrentMonth: "current_month";
|
|
4
|
-
readonly CurrentWeek: "current_week";
|
|
5
|
-
readonly CurrentDay: "current_day";
|
|
6
|
-
};
|
|
7
|
-
export type CreateCompanyOverrideRequestBodyMetricPeriod = (typeof CreateCompanyOverrideRequestBodyMetricPeriod)[keyof typeof CreateCompanyOverrideRequestBodyMetricPeriod];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const CreateCompanyOverrideRequestBodyMetricPeriodMonthReset: {
|
|
2
|
-
readonly FirstOfMonth: "first_of_month";
|
|
3
|
-
readonly BillingCycle: "billing_cycle";
|
|
4
|
-
};
|
|
5
|
-
export type CreateCompanyOverrideRequestBodyMetricPeriodMonthReset = (typeof CreateCompanyOverrideRequestBodyMetricPeriodMonthReset)[keyof typeof CreateCompanyOverrideRequestBodyMetricPeriodMonthReset];
|
package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const CreatePlanEntitlementRequestBodyMetricPeriod: {
|
|
2
|
-
readonly AllTime: "all_time";
|
|
3
|
-
readonly CurrentMonth: "current_month";
|
|
4
|
-
readonly CurrentWeek: "current_week";
|
|
5
|
-
readonly CurrentDay: "current_day";
|
|
6
|
-
};
|
|
7
|
-
export type CreatePlanEntitlementRequestBodyMetricPeriod = (typeof CreatePlanEntitlementRequestBodyMetricPeriod)[keyof typeof CreatePlanEntitlementRequestBodyMetricPeriod];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const CreatePlanEntitlementRequestBodyMetricPeriodMonthReset: {
|
|
2
|
-
readonly FirstOfMonth: "first_of_month";
|
|
3
|
-
readonly BillingCycle: "billing_cycle";
|
|
4
|
-
};
|
|
5
|
-
export type CreatePlanEntitlementRequestBodyMetricPeriodMonthReset = (typeof CreatePlanEntitlementRequestBodyMetricPeriodMonthReset)[keyof typeof CreatePlanEntitlementRequestBodyMetricPeriodMonthReset];
|
package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const UpdateCompanyOverrideRequestBodyMetricPeriod: {
|
|
2
|
-
readonly AllTime: "all_time";
|
|
3
|
-
readonly CurrentMonth: "current_month";
|
|
4
|
-
readonly CurrentWeek: "current_week";
|
|
5
|
-
readonly CurrentDay: "current_day";
|
|
6
|
-
};
|
|
7
|
-
export type UpdateCompanyOverrideRequestBodyMetricPeriod = (typeof UpdateCompanyOverrideRequestBodyMetricPeriod)[keyof typeof UpdateCompanyOverrideRequestBodyMetricPeriod];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset: {
|
|
2
|
-
readonly FirstOfMonth: "first_of_month";
|
|
3
|
-
readonly BillingCycle: "billing_cycle";
|
|
4
|
-
};
|
|
5
|
-
export type UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset = (typeof UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset)[keyof typeof UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset];
|
package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const UpdatePlanEntitlementRequestBodyMetricPeriod: {
|
|
2
|
-
readonly AllTime: "all_time";
|
|
3
|
-
readonly CurrentMonth: "current_month";
|
|
4
|
-
readonly CurrentWeek: "current_week";
|
|
5
|
-
readonly CurrentDay: "current_day";
|
|
6
|
-
};
|
|
7
|
-
export type UpdatePlanEntitlementRequestBodyMetricPeriod = (typeof UpdatePlanEntitlementRequestBodyMetricPeriod)[keyof typeof UpdatePlanEntitlementRequestBodyMetricPeriod];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset: {
|
|
2
|
-
readonly FirstOfMonth: "first_of_month";
|
|
3
|
-
readonly BillingCycle: "billing_cycle";
|
|
4
|
-
};
|
|
5
|
-
export type UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset = (typeof UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset)[keyof typeof UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset];
|