@schematichq/schematic-typescript-node 1.1.4 → 1.1.5
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/Client.d.ts +3 -0
- package/Client.js +10 -5
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.d.ts +1 -1
- package/api/resources/accounts/client/Client.js +15 -15
- package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/api/resources/billing/client/Client.d.ts +100 -31
- package/api/resources/billing/client/Client.js +512 -71
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
- package/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
- package/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
- package/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
- package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
- package/api/resources/billing/client/requests/index.d.ts +7 -3
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
- package/api/resources/{plans/types/ListActivePlansResponse.d.ts → billing/types/ListInvoicesResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListMetersParams.d.ts +13 -0
- package/{dist/api/resources/plans/types/ListActivePlansResponse.d.ts → api/resources/billing/types/ListMetersResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
- package/api/resources/billing/types/{UpdateBillingPlanGroupResponse.d.ts → UpsertInvoiceResponse.d.ts} +2 -2
- package/api/resources/billing/types/{CreateBillingPlanGroupResponse.d.ts → UpsertPaymentMethodResponse.d.ts} +2 -2
- package/api/resources/billing/types/index.d.ts +12 -4
- package/api/resources/billing/types/index.js +12 -4
- package/api/resources/companies/client/Client.d.ts +3 -3
- package/api/resources/companies/client/Client.js +50 -44
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/api/resources/components/client/Client.d.ts +9 -9
- package/api/resources/components/client/Client.js +49 -40
- package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/api/resources/components/client/requests/index.d.ts +1 -0
- package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/api/resources/{billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts → components/types/PreviewComponentDataResponse.d.ts} +3 -3
- package/api/resources/components/types/index.d.ts +2 -1
- package/api/resources/components/types/index.js +2 -1
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/entitlements/client/Client.d.ts +4 -4
- package/api/resources/entitlements/client/Client.js +31 -25
- package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
- package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/events/client/Client.d.ts +2 -2
- package/api/resources/events/client/Client.js +10 -10
- package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/api/resources/features/client/Client.d.ts +21 -21
- package/api/resources/features/client/Client.js +40 -40
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/plangroups/client/Client.d.ts +74 -0
- package/api/resources/plangroups/client/Client.js +346 -0
- package/api/resources/plangroups/client/index.d.ts +1 -0
- package/api/resources/plangroups/client/index.js +17 -0
- package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -1
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -1
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/api/resources/plangroups/client/requests/index.js +2 -0
- package/api/resources/plangroups/index.d.ts +2 -0
- package/api/resources/plangroups/index.js +18 -0
- package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/index.d.ts +3 -0
- package/api/resources/plangroups/types/index.js +19 -0
- package/api/resources/plans/client/Client.d.ts +5 -17
- package/api/resources/plans/client/Client.js +35 -112
- package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
- package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/api/resources/plans/types/index.d.ts +0 -1
- package/api/resources/plans/types/index.js +0 -1
- package/api/resources/webhooks/client/Client.d.ts +1 -1
- package/api/resources/webhooks/client/Client.js +18 -18
- package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/api/types/BillingCustomerSubscription.d.ts +1 -0
- package/api/types/BillingMeterResponseData.d.ts +10 -0
- package/api/types/BillingMeterResponseData.js +5 -0
- package/api/types/BillingPriceResponseData.d.ts +1 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/api/types/BillingProductPricing.d.ts +3 -2
- package/api/types/BillingSubscriptionResponseData.d.ts +4 -4
- package/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/api/types/CompanyDetailResponseData.d.ts +4 -3
- package/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
- package/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
- package/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
- package/api/types/ComponentHydrateResponseData.d.ts +5 -3
- package/api/types/ComponentPreviewResponseData.d.ts +18 -0
- package/api/types/ComponentPreviewResponseData.js +5 -0
- package/api/types/ComponentResponseData.d.ts +3 -0
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
- package/api/types/CreateReqCommonMetricPeriod.js +1 -0
- package/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/api/types/GenericPreviewObject.d.ts +9 -0
- package/api/types/GenericPreviewObject.js +5 -0
- package/api/types/InvoiceRequestBody.d.ts +16 -0
- package/api/types/InvoiceRequestBody.js +5 -0
- package/api/types/InvoiceResponseData.d.ts +22 -0
- package/api/types/InvoiceResponseData.js +5 -0
- package/api/types/MeterRequestBody.d.ts +8 -0
- package/api/types/MeterRequestBody.js +5 -0
- package/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/api/types/PaymentMethodRequestBody.js +5 -0
- package/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/api/types/PaymentMethodResponseData.js +5 -0
- package/api/types/PlanDetailResponseData.d.ts +4 -3
- package/api/types/PlanEntitlementResponseData.d.ts +0 -3
- package/api/types/PlanGroupDetailResponseData.d.ts +13 -0
- package/api/types/PlanGroupDetailResponseData.js +5 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
- package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/{dist/api/types/BillingPlanGroupResponseData.d.ts → api/types/PlanGroupResponseData.d.ts} +2 -1
- package/api/types/PlanGroupResponseData.js +5 -0
- package/api/types/PlanResponseData.d.ts +1 -0
- package/api/types/StripeEmbedInfo.d.ts +7 -0
- package/api/types/StripeEmbedInfo.js +5 -0
- package/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
- package/api/types/UpdateReqCommonMetricPeriod.js +1 -0
- package/api/types/index.d.ts +14 -2
- package/api/types/index.js +14 -2
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +10 -5
- package/dist/api/resources/accesstokens/client/Client.js +1 -1
- package/dist/api/resources/accounts/client/Client.d.ts +1 -1
- package/dist/api/resources/accounts/client/Client.js +15 -15
- package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/dist/api/resources/billing/client/Client.d.ts +100 -31
- package/dist/api/resources/billing/client/Client.js +512 -71
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +7 -3
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
- package/dist/api/resources/billing/types/ListMetersParams.d.ts +13 -0
- package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
- package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
- package/dist/api/resources/billing/types/index.d.ts +12 -4
- package/dist/api/resources/billing/types/index.js +12 -4
- package/dist/api/resources/companies/client/Client.d.ts +3 -3
- package/dist/api/resources/companies/client/Client.js +50 -44
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/dist/api/resources/components/client/Client.d.ts +9 -9
- package/dist/api/resources/components/client/Client.js +49 -40
- package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
- package/dist/api/resources/components/client/requests/index.d.ts +1 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
- package/{api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts → dist/api/resources/components/types/PreviewComponentDataResponse.d.ts} +3 -3
- package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
- package/dist/api/resources/components/types/index.d.ts +2 -1
- package/dist/api/resources/components/types/index.js +2 -1
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
- package/dist/api/resources/entitlements/client/Client.js +31 -25
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/events/client/Client.d.ts +2 -2
- package/dist/api/resources/events/client/Client.js +10 -10
- package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/Client.d.ts +21 -21
- package/dist/api/resources/features/client/Client.js +40 -40
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
- package/dist/api/resources/plangroups/client/Client.js +346 -0
- package/dist/api/resources/plangroups/client/index.d.ts +1 -0
- package/dist/api/resources/plangroups/client/index.js +17 -0
- package/{api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -1
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -1
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/index.js +2 -0
- package/dist/api/resources/plangroups/index.d.ts +2 -0
- package/dist/api/resources/plangroups/index.js +18 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/index.d.ts +3 -0
- package/dist/api/resources/plangroups/types/index.js +19 -0
- package/dist/api/resources/plans/client/Client.d.ts +5 -17
- package/dist/api/resources/plans/client/Client.js +35 -112
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/index.d.ts +0 -1
- package/dist/api/resources/plans/types/index.js +0 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/api/resources/webhooks/client/Client.js +18 -18
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/dist/api/types/BillingCustomerSubscription.d.ts +1 -0
- package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
- package/dist/api/types/BillingMeterResponseData.js +5 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/dist/api/types/BillingProductPricing.d.ts +3 -2
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +4 -4
- package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/api/types/CompanyDetailResponseData.d.ts +4 -3
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
- package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/dist/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
- package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +5 -3
- package/dist/api/types/ComponentPreviewResponseData.d.ts +18 -0
- package/dist/api/types/ComponentPreviewResponseData.js +5 -0
- package/dist/api/types/ComponentResponseData.d.ts +3 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
- package/dist/api/types/CreateReqCommonMetricPeriod.js +1 -0
- package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/api/types/GenericPreviewObject.d.ts +9 -0
- package/dist/api/types/GenericPreviewObject.js +5 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
- package/dist/api/types/InvoiceRequestBody.js +5 -0
- package/dist/api/types/InvoiceResponseData.d.ts +22 -0
- package/dist/api/types/InvoiceResponseData.js +5 -0
- package/dist/api/types/MeterRequestBody.d.ts +8 -0
- package/dist/api/types/MeterRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/dist/api/types/PaymentMethodRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/dist/api/types/PaymentMethodResponseData.js +5 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +4 -3
- package/dist/api/types/PlanEntitlementResponseData.d.ts +0 -3
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +13 -0
- package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/{api/types/BillingPlanGroupResponseData.d.ts → dist/api/types/PlanGroupResponseData.d.ts} +2 -1
- package/dist/api/types/PlanGroupResponseData.js +5 -0
- package/dist/api/types/PlanResponseData.d.ts +1 -0
- package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
- package/dist/api/types/StripeEmbedInfo.js +5 -0
- package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
- package/dist/api/types/UpdateReqCommonMetricPeriod.js +1 -0
- package/dist/api/types/index.d.ts +14 -2
- package/dist/api/types/index.js +14 -2
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/dist/core/schemas/Schema.d.ts +1 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -3
- package/dist/serialization/resources/billing/client/requests/index.js +7 -7
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/{serialization/resources/plans/types/ListActivePlansResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
- package/dist/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.js +35 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/{UpdateBillingPlanGroupResponse.js → ListPaymentMethodsResponse.js} +6 -5
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
- package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/dist/serialization/resources/{plans/types/ListActivePlansResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/UpsertInvoiceResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertPaymentMethodResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/index.d.ts +12 -4
- package/dist/serialization/resources/billing/types/index.js +12 -4
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/dist/serialization/resources/{billing/types/CreateBillingPlanGroupResponse.js → components/types/PreviewComponentDataResponse.js} +6 -5
- package/dist/serialization/resources/components/types/index.d.ts +2 -1
- package/dist/serialization/resources/components/types/index.js +2 -1
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/index.js +17 -0
- package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -2
- package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +3 -2
- package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -2
- package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +3 -2
- package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/dist/serialization/resources/plangroups/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/index.js +18 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/dist/serialization/resources/plangroups/types/index.js +19 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/dist/serialization/resources/plans/types/index.d.ts +0 -1
- package/dist/serialization/resources/plans/types/index.js +0 -1
- package/dist/serialization/types/BillingCustomerSubscription.d.ts +1 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +1 -0
- package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/dist/serialization/types/BillingMeterResponseData.js +37 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingPriceResponseData.js +1 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +3 -1
- package/dist/serialization/types/BillingProductPricing.d.ts +3 -2
- package/dist/serialization/types/BillingProductPricing.js +3 -2
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
- package/dist/serialization/types/BillingSubscriptionResponseData.js +4 -1
- package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +7 -5
- package/dist/serialization/types/CompanyDetailResponseData.js +7 -5
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/{serialization/types/BillingPlan.js → dist/serialization/types/CompanyPlanWithBillingSubView.js} +3 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +7 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +9 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +48 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
- package/dist/serialization/types/GenericPreviewObject.d.ts +15 -0
- package/dist/serialization/types/GenericPreviewObject.js +36 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/dist/serialization/types/InvoiceRequestBody.js +43 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/dist/serialization/types/InvoiceResponseData.js +49 -0
- package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
- package/dist/serialization/{resources/billing/client/requests/ChangeSubscriptionRequestBody.js → types/MeterRequestBody.js} +6 -6
- package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanDetailResponseData.js +5 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +37 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
- package/dist/serialization/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +3 -2
- package/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/PlanGroupResponseData.js} +3 -2
- package/dist/serialization/types/PlanResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanResponseData.js +1 -0
- package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/dist/serialization/types/StripeEmbedInfo.js +34 -0
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/index.d.ts +14 -2
- package/dist/serialization/types/index.js +14 -2
- package/package.json +9 -3
- package/reference.md +403 -81
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/serialization/resources/billing/client/requests/index.d.ts +3 -3
- package/serialization/resources/billing/client/requests/index.js +7 -7
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
- package/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
- package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/serialization/resources/billing/types/ListMetersParams.js +35 -0
- package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/{dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js → serialization/resources/billing/types/ListPaymentMethodsResponse.js} +6 -5
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
- package/serialization/resources/billing/types/index.d.ts +12 -4
- package/serialization/resources/billing/types/index.js +12 -4
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/components/types/PreviewComponentDataResponse.js} +6 -5
- package/serialization/resources/components/types/index.d.ts +2 -1
- package/serialization/resources/components/types/index.js +2 -1
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/serialization/resources/plangroups/client/index.js +17 -0
- package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +3 -2
- package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +3 -2
- package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +3 -2
- package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +3 -2
- package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/serialization/resources/plangroups/index.d.ts +2 -0
- package/serialization/resources/plangroups/index.js +18 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/serialization/resources/plangroups/types/index.js +19 -0
- package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/serialization/resources/plans/types/index.d.ts +0 -1
- package/serialization/resources/plans/types/index.js +0 -1
- package/serialization/types/BillingCustomerSubscription.d.ts +1 -0
- package/serialization/types/BillingCustomerSubscription.js +1 -0
- package/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/serialization/types/BillingMeterResponseData.js +37 -0
- package/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/serialization/types/BillingPriceResponseData.js +1 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +3 -1
- package/serialization/types/BillingProductForSubscriptionResponseData.js +3 -1
- package/serialization/types/BillingProductPricing.d.ts +3 -2
- package/serialization/types/BillingProductPricing.js +3 -2
- package/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
- package/serialization/types/BillingSubscriptionResponseData.js +4 -1
- package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/serialization/types/CheckFlagRequestBody.js +2 -2
- package/serialization/types/CompanyDetailResponseData.d.ts +7 -5
- package/serialization/types/CompanyDetailResponseData.js +7 -5
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/{dist/serialization/types/BillingPlan.js → serialization/types/CompanyPlanWithBillingSubView.js} +3 -2
- package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
- package/serialization/types/CompanySubscriptionResponseData.js +7 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
- package/serialization/types/ComponentHydrateResponseData.js +9 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
- package/serialization/types/ComponentPreviewResponseData.js +48 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
- package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/serialization/types/EventBodyFlagCheck.js +2 -2
- package/serialization/types/GenericPreviewObject.d.ts +15 -0
- package/serialization/types/GenericPreviewObject.js +36 -0
- package/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/serialization/types/InvoiceRequestBody.js +43 -0
- package/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/serialization/types/InvoiceResponseData.js +49 -0
- package/serialization/types/MeterRequestBody.d.ts +14 -0
- package/serialization/{resources/billing/client/requests/ChangeSubscriptionRequestBody.js → types/MeterRequestBody.js} +6 -6
- package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/serialization/types/PaymentMethodResponseData.js +50 -0
- package/serialization/types/PlanDetailResponseData.d.ts +5 -0
- package/serialization/types/PlanDetailResponseData.js +5 -0
- package/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/serialization/types/PlanGroupDetailResponseData.js +37 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
- package/serialization/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +3 -2
- package/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/PlanGroupResponseData.js} +3 -2
- package/serialization/types/PlanResponseData.d.ts +1 -0
- package/serialization/types/PlanResponseData.js +1 -0
- package/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/serialization/types/StripeEmbedInfo.js +34 -0
- package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
- package/serialization/types/index.d.ts +14 -2
- package/serialization/types/index.js +14 -2
- package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
- package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
- package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -9
- package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
- package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +0 -35
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +0 -35
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +0 -35
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +0 -35
- package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- /package/api/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CountBillingProductsRequest.js} +0 -0
- /package/api/resources/billing/client/requests/{CreateBillingPlanGroupRequestBody.js → CreateInvoiceRequestBody.js} +0 -0
- /package/api/resources/billing/client/requests/{UpdateBillingPlanGroupRequestBody.js → CreateMeterRequestBody.js} +0 -0
- /package/api/resources/billing/{types/ChangeSubscriptionWebResponse.js → client/requests/CreatePaymentMethodRequestBody.js} +0 -0
- /package/api/resources/billing/{types/CreateBillingPlanGroupResponse.js → client/requests/ListInvoicesRequest.js} +0 -0
- /package/api/resources/billing/{types/GetBillingPlanGroupByAccountIdResponse.js → client/requests/ListMetersRequest.js} +0 -0
- /package/api/resources/billing/{types/UpdateBillingPlanGroupResponse.js → client/requests/ListPaymentMethodsRequest.js} +0 -0
- /package/api/resources/{components/types/HydrateComponentResponse.js → billing/types/CountBillingProductsParams.js} +0 -0
- /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/CountBillingProductsResponse.js} +0 -0
- /package/api/{types/BillingPlan.js → resources/billing/types/DeleteProductPriceResponse.js} +0 -0
- /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListInvoicesParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/ListInvoicesResponse.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/ListMetersParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/ListMetersResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/ListPaymentMethodsParams.js} +0 -0
- /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
- /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
- /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
- /package/{dist/api/types/BillingPlan.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
- /package/{dist/api/types/BillingPlanGroupResponseData.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
package/reference.md
CHANGED
|
@@ -552,7 +552,7 @@ await client.accounts.listEnvironments();
|
|
|
552
552
|
|
|
553
553
|
```typescript
|
|
554
554
|
await client.accounts.createEnvironment({
|
|
555
|
-
environmentType:
|
|
555
|
+
environmentType: "development",
|
|
556
556
|
name: "name",
|
|
557
557
|
});
|
|
558
558
|
```
|
|
@@ -761,8 +761,8 @@ await client.features.countAudienceCompanies({
|
|
|
761
761
|
{
|
|
762
762
|
conditions: [
|
|
763
763
|
{
|
|
764
|
-
conditionType:
|
|
765
|
-
operator:
|
|
764
|
+
conditionType: "company",
|
|
765
|
+
operator: "eq",
|
|
766
766
|
resourceIds: ["resource_ids"],
|
|
767
767
|
},
|
|
768
768
|
],
|
|
@@ -770,8 +770,8 @@ await client.features.countAudienceCompanies({
|
|
|
770
770
|
],
|
|
771
771
|
conditions: [
|
|
772
772
|
{
|
|
773
|
-
conditionType:
|
|
774
|
-
operator:
|
|
773
|
+
conditionType: "company",
|
|
774
|
+
operator: "eq",
|
|
775
775
|
resourceIds: ["resource_ids"],
|
|
776
776
|
},
|
|
777
777
|
],
|
|
@@ -828,8 +828,8 @@ await client.features.countAudienceUsers({
|
|
|
828
828
|
{
|
|
829
829
|
conditions: [
|
|
830
830
|
{
|
|
831
|
-
conditionType:
|
|
832
|
-
operator:
|
|
831
|
+
conditionType: "company",
|
|
832
|
+
operator: "eq",
|
|
833
833
|
resourceIds: ["resource_ids"],
|
|
834
834
|
},
|
|
835
835
|
],
|
|
@@ -837,8 +837,8 @@ await client.features.countAudienceUsers({
|
|
|
837
837
|
],
|
|
838
838
|
conditions: [
|
|
839
839
|
{
|
|
840
|
-
conditionType:
|
|
841
|
-
operator:
|
|
840
|
+
conditionType: "company",
|
|
841
|
+
operator: "eq",
|
|
842
842
|
resourceIds: ["resource_ids"],
|
|
843
843
|
},
|
|
844
844
|
],
|
|
@@ -895,8 +895,8 @@ await client.features.listAudienceCompanies({
|
|
|
895
895
|
{
|
|
896
896
|
conditions: [
|
|
897
897
|
{
|
|
898
|
-
conditionType:
|
|
899
|
-
operator:
|
|
898
|
+
conditionType: "company",
|
|
899
|
+
operator: "eq",
|
|
900
900
|
resourceIds: ["resource_ids"],
|
|
901
901
|
},
|
|
902
902
|
],
|
|
@@ -904,8 +904,8 @@ await client.features.listAudienceCompanies({
|
|
|
904
904
|
],
|
|
905
905
|
conditions: [
|
|
906
906
|
{
|
|
907
|
-
conditionType:
|
|
908
|
-
operator:
|
|
907
|
+
conditionType: "company",
|
|
908
|
+
operator: "eq",
|
|
909
909
|
resourceIds: ["resource_ids"],
|
|
910
910
|
},
|
|
911
911
|
],
|
|
@@ -962,8 +962,8 @@ await client.features.listAudienceUsers({
|
|
|
962
962
|
{
|
|
963
963
|
conditions: [
|
|
964
964
|
{
|
|
965
|
-
conditionType:
|
|
966
|
-
operator:
|
|
965
|
+
conditionType: "company",
|
|
966
|
+
operator: "eq",
|
|
967
967
|
resourceIds: ["resource_ids"],
|
|
968
968
|
},
|
|
969
969
|
],
|
|
@@ -971,8 +971,8 @@ await client.features.listAudienceUsers({
|
|
|
971
971
|
],
|
|
972
972
|
conditions: [
|
|
973
973
|
{
|
|
974
|
-
conditionType:
|
|
975
|
-
operator:
|
|
974
|
+
conditionType: "company",
|
|
975
|
+
operator: "eq",
|
|
976
976
|
resourceIds: ["resource_ids"],
|
|
977
977
|
},
|
|
978
978
|
],
|
|
@@ -1074,7 +1074,7 @@ await client.features.listFeatures();
|
|
|
1074
1074
|
```typescript
|
|
1075
1075
|
await client.features.createFeature({
|
|
1076
1076
|
description: "description",
|
|
1077
|
-
featureType:
|
|
1077
|
+
featureType: "boolean",
|
|
1078
1078
|
name: "name",
|
|
1079
1079
|
});
|
|
1080
1080
|
```
|
|
@@ -1591,8 +1591,8 @@ await client.features.updateFlagRules("flag_id", {
|
|
|
1591
1591
|
{
|
|
1592
1592
|
conditions: [
|
|
1593
1593
|
{
|
|
1594
|
-
conditionType:
|
|
1595
|
-
operator:
|
|
1594
|
+
conditionType: "company",
|
|
1595
|
+
operator: "eq",
|
|
1596
1596
|
resourceIds: ["resource_ids"],
|
|
1597
1597
|
},
|
|
1598
1598
|
],
|
|
@@ -1600,8 +1600,8 @@ await client.features.updateFlagRules("flag_id", {
|
|
|
1600
1600
|
],
|
|
1601
1601
|
conditions: [
|
|
1602
1602
|
{
|
|
1603
|
-
conditionType:
|
|
1604
|
-
operator:
|
|
1603
|
+
conditionType: "company",
|
|
1604
|
+
operator: "eq",
|
|
1605
1605
|
resourceIds: ["resource_ids"],
|
|
1606
1606
|
},
|
|
1607
1607
|
],
|
|
@@ -1959,7 +1959,7 @@ await client.billing.countCustomers();
|
|
|
1959
1959
|
</dl>
|
|
1960
1960
|
</details>
|
|
1961
1961
|
|
|
1962
|
-
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">
|
|
1962
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listInvoices</a>({ ...params }) -> Schematic.ListInvoicesResponse</code></summary>
|
|
1963
1963
|
<dl>
|
|
1964
1964
|
<dd>
|
|
1965
1965
|
|
|
@@ -1972,7 +1972,9 @@ await client.billing.countCustomers();
|
|
|
1972
1972
|
<dd>
|
|
1973
1973
|
|
|
1974
1974
|
```typescript
|
|
1975
|
-
await client.billing.
|
|
1975
|
+
await client.billing.listInvoices({
|
|
1976
|
+
customerExternalId: "customer_external_id",
|
|
1977
|
+
});
|
|
1976
1978
|
```
|
|
1977
1979
|
|
|
1978
1980
|
</dd>
|
|
@@ -1988,6 +1990,14 @@ await client.billing.getBillingPlanGroupByAccountId();
|
|
|
1988
1990
|
<dl>
|
|
1989
1991
|
<dd>
|
|
1990
1992
|
|
|
1993
|
+
**request:** `Schematic.ListInvoicesRequest`
|
|
1994
|
+
|
|
1995
|
+
</dd>
|
|
1996
|
+
</dl>
|
|
1997
|
+
|
|
1998
|
+
<dl>
|
|
1999
|
+
<dd>
|
|
2000
|
+
|
|
1991
2001
|
**requestOptions:** `Billing.RequestOptions`
|
|
1992
2002
|
|
|
1993
2003
|
</dd>
|
|
@@ -1999,7 +2009,7 @@ await client.billing.getBillingPlanGroupByAccountId();
|
|
|
1999
2009
|
</dl>
|
|
2000
2010
|
</details>
|
|
2001
2011
|
|
|
2002
|
-
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">
|
|
2012
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertInvoice</a>({ ...params }) -> Schematic.UpsertInvoiceResponse</code></summary>
|
|
2003
2013
|
<dl>
|
|
2004
2014
|
<dd>
|
|
2005
2015
|
|
|
@@ -2012,8 +2022,14 @@ await client.billing.getBillingPlanGroupByAccountId();
|
|
|
2012
2022
|
<dd>
|
|
2013
2023
|
|
|
2014
2024
|
```typescript
|
|
2015
|
-
await client.billing.
|
|
2016
|
-
|
|
2025
|
+
await client.billing.upsertInvoice({
|
|
2026
|
+
amountDue: 1,
|
|
2027
|
+
amountPaid: 1,
|
|
2028
|
+
amountRemaining: 1,
|
|
2029
|
+
collectionMethod: "collection_method",
|
|
2030
|
+
currency: "currency",
|
|
2031
|
+
customerExternalId: "customer_external_id",
|
|
2032
|
+
subtotal: 1,
|
|
2017
2033
|
});
|
|
2018
2034
|
```
|
|
2019
2035
|
|
|
@@ -2030,7 +2046,7 @@ await client.billing.createBillingPlanGroup({
|
|
|
2030
2046
|
<dl>
|
|
2031
2047
|
<dd>
|
|
2032
2048
|
|
|
2033
|
-
**request:** `Schematic.
|
|
2049
|
+
**request:** `Schematic.CreateInvoiceRequestBody`
|
|
2034
2050
|
|
|
2035
2051
|
</dd>
|
|
2036
2052
|
</dl>
|
|
@@ -2049,7 +2065,7 @@ await client.billing.createBillingPlanGroup({
|
|
|
2049
2065
|
</dl>
|
|
2050
2066
|
</details>
|
|
2051
2067
|
|
|
2052
|
-
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">
|
|
2068
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listMeters</a>({ ...params }) -> Schematic.ListMetersResponse</code></summary>
|
|
2053
2069
|
<dl>
|
|
2054
2070
|
<dd>
|
|
2055
2071
|
|
|
@@ -2062,8 +2078,59 @@ await client.billing.createBillingPlanGroup({
|
|
|
2062
2078
|
<dd>
|
|
2063
2079
|
|
|
2064
2080
|
```typescript
|
|
2065
|
-
await client.billing.
|
|
2066
|
-
|
|
2081
|
+
await client.billing.listMeters();
|
|
2082
|
+
```
|
|
2083
|
+
|
|
2084
|
+
</dd>
|
|
2085
|
+
</dl>
|
|
2086
|
+
</dd>
|
|
2087
|
+
</dl>
|
|
2088
|
+
|
|
2089
|
+
#### ⚙️ Parameters
|
|
2090
|
+
|
|
2091
|
+
<dl>
|
|
2092
|
+
<dd>
|
|
2093
|
+
|
|
2094
|
+
<dl>
|
|
2095
|
+
<dd>
|
|
2096
|
+
|
|
2097
|
+
**request:** `Schematic.ListMetersRequest`
|
|
2098
|
+
|
|
2099
|
+
</dd>
|
|
2100
|
+
</dl>
|
|
2101
|
+
|
|
2102
|
+
<dl>
|
|
2103
|
+
<dd>
|
|
2104
|
+
|
|
2105
|
+
**requestOptions:** `Billing.RequestOptions`
|
|
2106
|
+
|
|
2107
|
+
</dd>
|
|
2108
|
+
</dl>
|
|
2109
|
+
</dd>
|
|
2110
|
+
</dl>
|
|
2111
|
+
|
|
2112
|
+
</dd>
|
|
2113
|
+
</dl>
|
|
2114
|
+
</details>
|
|
2115
|
+
|
|
2116
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingMeter</a>({ ...params }) -> Schematic.UpsertBillingMeterResponse</code></summary>
|
|
2117
|
+
<dl>
|
|
2118
|
+
<dd>
|
|
2119
|
+
|
|
2120
|
+
#### 🔌 Usage
|
|
2121
|
+
|
|
2122
|
+
<dl>
|
|
2123
|
+
<dd>
|
|
2124
|
+
|
|
2125
|
+
<dl>
|
|
2126
|
+
<dd>
|
|
2127
|
+
|
|
2128
|
+
```typescript
|
|
2129
|
+
await client.billing.upsertBillingMeter({
|
|
2130
|
+
displayName: "DisplayName",
|
|
2131
|
+
eventName: "EventName",
|
|
2132
|
+
eventPayloadKey: "EventPayloadKey",
|
|
2133
|
+
externalId: "external_id",
|
|
2067
2134
|
});
|
|
2068
2135
|
```
|
|
2069
2136
|
|
|
@@ -2080,15 +2147,109 @@ await client.billing.updateBillingPlanGroup("billing_id", {
|
|
|
2080
2147
|
<dl>
|
|
2081
2148
|
<dd>
|
|
2082
2149
|
|
|
2083
|
-
**
|
|
2150
|
+
**request:** `Schematic.CreateMeterRequestBody`
|
|
2151
|
+
|
|
2152
|
+
</dd>
|
|
2153
|
+
</dl>
|
|
2154
|
+
|
|
2155
|
+
<dl>
|
|
2156
|
+
<dd>
|
|
2157
|
+
|
|
2158
|
+
**requestOptions:** `Billing.RequestOptions`
|
|
2159
|
+
|
|
2160
|
+
</dd>
|
|
2161
|
+
</dl>
|
|
2162
|
+
</dd>
|
|
2163
|
+
</dl>
|
|
2164
|
+
|
|
2165
|
+
</dd>
|
|
2166
|
+
</dl>
|
|
2167
|
+
</details>
|
|
2168
|
+
|
|
2169
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">listPaymentMethods</a>({ ...params }) -> Schematic.ListPaymentMethodsResponse</code></summary>
|
|
2170
|
+
<dl>
|
|
2171
|
+
<dd>
|
|
2172
|
+
|
|
2173
|
+
#### 🔌 Usage
|
|
2174
|
+
|
|
2175
|
+
<dl>
|
|
2176
|
+
<dd>
|
|
2177
|
+
|
|
2178
|
+
<dl>
|
|
2179
|
+
<dd>
|
|
2180
|
+
|
|
2181
|
+
```typescript
|
|
2182
|
+
await client.billing.listPaymentMethods({
|
|
2183
|
+
customerExternalId: "customer_external_id",
|
|
2184
|
+
});
|
|
2185
|
+
```
|
|
2186
|
+
|
|
2187
|
+
</dd>
|
|
2188
|
+
</dl>
|
|
2189
|
+
</dd>
|
|
2190
|
+
</dl>
|
|
2191
|
+
|
|
2192
|
+
#### ⚙️ Parameters
|
|
2193
|
+
|
|
2194
|
+
<dl>
|
|
2195
|
+
<dd>
|
|
2196
|
+
|
|
2197
|
+
<dl>
|
|
2198
|
+
<dd>
|
|
2199
|
+
|
|
2200
|
+
**request:** `Schematic.ListPaymentMethodsRequest`
|
|
2201
|
+
|
|
2202
|
+
</dd>
|
|
2203
|
+
</dl>
|
|
2204
|
+
|
|
2205
|
+
<dl>
|
|
2206
|
+
<dd>
|
|
2207
|
+
|
|
2208
|
+
**requestOptions:** `Billing.RequestOptions`
|
|
2209
|
+
|
|
2210
|
+
</dd>
|
|
2211
|
+
</dl>
|
|
2212
|
+
</dd>
|
|
2213
|
+
</dl>
|
|
2214
|
+
|
|
2215
|
+
</dd>
|
|
2216
|
+
</dl>
|
|
2217
|
+
</details>
|
|
2218
|
+
|
|
2219
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertPaymentMethod</a>({ ...params }) -> Schematic.UpsertPaymentMethodResponse</code></summary>
|
|
2220
|
+
<dl>
|
|
2221
|
+
<dd>
|
|
2222
|
+
|
|
2223
|
+
#### 🔌 Usage
|
|
2224
|
+
|
|
2225
|
+
<dl>
|
|
2226
|
+
<dd>
|
|
2084
2227
|
|
|
2228
|
+
<dl>
|
|
2229
|
+
<dd>
|
|
2230
|
+
|
|
2231
|
+
```typescript
|
|
2232
|
+
await client.billing.upsertPaymentMethod({
|
|
2233
|
+
customerExternalId: "customer_external_id",
|
|
2234
|
+
externalId: "external_id",
|
|
2235
|
+
paymentMethodType: "payment_method_type",
|
|
2236
|
+
});
|
|
2237
|
+
```
|
|
2238
|
+
|
|
2239
|
+
</dd>
|
|
2240
|
+
</dl>
|
|
2085
2241
|
</dd>
|
|
2086
2242
|
</dl>
|
|
2087
2243
|
|
|
2244
|
+
#### ⚙️ Parameters
|
|
2245
|
+
|
|
2246
|
+
<dl>
|
|
2247
|
+
<dd>
|
|
2248
|
+
|
|
2088
2249
|
<dl>
|
|
2089
2250
|
<dd>
|
|
2090
2251
|
|
|
2091
|
-
**request:** `Schematic.
|
|
2252
|
+
**request:** `Schematic.CreatePaymentMethodRequestBody`
|
|
2092
2253
|
|
|
2093
2254
|
</dd>
|
|
2094
2255
|
</dl>
|
|
@@ -2121,6 +2282,7 @@ await client.billing.updateBillingPlanGroup("billing_id", {
|
|
|
2121
2282
|
|
|
2122
2283
|
```typescript
|
|
2123
2284
|
await client.billing.upsertBillingPrice({
|
|
2285
|
+
currency: "currency",
|
|
2124
2286
|
interval: "interval",
|
|
2125
2287
|
price: 1,
|
|
2126
2288
|
priceExternalId: "price_external_id",
|
|
@@ -2208,6 +2370,54 @@ await client.billing.listProductPrices();
|
|
|
2208
2370
|
</dl>
|
|
2209
2371
|
</details>
|
|
2210
2372
|
|
|
2373
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">deleteProductPrice</a>(billingId) -> Schematic.DeleteProductPriceResponse</code></summary>
|
|
2374
|
+
<dl>
|
|
2375
|
+
<dd>
|
|
2376
|
+
|
|
2377
|
+
#### 🔌 Usage
|
|
2378
|
+
|
|
2379
|
+
<dl>
|
|
2380
|
+
<dd>
|
|
2381
|
+
|
|
2382
|
+
<dl>
|
|
2383
|
+
<dd>
|
|
2384
|
+
|
|
2385
|
+
```typescript
|
|
2386
|
+
await client.billing.deleteProductPrice("billing_id");
|
|
2387
|
+
```
|
|
2388
|
+
|
|
2389
|
+
</dd>
|
|
2390
|
+
</dl>
|
|
2391
|
+
</dd>
|
|
2392
|
+
</dl>
|
|
2393
|
+
|
|
2394
|
+
#### ⚙️ Parameters
|
|
2395
|
+
|
|
2396
|
+
<dl>
|
|
2397
|
+
<dd>
|
|
2398
|
+
|
|
2399
|
+
<dl>
|
|
2400
|
+
<dd>
|
|
2401
|
+
|
|
2402
|
+
**billingId:** `string` — billing_id
|
|
2403
|
+
|
|
2404
|
+
</dd>
|
|
2405
|
+
</dl>
|
|
2406
|
+
|
|
2407
|
+
<dl>
|
|
2408
|
+
<dd>
|
|
2409
|
+
|
|
2410
|
+
**requestOptions:** `Billing.RequestOptions`
|
|
2411
|
+
|
|
2412
|
+
</dd>
|
|
2413
|
+
</dl>
|
|
2414
|
+
</dd>
|
|
2415
|
+
</dl>
|
|
2416
|
+
|
|
2417
|
+
</dd>
|
|
2418
|
+
</dl>
|
|
2419
|
+
</details>
|
|
2420
|
+
|
|
2211
2421
|
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingProduct</a>({ ...params }) -> Schematic.UpsertBillingProductResponse</code></summary>
|
|
2212
2422
|
<dl>
|
|
2213
2423
|
<dd>
|
|
@@ -2310,7 +2520,7 @@ await client.billing.listBillingProducts();
|
|
|
2310
2520
|
</dl>
|
|
2311
2521
|
</details>
|
|
2312
2522
|
|
|
2313
|
-
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">
|
|
2523
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">countBillingProducts</a>({ ...params }) -> Schematic.CountBillingProductsResponse</code></summary>
|
|
2314
2524
|
<dl>
|
|
2315
2525
|
<dd>
|
|
2316
2526
|
|
|
@@ -2323,18 +2533,7 @@ await client.billing.listBillingProducts();
|
|
|
2323
2533
|
<dd>
|
|
2324
2534
|
|
|
2325
2535
|
```typescript
|
|
2326
|
-
await client.billing.
|
|
2327
|
-
customerExternalId: "customer_external_id",
|
|
2328
|
-
expiredAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
2329
|
-
productExternalIds: [
|
|
2330
|
-
{
|
|
2331
|
-
price: 1,
|
|
2332
|
-
productExternalId: "product_external_id",
|
|
2333
|
-
},
|
|
2334
|
-
],
|
|
2335
|
-
subscriptionExternalId: "subscription_external_id",
|
|
2336
|
-
totalPrice: 1,
|
|
2337
|
-
});
|
|
2536
|
+
await client.billing.countBillingProducts();
|
|
2338
2537
|
```
|
|
2339
2538
|
|
|
2340
2539
|
</dd>
|
|
@@ -2350,7 +2549,7 @@ await client.billing.upsertBillingSubscription({
|
|
|
2350
2549
|
<dl>
|
|
2351
2550
|
<dd>
|
|
2352
2551
|
|
|
2353
|
-
**request:** `Schematic.
|
|
2552
|
+
**request:** `Schematic.CountBillingProductsRequest`
|
|
2354
2553
|
|
|
2355
2554
|
</dd>
|
|
2356
2555
|
</dl>
|
|
@@ -2369,7 +2568,7 @@ await client.billing.upsertBillingSubscription({
|
|
|
2369
2568
|
</dl>
|
|
2370
2569
|
</details>
|
|
2371
2570
|
|
|
2372
|
-
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">
|
|
2571
|
+
<details><summary><code>client.billing.<a href="/src/api/resources/billing/client/Client.ts">upsertBillingSubscription</a>({ ...params }) -> Schematic.UpsertBillingSubscriptionResponse</code></summary>
|
|
2373
2572
|
<dl>
|
|
2374
2573
|
<dd>
|
|
2375
2574
|
|
|
@@ -2382,10 +2581,21 @@ await client.billing.upsertBillingSubscription({
|
|
|
2382
2581
|
<dd>
|
|
2383
2582
|
|
|
2384
2583
|
```typescript
|
|
2385
|
-
await client.billing.
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2584
|
+
await client.billing.upsertBillingSubscription({
|
|
2585
|
+
currency: "currency",
|
|
2586
|
+
customerExternalId: "customer_external_id",
|
|
2587
|
+
expiredAt: "2024-01-15T09:30:00Z",
|
|
2588
|
+
productExternalIds: [
|
|
2589
|
+
{
|
|
2590
|
+
currency: "currency",
|
|
2591
|
+
interval: "interval",
|
|
2592
|
+
price: 1,
|
|
2593
|
+
priceExternalId: "price_external_id",
|
|
2594
|
+
productExternalId: "product_external_id",
|
|
2595
|
+
},
|
|
2596
|
+
],
|
|
2597
|
+
subscriptionExternalId: "subscription_external_id",
|
|
2598
|
+
totalPrice: 1,
|
|
2389
2599
|
});
|
|
2390
2600
|
```
|
|
2391
2601
|
|
|
@@ -2402,7 +2612,7 @@ await client.billing.changeSubscriptionWeb({
|
|
|
2402
2612
|
<dl>
|
|
2403
2613
|
<dd>
|
|
2404
2614
|
|
|
2405
|
-
**request:** `Schematic.
|
|
2615
|
+
**request:** `Schematic.CreateBillingSubscriptionsRequestBody`
|
|
2406
2616
|
|
|
2407
2617
|
</dd>
|
|
2408
2618
|
</dl>
|
|
@@ -3284,9 +3494,9 @@ await client.companies.listEntityTraitDefinitions();
|
|
|
3284
3494
|
|
|
3285
3495
|
```typescript
|
|
3286
3496
|
await client.companies.getOrCreateEntityTraitDefinition({
|
|
3287
|
-
entityType:
|
|
3497
|
+
entityType: "company",
|
|
3288
3498
|
hierarchy: ["hierarchy"],
|
|
3289
|
-
traitType:
|
|
3499
|
+
traitType: "boolean",
|
|
3290
3500
|
});
|
|
3291
3501
|
```
|
|
3292
3502
|
|
|
@@ -3384,7 +3594,7 @@ await client.companies.getEntityTraitDefinition("entity_trait_definition_id");
|
|
|
3384
3594
|
|
|
3385
3595
|
```typescript
|
|
3386
3596
|
await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
|
|
3387
|
-
traitType:
|
|
3597
|
+
traitType: "boolean",
|
|
3388
3598
|
});
|
|
3389
3599
|
```
|
|
3390
3600
|
|
|
@@ -4053,7 +4263,7 @@ await client.entitlements.listCompanyOverrides();
|
|
|
4053
4263
|
await client.entitlements.createCompanyOverride({
|
|
4054
4264
|
companyId: "company_id",
|
|
4055
4265
|
featureId: "feature_id",
|
|
4056
|
-
valueType:
|
|
4266
|
+
valueType: "boolean",
|
|
4057
4267
|
});
|
|
4058
4268
|
```
|
|
4059
4269
|
|
|
@@ -4151,7 +4361,7 @@ await client.entitlements.getCompanyOverride("company_override_id");
|
|
|
4151
4361
|
|
|
4152
4362
|
```typescript
|
|
4153
4363
|
await client.entitlements.updateCompanyOverride("company_override_id", {
|
|
4154
|
-
valueType:
|
|
4364
|
+
valueType: "boolean",
|
|
4155
4365
|
});
|
|
4156
4366
|
```
|
|
4157
4367
|
|
|
@@ -4651,7 +4861,7 @@ await client.entitlements.listPlanEntitlements();
|
|
|
4651
4861
|
await client.entitlements.createPlanEntitlement({
|
|
4652
4862
|
featureId: "feature_id",
|
|
4653
4863
|
planId: "plan_id",
|
|
4654
|
-
valueType:
|
|
4864
|
+
valueType: "boolean",
|
|
4655
4865
|
});
|
|
4656
4866
|
```
|
|
4657
4867
|
|
|
@@ -4749,7 +4959,7 @@ await client.entitlements.getPlanEntitlement("plan_entitlement_id");
|
|
|
4749
4959
|
|
|
4750
4960
|
```typescript
|
|
4751
4961
|
await client.entitlements.updatePlanEntitlement("plan_entitlement_id", {
|
|
4752
|
-
valueType:
|
|
4962
|
+
valueType: "boolean",
|
|
4753
4963
|
});
|
|
4754
4964
|
```
|
|
4755
4965
|
|
|
@@ -5007,7 +5217,7 @@ await client.components.listComponents();
|
|
|
5007
5217
|
|
|
5008
5218
|
```typescript
|
|
5009
5219
|
await client.components.createComponent({
|
|
5010
|
-
entityType:
|
|
5220
|
+
entityType: "entitlement",
|
|
5011
5221
|
name: "name",
|
|
5012
5222
|
});
|
|
5013
5223
|
```
|
|
@@ -5196,7 +5406,7 @@ await client.components.deleteComponent("component_id");
|
|
|
5196
5406
|
</dl>
|
|
5197
5407
|
</details>
|
|
5198
5408
|
|
|
5199
|
-
<details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">
|
|
5409
|
+
<details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">countComponents</a>({ ...params }) -> Schematic.CountComponentsResponse</code></summary>
|
|
5200
5410
|
<dl>
|
|
5201
5411
|
<dd>
|
|
5202
5412
|
|
|
@@ -5209,7 +5419,7 @@ await client.components.deleteComponent("component_id");
|
|
|
5209
5419
|
<dd>
|
|
5210
5420
|
|
|
5211
5421
|
```typescript
|
|
5212
|
-
await client.components.
|
|
5422
|
+
await client.components.countComponents();
|
|
5213
5423
|
```
|
|
5214
5424
|
|
|
5215
5425
|
</dd>
|
|
@@ -5225,7 +5435,7 @@ await client.components.hydrateComponent("component_id");
|
|
|
5225
5435
|
<dl>
|
|
5226
5436
|
<dd>
|
|
5227
5437
|
|
|
5228
|
-
**
|
|
5438
|
+
**request:** `Schematic.CountComponentsRequest`
|
|
5229
5439
|
|
|
5230
5440
|
</dd>
|
|
5231
5441
|
</dl>
|
|
@@ -5244,7 +5454,7 @@ await client.components.hydrateComponent("component_id");
|
|
|
5244
5454
|
</dl>
|
|
5245
5455
|
</details>
|
|
5246
5456
|
|
|
5247
|
-
<details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">
|
|
5457
|
+
<details><summary><code>client.components.<a href="/src/api/resources/components/client/Client.ts">previewComponentData</a>({ ...params }) -> Schematic.PreviewComponentDataResponse</code></summary>
|
|
5248
5458
|
<dl>
|
|
5249
5459
|
<dd>
|
|
5250
5460
|
|
|
@@ -5257,7 +5467,7 @@ await client.components.hydrateComponent("component_id");
|
|
|
5257
5467
|
<dd>
|
|
5258
5468
|
|
|
5259
5469
|
```typescript
|
|
5260
|
-
await client.components.
|
|
5470
|
+
await client.components.previewComponentData();
|
|
5261
5471
|
```
|
|
5262
5472
|
|
|
5263
5473
|
</dd>
|
|
@@ -5273,7 +5483,7 @@ await client.components.countComponents();
|
|
|
5273
5483
|
<dl>
|
|
5274
5484
|
<dd>
|
|
5275
5485
|
|
|
5276
|
-
**request:** `Schematic.
|
|
5486
|
+
**request:** `Schematic.PreviewComponentDataRequest`
|
|
5277
5487
|
|
|
5278
5488
|
</dd>
|
|
5279
5489
|
</dl>
|
|
@@ -5574,7 +5784,7 @@ await client.crm.upsertCrmProduct({
|
|
|
5574
5784
|
await client.events.createEventBatch({
|
|
5575
5785
|
events: [
|
|
5576
5786
|
{
|
|
5577
|
-
eventType:
|
|
5787
|
+
eventType: "identify",
|
|
5578
5788
|
},
|
|
5579
5789
|
],
|
|
5580
5790
|
});
|
|
@@ -5770,7 +5980,7 @@ await client.events.listEvents();
|
|
|
5770
5980
|
|
|
5771
5981
|
```typescript
|
|
5772
5982
|
await client.events.createEvent({
|
|
5773
|
-
eventType:
|
|
5983
|
+
eventType: "identify",
|
|
5774
5984
|
});
|
|
5775
5985
|
```
|
|
5776
5986
|
|
|
@@ -6010,8 +6220,8 @@ await client.plans.updateAudience("plan_audience_id", {
|
|
|
6010
6220
|
{
|
|
6011
6221
|
conditions: [
|
|
6012
6222
|
{
|
|
6013
|
-
conditionType:
|
|
6014
|
-
operator:
|
|
6223
|
+
conditionType: "company",
|
|
6224
|
+
operator: "eq",
|
|
6015
6225
|
resourceIds: ["resource_ids"],
|
|
6016
6226
|
},
|
|
6017
6227
|
],
|
|
@@ -6019,8 +6229,8 @@ await client.plans.updateAudience("plan_audience_id", {
|
|
|
6019
6229
|
],
|
|
6020
6230
|
conditions: [
|
|
6021
6231
|
{
|
|
6022
|
-
conditionType:
|
|
6023
|
-
operator:
|
|
6232
|
+
conditionType: "company",
|
|
6233
|
+
operator: "eq",
|
|
6024
6234
|
resourceIds: ["resource_ids"],
|
|
6025
6235
|
},
|
|
6026
6236
|
],
|
|
@@ -6179,7 +6389,7 @@ await client.plans.listPlans();
|
|
|
6179
6389
|
await client.plans.createPlan({
|
|
6180
6390
|
description: "description",
|
|
6181
6391
|
name: "name",
|
|
6182
|
-
planType:
|
|
6392
|
+
planType: "plan",
|
|
6183
6393
|
});
|
|
6184
6394
|
```
|
|
6185
6395
|
|
|
@@ -6427,7 +6637,7 @@ await client.plans.upsertBillingProductPlan("plan_id", {
|
|
|
6427
6637
|
</dl>
|
|
6428
6638
|
</details>
|
|
6429
6639
|
|
|
6430
|
-
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">
|
|
6640
|
+
<details><summary><code>client.plans.<a href="/src/api/resources/plans/client/Client.ts">countPlans</a>({ ...params }) -> Schematic.CountPlansResponse</code></summary>
|
|
6431
6641
|
<dl>
|
|
6432
6642
|
<dd>
|
|
6433
6643
|
|
|
@@ -6440,7 +6650,7 @@ await client.plans.upsertBillingProductPlan("plan_id", {
|
|
|
6440
6650
|
<dd>
|
|
6441
6651
|
|
|
6442
6652
|
```typescript
|
|
6443
|
-
await client.plans.
|
|
6653
|
+
await client.plans.countPlans();
|
|
6444
6654
|
```
|
|
6445
6655
|
|
|
6446
6656
|
</dd>
|
|
@@ -6456,6 +6666,14 @@ await client.plans.listActivePlans();
|
|
|
6456
6666
|
<dl>
|
|
6457
6667
|
<dd>
|
|
6458
6668
|
|
|
6669
|
+
**request:** `Schematic.CountPlansRequest`
|
|
6670
|
+
|
|
6671
|
+
</dd>
|
|
6672
|
+
</dl>
|
|
6673
|
+
|
|
6674
|
+
<dl>
|
|
6675
|
+
<dd>
|
|
6676
|
+
|
|
6459
6677
|
**requestOptions:** `Plans.RequestOptions`
|
|
6460
6678
|
|
|
6461
6679
|
</dd>
|
|
@@ -6467,7 +6685,9 @@ await client.plans.listActivePlans();
|
|
|
6467
6685
|
</dl>
|
|
6468
6686
|
</details>
|
|
6469
6687
|
|
|
6470
|
-
|
|
6688
|
+
## plangroups
|
|
6689
|
+
|
|
6690
|
+
<details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">getPlanGroup</a>() -> Schematic.GetPlanGroupResponse</code></summary>
|
|
6471
6691
|
<dl>
|
|
6472
6692
|
<dd>
|
|
6473
6693
|
|
|
@@ -6480,7 +6700,7 @@ await client.plans.listActivePlans();
|
|
|
6480
6700
|
<dd>
|
|
6481
6701
|
|
|
6482
6702
|
```typescript
|
|
6483
|
-
await client.
|
|
6703
|
+
await client.plangroups.getPlanGroup();
|
|
6484
6704
|
```
|
|
6485
6705
|
|
|
6486
6706
|
</dd>
|
|
@@ -6496,15 +6716,117 @@ await client.plans.countPlans();
|
|
|
6496
6716
|
<dl>
|
|
6497
6717
|
<dd>
|
|
6498
6718
|
|
|
6499
|
-
**
|
|
6719
|
+
**requestOptions:** `Plangroups.RequestOptions`
|
|
6500
6720
|
|
|
6501
6721
|
</dd>
|
|
6502
6722
|
</dl>
|
|
6723
|
+
</dd>
|
|
6724
|
+
</dl>
|
|
6725
|
+
|
|
6726
|
+
</dd>
|
|
6727
|
+
</dl>
|
|
6728
|
+
</details>
|
|
6503
6729
|
|
|
6730
|
+
<details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">createPlanGroup</a>({ ...params }) -> Schematic.CreatePlanGroupResponse</code></summary>
|
|
6504
6731
|
<dl>
|
|
6505
6732
|
<dd>
|
|
6506
6733
|
|
|
6507
|
-
|
|
6734
|
+
#### 🔌 Usage
|
|
6735
|
+
|
|
6736
|
+
<dl>
|
|
6737
|
+
<dd>
|
|
6738
|
+
|
|
6739
|
+
<dl>
|
|
6740
|
+
<dd>
|
|
6741
|
+
|
|
6742
|
+
```typescript
|
|
6743
|
+
await client.plangroups.createPlanGroup({
|
|
6744
|
+
addOnIds: ["add_on_ids"],
|
|
6745
|
+
planIds: ["plan_ids"],
|
|
6746
|
+
});
|
|
6747
|
+
```
|
|
6748
|
+
|
|
6749
|
+
</dd>
|
|
6750
|
+
</dl>
|
|
6751
|
+
</dd>
|
|
6752
|
+
</dl>
|
|
6753
|
+
|
|
6754
|
+
#### ⚙️ Parameters
|
|
6755
|
+
|
|
6756
|
+
<dl>
|
|
6757
|
+
<dd>
|
|
6758
|
+
|
|
6759
|
+
<dl>
|
|
6760
|
+
<dd>
|
|
6761
|
+
|
|
6762
|
+
**request:** `Schematic.CreatePlanGroupRequestBody`
|
|
6763
|
+
|
|
6764
|
+
</dd>
|
|
6765
|
+
</dl>
|
|
6766
|
+
|
|
6767
|
+
<dl>
|
|
6768
|
+
<dd>
|
|
6769
|
+
|
|
6770
|
+
**requestOptions:** `Plangroups.RequestOptions`
|
|
6771
|
+
|
|
6772
|
+
</dd>
|
|
6773
|
+
</dl>
|
|
6774
|
+
</dd>
|
|
6775
|
+
</dl>
|
|
6776
|
+
|
|
6777
|
+
</dd>
|
|
6778
|
+
</dl>
|
|
6779
|
+
</details>
|
|
6780
|
+
|
|
6781
|
+
<details><summary><code>client.plangroups.<a href="/src/api/resources/plangroups/client/Client.ts">updatePlanGroup</a>(planGroupId, { ...params }) -> Schematic.UpdatePlanGroupResponse</code></summary>
|
|
6782
|
+
<dl>
|
|
6783
|
+
<dd>
|
|
6784
|
+
|
|
6785
|
+
#### 🔌 Usage
|
|
6786
|
+
|
|
6787
|
+
<dl>
|
|
6788
|
+
<dd>
|
|
6789
|
+
|
|
6790
|
+
<dl>
|
|
6791
|
+
<dd>
|
|
6792
|
+
|
|
6793
|
+
```typescript
|
|
6794
|
+
await client.plangroups.updatePlanGroup("plan_group_id", {
|
|
6795
|
+
addOnIds: ["add_on_ids"],
|
|
6796
|
+
planIds: ["plan_ids"],
|
|
6797
|
+
});
|
|
6798
|
+
```
|
|
6799
|
+
|
|
6800
|
+
</dd>
|
|
6801
|
+
</dl>
|
|
6802
|
+
</dd>
|
|
6803
|
+
</dl>
|
|
6804
|
+
|
|
6805
|
+
#### ⚙️ Parameters
|
|
6806
|
+
|
|
6807
|
+
<dl>
|
|
6808
|
+
<dd>
|
|
6809
|
+
|
|
6810
|
+
<dl>
|
|
6811
|
+
<dd>
|
|
6812
|
+
|
|
6813
|
+
**planGroupId:** `string` — plan_group_id
|
|
6814
|
+
|
|
6815
|
+
</dd>
|
|
6816
|
+
</dl>
|
|
6817
|
+
|
|
6818
|
+
<dl>
|
|
6819
|
+
<dd>
|
|
6820
|
+
|
|
6821
|
+
**request:** `Schematic.UpdatePlanGroupRequestBody`
|
|
6822
|
+
|
|
6823
|
+
</dd>
|
|
6824
|
+
</dl>
|
|
6825
|
+
|
|
6826
|
+
<dl>
|
|
6827
|
+
<dd>
|
|
6828
|
+
|
|
6829
|
+
**requestOptions:** `Plangroups.RequestOptions`
|
|
6508
6830
|
|
|
6509
6831
|
</dd>
|
|
6510
6832
|
</dl>
|
|
@@ -6779,7 +7101,7 @@ await client.webhooks.listWebhooks();
|
|
|
6779
7101
|
```typescript
|
|
6780
7102
|
await client.webhooks.createWebhook({
|
|
6781
7103
|
name: "name",
|
|
6782
|
-
requestTypes: [
|
|
7104
|
+
requestTypes: ["company.updated"],
|
|
6783
7105
|
url: "url",
|
|
6784
7106
|
});
|
|
6785
7107
|
```
|