@schematichq/schematic-typescript-node 1.1.4 → 1.1.6
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 +117 -32
- package/api/resources/billing/client/Client.js +667 -83
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
- 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 +13 -0
- package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts → api/resources/billing/client/requests/ListInvoicesRequest.d.ts} +6 -9
- package/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
- package/api/resources/{events/client/requests/ListMetricCountsRequest.d.ts → billing/client/requests/ListPaymentMethodsRequest.d.ts} +6 -9
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
- package/api/resources/billing/client/requests/index.d.ts +8 -3
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -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 +7 -0
- package/api/resources/{events/types/ListMetricCountsParams.d.ts → billing/types/ListInvoicesParams.d.ts} +3 -8
- 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/{dist/api/resources/events/types/ListMetricCountsParams.d.ts → api/resources/billing/types/ListPaymentMethodsParams.d.ts} +3 -8
- package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/ListPaymentMethodsResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
- package/{dist/api/resources/events/types/ListMetricCountsResponse.d.ts → api/resources/billing/types/SearchBillingPricesResponse.d.ts} +3 -3
- 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 +14 -4
- package/api/resources/billing/types/index.js +14 -4
- package/api/resources/companies/client/Client.d.ts +5 -7
- package/api/resources/companies/client/Client.js +64 -50
- 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/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- 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/GetActiveCompanySubscriptionParams.d.ts +1 -0
- 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/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/Client.d.ts +4 -4
- package/api/resources/entitlements/client/Client.js +39 -27
- 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 +22 -0
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -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 +22 -0
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -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 +8 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -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 +8 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/index.d.ts +4 -0
- package/api/resources/entitlements/types/index.js +4 -0
- package/api/resources/events/client/Client.d.ts +2 -15
- package/api/resources/events/client/Client.js +9 -142
- package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/api/resources/events/client/requests/index.d.ts +0 -1
- package/api/resources/events/types/index.d.ts +0 -2
- package/api/resources/events/types/index.js +0 -2
- 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} +5 -1
- package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
- 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/GetPlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -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 +7 -18
- package/api/resources/plans/client/Client.js +37 -113
- 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/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
- 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 +4 -0
- package/api/types/BillingMeterResponseData.d.ts +10 -0
- package/api/types/BillingPriceResponseData.d.ts +1 -0
- package/api/types/BillingPriceView.d.ts +18 -0
- package/api/types/BillingProductDetailResponseData.d.ts +1 -1
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +15 -0
- package/api/types/BillingProductPricing.d.ts +6 -2
- package/api/types/BillingSubscriptionResponseData.d.ts +13 -6
- package/api/types/BillingSubscriptionView.d.ts +23 -0
- package/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/api/types/CompanyDetailResponseData.d.ts +5 -3
- package/api/types/CompanyOverrideResponseData.d.ts +3 -1
- package/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
- package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
- package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
- package/api/types/ComponentCapabilities.d.ts +6 -0
- package/api/types/ComponentCapabilities.js +5 -0
- package/api/types/ComponentHydrateResponseData.d.ts +6 -3
- package/api/types/ComponentPreviewResponseData.d.ts +19 -0
- package/api/types/ComponentPreviewResponseData.js +5 -0
- package/api/types/ComponentResponseData.d.ts +3 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
- package/api/types/CreateEntitlementReqCommon.js +5 -0
- package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/api/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{dist/api/types/CreateReqCommonValueType.js → api/types/CreateEntitlementReqCommonValueType.js} +2 -2
- package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/{dist/api/types/RuleConditionResourceResponseData.d.ts → api/types/GenericPreviewObject.d.ts} +3 -1
- 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 +7 -3
- package/api/types/PlanEntitlementResponseData.d.ts +3 -3
- package/api/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/api/types/PlanGroupDetailResponseData.js +5 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
- package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
- package/api/types/PlanGroupResponseData.js +5 -0
- package/api/types/PlanResponseData.d.ts +1 -0
- package/api/types/PreviewObjectResponseData.d.ts +9 -0
- package/api/types/PreviewObjectResponseData.js +5 -0
- package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
- package/api/types/RuleConditionResponseData.d.ts +1 -0
- package/api/types/StripeEmbedInfo.d.ts +7 -0
- package/api/types/StripeEmbedInfo.js +5 -0
- package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
- package/api/types/UpdateEntitlementReqCommon.js +5 -0
- package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/api/types/{CreateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/{dist/api/types/CreateReqCommonValueType.d.ts → api/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{dist/api/types/UpdateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
- package/api/types/index.d.ts +28 -10
- package/api/types/index.js +28 -10
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- 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 +117 -32
- package/dist/api/resources/billing/client/Client.js +667 -83
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
- 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 +13 -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 +13 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +8 -3
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -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 +7 -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 +7 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.js +5 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponse.js +5 -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 +14 -4
- package/dist/api/resources/billing/types/index.js +14 -4
- package/dist/api/resources/companies/client/Client.d.ts +5 -7
- package/dist/api/resources/companies/client/Client.js +64 -50
- 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/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- 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/GetActiveCompanySubscriptionParams.d.ts +1 -0
- 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/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
- package/dist/api/resources/entitlements/client/Client.js +39 -27
- 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 +22 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -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 +22 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -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 +8 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -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 +8 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/index.d.ts +4 -0
- package/dist/api/resources/entitlements/types/index.js +4 -0
- package/dist/api/resources/events/client/Client.d.ts +2 -15
- package/dist/api/resources/events/client/Client.js +9 -142
- package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/dist/api/resources/events/client/requests/index.d.ts +0 -1
- package/dist/api/resources/events/types/index.d.ts +0 -2
- package/dist/api/resources/events/types/index.js +0 -2
- 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} +5 -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} +5 -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 +7 -18
- package/dist/api/resources/plans/client/Client.js +37 -113
- 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/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
- 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 +4 -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/BillingPriceView.d.ts +18 -0
- package/dist/api/types/BillingPriceView.js +5 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
- package/dist/api/types/BillingProductPriceResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +6 -2
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +13 -6
- package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
- package/dist/api/types/BillingSubscriptionView.js +5 -0
- package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/api/types/CompanyDetailResponseData.d.ts +5 -3
- package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +26 -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/ComponentCapabilities.d.ts +6 -0
- package/dist/api/types/ComponentCapabilities.js +5 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +6 -3
- package/dist/api/types/ComponentPreviewResponseData.d.ts +19 -0
- package/dist/api/types/ComponentPreviewResponseData.js +5 -0
- package/dist/api/types/ComponentResponseData.d.ts +3 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
- package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/dist/api/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/{api/types/CreateReqCommonValueType.d.ts → dist/api/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{api/types/UpdateReqCommonValueType.js → dist/api/types/CreateEntitlementReqCommonValueType.js} +2 -2
- package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -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 +3 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/{api/types/RuleConditionResourceResponseData.d.ts → dist/api/types/GenericPreviewObject.d.ts} +3 -1
- 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 +7 -3
- package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -3
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/dist/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
- package/dist/api/types/PlanGroupResponseData.js +5 -0
- package/dist/api/types/PlanResponseData.d.ts +1 -0
- package/dist/api/types/PreviewObjectResponseData.d.ts +9 -0
- package/dist/api/types/PreviewObjectResponseData.js +5 -0
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
- package/dist/api/types/RuleConditionResponseData.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/UpdateEntitlementReqCommon.d.ts +13 -0
- package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
- package/dist/api/types/index.d.ts +28 -10
- package/dist/api/types/index.js +28 -10
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- 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 +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -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/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
- 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 +20 -0
- package/dist/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
- 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 +4 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +4 -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/{ChangeSubscriptionWebResponse.js → ListPaymentMethodsResponse.js} +6 -5
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/{CreateBillingPlanGroupResponse.js → SearchBillingPricesResponse.js} +6 -5
- 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 +14 -4
- package/dist/serialization/resources/billing/types/index.js +14 -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/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.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/UpdateBillingPlanGroupResponse.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/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
- 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/CountPlanEntitlementsParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.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/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- 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/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- 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/ListPlanEntitlementsParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.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/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- 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/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/dist/serialization/resources/entitlements/types/index.js +4 -0
- package/dist/serialization/resources/events/types/index.d.ts +0 -2
- package/dist/serialization/resources/events/types/index.js +0 -2
- 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/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
- package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
- package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -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/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
- 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 +4 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +4 -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/BillingPriceView.d.ts +24 -0
- package/dist/serialization/types/BillingPriceView.js +45 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
- package/{serialization/types/MetricCountsHourlyResponseData.js → dist/serialization/types/BillingProductPriceResponseData.js} +11 -8
- package/dist/serialization/types/BillingProductPricing.d.ts +6 -2
- package/dist/serialization/types/BillingProductPricing.js +6 -2
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
- package/dist/serialization/types/BillingSubscriptionResponseData.js +13 -3
- package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
- package/dist/serialization/types/BillingSubscriptionView.js +52 -0
- package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +8 -5
- package/dist/serialization/types/CompanyDetailResponseData.js +8 -5
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
- package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +56 -0
- package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/dist/serialization/types/{BillingPlan.js → 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/ComponentCapabilities.d.ts +12 -0
- package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +11 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +50 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
- package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -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/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
- package/dist/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
- package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/GenericPreviewObject.js} +4 -2
- 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/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/MeterRequestBody.js} +5 -5
- 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 +8 -0
- package/dist/serialization/types/PlanDetailResponseData.js +8 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +40 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +17 -0
- package/dist/serialization/types/PlanGroupResponseData.js +38 -0
- package/dist/serialization/types/PlanResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanResponseData.js +1 -0
- package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
- package/dist/serialization/types/PreviewObjectResponseData.js +36 -0
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
- package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
- package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
- package/dist/serialization/types/RuleConditionResponseData.js +1 -0
- package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/RulesDetailResponseData.js +1 -1
- package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/dist/serialization/types/StripeEmbedInfo.js +34 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
- package/dist/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/dist/serialization/types/{CreateReqCommonValueType.js → UpdateEntitlementReqCommonValueType.js} +2 -2
- package/dist/serialization/types/index.d.ts +28 -10
- package/dist/serialization/types/index.js +28 -10
- package/package.json +8 -3
- package/reference.md +457 -133
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -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/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
- 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 +20 -0
- package/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
- 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 +4 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +4 -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/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
- package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -5
- 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 +14 -4
- package/serialization/resources/billing/types/index.js +14 -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/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.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/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
- package/serialization/resources/components/types/index.d.ts +2 -1
- package/serialization/resources/components/types/index.js +2 -1
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.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/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.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/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/serialization/resources/entitlements/types/index.js +4 -0
- package/serialization/resources/events/types/index.d.ts +0 -2
- package/serialization/resources/events/types/index.js +0 -2
- 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/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
- package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
- package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -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/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
- 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 +4 -0
- package/serialization/types/BillingCustomerSubscription.js +4 -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/BillingPriceView.d.ts +24 -0
- package/serialization/types/BillingPriceView.js +45 -0
- package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/serialization/types/BillingProductDetailResponseData.js +1 -1
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
- package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
- package/{dist/serialization/types/MetricCountsHourlyResponseData.js → serialization/types/BillingProductPriceResponseData.js} +11 -8
- package/serialization/types/BillingProductPricing.d.ts +6 -2
- package/serialization/types/BillingProductPricing.js +6 -2
- package/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
- package/serialization/types/BillingSubscriptionResponseData.js +13 -3
- package/serialization/types/BillingSubscriptionView.d.ts +31 -0
- package/serialization/types/BillingSubscriptionView.js +52 -0
- package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/serialization/types/CheckFlagRequestBody.js +2 -2
- package/serialization/types/CompanyDetailResponseData.d.ts +8 -5
- package/serialization/types/CompanyDetailResponseData.js +8 -5
- package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
- package/serialization/types/CompanyOverrideResponseData.js +3 -1
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +56 -0
- package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
- package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
- package/serialization/types/CompanySubscriptionResponseData.js +7 -0
- package/serialization/types/ComponentCapabilities.d.ts +12 -0
- package/serialization/types/{CreateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
- package/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
- package/serialization/types/ComponentHydrateResponseData.js +11 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
- package/serialization/types/ComponentPreviewResponseData.js +50 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
- package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{dist/serialization/types/UpdateReqCommonMetricPeriod.js → serialization/types/CreateEntitlementReqCommonValueType.js} +2 -2
- package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -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/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/serialization/types/EventBodyFlagCheck.js +2 -2
- package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/serialization/types/FeatureUsageResponseData.js +1 -0
- package/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
- 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/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/MeterRequestBody.js} +5 -5
- 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 +8 -0
- package/serialization/types/PlanDetailResponseData.js +8 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/serialization/types/PlanEntitlementResponseData.js +4 -0
- package/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
- package/serialization/types/PlanGroupDetailResponseData.js +40 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
- package/serialization/types/PlanGroupResponseData.d.ts +17 -0
- package/serialization/types/PlanGroupResponseData.js +38 -0
- package/serialization/types/PlanResponseData.d.ts +1 -0
- package/serialization/types/PlanResponseData.js +1 -0
- package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
- package/serialization/types/PreviewObjectResponseData.js +36 -0
- package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
- package/serialization/types/RuleConditionDetailResponseData.js +3 -2
- package/serialization/types/RuleConditionResponseData.d.ts +1 -0
- package/serialization/types/RuleConditionResponseData.js +1 -0
- package/serialization/types/RulesDetailResponseData.d.ts +1 -1
- package/serialization/types/RulesDetailResponseData.js +1 -1
- package/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/serialization/types/StripeEmbedInfo.js +34 -0
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
- package/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
- package/serialization/types/index.d.ts +28 -10
- package/serialization/types/index.js +28 -10
- package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
- package/api/types/CreateReqCommon.d.ts +0 -12
- package/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
- package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
- package/api/types/UpdateReqCommon.d.ts +0 -11
- package/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
- 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/api/types/CreateReqCommon.d.ts +0 -12
- package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
- package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
- package/dist/api/types/UpdateReqCommon.d.ts +0 -11
- package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
- package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
- package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
- 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/events/types/ListMetricCountsParams.d.ts +0 -21
- package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
- package/dist/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
- package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- package/dist/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
- package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
- package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
- package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
- package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
- package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
- 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/events/types/ListMetricCountsParams.d.ts +0 -21
- package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
- package/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
- package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- package/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
- package/serialization/types/CreateReqCommon.d.ts +0 -19
- package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
- package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
- package/serialization/types/UpdateReqCommon.d.ts +0 -18
- package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
- package/serialization/types/UpdateReqCommonValueType.js +0 -31
- /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/client/requests/SearchBillingPricesRequest.js} +0 -0
- /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/types/CountBillingProductsParams.js} +0 -0
- /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsResponse.js} +0 -0
- /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/DeleteProductPriceResponse.js} +0 -0
- /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/ListInvoicesParams.js} +0 -0
- /package/api/{types/BillingPlan.js → resources/billing/types/ListInvoicesResponse.js} +0 -0
- /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListMetersParams.js} +0 -0
- /package/api/{types/CreateReqCommon.js → resources/billing/types/ListMetersResponse.js} +0 -0
- /package/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/ListPaymentMethodsParams.js} +0 -0
- /package/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
- /package/api/{types/UpdateReqCommon.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/SearchBillingPricesResponse.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
- /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
- /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
- /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +0 -0
- /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js} +0 -0
- /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/resources/plangroups/types/CreatePlanGroupResponse.js} +0 -0
- /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/resources/plangroups/types/GetPlanGroupResponse.js} +0 -0
- /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/plangroups/types/UpdatePlanGroupResponse.js} +0 -0
- /package/{dist/api/types/BillingPlan.js → api/types/BillingMeterResponseData.js} +0 -0
- /package/{dist/api/types/BillingPlanGroupResponseData.js → api/types/BillingPriceView.js} +0 -0
- /package/{dist/api/types/CreateReqCommon.js → api/types/BillingProductPriceResponseData.js} +0 -0
- /package/{dist/api/types/MetricCountsHourlyResponseData.js → api/types/BillingSubscriptionView.js} +0 -0
- /package/{dist/api/types/RuleConditionResourceResponseData.js → api/types/CompanyPlanDetailResponseData.js} +0 -0
- /package/{dist/api/types/UpdateReqCommon.js → api/types/CompanyPlanWithBillingSubView.js} +0 -0
|
@@ -75,7 +75,7 @@ class Billing {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customer/upsert"),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.CreateBillingCustomerRequestBody.jsonOrThrow(request, {
|
|
@@ -185,7 +185,7 @@ class Billing {
|
|
|
185
185
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
186
186
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers"),
|
|
187
187
|
method: "GET",
|
|
188
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
188
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
189
189
|
contentType: "application/json",
|
|
190
190
|
queryParameters: _queryParams,
|
|
191
191
|
requestType: "json",
|
|
@@ -293,7 +293,7 @@ class Billing {
|
|
|
293
293
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
294
294
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/customers/count"),
|
|
295
295
|
method: "GET",
|
|
296
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
296
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
297
297
|
contentType: "application/json",
|
|
298
298
|
queryParameters: _queryParams,
|
|
299
299
|
requestType: "json",
|
|
@@ -367,31 +367,455 @@ class Billing {
|
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
370
|
+
* @param {Schematic.ListInvoicesRequest} request
|
|
370
371
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
371
372
|
*
|
|
373
|
+
* @throws {@link Schematic.BadRequestError}
|
|
374
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
375
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
376
|
+
* @throws {@link Schematic.InternalServerError}
|
|
377
|
+
*
|
|
378
|
+
* @example
|
|
379
|
+
* await client.billing.listInvoices({
|
|
380
|
+
* customerExternalId: "customer_external_id"
|
|
381
|
+
* })
|
|
382
|
+
*/
|
|
383
|
+
listInvoices(request, requestOptions) {
|
|
384
|
+
var _a, _b;
|
|
385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
386
|
+
const { companyId, customerExternalId, subscriptionExternalId, limit, offset } = request;
|
|
387
|
+
const _queryParams = {};
|
|
388
|
+
if (companyId != null) {
|
|
389
|
+
_queryParams["company_id"] = companyId;
|
|
390
|
+
}
|
|
391
|
+
_queryParams["customer_external_id"] = customerExternalId;
|
|
392
|
+
if (subscriptionExternalId != null) {
|
|
393
|
+
_queryParams["subscription_external_id"] = subscriptionExternalId;
|
|
394
|
+
}
|
|
395
|
+
if (limit != null) {
|
|
396
|
+
_queryParams["limit"] = limit.toString();
|
|
397
|
+
}
|
|
398
|
+
if (offset != null) {
|
|
399
|
+
_queryParams["offset"] = offset.toString();
|
|
400
|
+
}
|
|
401
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
402
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
|
|
403
|
+
method: "GET",
|
|
404
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
405
|
+
contentType: "application/json",
|
|
406
|
+
queryParameters: _queryParams,
|
|
407
|
+
requestType: "json",
|
|
408
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
409
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
410
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
411
|
+
});
|
|
412
|
+
if (_response.ok) {
|
|
413
|
+
return serializers.ListInvoicesResponse.parseOrThrow(_response.body, {
|
|
414
|
+
unrecognizedObjectKeys: "passthrough",
|
|
415
|
+
allowUnrecognizedUnionMembers: true,
|
|
416
|
+
allowUnrecognizedEnumValues: true,
|
|
417
|
+
skipValidation: true,
|
|
418
|
+
breadcrumbsPrefix: ["response"],
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
if (_response.error.reason === "status-code") {
|
|
422
|
+
switch (_response.error.statusCode) {
|
|
423
|
+
case 400:
|
|
424
|
+
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
425
|
+
unrecognizedObjectKeys: "passthrough",
|
|
426
|
+
allowUnrecognizedUnionMembers: true,
|
|
427
|
+
allowUnrecognizedEnumValues: true,
|
|
428
|
+
skipValidation: true,
|
|
429
|
+
breadcrumbsPrefix: ["response"],
|
|
430
|
+
}));
|
|
431
|
+
case 401:
|
|
432
|
+
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
433
|
+
unrecognizedObjectKeys: "passthrough",
|
|
434
|
+
allowUnrecognizedUnionMembers: true,
|
|
435
|
+
allowUnrecognizedEnumValues: true,
|
|
436
|
+
skipValidation: true,
|
|
437
|
+
breadcrumbsPrefix: ["response"],
|
|
438
|
+
}));
|
|
439
|
+
case 403:
|
|
440
|
+
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
441
|
+
unrecognizedObjectKeys: "passthrough",
|
|
442
|
+
allowUnrecognizedUnionMembers: true,
|
|
443
|
+
allowUnrecognizedEnumValues: true,
|
|
444
|
+
skipValidation: true,
|
|
445
|
+
breadcrumbsPrefix: ["response"],
|
|
446
|
+
}));
|
|
447
|
+
case 500:
|
|
448
|
+
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
449
|
+
unrecognizedObjectKeys: "passthrough",
|
|
450
|
+
allowUnrecognizedUnionMembers: true,
|
|
451
|
+
allowUnrecognizedEnumValues: true,
|
|
452
|
+
skipValidation: true,
|
|
453
|
+
breadcrumbsPrefix: ["response"],
|
|
454
|
+
}));
|
|
455
|
+
default:
|
|
456
|
+
throw new errors.SchematicError({
|
|
457
|
+
statusCode: _response.error.statusCode,
|
|
458
|
+
body: _response.error.body,
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
switch (_response.error.reason) {
|
|
463
|
+
case "non-json":
|
|
464
|
+
throw new errors.SchematicError({
|
|
465
|
+
statusCode: _response.error.statusCode,
|
|
466
|
+
body: _response.error.rawBody,
|
|
467
|
+
});
|
|
468
|
+
case "timeout":
|
|
469
|
+
throw new errors.SchematicTimeoutError();
|
|
470
|
+
case "unknown":
|
|
471
|
+
throw new errors.SchematicError({
|
|
472
|
+
message: _response.error.errorMessage,
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* @param {Schematic.CreateInvoiceRequestBody} request
|
|
479
|
+
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
480
|
+
*
|
|
481
|
+
* @throws {@link Schematic.BadRequestError}
|
|
482
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
483
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
484
|
+
* @throws {@link Schematic.InternalServerError}
|
|
485
|
+
*
|
|
486
|
+
* @example
|
|
487
|
+
* await client.billing.upsertInvoice({
|
|
488
|
+
* amountDue: 1,
|
|
489
|
+
* amountPaid: 1,
|
|
490
|
+
* amountRemaining: 1,
|
|
491
|
+
* collectionMethod: "collection_method",
|
|
492
|
+
* currency: "currency",
|
|
493
|
+
* customerExternalId: "customer_external_id",
|
|
494
|
+
* subtotal: 1
|
|
495
|
+
* })
|
|
496
|
+
*/
|
|
497
|
+
upsertInvoice(request, requestOptions) {
|
|
498
|
+
var _a, _b;
|
|
499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
501
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/invoices"),
|
|
502
|
+
method: "POST",
|
|
503
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
504
|
+
contentType: "application/json",
|
|
505
|
+
requestType: "json",
|
|
506
|
+
body: serializers.CreateInvoiceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
507
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
508
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
509
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
510
|
+
});
|
|
511
|
+
if (_response.ok) {
|
|
512
|
+
return serializers.UpsertInvoiceResponse.parseOrThrow(_response.body, {
|
|
513
|
+
unrecognizedObjectKeys: "passthrough",
|
|
514
|
+
allowUnrecognizedUnionMembers: true,
|
|
515
|
+
allowUnrecognizedEnumValues: true,
|
|
516
|
+
skipValidation: true,
|
|
517
|
+
breadcrumbsPrefix: ["response"],
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
if (_response.error.reason === "status-code") {
|
|
521
|
+
switch (_response.error.statusCode) {
|
|
522
|
+
case 400:
|
|
523
|
+
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
524
|
+
unrecognizedObjectKeys: "passthrough",
|
|
525
|
+
allowUnrecognizedUnionMembers: true,
|
|
526
|
+
allowUnrecognizedEnumValues: true,
|
|
527
|
+
skipValidation: true,
|
|
528
|
+
breadcrumbsPrefix: ["response"],
|
|
529
|
+
}));
|
|
530
|
+
case 401:
|
|
531
|
+
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
532
|
+
unrecognizedObjectKeys: "passthrough",
|
|
533
|
+
allowUnrecognizedUnionMembers: true,
|
|
534
|
+
allowUnrecognizedEnumValues: true,
|
|
535
|
+
skipValidation: true,
|
|
536
|
+
breadcrumbsPrefix: ["response"],
|
|
537
|
+
}));
|
|
538
|
+
case 403:
|
|
539
|
+
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
540
|
+
unrecognizedObjectKeys: "passthrough",
|
|
541
|
+
allowUnrecognizedUnionMembers: true,
|
|
542
|
+
allowUnrecognizedEnumValues: true,
|
|
543
|
+
skipValidation: true,
|
|
544
|
+
breadcrumbsPrefix: ["response"],
|
|
545
|
+
}));
|
|
546
|
+
case 500:
|
|
547
|
+
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
548
|
+
unrecognizedObjectKeys: "passthrough",
|
|
549
|
+
allowUnrecognizedUnionMembers: true,
|
|
550
|
+
allowUnrecognizedEnumValues: true,
|
|
551
|
+
skipValidation: true,
|
|
552
|
+
breadcrumbsPrefix: ["response"],
|
|
553
|
+
}));
|
|
554
|
+
default:
|
|
555
|
+
throw new errors.SchematicError({
|
|
556
|
+
statusCode: _response.error.statusCode,
|
|
557
|
+
body: _response.error.body,
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
switch (_response.error.reason) {
|
|
562
|
+
case "non-json":
|
|
563
|
+
throw new errors.SchematicError({
|
|
564
|
+
statusCode: _response.error.statusCode,
|
|
565
|
+
body: _response.error.rawBody,
|
|
566
|
+
});
|
|
567
|
+
case "timeout":
|
|
568
|
+
throw new errors.SchematicTimeoutError();
|
|
569
|
+
case "unknown":
|
|
570
|
+
throw new errors.SchematicError({
|
|
571
|
+
message: _response.error.errorMessage,
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* @param {Schematic.ListMetersRequest} request
|
|
578
|
+
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
579
|
+
*
|
|
580
|
+
* @throws {@link Schematic.BadRequestError}
|
|
581
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
582
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
583
|
+
* @throws {@link Schematic.InternalServerError}
|
|
584
|
+
*
|
|
585
|
+
* @example
|
|
586
|
+
* await client.billing.listMeters()
|
|
587
|
+
*/
|
|
588
|
+
listMeters(request = {}, requestOptions) {
|
|
589
|
+
var _a, _b;
|
|
590
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
591
|
+
const { displayName, limit, offset } = request;
|
|
592
|
+
const _queryParams = {};
|
|
593
|
+
if (displayName != null) {
|
|
594
|
+
_queryParams["display_name"] = displayName;
|
|
595
|
+
}
|
|
596
|
+
if (limit != null) {
|
|
597
|
+
_queryParams["limit"] = limit.toString();
|
|
598
|
+
}
|
|
599
|
+
if (offset != null) {
|
|
600
|
+
_queryParams["offset"] = offset.toString();
|
|
601
|
+
}
|
|
602
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
603
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter"),
|
|
604
|
+
method: "GET",
|
|
605
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
606
|
+
contentType: "application/json",
|
|
607
|
+
queryParameters: _queryParams,
|
|
608
|
+
requestType: "json",
|
|
609
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
610
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
611
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
612
|
+
});
|
|
613
|
+
if (_response.ok) {
|
|
614
|
+
return serializers.ListMetersResponse.parseOrThrow(_response.body, {
|
|
615
|
+
unrecognizedObjectKeys: "passthrough",
|
|
616
|
+
allowUnrecognizedUnionMembers: true,
|
|
617
|
+
allowUnrecognizedEnumValues: true,
|
|
618
|
+
skipValidation: true,
|
|
619
|
+
breadcrumbsPrefix: ["response"],
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
if (_response.error.reason === "status-code") {
|
|
623
|
+
switch (_response.error.statusCode) {
|
|
624
|
+
case 400:
|
|
625
|
+
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
626
|
+
unrecognizedObjectKeys: "passthrough",
|
|
627
|
+
allowUnrecognizedUnionMembers: true,
|
|
628
|
+
allowUnrecognizedEnumValues: true,
|
|
629
|
+
skipValidation: true,
|
|
630
|
+
breadcrumbsPrefix: ["response"],
|
|
631
|
+
}));
|
|
632
|
+
case 401:
|
|
633
|
+
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
634
|
+
unrecognizedObjectKeys: "passthrough",
|
|
635
|
+
allowUnrecognizedUnionMembers: true,
|
|
636
|
+
allowUnrecognizedEnumValues: true,
|
|
637
|
+
skipValidation: true,
|
|
638
|
+
breadcrumbsPrefix: ["response"],
|
|
639
|
+
}));
|
|
640
|
+
case 403:
|
|
641
|
+
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
642
|
+
unrecognizedObjectKeys: "passthrough",
|
|
643
|
+
allowUnrecognizedUnionMembers: true,
|
|
644
|
+
allowUnrecognizedEnumValues: true,
|
|
645
|
+
skipValidation: true,
|
|
646
|
+
breadcrumbsPrefix: ["response"],
|
|
647
|
+
}));
|
|
648
|
+
case 500:
|
|
649
|
+
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
650
|
+
unrecognizedObjectKeys: "passthrough",
|
|
651
|
+
allowUnrecognizedUnionMembers: true,
|
|
652
|
+
allowUnrecognizedEnumValues: true,
|
|
653
|
+
skipValidation: true,
|
|
654
|
+
breadcrumbsPrefix: ["response"],
|
|
655
|
+
}));
|
|
656
|
+
default:
|
|
657
|
+
throw new errors.SchematicError({
|
|
658
|
+
statusCode: _response.error.statusCode,
|
|
659
|
+
body: _response.error.body,
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
switch (_response.error.reason) {
|
|
664
|
+
case "non-json":
|
|
665
|
+
throw new errors.SchematicError({
|
|
666
|
+
statusCode: _response.error.statusCode,
|
|
667
|
+
body: _response.error.rawBody,
|
|
668
|
+
});
|
|
669
|
+
case "timeout":
|
|
670
|
+
throw new errors.SchematicTimeoutError();
|
|
671
|
+
case "unknown":
|
|
672
|
+
throw new errors.SchematicError({
|
|
673
|
+
message: _response.error.errorMessage,
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* @param {Schematic.CreateMeterRequestBody} request
|
|
680
|
+
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
681
|
+
*
|
|
682
|
+
* @throws {@link Schematic.BadRequestError}
|
|
683
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
684
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
685
|
+
* @throws {@link Schematic.InternalServerError}
|
|
686
|
+
*
|
|
687
|
+
* @example
|
|
688
|
+
* await client.billing.upsertBillingMeter({
|
|
689
|
+
* displayName: "display_name",
|
|
690
|
+
* eventName: "event_name",
|
|
691
|
+
* eventPayloadKey: "event_payload_key",
|
|
692
|
+
* externalId: "external_id"
|
|
693
|
+
* })
|
|
694
|
+
*/
|
|
695
|
+
upsertBillingMeter(request, requestOptions) {
|
|
696
|
+
var _a, _b;
|
|
697
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
698
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
699
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/meter/upsert"),
|
|
700
|
+
method: "POST",
|
|
701
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
702
|
+
contentType: "application/json",
|
|
703
|
+
requestType: "json",
|
|
704
|
+
body: serializers.CreateMeterRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
705
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
706
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
707
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
708
|
+
});
|
|
709
|
+
if (_response.ok) {
|
|
710
|
+
return serializers.UpsertBillingMeterResponse.parseOrThrow(_response.body, {
|
|
711
|
+
unrecognizedObjectKeys: "passthrough",
|
|
712
|
+
allowUnrecognizedUnionMembers: true,
|
|
713
|
+
allowUnrecognizedEnumValues: true,
|
|
714
|
+
skipValidation: true,
|
|
715
|
+
breadcrumbsPrefix: ["response"],
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
if (_response.error.reason === "status-code") {
|
|
719
|
+
switch (_response.error.statusCode) {
|
|
720
|
+
case 400:
|
|
721
|
+
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
722
|
+
unrecognizedObjectKeys: "passthrough",
|
|
723
|
+
allowUnrecognizedUnionMembers: true,
|
|
724
|
+
allowUnrecognizedEnumValues: true,
|
|
725
|
+
skipValidation: true,
|
|
726
|
+
breadcrumbsPrefix: ["response"],
|
|
727
|
+
}));
|
|
728
|
+
case 401:
|
|
729
|
+
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
730
|
+
unrecognizedObjectKeys: "passthrough",
|
|
731
|
+
allowUnrecognizedUnionMembers: true,
|
|
732
|
+
allowUnrecognizedEnumValues: true,
|
|
733
|
+
skipValidation: true,
|
|
734
|
+
breadcrumbsPrefix: ["response"],
|
|
735
|
+
}));
|
|
736
|
+
case 403:
|
|
737
|
+
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
738
|
+
unrecognizedObjectKeys: "passthrough",
|
|
739
|
+
allowUnrecognizedUnionMembers: true,
|
|
740
|
+
allowUnrecognizedEnumValues: true,
|
|
741
|
+
skipValidation: true,
|
|
742
|
+
breadcrumbsPrefix: ["response"],
|
|
743
|
+
}));
|
|
744
|
+
case 500:
|
|
745
|
+
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
746
|
+
unrecognizedObjectKeys: "passthrough",
|
|
747
|
+
allowUnrecognizedUnionMembers: true,
|
|
748
|
+
allowUnrecognizedEnumValues: true,
|
|
749
|
+
skipValidation: true,
|
|
750
|
+
breadcrumbsPrefix: ["response"],
|
|
751
|
+
}));
|
|
752
|
+
default:
|
|
753
|
+
throw new errors.SchematicError({
|
|
754
|
+
statusCode: _response.error.statusCode,
|
|
755
|
+
body: _response.error.body,
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
switch (_response.error.reason) {
|
|
760
|
+
case "non-json":
|
|
761
|
+
throw new errors.SchematicError({
|
|
762
|
+
statusCode: _response.error.statusCode,
|
|
763
|
+
body: _response.error.rawBody,
|
|
764
|
+
});
|
|
765
|
+
case "timeout":
|
|
766
|
+
throw new errors.SchematicTimeoutError();
|
|
767
|
+
case "unknown":
|
|
768
|
+
throw new errors.SchematicError({
|
|
769
|
+
message: _response.error.errorMessage,
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @param {Schematic.ListPaymentMethodsRequest} request
|
|
776
|
+
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
777
|
+
*
|
|
778
|
+
* @throws {@link Schematic.BadRequestError}
|
|
372
779
|
* @throws {@link Schematic.UnauthorizedError}
|
|
373
780
|
* @throws {@link Schematic.ForbiddenError}
|
|
374
|
-
* @throws {@link Schematic.NotFoundError}
|
|
375
781
|
* @throws {@link Schematic.InternalServerError}
|
|
376
782
|
*
|
|
377
783
|
* @example
|
|
378
|
-
* await client.billing.
|
|
784
|
+
* await client.billing.listPaymentMethods({
|
|
785
|
+
* customerExternalId: "customer_external_id"
|
|
786
|
+
* })
|
|
379
787
|
*/
|
|
380
|
-
|
|
788
|
+
listPaymentMethods(request, requestOptions) {
|
|
381
789
|
var _a, _b;
|
|
382
790
|
return __awaiter(this, void 0, void 0, function* () {
|
|
791
|
+
const { companyId, customerExternalId, subscriptionExternalId, limit, offset } = request;
|
|
792
|
+
const _queryParams = {};
|
|
793
|
+
if (companyId != null) {
|
|
794
|
+
_queryParams["company_id"] = companyId;
|
|
795
|
+
}
|
|
796
|
+
_queryParams["customer_external_id"] = customerExternalId;
|
|
797
|
+
if (subscriptionExternalId != null) {
|
|
798
|
+
_queryParams["subscription_external_id"] = subscriptionExternalId;
|
|
799
|
+
}
|
|
800
|
+
if (limit != null) {
|
|
801
|
+
_queryParams["limit"] = limit.toString();
|
|
802
|
+
}
|
|
803
|
+
if (offset != null) {
|
|
804
|
+
_queryParams["offset"] = offset.toString();
|
|
805
|
+
}
|
|
383
806
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
384
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/
|
|
807
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
|
|
385
808
|
method: "GET",
|
|
386
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
809
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
387
810
|
contentType: "application/json",
|
|
811
|
+
queryParameters: _queryParams,
|
|
388
812
|
requestType: "json",
|
|
389
813
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
390
814
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
391
815
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
392
816
|
});
|
|
393
817
|
if (_response.ok) {
|
|
394
|
-
return serializers.
|
|
818
|
+
return serializers.ListPaymentMethodsResponse.parseOrThrow(_response.body, {
|
|
395
819
|
unrecognizedObjectKeys: "passthrough",
|
|
396
820
|
allowUnrecognizedUnionMembers: true,
|
|
397
821
|
allowUnrecognizedEnumValues: true,
|
|
@@ -401,24 +825,24 @@ class Billing {
|
|
|
401
825
|
}
|
|
402
826
|
if (_response.error.reason === "status-code") {
|
|
403
827
|
switch (_response.error.statusCode) {
|
|
404
|
-
case
|
|
405
|
-
throw new Schematic.
|
|
828
|
+
case 400:
|
|
829
|
+
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
406
830
|
unrecognizedObjectKeys: "passthrough",
|
|
407
831
|
allowUnrecognizedUnionMembers: true,
|
|
408
832
|
allowUnrecognizedEnumValues: true,
|
|
409
833
|
skipValidation: true,
|
|
410
834
|
breadcrumbsPrefix: ["response"],
|
|
411
835
|
}));
|
|
412
|
-
case
|
|
413
|
-
throw new Schematic.
|
|
836
|
+
case 401:
|
|
837
|
+
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
414
838
|
unrecognizedObjectKeys: "passthrough",
|
|
415
839
|
allowUnrecognizedUnionMembers: true,
|
|
416
840
|
allowUnrecognizedEnumValues: true,
|
|
417
841
|
skipValidation: true,
|
|
418
842
|
breadcrumbsPrefix: ["response"],
|
|
419
843
|
}));
|
|
420
|
-
case
|
|
421
|
-
throw new Schematic.
|
|
844
|
+
case 403:
|
|
845
|
+
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
422
846
|
unrecognizedObjectKeys: "passthrough",
|
|
423
847
|
allowUnrecognizedUnionMembers: true,
|
|
424
848
|
allowUnrecognizedEnumValues: true,
|
|
@@ -456,7 +880,7 @@ class Billing {
|
|
|
456
880
|
});
|
|
457
881
|
}
|
|
458
882
|
/**
|
|
459
|
-
* @param {Schematic.
|
|
883
|
+
* @param {Schematic.CreatePaymentMethodRequestBody} request
|
|
460
884
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
461
885
|
*
|
|
462
886
|
* @throws {@link Schematic.BadRequestError}
|
|
@@ -465,28 +889,28 @@ class Billing {
|
|
|
465
889
|
* @throws {@link Schematic.InternalServerError}
|
|
466
890
|
*
|
|
467
891
|
* @example
|
|
468
|
-
* await client.billing.
|
|
469
|
-
*
|
|
892
|
+
* await client.billing.upsertPaymentMethod({
|
|
893
|
+
* customerExternalId: "customer_external_id",
|
|
894
|
+
* externalId: "external_id",
|
|
895
|
+
* paymentMethodType: "payment_method_type"
|
|
470
896
|
* })
|
|
471
897
|
*/
|
|
472
|
-
|
|
898
|
+
upsertPaymentMethod(request, requestOptions) {
|
|
473
899
|
var _a, _b;
|
|
474
900
|
return __awaiter(this, void 0, void 0, function* () {
|
|
475
901
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
476
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/
|
|
902
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/payment-methods"),
|
|
477
903
|
method: "POST",
|
|
478
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
904
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
479
905
|
contentType: "application/json",
|
|
480
906
|
requestType: "json",
|
|
481
|
-
body: serializers.
|
|
482
|
-
unrecognizedObjectKeys: "strip",
|
|
483
|
-
}),
|
|
907
|
+
body: serializers.CreatePaymentMethodRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
484
908
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
485
909
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
486
910
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
487
911
|
});
|
|
488
912
|
if (_response.ok) {
|
|
489
|
-
return serializers.
|
|
913
|
+
return serializers.UpsertPaymentMethodResponse.parseOrThrow(_response.body, {
|
|
490
914
|
unrecognizedObjectKeys: "passthrough",
|
|
491
915
|
allowUnrecognizedUnionMembers: true,
|
|
492
916
|
allowUnrecognizedEnumValues: true,
|
|
@@ -551,39 +975,55 @@ class Billing {
|
|
|
551
975
|
});
|
|
552
976
|
}
|
|
553
977
|
/**
|
|
554
|
-
* @param {
|
|
555
|
-
* @param {Schematic.UpdateBillingPlanGroupRequestBody} request
|
|
978
|
+
* @param {Schematic.SearchBillingPricesRequest} request
|
|
556
979
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
557
980
|
*
|
|
558
981
|
* @throws {@link Schematic.BadRequestError}
|
|
559
982
|
* @throws {@link Schematic.UnauthorizedError}
|
|
560
983
|
* @throws {@link Schematic.ForbiddenError}
|
|
561
|
-
* @throws {@link Schematic.NotFoundError}
|
|
562
984
|
* @throws {@link Schematic.InternalServerError}
|
|
563
985
|
*
|
|
564
986
|
* @example
|
|
565
|
-
* await client.billing.
|
|
566
|
-
* planIds: ["plan_ids"]
|
|
567
|
-
* })
|
|
987
|
+
* await client.billing.searchBillingPrices()
|
|
568
988
|
*/
|
|
569
|
-
|
|
989
|
+
searchBillingPrices(request = {}, requestOptions) {
|
|
570
990
|
var _a, _b;
|
|
571
991
|
return __awaiter(this, void 0, void 0, function* () {
|
|
992
|
+
const { ids, usageType, price, limit, offset } = request;
|
|
993
|
+
const _queryParams = {};
|
|
994
|
+
if (ids != null) {
|
|
995
|
+
if (Array.isArray(ids)) {
|
|
996
|
+
_queryParams["ids"] = ids.map((item) => item);
|
|
997
|
+
}
|
|
998
|
+
else {
|
|
999
|
+
_queryParams["ids"] = ids;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
if (usageType != null) {
|
|
1003
|
+
_queryParams["usage_type"] = usageType;
|
|
1004
|
+
}
|
|
1005
|
+
if (price != null) {
|
|
1006
|
+
_queryParams["price"] = price.toString();
|
|
1007
|
+
}
|
|
1008
|
+
if (limit != null) {
|
|
1009
|
+
_queryParams["limit"] = limit.toString();
|
|
1010
|
+
}
|
|
1011
|
+
if (offset != null) {
|
|
1012
|
+
_queryParams["offset"] = offset.toString();
|
|
1013
|
+
}
|
|
572
1014
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
573
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default,
|
|
574
|
-
method: "
|
|
575
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1015
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price"),
|
|
1016
|
+
method: "GET",
|
|
1017
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
576
1018
|
contentType: "application/json",
|
|
1019
|
+
queryParameters: _queryParams,
|
|
577
1020
|
requestType: "json",
|
|
578
|
-
body: serializers.UpdateBillingPlanGroupRequestBody.jsonOrThrow(request, {
|
|
579
|
-
unrecognizedObjectKeys: "strip",
|
|
580
|
-
}),
|
|
581
1021
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
582
1022
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
583
1023
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
584
1024
|
});
|
|
585
1025
|
if (_response.ok) {
|
|
586
|
-
return serializers.
|
|
1026
|
+
return serializers.SearchBillingPricesResponse.parseOrThrow(_response.body, {
|
|
587
1027
|
unrecognizedObjectKeys: "passthrough",
|
|
588
1028
|
allowUnrecognizedUnionMembers: true,
|
|
589
1029
|
allowUnrecognizedEnumValues: true,
|
|
@@ -617,14 +1057,6 @@ class Billing {
|
|
|
617
1057
|
skipValidation: true,
|
|
618
1058
|
breadcrumbsPrefix: ["response"],
|
|
619
1059
|
}));
|
|
620
|
-
case 404:
|
|
621
|
-
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
622
|
-
unrecognizedObjectKeys: "passthrough",
|
|
623
|
-
allowUnrecognizedUnionMembers: true,
|
|
624
|
-
allowUnrecognizedEnumValues: true,
|
|
625
|
-
skipValidation: true,
|
|
626
|
-
breadcrumbsPrefix: ["response"],
|
|
627
|
-
}));
|
|
628
1060
|
case 500:
|
|
629
1061
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
630
1062
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -666,10 +1098,12 @@ class Billing {
|
|
|
666
1098
|
*
|
|
667
1099
|
* @example
|
|
668
1100
|
* await client.billing.upsertBillingPrice({
|
|
1101
|
+
* currency: "currency",
|
|
669
1102
|
* interval: "interval",
|
|
670
1103
|
* price: 1,
|
|
671
1104
|
* priceExternalId: "price_external_id",
|
|
672
|
-
* productExternalId: "product_external_id"
|
|
1105
|
+
* productExternalId: "product_external_id",
|
|
1106
|
+
* usageType: "usage_type"
|
|
673
1107
|
* })
|
|
674
1108
|
*/
|
|
675
1109
|
upsertBillingPrice(request, requestOptions) {
|
|
@@ -678,7 +1112,7 @@ class Billing {
|
|
|
678
1112
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
679
1113
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/price/upsert"),
|
|
680
1114
|
method: "POST",
|
|
681
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1115
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
682
1116
|
contentType: "application/json",
|
|
683
1117
|
requestType: "json",
|
|
684
1118
|
body: serializers.CreateBillingPriceRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -766,7 +1200,7 @@ class Billing {
|
|
|
766
1200
|
listProductPrices(request = {}, requestOptions) {
|
|
767
1201
|
var _a, _b;
|
|
768
1202
|
return __awaiter(this, void 0, void 0, function* () {
|
|
769
|
-
const { ids, name, q, limit, offset } = request;
|
|
1203
|
+
const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
|
|
770
1204
|
const _queryParams = {};
|
|
771
1205
|
if (ids != null) {
|
|
772
1206
|
if (Array.isArray(ids)) {
|
|
@@ -782,6 +1216,18 @@ class Billing {
|
|
|
782
1216
|
if (q != null) {
|
|
783
1217
|
_queryParams["q"] = q;
|
|
784
1218
|
}
|
|
1219
|
+
if (priceUsageType != null) {
|
|
1220
|
+
_queryParams["price_usage_type"] = priceUsageType;
|
|
1221
|
+
}
|
|
1222
|
+
if (withoutLinkedToPlan != null) {
|
|
1223
|
+
_queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
|
|
1224
|
+
}
|
|
1225
|
+
if (withZeroPrice != null) {
|
|
1226
|
+
_queryParams["with_zero_price"] = withZeroPrice.toString();
|
|
1227
|
+
}
|
|
1228
|
+
if (withPricesOnly != null) {
|
|
1229
|
+
_queryParams["with_prices_only"] = withPricesOnly.toString();
|
|
1230
|
+
}
|
|
785
1231
|
if (limit != null) {
|
|
786
1232
|
_queryParams["limit"] = limit.toString();
|
|
787
1233
|
}
|
|
@@ -791,7 +1237,7 @@ class Billing {
|
|
|
791
1237
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
792
1238
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/prices"),
|
|
793
1239
|
method: "GET",
|
|
794
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1240
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
795
1241
|
contentType: "application/json",
|
|
796
1242
|
queryParameters: _queryParams,
|
|
797
1243
|
requestType: "json",
|
|
@@ -864,6 +1310,96 @@ class Billing {
|
|
|
864
1310
|
}
|
|
865
1311
|
});
|
|
866
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* @param {string} billingId - billing_id
|
|
1315
|
+
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
1316
|
+
*
|
|
1317
|
+
* @throws {@link Schematic.BadRequestError}
|
|
1318
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
1319
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
1320
|
+
* @throws {@link Schematic.InternalServerError}
|
|
1321
|
+
*
|
|
1322
|
+
* @example
|
|
1323
|
+
* await client.billing.deleteProductPrice("billing_id")
|
|
1324
|
+
*/
|
|
1325
|
+
deleteProductPrice(billingId, requestOptions) {
|
|
1326
|
+
var _a, _b;
|
|
1327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1328
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1329
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `billing/product/prices/${encodeURIComponent(billingId)}`),
|
|
1330
|
+
method: "DELETE",
|
|
1331
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1332
|
+
contentType: "application/json",
|
|
1333
|
+
requestType: "json",
|
|
1334
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1335
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1336
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1337
|
+
});
|
|
1338
|
+
if (_response.ok) {
|
|
1339
|
+
return serializers.DeleteProductPriceResponse.parseOrThrow(_response.body, {
|
|
1340
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1341
|
+
allowUnrecognizedUnionMembers: true,
|
|
1342
|
+
allowUnrecognizedEnumValues: true,
|
|
1343
|
+
skipValidation: true,
|
|
1344
|
+
breadcrumbsPrefix: ["response"],
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
if (_response.error.reason === "status-code") {
|
|
1348
|
+
switch (_response.error.statusCode) {
|
|
1349
|
+
case 400:
|
|
1350
|
+
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1351
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1352
|
+
allowUnrecognizedUnionMembers: true,
|
|
1353
|
+
allowUnrecognizedEnumValues: true,
|
|
1354
|
+
skipValidation: true,
|
|
1355
|
+
breadcrumbsPrefix: ["response"],
|
|
1356
|
+
}));
|
|
1357
|
+
case 401:
|
|
1358
|
+
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1359
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1360
|
+
allowUnrecognizedUnionMembers: true,
|
|
1361
|
+
allowUnrecognizedEnumValues: true,
|
|
1362
|
+
skipValidation: true,
|
|
1363
|
+
breadcrumbsPrefix: ["response"],
|
|
1364
|
+
}));
|
|
1365
|
+
case 403:
|
|
1366
|
+
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1367
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1368
|
+
allowUnrecognizedUnionMembers: true,
|
|
1369
|
+
allowUnrecognizedEnumValues: true,
|
|
1370
|
+
skipValidation: true,
|
|
1371
|
+
breadcrumbsPrefix: ["response"],
|
|
1372
|
+
}));
|
|
1373
|
+
case 500:
|
|
1374
|
+
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1375
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1376
|
+
allowUnrecognizedUnionMembers: true,
|
|
1377
|
+
allowUnrecognizedEnumValues: true,
|
|
1378
|
+
skipValidation: true,
|
|
1379
|
+
breadcrumbsPrefix: ["response"],
|
|
1380
|
+
}));
|
|
1381
|
+
default:
|
|
1382
|
+
throw new errors.SchematicError({
|
|
1383
|
+
statusCode: _response.error.statusCode,
|
|
1384
|
+
body: _response.error.body,
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
switch (_response.error.reason) {
|
|
1389
|
+
case "non-json":
|
|
1390
|
+
throw new errors.SchematicError({
|
|
1391
|
+
statusCode: _response.error.statusCode,
|
|
1392
|
+
body: _response.error.rawBody,
|
|
1393
|
+
});
|
|
1394
|
+
case "timeout":
|
|
1395
|
+
throw new errors.SchematicTimeoutError();
|
|
1396
|
+
case "unknown":
|
|
1397
|
+
throw new errors.SchematicError({
|
|
1398
|
+
message: _response.error.errorMessage,
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
});
|
|
1402
|
+
}
|
|
867
1403
|
/**
|
|
868
1404
|
* @param {Schematic.CreateBillingProductRequestBody} request
|
|
869
1405
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -888,7 +1424,7 @@ class Billing {
|
|
|
888
1424
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
889
1425
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/product/upsert"),
|
|
890
1426
|
method: "POST",
|
|
891
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1427
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
892
1428
|
contentType: "application/json",
|
|
893
1429
|
requestType: "json",
|
|
894
1430
|
body: serializers.CreateBillingProductRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -976,7 +1512,7 @@ class Billing {
|
|
|
976
1512
|
listBillingProducts(request = {}, requestOptions) {
|
|
977
1513
|
var _a, _b;
|
|
978
1514
|
return __awaiter(this, void 0, void 0, function* () {
|
|
979
|
-
const { ids, name, q, limit, offset } = request;
|
|
1515
|
+
const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
|
|
980
1516
|
const _queryParams = {};
|
|
981
1517
|
if (ids != null) {
|
|
982
1518
|
if (Array.isArray(ids)) {
|
|
@@ -992,6 +1528,18 @@ class Billing {
|
|
|
992
1528
|
if (q != null) {
|
|
993
1529
|
_queryParams["q"] = q;
|
|
994
1530
|
}
|
|
1531
|
+
if (priceUsageType != null) {
|
|
1532
|
+
_queryParams["price_usage_type"] = priceUsageType;
|
|
1533
|
+
}
|
|
1534
|
+
if (withoutLinkedToPlan != null) {
|
|
1535
|
+
_queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
|
|
1536
|
+
}
|
|
1537
|
+
if (withZeroPrice != null) {
|
|
1538
|
+
_queryParams["with_zero_price"] = withZeroPrice.toString();
|
|
1539
|
+
}
|
|
1540
|
+
if (withPricesOnly != null) {
|
|
1541
|
+
_queryParams["with_prices_only"] = withPricesOnly.toString();
|
|
1542
|
+
}
|
|
995
1543
|
if (limit != null) {
|
|
996
1544
|
_queryParams["limit"] = limit.toString();
|
|
997
1545
|
}
|
|
@@ -1001,7 +1549,7 @@ class Billing {
|
|
|
1001
1549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1002
1550
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products"),
|
|
1003
1551
|
method: "GET",
|
|
1004
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1552
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1005
1553
|
contentType: "application/json",
|
|
1006
1554
|
queryParameters: _queryParams,
|
|
1007
1555
|
requestType: "json",
|
|
@@ -1075,7 +1623,7 @@ class Billing {
|
|
|
1075
1623
|
});
|
|
1076
1624
|
}
|
|
1077
1625
|
/**
|
|
1078
|
-
* @param {Schematic.
|
|
1626
|
+
* @param {Schematic.CountBillingProductsRequest} request
|
|
1079
1627
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
1080
1628
|
*
|
|
1081
1629
|
* @throws {@link Schematic.BadRequestError}
|
|
@@ -1084,35 +1632,58 @@ class Billing {
|
|
|
1084
1632
|
* @throws {@link Schematic.InternalServerError}
|
|
1085
1633
|
*
|
|
1086
1634
|
* @example
|
|
1087
|
-
* await client.billing.
|
|
1088
|
-
* customerExternalId: "customer_external_id",
|
|
1089
|
-
* expiredAt: new Date("2024-01-15T09:30:00.000Z"),
|
|
1090
|
-
* productExternalIds: [{
|
|
1091
|
-
* price: 1,
|
|
1092
|
-
* productExternalId: "product_external_id"
|
|
1093
|
-
* }],
|
|
1094
|
-
* subscriptionExternalId: "subscription_external_id",
|
|
1095
|
-
* totalPrice: 1
|
|
1096
|
-
* })
|
|
1635
|
+
* await client.billing.countBillingProducts()
|
|
1097
1636
|
*/
|
|
1098
|
-
|
|
1637
|
+
countBillingProducts(request = {}, requestOptions) {
|
|
1099
1638
|
var _a, _b;
|
|
1100
1639
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1640
|
+
const { ids, name, q, priceUsageType, withoutLinkedToPlan, withZeroPrice, withPricesOnly, limit, offset } = request;
|
|
1641
|
+
const _queryParams = {};
|
|
1642
|
+
if (ids != null) {
|
|
1643
|
+
if (Array.isArray(ids)) {
|
|
1644
|
+
_queryParams["ids"] = ids.map((item) => item);
|
|
1645
|
+
}
|
|
1646
|
+
else {
|
|
1647
|
+
_queryParams["ids"] = ids;
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
if (name != null) {
|
|
1651
|
+
_queryParams["name"] = name;
|
|
1652
|
+
}
|
|
1653
|
+
if (q != null) {
|
|
1654
|
+
_queryParams["q"] = q;
|
|
1655
|
+
}
|
|
1656
|
+
if (priceUsageType != null) {
|
|
1657
|
+
_queryParams["price_usage_type"] = priceUsageType;
|
|
1658
|
+
}
|
|
1659
|
+
if (withoutLinkedToPlan != null) {
|
|
1660
|
+
_queryParams["without_linked_to_plan"] = withoutLinkedToPlan.toString();
|
|
1661
|
+
}
|
|
1662
|
+
if (withZeroPrice != null) {
|
|
1663
|
+
_queryParams["with_zero_price"] = withZeroPrice.toString();
|
|
1664
|
+
}
|
|
1665
|
+
if (withPricesOnly != null) {
|
|
1666
|
+
_queryParams["with_prices_only"] = withPricesOnly.toString();
|
|
1667
|
+
}
|
|
1668
|
+
if (limit != null) {
|
|
1669
|
+
_queryParams["limit"] = limit.toString();
|
|
1670
|
+
}
|
|
1671
|
+
if (offset != null) {
|
|
1672
|
+
_queryParams["offset"] = offset.toString();
|
|
1673
|
+
}
|
|
1101
1674
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1102
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/
|
|
1103
|
-
method: "
|
|
1104
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1675
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/products/count"),
|
|
1676
|
+
method: "GET",
|
|
1677
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1105
1678
|
contentType: "application/json",
|
|
1679
|
+
queryParameters: _queryParams,
|
|
1106
1680
|
requestType: "json",
|
|
1107
|
-
body: serializers.CreateBillingSubscriptionsRequestBody.jsonOrThrow(request, {
|
|
1108
|
-
unrecognizedObjectKeys: "strip",
|
|
1109
|
-
}),
|
|
1110
1681
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1111
1682
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1112
1683
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1113
1684
|
});
|
|
1114
1685
|
if (_response.ok) {
|
|
1115
|
-
return serializers.
|
|
1686
|
+
return serializers.CountBillingProductsResponse.parseOrThrow(_response.body, {
|
|
1116
1687
|
unrecognizedObjectKeys: "passthrough",
|
|
1117
1688
|
allowUnrecognizedUnionMembers: true,
|
|
1118
1689
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1177,7 +1748,7 @@ class Billing {
|
|
|
1177
1748
|
});
|
|
1178
1749
|
}
|
|
1179
1750
|
/**
|
|
1180
|
-
* @param {Schematic.
|
|
1751
|
+
* @param {Schematic.CreateBillingSubscriptionsRequestBody} request
|
|
1181
1752
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
1182
1753
|
*
|
|
1183
1754
|
* @throws {@link Schematic.BadRequestError}
|
|
@@ -1186,28 +1757,41 @@ class Billing {
|
|
|
1186
1757
|
* @throws {@link Schematic.InternalServerError}
|
|
1187
1758
|
*
|
|
1188
1759
|
* @example
|
|
1189
|
-
* await client.billing.
|
|
1190
|
-
*
|
|
1191
|
-
*
|
|
1192
|
-
*
|
|
1760
|
+
* await client.billing.upsertBillingSubscription({
|
|
1761
|
+
* currency: "currency",
|
|
1762
|
+
* customerExternalId: "customer_external_id",
|
|
1763
|
+
* expiredAt: "2024-01-15T09:30:00Z",
|
|
1764
|
+
* productExternalIds: [{
|
|
1765
|
+
* currency: "currency",
|
|
1766
|
+
* interval: "interval",
|
|
1767
|
+
* price: 1,
|
|
1768
|
+
* priceExternalId: "price_external_id",
|
|
1769
|
+
* productExternalId: "product_external_id",
|
|
1770
|
+
* quantity: 1,
|
|
1771
|
+
* usageType: "usage_type"
|
|
1772
|
+
* }],
|
|
1773
|
+
* subscriptionExternalId: "subscription_external_id",
|
|
1774
|
+
* totalPrice: 1
|
|
1193
1775
|
* })
|
|
1194
1776
|
*/
|
|
1195
|
-
|
|
1777
|
+
upsertBillingSubscription(request, requestOptions) {
|
|
1196
1778
|
var _a, _b;
|
|
1197
1779
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1198
1780
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1199
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "
|
|
1781
|
+
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "billing/subscription/upsert"),
|
|
1200
1782
|
method: "POST",
|
|
1201
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1783
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.6", "User-Agent": "@schematichq/schematic-typescript-node/1.1.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1202
1784
|
contentType: "application/json",
|
|
1203
1785
|
requestType: "json",
|
|
1204
|
-
body: serializers.
|
|
1786
|
+
body: serializers.CreateBillingSubscriptionsRequestBody.jsonOrThrow(request, {
|
|
1787
|
+
unrecognizedObjectKeys: "strip",
|
|
1788
|
+
}),
|
|
1205
1789
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1206
1790
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1207
1791
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1208
1792
|
});
|
|
1209
1793
|
if (_response.ok) {
|
|
1210
|
-
return serializers.
|
|
1794
|
+
return serializers.UpsertBillingSubscriptionResponse.parseOrThrow(_response.body, {
|
|
1211
1795
|
unrecognizedObjectKeys: "passthrough",
|
|
1212
1796
|
allowUnrecognizedUnionMembers: true,
|
|
1213
1797
|
allowUnrecognizedEnumValues: true,
|