@schematichq/schematic-typescript-node 1.1.9 → 1.1.11
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 +20 -13
- package/Client.js +13 -8
- package/README.md +199 -0
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +19 -8
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +19 -8
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/InternalServerError.js +19 -8
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +19 -8
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +19 -8
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accesstokens/client/Client.d.ts +7 -1
- package/api/resources/accesstokens/client/Client.js +50 -22
- package/api/resources/accounts/client/Client.d.ts +55 -14
- package/api/resources/accounts/client/Client.js +548 -224
- package/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/api/resources/accounts/types/index.d.ts +1 -0
- package/api/resources/accounts/types/index.js +1 -0
- package/api/resources/billing/client/Client.d.ts +99 -25
- package/api/resources/billing/client/Client.js +912 -307
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +10 -1
- package/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +14 -2
- package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -5
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
- package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +10 -1
- package/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
- package/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +10 -1
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
- package/api/resources/billing/client/requests/index.d.ts +2 -1
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +6 -1
- package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
- package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
- package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
- package/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +6 -1
- package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
- package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
- package/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
- package/{dist/api/resources/billing/types/ListCustomersParams.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/{dist/api/resources/billing/types/ListCustomersResponse.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/api/resources/billing/types/ListProductPricesParams.d.ts +6 -1
- package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
- package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
- package/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
- package/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
- package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
- package/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
- package/api/resources/billing/types/index.d.ts +17 -2
- package/api/resources/billing/types/index.js +17 -2
- package/api/resources/checkout/client/Client.d.ts +19 -6
- package/api/resources/checkout/client/Client.js +149 -73
- package/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
- package/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/api/resources/companies/client/Client.d.ts +99 -37
- package/api/resources/companies/client/Client.js +1024 -499
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
- package/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/api/resources/components/client/Client.d.ts +22 -7
- package/api/resources/components/client/Client.js +226 -117
- package/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
- package/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
- package/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
- package/api/resources/crm/client/Client.d.ts +19 -5
- package/api/resources/crm/client/Client.js +183 -83
- package/api/resources/dataexports/client/Client.d.ts +58 -0
- package/api/resources/dataexports/client/Client.js +265 -0
- package/api/resources/dataexports/client/index.d.ts +1 -0
- package/api/resources/dataexports/client/index.js +17 -0
- package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
- package/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/api/resources/dataexports/client/requests/index.js +2 -0
- package/api/resources/dataexports/index.d.ts +2 -0
- package/api/resources/dataexports/index.js +18 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/api/resources/dataexports/types/index.d.ts +1 -0
- package/api/resources/dataexports/types/index.js +17 -0
- package/api/resources/entitlements/client/Client.d.ts +57 -22
- package/api/resources/entitlements/client/Client.js +612 -306
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/api/resources/events/client/Client.d.ts +20 -6
- package/api/resources/events/client/Client.js +199 -99
- package/api/resources/features/client/Client.d.ts +56 -19
- package/api/resources/features/client/Client.js +607 -300
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +21 -8
- package/api/resources/plangroups/client/Client.d.ts +17 -5
- package/api/resources/plangroups/client/Client.js +105 -55
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
- package/api/resources/plans/client/Client.d.ts +128 -11
- package/api/resources/plans/client/Client.js +1063 -210
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/api/resources/plans/client/requests/index.d.ts +4 -0
- package/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
- package/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
- package/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
- package/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
- package/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
- package/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/index.d.ts +8 -0
- package/api/resources/plans/types/index.js +8 -0
- package/api/resources/webhooks/client/Client.d.ts +28 -9
- package/api/resources/webhooks/client/Client.js +293 -148
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
- package/api/types/BillingCouponResponseData.d.ts +0 -3
- package/api/types/BillingPriceResponseData.d.ts +2 -0
- package/api/types/BillingPriceView.d.ts +7 -0
- package/api/types/BillingProductDetailResponseData.d.ts +3 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +4 -1
- package/api/types/BillingProductPricingUsageType.d.ts +8 -0
- package/api/types/BillingProductPricingUsageType.js +10 -0
- package/api/types/BillingProductResponseData.d.ts +2 -0
- package/api/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/api/types/BillingSubscriptionView.d.ts +3 -0
- package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/api/types/CheckFlagResponseData.d.ts +2 -0
- package/api/types/CheckoutDataResponseData.d.ts +3 -1
- package/api/types/CompanyDetailResponseData.d.ts +2 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +5 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/api/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/api/types/ComponentCapabilities.d.ts +1 -0
- package/api/types/CreateBillingPriceTierRequestBody.d.ts +10 -0
- package/api/types/CreateBillingPriceTierRequestBody.js +5 -0
- package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
- package/api/types/CustomPlanConfig.d.ts +8 -0
- package/api/types/CustomPlanConfig.js +5 -0
- package/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
- package/api/types/CustomPlanViewConfigResponseData.js +5 -0
- package/api/types/DataExportResponseData.d.ts +17 -0
- package/api/types/DataExportResponseData.js +5 -0
- package/api/types/Decimal.d.ts +1 -1
- package/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/api/types/EntitlementTriggerConfig.js +5 -0
- package/api/types/EntitlementsInPlan.d.ts +7 -0
- package/api/types/EntitlementsInPlan.js +5 -0
- package/api/types/EventBody.d.ts +1 -1
- package/api/types/EventSummaryResponseData.d.ts +2 -2
- package/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
- package/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
- package/api/types/FeatureDetailResponseData.d.ts +2 -0
- package/api/types/FeatureResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
- package/api/types/OrderedPlansInGroup.d.ts +8 -0
- package/api/types/OrderedPlansInGroup.js +5 -0
- package/api/types/PaymentMethodRequestBody.d.ts +0 -1
- package/api/types/PaymentMethodResponseData.d.ts +0 -1
- package/api/types/PlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementsOrder.d.ts +7 -0
- package/api/types/PlanEntitlementsOrder.js +5 -0
- package/api/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
- package/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
- package/api/types/PlanGroupResponseData.d.ts +2 -1
- package/api/types/PlanTraitResponseData.d.ts +16 -0
- package/api/types/PlanTraitResponseData.js +5 -0
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/api/types/QuickstartResp.d.ts +6 -0
- package/api/types/QuickstartResp.js +5 -0
- package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/api/types/WebhookResponseData.d.ts +3 -0
- package/api/types/index.d.ts +15 -0
- package/api/types/index.js +15 -0
- package/core/fetcher/APIResponse.d.ts +11 -1
- package/core/fetcher/Fetcher.d.ts +2 -2
- package/core/fetcher/Fetcher.js +13 -5
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/custom.js +19 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +1 -2
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +4 -5
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/index.js +17 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +7 -5
- package/core/schemas/Schema.js +2 -0
- package/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/core/schemas/builders/bigint/bigint.js +22 -19
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +31 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +16 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/dist/Client.d.ts +20 -13
- package/dist/Client.js +13 -8
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +19 -8
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +19 -8
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.js +19 -8
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +19 -8
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +19 -8
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accesstokens/client/Client.d.ts +7 -1
- package/dist/api/resources/accesstokens/client/Client.js +50 -22
- package/dist/api/resources/accounts/client/Client.d.ts +55 -14
- package/dist/api/resources/accounts/client/Client.js +548 -224
- package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/dist/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/dist/api/resources/accounts/types/QuickstartResponse.js +5 -0
- package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +1 -1
- package/dist/api/resources/accounts/types/index.d.ts +1 -0
- package/dist/api/resources/accounts/types/index.js +1 -0
- package/dist/api/resources/billing/client/Client.d.ts +99 -25
- package/dist/api/resources/billing/client/Client.js +912 -307
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +10 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +14 -2
- package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -5
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +6 -2
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +10 -1
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +19 -0
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +0 -1
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +10 -1
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +3 -1
- package/dist/api/resources/billing/client/requests/index.d.ts +2 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +6 -1
- package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +10 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +10 -0
- package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +10 -0
- package/dist/api/resources/billing/types/DeleteBillingProductResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/DeleteBillingProductResponse.js +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +6 -1
- package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/ListCouponsParams.d.ts +14 -0
- package/dist/api/resources/billing/types/ListCouponsParams.js +5 -0
- package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListCouponsResponse.js +5 -0
- package/{api/resources/billing/types/ListCustomersParams.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/{api/resources/billing/types/ListCustomersResponse.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +6 -1
- package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListProductPricesRequestPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +10 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/SearchBillingPricesRequestUsageType.js +10 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +8 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +10 -0
- package/dist/api/resources/billing/types/index.d.ts +17 -2
- package/dist/api/resources/billing/types/index.js +17 -2
- package/dist/api/resources/checkout/client/Client.d.ts +19 -6
- package/dist/api/resources/checkout/client/Client.js +149 -73
- package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
- package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/api/resources/companies/client/Client.d.ts +99 -37
- package/dist/api/resources/companies/client/Client.js +1024 -499
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +1 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +1 -1
- package/dist/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +1 -1
- package/dist/api/resources/components/client/Client.d.ts +22 -7
- package/dist/api/resources/components/client/Client.js +226 -117
- package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +1 -1
- package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +1 -1
- package/dist/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +1 -1
- package/dist/api/resources/crm/client/Client.d.ts +19 -5
- package/dist/api/resources/crm/client/Client.js +183 -83
- package/dist/api/resources/dataexports/client/Client.d.ts +58 -0
- package/dist/api/resources/dataexports/client/Client.js +265 -0
- package/dist/api/resources/dataexports/client/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/index.js +17 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
- package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/requests/index.js +2 -0
- package/dist/api/resources/dataexports/index.d.ts +2 -0
- package/dist/api/resources/dataexports/index.js +18 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/dist/api/resources/dataexports/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/types/index.js +17 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +57 -22
- package/dist/api/resources/entitlements/client/Client.js +612 -306
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/dist/api/resources/events/client/Client.d.ts +20 -6
- package/dist/api/resources/events/client/Client.js +199 -99
- package/dist/api/resources/features/client/Client.d.ts +56 -19
- package/dist/api/resources/features/client/Client.js +607 -300
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +1 -1
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +21 -8
- package/dist/api/resources/plangroups/client/Client.d.ts +17 -5
- package/dist/api/resources/plangroups/client/Client.js +105 -55
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +7 -2
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +7 -2
- package/dist/api/resources/plans/client/Client.d.ts +128 -11
- package/dist/api/resources/plans/client/Client.js +1063 -210
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +4 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +1 -1
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/index.d.ts +8 -0
- package/dist/api/resources/plans/types/index.js +8 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +28 -9
- package/dist/api/resources/webhooks/client/Client.js +293 -148
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +1 -1
- package/dist/api/types/BillingCouponResponseData.d.ts +0 -3
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +7 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +4 -1
- package/dist/api/types/BillingProductPricingUsageType.d.ts +8 -0
- package/dist/api/types/BillingProductPricingUsageType.js +10 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -0
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/dist/api/types/BillingSubscriptionView.d.ts +3 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/api/types/CheckoutDataResponseData.d.ts +3 -1
- package/dist/api/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +5 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/api/types/ComponentCapabilities.d.ts +1 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +10 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.js +5 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/api/types/CreateEventRequestBodyEventType.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
- package/dist/api/types/CustomPlanConfig.d.ts +8 -0
- package/dist/api/types/CustomPlanConfig.js +5 -0
- package/dist/api/types/CustomPlanViewConfigResponseData.d.ts +8 -0
- package/dist/api/types/CustomPlanViewConfigResponseData.js +5 -0
- package/dist/api/types/DataExportResponseData.d.ts +17 -0
- package/dist/api/types/DataExportResponseData.js +5 -0
- package/dist/api/types/Decimal.d.ts +1 -1
- package/dist/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/dist/api/types/EntitlementTriggerConfig.js +5 -0
- package/dist/api/types/EntitlementsInPlan.d.ts +7 -0
- package/dist/api/types/EntitlementsInPlan.js +5 -0
- package/dist/api/types/EventBody.d.ts +1 -1
- package/dist/api/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/api/types/FeatureCompanyResponseDataAllocationType.d.ts +1 -1
- package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
- package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/api/types/FeatureResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseDataAllocationType.d.ts +1 -1
- package/dist/api/types/OrderedPlansInGroup.d.ts +8 -0
- package/dist/api/types/OrderedPlansInGroup.js +5 -0
- package/dist/api/types/PaymentMethodRequestBody.d.ts +0 -1
- package/dist/api/types/PaymentMethodResponseData.d.ts +0 -1
- package/dist/api/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementsOrder.d.ts +7 -0
- package/dist/api/types/PlanEntitlementsOrder.js +5 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +8 -0
- package/dist/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +2 -1
- package/dist/api/types/PlanTraitResponseData.d.ts +16 -0
- package/dist/api/types/PlanTraitResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/dist/api/types/QuickstartResp.d.ts +6 -0
- package/dist/api/types/QuickstartResp.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +1 -1
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +1 -1
- package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/dist/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/dist/api/types/WebhookResponseData.d.ts +3 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/dist/core/fetcher/APIResponse.d.ts +11 -1
- package/dist/core/fetcher/Fetcher.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.js +13 -5
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/custom.js +19 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +4 -5
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/index.js +17 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +7 -5
- package/dist/core/schemas/Schema.js +2 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/dist/core/schemas/builders/bigint/bigint.js +22 -19
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +31 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +16 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/environments.d.ts +1 -1
- package/dist/errors/SchematicError.d.ts +4 -1
- package/dist/errors/SchematicError.js +6 -8
- package/dist/errors/SchematicTimeoutError.d.ts +1 -1
- package/dist/errors/SchematicTimeoutError.js +2 -2
- package/dist/events.d.ts +4 -0
- package/dist/events.js +41 -5
- package/dist/events.test.js +51 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -8
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
- package/dist/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
- package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/dist/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
- package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
- package/dist/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/dist/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/dist/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
- package/dist/serialization/resources/accounts/types/index.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/index.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +11 -1
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +28 -8
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -2
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -9
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
- package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +4 -1
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +21 -8
- package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
- package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.js +18 -7
- package/dist/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
- package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
- package/dist/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
- package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -1
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +21 -8
- package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListCouponsParams.js +46 -0
- package/dist/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
- package/dist/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +20 -9
- package/{serialization/resources/billing/types/ListCustomersResponse.d.ts → dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +21 -11
- package/dist/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListMetersParams.js +17 -7
- package/dist/serialization/resources/billing/types/ListMetersResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -1
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +21 -8
- package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
- package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
- package/dist/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
- package/dist/serialization/resources/billing/types/index.d.ts +17 -2
- package/dist/serialization/resources/billing/types/index.js +17 -2
- package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
- package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
- package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/checkout/client/requests/index.js +3 -1
- package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
- package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
- package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
- package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
- package/dist/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
- package/dist/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
- package/dist/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +18 -7
- package/dist/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/CountUsersParams.js +17 -7
- package/dist/serialization/resources/companies/types/CountUsersResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/CreateUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
- package/dist/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
- package/dist/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
- package/dist/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/GetUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +18 -7
- package/dist/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/ListUsersParams.js +17 -7
- package/dist/serialization/resources/companies/types/ListUsersResponse.js +17 -7
- package/dist/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupCompanyParams.js +18 -8
- package/dist/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.js +18 -8
- package/dist/serialization/resources/companies/types/LookupUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
- package/dist/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
- package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
- package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
- package/dist/serialization/resources/components/types/CountComponentsParams.js +17 -7
- package/dist/serialization/resources/components/types/CountComponentsResponse.js +17 -7
- package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
- package/dist/serialization/resources/components/types/CreateComponentResponse.js +17 -7
- package/dist/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
- package/dist/serialization/resources/components/types/GetComponentResponse.js +17 -7
- package/dist/serialization/resources/components/types/ListComponentsParams.js +17 -7
- package/dist/serialization/resources/components/types/ListComponentsResponse.js +17 -7
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
- package/dist/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
- package/dist/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
- package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
- package/dist/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
- package/dist/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
- package/dist/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
- package/dist/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/index.js +17 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/dist/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/dist/serialization/resources/dataexports/index.d.ts +2 -0
- package/dist/serialization/resources/dataexports/index.js +18 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/dist/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/types/index.js +17 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +24 -7
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +24 -7
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +18 -8
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
- package/dist/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
- package/dist/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
- package/dist/serialization/resources/events/types/CreateEventResponse.js +17 -7
- package/dist/serialization/resources/events/types/GetEventResponse.js +17 -7
- package/dist/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
- package/dist/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
- package/dist/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
- package/dist/serialization/resources/events/types/ListEventsParams.js +17 -7
- package/dist/serialization/resources/events/types/ListEventsResponse.js +17 -7
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
- package/dist/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
- package/dist/serialization/resources/features/types/CheckFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountFeaturesParams.js +17 -7
- package/dist/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
- package/dist/serialization/resources/features/types/CountFlagsParams.js +17 -7
- package/dist/serialization/resources/features/types/CountFlagsResponse.js +17 -7
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
- package/dist/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/CreateFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/GetFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/GetFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListFeaturesParams.js +17 -7
- package/dist/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
- package/dist/serialization/resources/features/types/ListFlagsParams.js +17 -7
- package/dist/serialization/resources/features/types/ListFlagsResponse.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
- package/dist/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +21 -8
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
- package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +19 -7
- package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/index.js +5 -1
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +17 -7
- package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/CountPlansResponse.js +17 -7
- package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
- package/dist/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
- package/dist/serialization/resources/plans/types/GetPlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +17 -7
- package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/ListPlansResponse.js +17 -7
- package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
- package/dist/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
- package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
- package/dist/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
- package/dist/serialization/resources/plans/types/index.d.ts +8 -0
- package/dist/serialization/resources/plans/types/index.js +8 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +19 -7
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +19 -7
- package/dist/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/dist/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
- package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
- package/dist/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
- package/dist/serialization/types/ApiError.js +17 -7
- package/dist/serialization/types/ApiKeyCreateResponseData.js +17 -7
- package/dist/serialization/types/ApiKeyRequestListResponseData.js +17 -7
- package/dist/serialization/types/ApiKeyRequestResponseData.js +17 -7
- package/dist/serialization/types/ApiKeyResponseData.js +17 -7
- package/dist/serialization/types/AudienceRequestBody.js +17 -7
- package/dist/serialization/types/BillingCouponResponseData.js +17 -7
- package/dist/serialization/types/BillingCustomerResponseData.js +17 -7
- package/dist/serialization/types/BillingCustomerSubscription.js +17 -7
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
- package/dist/serialization/types/BillingMeterResponseData.js +17 -7
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.js +19 -7
- package/dist/serialization/types/BillingPriceView.d.ts +7 -0
- package/dist/serialization/types/BillingPriceView.js +24 -7
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductDetailResponseData.js +20 -7
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +22 -7
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +19 -7
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +20 -7
- package/dist/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +4 -1
- package/dist/serialization/types/BillingProductPricing.js +21 -8
- package/dist/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
- package/dist/serialization/types/BillingProductPricingUsageType.js +41 -0
- package/dist/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductResponseData.js +19 -7
- package/dist/serialization/types/BillingSubscriptionDiscount.js +17 -7
- package/dist/serialization/types/BillingSubscriptionDiscountView.js +17 -7
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingSubscriptionResponseData.js +20 -7
- package/dist/serialization/types/BillingSubscriptionView.d.ts +3 -0
- package/dist/serialization/types/BillingSubscriptionView.js +20 -7
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
- package/dist/serialization/types/CheckFlagRequestBody.js +17 -7
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +18 -7
- package/dist/serialization/types/CheckFlagsResponseData.js +17 -7
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/serialization/types/CheckoutDataResponseData.js +19 -7
- package/dist/serialization/types/CompanyCrmDealsResponseData.js +17 -7
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/CompanyDetailResponseData.js +20 -7
- package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
- package/dist/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
- package/dist/serialization/types/CompanyMembershipResponseData.js +17 -7
- package/dist/serialization/types/CompanyOverrideResponseData.js +17 -7
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +6 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +23 -7
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +19 -7
- package/dist/serialization/types/CompanyResponseData.js +17 -7
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +19 -7
- package/dist/serialization/types/ComponentCapabilities.d.ts +1 -0
- package/dist/serialization/types/ComponentCapabilities.js +18 -7
- package/dist/serialization/types/ComponentHydrateResponseData.js +17 -7
- package/dist/serialization/types/ComponentPreviewResponseData.js +17 -7
- package/dist/serialization/types/ComponentResponseData.js +17 -7
- package/dist/serialization/types/CountResponse.js +17 -7
- package/dist/serialization/types/CouponRequestBody.js +17 -7
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +16 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +47 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.js +17 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
- package/dist/serialization/types/CreateEventRequestBody.js +17 -7
- package/dist/serialization/types/CreateEventRequestBodyEventType.js +17 -7
- package/dist/serialization/types/CreateFlagRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
- package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
- package/dist/serialization/types/CrmDealLineItem.js +17 -7
- package/dist/serialization/types/CrmDealResponseData.js +17 -7
- package/dist/serialization/types/CrmLineItemResponseData.js +17 -7
- package/dist/serialization/types/CrmProductResponseData.js +17 -7
- package/dist/serialization/types/CustomPlanConfig.d.ts +14 -0
- package/dist/serialization/types/CustomPlanConfig.js +45 -0
- package/dist/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
- package/dist/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
- package/dist/serialization/types/DataExportResponseData.d.ts +20 -0
- package/dist/serialization/types/DataExportResponseData.js +51 -0
- package/dist/serialization/types/Decimal.js +17 -7
- package/dist/serialization/types/DeleteResponse.js +17 -7
- package/dist/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/dist/serialization/types/EntitlementsInPlan.d.ts +13 -0
- package/dist/serialization/types/EntitlementsInPlan.js +44 -0
- package/dist/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
- package/dist/serialization/types/EntityKeyDetailResponseData.js +17 -7
- package/dist/serialization/types/EntityKeyResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitDetailResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitResponseData.js +17 -7
- package/dist/serialization/types/EntityTraitValue.js +17 -7
- package/dist/serialization/types/EnvironmentDetailResponseData.js +17 -7
- package/dist/serialization/types/EnvironmentResponseData.js +17 -7
- package/dist/serialization/types/EventBody.js +17 -7
- package/dist/serialization/types/EventBodyFlagCheck.js +17 -7
- package/dist/serialization/types/EventBodyIdentify.js +17 -7
- package/dist/serialization/types/EventBodyIdentifyCompany.js +17 -7
- package/dist/serialization/types/EventBodyTrack.js +17 -7
- package/dist/serialization/types/EventDetailResponseData.js +17 -7
- package/dist/serialization/types/EventResponseData.js +17 -7
- package/dist/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/serialization/types/EventSummaryResponseData.js +19 -9
- package/dist/serialization/types/FeatureCompanyResponseData.js +17 -7
- package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +17 -7
- package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureDetailResponseData.js +19 -7
- package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureResponseData.js +19 -7
- package/dist/serialization/types/FeatureUsageDetailResponseData.js +17 -7
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +18 -7
- package/dist/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
- package/dist/serialization/types/FlagDetailResponseData.js +17 -7
- package/dist/serialization/types/FlagResponseData.js +17 -7
- package/dist/serialization/types/GenericPreviewObject.js +17 -7
- package/dist/serialization/types/InvoiceRequestBody.js +17 -7
- package/dist/serialization/types/InvoiceResponseData.js +17 -7
- package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
- package/dist/serialization/types/KeysRequestBody.js +17 -7
- package/dist/serialization/types/MeterRequestBody.js +17 -7
- package/dist/serialization/types/OrderedPlansInGroup.d.ts +14 -0
- package/dist/serialization/types/OrderedPlansInGroup.js +45 -0
- package/dist/serialization/types/PaginationFilter.js +17 -7
- package/dist/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
- package/dist/serialization/types/PaymentMethodRequestBody.js +17 -8
- package/dist/serialization/types/PaymentMethodResponseData.d.ts +0 -1
- package/dist/serialization/types/PaymentMethodResponseData.js +17 -8
- package/dist/serialization/types/PlanAudienceDetailResponseData.js +17 -7
- package/dist/serialization/types/PlanAudienceResponseData.js +17 -7
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanDetailResponseData.js +19 -7
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +20 -7
- package/dist/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
- package/dist/serialization/types/PlanEntitlementsOrder.js +44 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +22 -7
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +22 -7
- package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
- package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanGroupResponseData.js +19 -8
- package/dist/serialization/types/PlanResponseData.js +17 -7
- package/dist/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/dist/serialization/types/PlanTraitResponseData.js +50 -0
- package/dist/serialization/types/PreviewObject.js +17 -7
- package/dist/serialization/types/PreviewObjectResponseData.js +17 -7
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +21 -7
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/dist/serialization/types/QuickstartResp.d.ts +12 -0
- package/dist/serialization/types/QuickstartResp.js +43 -0
- package/dist/serialization/types/RawEventBatchResponseData.js +17 -7
- package/dist/serialization/types/RawEventResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionDetailResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionGroupResponseData.js +17 -7
- package/dist/serialization/types/RuleConditionResponseData.js +17 -7
- package/dist/serialization/types/RuleDetailResponseData.js +17 -7
- package/dist/serialization/types/RuleResponseData.js +17 -7
- package/dist/serialization/types/RulesDetailResponseData.js +17 -7
- package/dist/serialization/types/SegmentStatusResp.js +17 -7
- package/dist/serialization/types/StripeEmbedInfo.js +17 -7
- package/dist/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
- package/dist/serialization/types/UpdateAddOnRequestBody.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
- package/dist/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
- package/dist/serialization/types/UpdateRuleRequestBody.js +17 -7
- package/dist/serialization/types/UpsertCompanyRequestBody.js +17 -7
- package/dist/serialization/types/UpsertTraitRequestBody.js +17 -7
- package/dist/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/dist/serialization/types/UpsertUserRequestBody.js +19 -7
- package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +18 -7
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +24 -7
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +17 -7
- package/dist/serialization/types/UserDetailResponseData.js +17 -7
- package/dist/serialization/types/UserResponseData.js +17 -7
- package/dist/serialization/types/WebhookEventDetailResponseData.js +17 -7
- package/dist/serialization/types/WebhookEventResponseData.js +17 -7
- package/dist/serialization/types/WebhookResponseData.d.ts +3 -0
- package/dist/serialization/types/WebhookResponseData.js +20 -7
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +15 -0
- package/dist/webhooks.d.ts +76 -0
- package/dist/webhooks.js +170 -0
- package/environments.d.ts +1 -1
- package/errors/SchematicError.d.ts +4 -1
- package/errors/SchematicError.js +6 -8
- package/errors/SchematicTimeoutError.d.ts +1 -1
- package/errors/SchematicTimeoutError.js +2 -2
- package/events.d.ts +4 -0
- package/events.js +41 -5
- package/events.test.js +51 -4
- package/index.d.ts +1 -0
- package/index.js +26 -8
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +18 -16
- package/reference.md +532 -21
- package/scripts/rename-to-esm-files.js +115 -0
- package/scripts/webhook-test-server/README.md +24 -0
- package/scripts/webhook-test-server/package-lock.json +196 -0
- package/scripts/webhook-test-server/package.json +13 -0
- package/scripts/webhook-test-server/webhook-test-server.ts +100 -0
- package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +17 -7
- package/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +17 -7
- package/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +17 -7
- package/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +17 -7
- package/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +17 -7
- package/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +17 -7
- package/serialization/resources/accounts/types/CountApiKeysParams.js +17 -7
- package/serialization/resources/accounts/types/CountApiKeysResponse.js +17 -7
- package/serialization/resources/accounts/types/CountApiRequestsParams.js +17 -7
- package/serialization/resources/accounts/types/CountApiRequestsResponse.js +17 -7
- package/serialization/resources/accounts/types/CreateApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/serialization/resources/accounts/types/CreateEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/DeleteApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/GetApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/GetApiRequestResponse.js +17 -7
- package/serialization/resources/accounts/types/GetEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/ListApiKeysParams.js +17 -7
- package/serialization/resources/accounts/types/ListApiKeysResponse.js +17 -7
- package/serialization/resources/accounts/types/ListApiRequestsParams.js +17 -7
- package/serialization/resources/accounts/types/ListApiRequestsResponse.js +17 -7
- package/serialization/resources/accounts/types/ListEnvironmentsParams.js +17 -7
- package/serialization/resources/accounts/types/ListEnvironmentsResponse.js +17 -7
- package/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/serialization/resources/accounts/types/UpdateApiKeyResponse.js +17 -7
- package/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +17 -7
- package/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +17 -7
- package/serialization/resources/accounts/types/index.d.ts +1 -0
- package/serialization/resources/accounts/types/index.js +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +18 -7
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +11 -1
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +28 -8
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -2
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +18 -9
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +5 -1
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +22 -8
- package/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +17 -7
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +17 -7
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +17 -7
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +0 -1
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +17 -8
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +4 -1
- package/serialization/resources/billing/types/CountBillingProductsParams.js +21 -8
- package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/CountBillingProductsRequestPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.js +17 -7
- package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/CountBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/serialization/resources/billing/types/CountCustomersParams.js +18 -7
- package/serialization/resources/billing/types/CountCustomersResponse.js +17 -7
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js +41 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyUsageType.js +41 -0
- package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.js +41 -0
- package/serialization/resources/billing/types/DeleteBillingProductResponse.d.ts +14 -0
- package/serialization/resources/billing/types/DeleteBillingProductResponse.js +45 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.js +17 -7
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -1
- package/serialization/resources/billing/types/ListBillingProductsParams.js +21 -8
- package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListBillingProductsRequestPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/ListBillingProductsResponse.js +17 -7
- package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListBillingProductsResponseParamsPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/ListCouponsParams.d.ts +15 -0
- package/serialization/resources/billing/types/ListCouponsParams.js +46 -0
- package/serialization/resources/billing/types/ListCouponsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
- package/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +20 -9
- package/{dist/serialization/resources/billing/types/ListCustomersResponse.d.ts → serialization/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +21 -11
- package/serialization/resources/billing/types/ListInvoicesParams.js +17 -7
- package/serialization/resources/billing/types/ListInvoicesResponse.js +17 -7
- package/serialization/resources/billing/types/ListMetersParams.js +17 -7
- package/serialization/resources/billing/types/ListMetersResponse.js +17 -7
- package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +0 -1
- package/serialization/resources/billing/types/ListPaymentMethodsParams.js +17 -8
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +17 -7
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -1
- package/serialization/resources/billing/types/ListProductPricesParams.js +21 -8
- package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListProductPricesRequestPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/ListProductPricesResponse.js +17 -7
- package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/ListProductPricesResponseParamsPriceUsageType.js +41 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +3 -1
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +20 -8
- package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesRequestUsageType.js +41 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponse.js +17 -7
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsUsageType.js +41 -0
- package/serialization/resources/billing/types/UpsertBillingCouponResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingPriceResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingProductResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertInvoiceResponse.js +17 -7
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +17 -7
- package/serialization/resources/billing/types/index.d.ts +17 -2
- package/serialization/resources/billing/types/index.js +17 -2
- package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +13 -0
- package/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
- package/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +17 -7
- package/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/serialization/resources/checkout/client/requests/index.js +3 -1
- package/serialization/resources/checkout/types/CheckoutInternalResponse.js +17 -7
- package/serialization/resources/checkout/types/GetCheckoutDataResponse.js +17 -7
- package/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +17 -7
- package/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +17 -7
- package/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +17 -7
- package/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +17 -7
- package/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +17 -7
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +18 -7
- package/serialization/resources/companies/types/CountCompaniesResponse.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/serialization/resources/companies/types/CountUsersParams.js +17 -7
- package/serialization/resources/companies/types/CountUsersResponse.js +17 -7
- package/serialization/resources/companies/types/CreateCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +17 -7
- package/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/serialization/resources/companies/types/CreateUserResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteUserByKeysResponse.js +17 -7
- package/serialization/resources/companies/types/DeleteUserResponse.js +17 -7
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +17 -7
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +17 -7
- package/serialization/resources/companies/types/GetActiveDealsParams.js +17 -7
- package/serialization/resources/companies/types/GetActiveDealsResponse.js +17 -7
- package/serialization/resources/companies/types/GetCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +17 -7
- package/serialization/resources/companies/types/GetEntityTraitValuesParams.js +17 -7
- package/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +17 -7
- package/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +17 -7
- package/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +17 -7
- package/serialization/resources/companies/types/GetUserResponse.js +17 -7
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +18 -7
- package/serialization/resources/companies/types/ListCompaniesResponse.js +17 -7
- package/serialization/resources/companies/types/ListCompanyMembershipsParams.js +17 -7
- package/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +17 -7
- package/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +17 -7
- package/serialization/resources/companies/types/ListUsersParams.js +17 -7
- package/serialization/resources/companies/types/ListUsersResponse.js +17 -7
- package/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupCompanyParams.js +18 -8
- package/serialization/resources/companies/types/LookupCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupUserParams.js +18 -8
- package/serialization/resources/companies/types/LookupUserResponse.js +17 -7
- package/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +17 -7
- package/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertCompanyResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertUserResponse.js +17 -7
- package/serialization/resources/companies/types/UpsertUserTraitResponse.js +17 -7
- package/serialization/resources/components/client/requests/CreateComponentRequestBody.js +17 -7
- package/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +17 -7
- package/serialization/resources/components/types/CountComponentsParams.js +17 -7
- package/serialization/resources/components/types/CountComponentsResponse.js +17 -7
- package/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +17 -7
- package/serialization/resources/components/types/CreateComponentResponse.js +17 -7
- package/serialization/resources/components/types/DeleteComponentResponse.js +17 -7
- package/serialization/resources/components/types/GetComponentResponse.js +17 -7
- package/serialization/resources/components/types/ListComponentsParams.js +17 -7
- package/serialization/resources/components/types/ListComponentsResponse.js +17 -7
- package/serialization/resources/components/types/PreviewComponentDataParams.js +17 -7
- package/serialization/resources/components/types/PreviewComponentDataResponse.js +17 -7
- package/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +17 -7
- package/serialization/resources/components/types/UpdateComponentRequestBodyState.js +17 -7
- package/serialization/resources/components/types/UpdateComponentResponse.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +17 -7
- package/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +17 -7
- package/serialization/resources/crm/types/ListCrmProductsParams.js +17 -7
- package/serialization/resources/crm/types/ListCrmProductsResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertCrmDealResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertCrmProductResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +17 -7
- package/serialization/resources/crm/types/UpsertLineItemResponse.js +17 -7
- package/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/index.js +17 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/serialization/resources/dataexports/index.d.ts +2 -0
- package/serialization/resources/dataexports/index.js +18 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/serialization/resources/dataexports/types/index.js +17 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +17 -7
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +7 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +24 -7
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +17 -7
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +7 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +24 -7
- package/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +17 -7
- package/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsersParams.js +17 -7
- package/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +17 -7
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +17 -7
- package/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +17 -7
- package/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +17 -7
- package/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +18 -8
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +17 -7
- package/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +17 -7
- package/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsersParams.js +17 -7
- package/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +17 -7
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +17 -7
- package/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +17 -7
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +17 -7
- package/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +17 -7
- package/serialization/resources/events/types/CreateEventBatchResponse.js +17 -7
- package/serialization/resources/events/types/CreateEventResponse.js +17 -7
- package/serialization/resources/events/types/GetEventResponse.js +17 -7
- package/serialization/resources/events/types/GetEventSummariesParams.js +17 -7
- package/serialization/resources/events/types/GetEventSummariesResponse.js +17 -7
- package/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +17 -7
- package/serialization/resources/events/types/ListEventsParams.js +17 -7
- package/serialization/resources/events/types/ListEventsResponse.js +17 -7
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +19 -7
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +19 -7
- package/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +17 -7
- package/serialization/resources/features/types/CheckFlagResponse.js +17 -7
- package/serialization/resources/features/types/CheckFlagsResponse.js +17 -7
- package/serialization/resources/features/types/CountAudienceCompaniesResponse.js +17 -7
- package/serialization/resources/features/types/CountAudienceUsersResponse.js +17 -7
- package/serialization/resources/features/types/CountFeaturesParams.js +17 -7
- package/serialization/resources/features/types/CountFeaturesResponse.js +17 -7
- package/serialization/resources/features/types/CountFlagsParams.js +17 -7
- package/serialization/resources/features/types/CountFlagsResponse.js +17 -7
- package/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +17 -7
- package/serialization/resources/features/types/CreateFeatureResponse.js +17 -7
- package/serialization/resources/features/types/CreateFlagResponse.js +17 -7
- package/serialization/resources/features/types/DeleteFeatureResponse.js +17 -7
- package/serialization/resources/features/types/DeleteFlagResponse.js +17 -7
- package/serialization/resources/features/types/GetFeatureResponse.js +17 -7
- package/serialization/resources/features/types/GetFlagResponse.js +17 -7
- package/serialization/resources/features/types/ListAudienceCompaniesResponse.js +17 -7
- package/serialization/resources/features/types/ListAudienceUsersResponse.js +17 -7
- package/serialization/resources/features/types/ListFeaturesParams.js +17 -7
- package/serialization/resources/features/types/ListFeaturesResponse.js +17 -7
- package/serialization/resources/features/types/ListFlagsParams.js +17 -7
- package/serialization/resources/features/types/ListFlagsResponse.js +17 -7
- package/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +17 -7
- package/serialization/resources/features/types/UpdateFeatureResponse.js +17 -7
- package/serialization/resources/features/types/UpdateFlagResponse.js +17 -7
- package/serialization/resources/features/types/UpdateFlagRulesResponse.js +17 -7
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +21 -8
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -1
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +22 -8
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -1
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +22 -8
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +17 -7
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +17 -7
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +17 -7
- package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- package/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +17 -7
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +19 -7
- package/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/serialization/resources/plans/client/requests/index.js +5 -1
- package/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/CountPlansParams.js +17 -7
- package/serialization/resources/plans/types/CountPlansRequestPlanType.js +17 -7
- package/serialization/resources/plans/types/CountPlansResponse.js +17 -7
- package/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +17 -7
- package/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +17 -7
- package/serialization/resources/plans/types/CreatePlanResponse.js +17 -7
- package/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/DeleteAudienceResponse.js +17 -7
- package/serialization/resources/plans/types/DeletePlanResponse.js +17 -7
- package/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/GetAudienceResponse.js +17 -7
- package/serialization/resources/plans/types/GetPlanResponse.js +17 -7
- package/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/ListPlansParams.js +17 -7
- package/serialization/resources/plans/types/ListPlansRequestPlanType.js +17 -7
- package/serialization/resources/plans/types/ListPlansResponse.js +17 -7
- package/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +17 -7
- package/serialization/resources/plans/types/UpdateAudienceResponse.js +17 -7
- package/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +17 -7
- package/serialization/resources/plans/types/UpdatePlanResponse.js +17 -7
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/UpsertBillingProductPlanResponse.js +17 -7
- package/serialization/resources/plans/types/index.d.ts +8 -0
- package/serialization/resources/plans/types/index.js +8 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +19 -7
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +19 -7
- package/serialization/resources/webhooks/types/CountWebhookEventsParams.js +17 -7
- package/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +17 -7
- package/serialization/resources/webhooks/types/CountWebhooksParams.js +17 -7
- package/serialization/resources/webhooks/types/CountWebhooksResponse.js +17 -7
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/serialization/resources/webhooks/types/CreateWebhookResponse.js +17 -7
- package/serialization/resources/webhooks/types/DeleteWebhookResponse.js +17 -7
- package/serialization/resources/webhooks/types/GetWebhookEventResponse.js +17 -7
- package/serialization/resources/webhooks/types/GetWebhookResponse.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhookEventsParams.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhooksParams.js +17 -7
- package/serialization/resources/webhooks/types/ListWebhooksResponse.js +17 -7
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +21 -7
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +17 -7
- package/serialization/resources/webhooks/types/UpdateWebhookResponse.js +17 -7
- package/serialization/types/ApiError.js +17 -7
- package/serialization/types/ApiKeyCreateResponseData.js +17 -7
- package/serialization/types/ApiKeyRequestListResponseData.js +17 -7
- package/serialization/types/ApiKeyRequestResponseData.js +17 -7
- package/serialization/types/ApiKeyResponseData.js +17 -7
- package/serialization/types/AudienceRequestBody.js +17 -7
- package/serialization/types/BillingCouponResponseData.js +17 -7
- package/serialization/types/BillingCustomerResponseData.js +17 -7
- package/serialization/types/BillingCustomerSubscription.js +17 -7
- package/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +17 -7
- package/serialization/types/BillingMeterResponseData.js +17 -7
- package/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/serialization/types/BillingPriceResponseData.js +19 -7
- package/serialization/types/BillingPriceView.d.ts +7 -0
- package/serialization/types/BillingPriceView.js +24 -7
- package/serialization/types/BillingProductDetailResponseData.d.ts +3 -0
- package/serialization/types/BillingProductDetailResponseData.js +20 -7
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +22 -7
- package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +19 -7
- package/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/serialization/types/BillingProductPriceResponseData.js +20 -7
- package/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/serialization/types/BillingProductPricing.d.ts +4 -1
- package/serialization/types/BillingProductPricing.js +21 -8
- package/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
- package/serialization/types/BillingProductPricingUsageType.js +41 -0
- package/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/serialization/types/BillingProductResponseData.js +19 -7
- package/serialization/types/BillingSubscriptionDiscount.js +17 -7
- package/serialization/types/BillingSubscriptionDiscountView.js +17 -7
- package/serialization/types/BillingSubscriptionResponseData.d.ts +3 -0
- package/serialization/types/BillingSubscriptionResponseData.js +20 -7
- package/serialization/types/BillingSubscriptionView.d.ts +3 -0
- package/serialization/types/BillingSubscriptionView.js +20 -7
- package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/serialization/types/ChangeSubscriptionInternalRequestBody.js +18 -7
- package/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/serialization/types/ChangeSubscriptionRequestBody.js +18 -7
- package/serialization/types/CheckFlagRequestBody.js +17 -7
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +18 -7
- package/serialization/types/CheckFlagsResponseData.js +17 -7
- package/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/serialization/types/CheckoutDataResponseData.js +19 -7
- package/serialization/types/CompanyCrmDealsResponseData.js +17 -7
- package/serialization/types/CompanyDetailResponseData.d.ts +3 -0
- package/serialization/types/CompanyDetailResponseData.js +20 -7
- package/serialization/types/CompanyEventPeriodMetricsResponseData.js +17 -7
- package/serialization/types/CompanyMembershipDetailResponseData.js +17 -7
- package/serialization/types/CompanyMembershipResponseData.js +17 -7
- package/serialization/types/CompanyOverrideResponseData.js +17 -7
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +6 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +23 -7
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +19 -7
- package/serialization/types/CompanyResponseData.js +17 -7
- package/serialization/types/CompanySubscriptionResponseData.d.ts +2 -0
- package/serialization/types/CompanySubscriptionResponseData.js +19 -7
- package/serialization/types/ComponentCapabilities.d.ts +1 -0
- package/serialization/types/ComponentCapabilities.js +18 -7
- package/serialization/types/ComponentHydrateResponseData.js +17 -7
- package/serialization/types/ComponentPreviewResponseData.js +17 -7
- package/serialization/types/ComponentResponseData.js +17 -7
- package/serialization/types/CountResponse.js +17 -7
- package/serialization/types/CouponRequestBody.js +17 -7
- package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +16 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.js +47 -0
- package/serialization/types/CreateEntitlementReqCommon.js +17 -7
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +17 -7
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/serialization/types/CreateEntitlementReqCommonValueType.js +17 -7
- package/serialization/types/CreateEventRequestBody.js +17 -7
- package/serialization/types/CreateEventRequestBodyEventType.js +17 -7
- package/serialization/types/CreateFlagRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +17 -7
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +17 -7
- package/serialization/types/CreateOrUpdateFlagRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateRuleRequestBody.js +17 -7
- package/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +17 -7
- package/serialization/types/CrmDealLineItem.js +17 -7
- package/serialization/types/CrmDealResponseData.js +17 -7
- package/serialization/types/CrmLineItemResponseData.js +17 -7
- package/serialization/types/CrmProductResponseData.js +17 -7
- package/serialization/types/CustomPlanConfig.d.ts +14 -0
- package/serialization/types/CustomPlanConfig.js +45 -0
- package/serialization/types/CustomPlanViewConfigResponseData.d.ts +14 -0
- package/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
- package/serialization/types/DataExportResponseData.d.ts +20 -0
- package/serialization/types/DataExportResponseData.js +51 -0
- package/serialization/types/Decimal.js +17 -7
- package/serialization/types/DeleteResponse.js +17 -7
- package/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/serialization/types/EntitlementsInPlan.d.ts +13 -0
- package/serialization/types/EntitlementsInPlan.js +44 -0
- package/serialization/types/EntityKeyDefinitionResponseData.js +17 -7
- package/serialization/types/EntityKeyDetailResponseData.js +17 -7
- package/serialization/types/EntityKeyResponseData.js +17 -7
- package/serialization/types/EntityTraitDefinitionResponseData.js +17 -7
- package/serialization/types/EntityTraitDetailResponseData.js +17 -7
- package/serialization/types/EntityTraitResponseData.js +17 -7
- package/serialization/types/EntityTraitValue.js +17 -7
- package/serialization/types/EnvironmentDetailResponseData.js +17 -7
- package/serialization/types/EnvironmentResponseData.js +17 -7
- package/serialization/types/EventBody.js +17 -7
- package/serialization/types/EventBodyFlagCheck.js +17 -7
- package/serialization/types/EventBodyIdentify.js +17 -7
- package/serialization/types/EventBodyIdentifyCompany.js +17 -7
- package/serialization/types/EventBodyTrack.js +17 -7
- package/serialization/types/EventDetailResponseData.js +17 -7
- package/serialization/types/EventResponseData.js +17 -7
- package/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/serialization/types/EventSummaryResponseData.js +19 -9
- package/serialization/types/FeatureCompanyResponseData.js +17 -7
- package/serialization/types/FeatureCompanyResponseDataAllocationType.js +17 -7
- package/serialization/types/FeatureCompanyUserResponseData.js +17 -7
- package/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +17 -7
- package/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/serialization/types/FeatureDetailResponseData.js +19 -7
- package/serialization/types/FeatureResponseData.d.ts +2 -0
- package/serialization/types/FeatureResponseData.js +19 -7
- package/serialization/types/FeatureUsageDetailResponseData.js +17 -7
- package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/serialization/types/FeatureUsageResponseData.js +18 -7
- package/serialization/types/FeatureUsageResponseDataAllocationType.js +17 -7
- package/serialization/types/FlagDetailResponseData.js +17 -7
- package/serialization/types/FlagResponseData.js +17 -7
- package/serialization/types/GenericPreviewObject.js +17 -7
- package/serialization/types/InvoiceRequestBody.js +17 -7
- package/serialization/types/InvoiceResponseData.js +17 -7
- package/serialization/types/IssueTemporaryAccessTokenResponseData.js +17 -7
- package/serialization/types/KeysRequestBody.js +17 -7
- package/serialization/types/MeterRequestBody.js +17 -7
- package/serialization/types/OrderedPlansInGroup.d.ts +14 -0
- package/serialization/types/OrderedPlansInGroup.js +45 -0
- package/serialization/types/PaginationFilter.js +17 -7
- package/serialization/types/PaymentMethodRequestBody.d.ts +0 -1
- package/serialization/types/PaymentMethodRequestBody.js +17 -8
- package/serialization/types/PaymentMethodResponseData.d.ts +0 -1
- package/serialization/types/PaymentMethodResponseData.js +17 -8
- package/serialization/types/PlanAudienceDetailResponseData.js +17 -7
- package/serialization/types/PlanAudienceResponseData.js +17 -7
- package/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanDetailResponseData.js +19 -7
- package/serialization/types/PlanEntitlementResponseData.d.ts +3 -0
- package/serialization/types/PlanEntitlementResponseData.js +20 -7
- package/serialization/types/PlanEntitlementsOrder.d.ts +13 -0
- package/serialization/types/PlanEntitlementsOrder.js +44 -0
- package/serialization/types/PlanGroupDetailResponseData.d.ts +5 -0
- package/serialization/types/PlanGroupDetailResponseData.js +22 -7
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +5 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +22 -7
- package/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +14 -0
- package/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
- package/serialization/types/PlanGroupResponseData.d.ts +2 -1
- package/serialization/types/PlanGroupResponseData.js +19 -8
- package/serialization/types/PlanResponseData.js +17 -7
- package/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/serialization/types/PlanTraitResponseData.js +50 -0
- package/serialization/types/PreviewObject.js +17 -7
- package/serialization/types/PreviewObjectResponseData.js +17 -7
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +21 -7
- package/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/serialization/types/QuickstartResp.d.ts +12 -0
- package/serialization/types/QuickstartResp.js +43 -0
- package/serialization/types/RawEventBatchResponseData.js +17 -7
- package/serialization/types/RawEventResponseData.js +17 -7
- package/serialization/types/RuleConditionDetailResponseData.js +17 -7
- package/serialization/types/RuleConditionGroupDetailResponseData.js +17 -7
- package/serialization/types/RuleConditionGroupResponseData.js +17 -7
- package/serialization/types/RuleConditionResponseData.js +17 -7
- package/serialization/types/RuleDetailResponseData.js +17 -7
- package/serialization/types/RuleResponseData.js +17 -7
- package/serialization/types/RulesDetailResponseData.js +17 -7
- package/serialization/types/SegmentStatusResp.js +17 -7
- package/serialization/types/StripeEmbedInfo.js +17 -7
- package/serialization/types/TemporaryAccessTokenResponseData.js +17 -7
- package/serialization/types/UpdateAddOnRequestBody.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommon.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +17 -7
- package/serialization/types/UpdateEntitlementReqCommonValueType.js +17 -7
- package/serialization/types/UpdatePayInAdvanceRequestBody.js +17 -7
- package/serialization/types/UpdateRuleRequestBody.js +17 -7
- package/serialization/types/UpsertCompanyRequestBody.js +17 -7
- package/serialization/types/UpsertTraitRequestBody.js +17 -7
- package/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/serialization/types/UpsertUserRequestBody.js +19 -7
- package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/serialization/types/UpsertUserSubRequestBody.js +18 -7
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +7 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.js +24 -7
- package/serialization/types/UsageBasedEntitlementResponseData.js +17 -7
- package/serialization/types/UserDetailResponseData.js +17 -7
- package/serialization/types/UserResponseData.js +17 -7
- package/serialization/types/WebhookEventDetailResponseData.js +17 -7
- package/serialization/types/WebhookEventResponseData.js +17 -7
- package/serialization/types/WebhookResponseData.d.ts +3 -0
- package/serialization/types/WebhookResponseData.js +20 -7
- package/serialization/types/index.d.ts +15 -0
- package/serialization/types/index.js +15 -0
- package/webhooks.d.ts +76 -0
- package/webhooks.js +170 -0
- /package/api/resources/{billing/client/requests/ListCustomersRequest.js → accounts/types/QuickstartResponse.js} +0 -0
- /package/api/resources/billing/{types/ListCustomersParams.js → client/requests/ListCouponsRequest.js} +0 -0
- /package/api/resources/billing/{types/ListCustomersResponse.js → client/requests/ListCustomersWithSubscriptionsRequest.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ListCustomersRequest.js → api/resources/billing/types/DeleteBillingProductResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersParams.js → api/resources/billing/types/ListCouponsParams.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/billing/types/ListCouponsResponse.js} +0 -0
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -56,14 +66,18 @@ class Webhooks {
|
|
|
56
66
|
* @throws {@link Schematic.BadRequestError}
|
|
57
67
|
* @throws {@link Schematic.UnauthorizedError}
|
|
58
68
|
* @throws {@link Schematic.ForbiddenError}
|
|
69
|
+
* @throws {@link Schematic.NotFoundError}
|
|
59
70
|
* @throws {@link Schematic.InternalServerError}
|
|
60
71
|
*
|
|
61
72
|
* @example
|
|
62
73
|
* await client.webhooks.listWebhookEvents()
|
|
63
74
|
*/
|
|
64
75
|
listWebhookEvents(request = {}, requestOptions) {
|
|
65
|
-
|
|
66
|
-
|
|
76
|
+
return core.HttpResponsePromise.fromPromise(this.__listWebhookEvents(request, requestOptions));
|
|
77
|
+
}
|
|
78
|
+
__listWebhookEvents() {
|
|
79
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
80
|
+
var _a, _b, _c;
|
|
67
81
|
const { ids, q, webhookId, limit, offset } = request;
|
|
68
82
|
const _queryParams = {};
|
|
69
83
|
if (ids != null) {
|
|
@@ -87,9 +101,9 @@ class Webhooks {
|
|
|
87
101
|
_queryParams["offset"] = offset.toString();
|
|
88
102
|
}
|
|
89
103
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
90
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
104
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "webhook-events"),
|
|
91
105
|
method: "GET",
|
|
92
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
106
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
107
|
contentType: "application/json",
|
|
94
108
|
queryParameters: _queryParams,
|
|
95
109
|
requestType: "json",
|
|
@@ -98,13 +112,16 @@ class Webhooks {
|
|
|
98
112
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
113
|
});
|
|
100
114
|
if (_response.ok) {
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
115
|
+
return {
|
|
116
|
+
data: serializers.ListWebhookEventsResponse.parseOrThrow(_response.body, {
|
|
117
|
+
unrecognizedObjectKeys: "passthrough",
|
|
118
|
+
allowUnrecognizedUnionMembers: true,
|
|
119
|
+
allowUnrecognizedEnumValues: true,
|
|
120
|
+
skipValidation: true,
|
|
121
|
+
breadcrumbsPrefix: ["response"],
|
|
122
|
+
}),
|
|
123
|
+
rawResponse: _response.rawResponse,
|
|
124
|
+
};
|
|
108
125
|
}
|
|
109
126
|
if (_response.error.reason === "status-code") {
|
|
110
127
|
switch (_response.error.statusCode) {
|
|
@@ -115,7 +132,7 @@ class Webhooks {
|
|
|
115
132
|
allowUnrecognizedEnumValues: true,
|
|
116
133
|
skipValidation: true,
|
|
117
134
|
breadcrumbsPrefix: ["response"],
|
|
118
|
-
}));
|
|
135
|
+
}), _response.rawResponse);
|
|
119
136
|
case 401:
|
|
120
137
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
121
138
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -123,7 +140,7 @@ class Webhooks {
|
|
|
123
140
|
allowUnrecognizedEnumValues: true,
|
|
124
141
|
skipValidation: true,
|
|
125
142
|
breadcrumbsPrefix: ["response"],
|
|
126
|
-
}));
|
|
143
|
+
}), _response.rawResponse);
|
|
127
144
|
case 403:
|
|
128
145
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
129
146
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -131,7 +148,15 @@ class Webhooks {
|
|
|
131
148
|
allowUnrecognizedEnumValues: true,
|
|
132
149
|
skipValidation: true,
|
|
133
150
|
breadcrumbsPrefix: ["response"],
|
|
134
|
-
}));
|
|
151
|
+
}), _response.rawResponse);
|
|
152
|
+
case 404:
|
|
153
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
154
|
+
unrecognizedObjectKeys: "passthrough",
|
|
155
|
+
allowUnrecognizedUnionMembers: true,
|
|
156
|
+
allowUnrecognizedEnumValues: true,
|
|
157
|
+
skipValidation: true,
|
|
158
|
+
breadcrumbsPrefix: ["response"],
|
|
159
|
+
}), _response.rawResponse);
|
|
135
160
|
case 500:
|
|
136
161
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
137
162
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -139,11 +164,12 @@ class Webhooks {
|
|
|
139
164
|
allowUnrecognizedEnumValues: true,
|
|
140
165
|
skipValidation: true,
|
|
141
166
|
breadcrumbsPrefix: ["response"],
|
|
142
|
-
}));
|
|
167
|
+
}), _response.rawResponse);
|
|
143
168
|
default:
|
|
144
169
|
throw new errors.SchematicError({
|
|
145
170
|
statusCode: _response.error.statusCode,
|
|
146
171
|
body: _response.error.body,
|
|
172
|
+
rawResponse: _response.rawResponse,
|
|
147
173
|
});
|
|
148
174
|
}
|
|
149
175
|
}
|
|
@@ -152,12 +178,14 @@ class Webhooks {
|
|
|
152
178
|
throw new errors.SchematicError({
|
|
153
179
|
statusCode: _response.error.statusCode,
|
|
154
180
|
body: _response.error.rawBody,
|
|
181
|
+
rawResponse: _response.rawResponse,
|
|
155
182
|
});
|
|
156
183
|
case "timeout":
|
|
157
|
-
throw new errors.SchematicTimeoutError();
|
|
184
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /webhook-events.");
|
|
158
185
|
case "unknown":
|
|
159
186
|
throw new errors.SchematicError({
|
|
160
187
|
message: _response.error.errorMessage,
|
|
188
|
+
rawResponse: _response.rawResponse,
|
|
161
189
|
});
|
|
162
190
|
}
|
|
163
191
|
});
|
|
@@ -175,12 +203,15 @@ class Webhooks {
|
|
|
175
203
|
* await client.webhooks.getWebhookEvent("webhook_event_id")
|
|
176
204
|
*/
|
|
177
205
|
getWebhookEvent(webhookEventId, requestOptions) {
|
|
178
|
-
|
|
206
|
+
return core.HttpResponsePromise.fromPromise(this.__getWebhookEvent(webhookEventId, requestOptions));
|
|
207
|
+
}
|
|
208
|
+
__getWebhookEvent(webhookEventId, requestOptions) {
|
|
179
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
var _a, _b, _c;
|
|
180
211
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
181
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
212
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `webhook-events/${encodeURIComponent(webhookEventId)}`),
|
|
182
213
|
method: "GET",
|
|
183
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
184
215
|
contentType: "application/json",
|
|
185
216
|
requestType: "json",
|
|
186
217
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -188,13 +219,16 @@ class Webhooks {
|
|
|
188
219
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
189
220
|
});
|
|
190
221
|
if (_response.ok) {
|
|
191
|
-
return
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
222
|
+
return {
|
|
223
|
+
data: serializers.GetWebhookEventResponse.parseOrThrow(_response.body, {
|
|
224
|
+
unrecognizedObjectKeys: "passthrough",
|
|
225
|
+
allowUnrecognizedUnionMembers: true,
|
|
226
|
+
allowUnrecognizedEnumValues: true,
|
|
227
|
+
skipValidation: true,
|
|
228
|
+
breadcrumbsPrefix: ["response"],
|
|
229
|
+
}),
|
|
230
|
+
rawResponse: _response.rawResponse,
|
|
231
|
+
};
|
|
198
232
|
}
|
|
199
233
|
if (_response.error.reason === "status-code") {
|
|
200
234
|
switch (_response.error.statusCode) {
|
|
@@ -205,7 +239,7 @@ class Webhooks {
|
|
|
205
239
|
allowUnrecognizedEnumValues: true,
|
|
206
240
|
skipValidation: true,
|
|
207
241
|
breadcrumbsPrefix: ["response"],
|
|
208
|
-
}));
|
|
242
|
+
}), _response.rawResponse);
|
|
209
243
|
case 403:
|
|
210
244
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
211
245
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -213,7 +247,7 @@ class Webhooks {
|
|
|
213
247
|
allowUnrecognizedEnumValues: true,
|
|
214
248
|
skipValidation: true,
|
|
215
249
|
breadcrumbsPrefix: ["response"],
|
|
216
|
-
}));
|
|
250
|
+
}), _response.rawResponse);
|
|
217
251
|
case 404:
|
|
218
252
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
219
253
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -221,7 +255,7 @@ class Webhooks {
|
|
|
221
255
|
allowUnrecognizedEnumValues: true,
|
|
222
256
|
skipValidation: true,
|
|
223
257
|
breadcrumbsPrefix: ["response"],
|
|
224
|
-
}));
|
|
258
|
+
}), _response.rawResponse);
|
|
225
259
|
case 500:
|
|
226
260
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
227
261
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -229,11 +263,12 @@ class Webhooks {
|
|
|
229
263
|
allowUnrecognizedEnumValues: true,
|
|
230
264
|
skipValidation: true,
|
|
231
265
|
breadcrumbsPrefix: ["response"],
|
|
232
|
-
}));
|
|
266
|
+
}), _response.rawResponse);
|
|
233
267
|
default:
|
|
234
268
|
throw new errors.SchematicError({
|
|
235
269
|
statusCode: _response.error.statusCode,
|
|
236
270
|
body: _response.error.body,
|
|
271
|
+
rawResponse: _response.rawResponse,
|
|
237
272
|
});
|
|
238
273
|
}
|
|
239
274
|
}
|
|
@@ -242,12 +277,14 @@ class Webhooks {
|
|
|
242
277
|
throw new errors.SchematicError({
|
|
243
278
|
statusCode: _response.error.statusCode,
|
|
244
279
|
body: _response.error.rawBody,
|
|
280
|
+
rawResponse: _response.rawResponse,
|
|
245
281
|
});
|
|
246
282
|
case "timeout":
|
|
247
|
-
throw new errors.SchematicTimeoutError();
|
|
283
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /webhook-events/{webhook_event_id}.");
|
|
248
284
|
case "unknown":
|
|
249
285
|
throw new errors.SchematicError({
|
|
250
286
|
message: _response.error.errorMessage,
|
|
287
|
+
rawResponse: _response.rawResponse,
|
|
251
288
|
});
|
|
252
289
|
}
|
|
253
290
|
});
|
|
@@ -259,14 +296,18 @@ class Webhooks {
|
|
|
259
296
|
* @throws {@link Schematic.BadRequestError}
|
|
260
297
|
* @throws {@link Schematic.UnauthorizedError}
|
|
261
298
|
* @throws {@link Schematic.ForbiddenError}
|
|
299
|
+
* @throws {@link Schematic.NotFoundError}
|
|
262
300
|
* @throws {@link Schematic.InternalServerError}
|
|
263
301
|
*
|
|
264
302
|
* @example
|
|
265
303
|
* await client.webhooks.countWebhookEvents()
|
|
266
304
|
*/
|
|
267
305
|
countWebhookEvents(request = {}, requestOptions) {
|
|
268
|
-
|
|
269
|
-
|
|
306
|
+
return core.HttpResponsePromise.fromPromise(this.__countWebhookEvents(request, requestOptions));
|
|
307
|
+
}
|
|
308
|
+
__countWebhookEvents() {
|
|
309
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
310
|
+
var _a, _b, _c;
|
|
270
311
|
const { ids, q, webhookId, limit, offset } = request;
|
|
271
312
|
const _queryParams = {};
|
|
272
313
|
if (ids != null) {
|
|
@@ -290,9 +331,9 @@ class Webhooks {
|
|
|
290
331
|
_queryParams["offset"] = offset.toString();
|
|
291
332
|
}
|
|
292
333
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
293
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
334
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "webhook-events/count"),
|
|
294
335
|
method: "GET",
|
|
295
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
336
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
296
337
|
contentType: "application/json",
|
|
297
338
|
queryParameters: _queryParams,
|
|
298
339
|
requestType: "json",
|
|
@@ -301,13 +342,16 @@ class Webhooks {
|
|
|
301
342
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
302
343
|
});
|
|
303
344
|
if (_response.ok) {
|
|
304
|
-
return
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
345
|
+
return {
|
|
346
|
+
data: serializers.CountWebhookEventsResponse.parseOrThrow(_response.body, {
|
|
347
|
+
unrecognizedObjectKeys: "passthrough",
|
|
348
|
+
allowUnrecognizedUnionMembers: true,
|
|
349
|
+
allowUnrecognizedEnumValues: true,
|
|
350
|
+
skipValidation: true,
|
|
351
|
+
breadcrumbsPrefix: ["response"],
|
|
352
|
+
}),
|
|
353
|
+
rawResponse: _response.rawResponse,
|
|
354
|
+
};
|
|
311
355
|
}
|
|
312
356
|
if (_response.error.reason === "status-code") {
|
|
313
357
|
switch (_response.error.statusCode) {
|
|
@@ -318,7 +362,7 @@ class Webhooks {
|
|
|
318
362
|
allowUnrecognizedEnumValues: true,
|
|
319
363
|
skipValidation: true,
|
|
320
364
|
breadcrumbsPrefix: ["response"],
|
|
321
|
-
}));
|
|
365
|
+
}), _response.rawResponse);
|
|
322
366
|
case 401:
|
|
323
367
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
324
368
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -326,7 +370,7 @@ class Webhooks {
|
|
|
326
370
|
allowUnrecognizedEnumValues: true,
|
|
327
371
|
skipValidation: true,
|
|
328
372
|
breadcrumbsPrefix: ["response"],
|
|
329
|
-
}));
|
|
373
|
+
}), _response.rawResponse);
|
|
330
374
|
case 403:
|
|
331
375
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
332
376
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -334,7 +378,15 @@ class Webhooks {
|
|
|
334
378
|
allowUnrecognizedEnumValues: true,
|
|
335
379
|
skipValidation: true,
|
|
336
380
|
breadcrumbsPrefix: ["response"],
|
|
337
|
-
}));
|
|
381
|
+
}), _response.rawResponse);
|
|
382
|
+
case 404:
|
|
383
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
384
|
+
unrecognizedObjectKeys: "passthrough",
|
|
385
|
+
allowUnrecognizedUnionMembers: true,
|
|
386
|
+
allowUnrecognizedEnumValues: true,
|
|
387
|
+
skipValidation: true,
|
|
388
|
+
breadcrumbsPrefix: ["response"],
|
|
389
|
+
}), _response.rawResponse);
|
|
338
390
|
case 500:
|
|
339
391
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
340
392
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -342,11 +394,12 @@ class Webhooks {
|
|
|
342
394
|
allowUnrecognizedEnumValues: true,
|
|
343
395
|
skipValidation: true,
|
|
344
396
|
breadcrumbsPrefix: ["response"],
|
|
345
|
-
}));
|
|
397
|
+
}), _response.rawResponse);
|
|
346
398
|
default:
|
|
347
399
|
throw new errors.SchematicError({
|
|
348
400
|
statusCode: _response.error.statusCode,
|
|
349
401
|
body: _response.error.body,
|
|
402
|
+
rawResponse: _response.rawResponse,
|
|
350
403
|
});
|
|
351
404
|
}
|
|
352
405
|
}
|
|
@@ -355,12 +408,14 @@ class Webhooks {
|
|
|
355
408
|
throw new errors.SchematicError({
|
|
356
409
|
statusCode: _response.error.statusCode,
|
|
357
410
|
body: _response.error.rawBody,
|
|
411
|
+
rawResponse: _response.rawResponse,
|
|
358
412
|
});
|
|
359
413
|
case "timeout":
|
|
360
|
-
throw new errors.SchematicTimeoutError();
|
|
414
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /webhook-events/count.");
|
|
361
415
|
case "unknown":
|
|
362
416
|
throw new errors.SchematicError({
|
|
363
417
|
message: _response.error.errorMessage,
|
|
418
|
+
rawResponse: _response.rawResponse,
|
|
364
419
|
});
|
|
365
420
|
}
|
|
366
421
|
});
|
|
@@ -372,14 +427,18 @@ class Webhooks {
|
|
|
372
427
|
* @throws {@link Schematic.BadRequestError}
|
|
373
428
|
* @throws {@link Schematic.UnauthorizedError}
|
|
374
429
|
* @throws {@link Schematic.ForbiddenError}
|
|
430
|
+
* @throws {@link Schematic.NotFoundError}
|
|
375
431
|
* @throws {@link Schematic.InternalServerError}
|
|
376
432
|
*
|
|
377
433
|
* @example
|
|
378
434
|
* await client.webhooks.listWebhooks()
|
|
379
435
|
*/
|
|
380
436
|
listWebhooks(request = {}, requestOptions) {
|
|
381
|
-
|
|
382
|
-
|
|
437
|
+
return core.HttpResponsePromise.fromPromise(this.__listWebhooks(request, requestOptions));
|
|
438
|
+
}
|
|
439
|
+
__listWebhooks() {
|
|
440
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
441
|
+
var _a, _b, _c;
|
|
383
442
|
const { q, limit, offset } = request;
|
|
384
443
|
const _queryParams = {};
|
|
385
444
|
if (q != null) {
|
|
@@ -392,9 +451,9 @@ class Webhooks {
|
|
|
392
451
|
_queryParams["offset"] = offset.toString();
|
|
393
452
|
}
|
|
394
453
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
395
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
454
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "webhooks"),
|
|
396
455
|
method: "GET",
|
|
397
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
456
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
398
457
|
contentType: "application/json",
|
|
399
458
|
queryParameters: _queryParams,
|
|
400
459
|
requestType: "json",
|
|
@@ -403,13 +462,16 @@ class Webhooks {
|
|
|
403
462
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
404
463
|
});
|
|
405
464
|
if (_response.ok) {
|
|
406
|
-
return
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
465
|
+
return {
|
|
466
|
+
data: serializers.ListWebhooksResponse.parseOrThrow(_response.body, {
|
|
467
|
+
unrecognizedObjectKeys: "passthrough",
|
|
468
|
+
allowUnrecognizedUnionMembers: true,
|
|
469
|
+
allowUnrecognizedEnumValues: true,
|
|
470
|
+
skipValidation: true,
|
|
471
|
+
breadcrumbsPrefix: ["response"],
|
|
472
|
+
}),
|
|
473
|
+
rawResponse: _response.rawResponse,
|
|
474
|
+
};
|
|
413
475
|
}
|
|
414
476
|
if (_response.error.reason === "status-code") {
|
|
415
477
|
switch (_response.error.statusCode) {
|
|
@@ -420,7 +482,7 @@ class Webhooks {
|
|
|
420
482
|
allowUnrecognizedEnumValues: true,
|
|
421
483
|
skipValidation: true,
|
|
422
484
|
breadcrumbsPrefix: ["response"],
|
|
423
|
-
}));
|
|
485
|
+
}), _response.rawResponse);
|
|
424
486
|
case 401:
|
|
425
487
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
426
488
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -428,7 +490,7 @@ class Webhooks {
|
|
|
428
490
|
allowUnrecognizedEnumValues: true,
|
|
429
491
|
skipValidation: true,
|
|
430
492
|
breadcrumbsPrefix: ["response"],
|
|
431
|
-
}));
|
|
493
|
+
}), _response.rawResponse);
|
|
432
494
|
case 403:
|
|
433
495
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
434
496
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -436,7 +498,15 @@ class Webhooks {
|
|
|
436
498
|
allowUnrecognizedEnumValues: true,
|
|
437
499
|
skipValidation: true,
|
|
438
500
|
breadcrumbsPrefix: ["response"],
|
|
439
|
-
}));
|
|
501
|
+
}), _response.rawResponse);
|
|
502
|
+
case 404:
|
|
503
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
504
|
+
unrecognizedObjectKeys: "passthrough",
|
|
505
|
+
allowUnrecognizedUnionMembers: true,
|
|
506
|
+
allowUnrecognizedEnumValues: true,
|
|
507
|
+
skipValidation: true,
|
|
508
|
+
breadcrumbsPrefix: ["response"],
|
|
509
|
+
}), _response.rawResponse);
|
|
440
510
|
case 500:
|
|
441
511
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
442
512
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -444,11 +514,12 @@ class Webhooks {
|
|
|
444
514
|
allowUnrecognizedEnumValues: true,
|
|
445
515
|
skipValidation: true,
|
|
446
516
|
breadcrumbsPrefix: ["response"],
|
|
447
|
-
}));
|
|
517
|
+
}), _response.rawResponse);
|
|
448
518
|
default:
|
|
449
519
|
throw new errors.SchematicError({
|
|
450
520
|
statusCode: _response.error.statusCode,
|
|
451
521
|
body: _response.error.body,
|
|
522
|
+
rawResponse: _response.rawResponse,
|
|
452
523
|
});
|
|
453
524
|
}
|
|
454
525
|
}
|
|
@@ -457,12 +528,14 @@ class Webhooks {
|
|
|
457
528
|
throw new errors.SchematicError({
|
|
458
529
|
statusCode: _response.error.statusCode,
|
|
459
530
|
body: _response.error.rawBody,
|
|
531
|
+
rawResponse: _response.rawResponse,
|
|
460
532
|
});
|
|
461
533
|
case "timeout":
|
|
462
|
-
throw new errors.SchematicTimeoutError();
|
|
534
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /webhooks.");
|
|
463
535
|
case "unknown":
|
|
464
536
|
throw new errors.SchematicError({
|
|
465
537
|
message: _response.error.errorMessage,
|
|
538
|
+
rawResponse: _response.rawResponse,
|
|
466
539
|
});
|
|
467
540
|
}
|
|
468
541
|
});
|
|
@@ -474,6 +547,7 @@ class Webhooks {
|
|
|
474
547
|
* @throws {@link Schematic.BadRequestError}
|
|
475
548
|
* @throws {@link Schematic.UnauthorizedError}
|
|
476
549
|
* @throws {@link Schematic.ForbiddenError}
|
|
550
|
+
* @throws {@link Schematic.NotFoundError}
|
|
477
551
|
* @throws {@link Schematic.InternalServerError}
|
|
478
552
|
*
|
|
479
553
|
* @example
|
|
@@ -484,12 +558,15 @@ class Webhooks {
|
|
|
484
558
|
* })
|
|
485
559
|
*/
|
|
486
560
|
createWebhook(request, requestOptions) {
|
|
487
|
-
|
|
561
|
+
return core.HttpResponsePromise.fromPromise(this.__createWebhook(request, requestOptions));
|
|
562
|
+
}
|
|
563
|
+
__createWebhook(request, requestOptions) {
|
|
488
564
|
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
var _a, _b, _c;
|
|
489
566
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
490
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
567
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "webhooks"),
|
|
491
568
|
method: "POST",
|
|
492
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
569
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
493
570
|
contentType: "application/json",
|
|
494
571
|
requestType: "json",
|
|
495
572
|
body: serializers.CreateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -498,13 +575,16 @@ class Webhooks {
|
|
|
498
575
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
499
576
|
});
|
|
500
577
|
if (_response.ok) {
|
|
501
|
-
return
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
578
|
+
return {
|
|
579
|
+
data: serializers.CreateWebhookResponse.parseOrThrow(_response.body, {
|
|
580
|
+
unrecognizedObjectKeys: "passthrough",
|
|
581
|
+
allowUnrecognizedUnionMembers: true,
|
|
582
|
+
allowUnrecognizedEnumValues: true,
|
|
583
|
+
skipValidation: true,
|
|
584
|
+
breadcrumbsPrefix: ["response"],
|
|
585
|
+
}),
|
|
586
|
+
rawResponse: _response.rawResponse,
|
|
587
|
+
};
|
|
508
588
|
}
|
|
509
589
|
if (_response.error.reason === "status-code") {
|
|
510
590
|
switch (_response.error.statusCode) {
|
|
@@ -515,7 +595,7 @@ class Webhooks {
|
|
|
515
595
|
allowUnrecognizedEnumValues: true,
|
|
516
596
|
skipValidation: true,
|
|
517
597
|
breadcrumbsPrefix: ["response"],
|
|
518
|
-
}));
|
|
598
|
+
}), _response.rawResponse);
|
|
519
599
|
case 401:
|
|
520
600
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
521
601
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -523,7 +603,7 @@ class Webhooks {
|
|
|
523
603
|
allowUnrecognizedEnumValues: true,
|
|
524
604
|
skipValidation: true,
|
|
525
605
|
breadcrumbsPrefix: ["response"],
|
|
526
|
-
}));
|
|
606
|
+
}), _response.rawResponse);
|
|
527
607
|
case 403:
|
|
528
608
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
529
609
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -531,7 +611,15 @@ class Webhooks {
|
|
|
531
611
|
allowUnrecognizedEnumValues: true,
|
|
532
612
|
skipValidation: true,
|
|
533
613
|
breadcrumbsPrefix: ["response"],
|
|
534
|
-
}));
|
|
614
|
+
}), _response.rawResponse);
|
|
615
|
+
case 404:
|
|
616
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
617
|
+
unrecognizedObjectKeys: "passthrough",
|
|
618
|
+
allowUnrecognizedUnionMembers: true,
|
|
619
|
+
allowUnrecognizedEnumValues: true,
|
|
620
|
+
skipValidation: true,
|
|
621
|
+
breadcrumbsPrefix: ["response"],
|
|
622
|
+
}), _response.rawResponse);
|
|
535
623
|
case 500:
|
|
536
624
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
537
625
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -539,11 +627,12 @@ class Webhooks {
|
|
|
539
627
|
allowUnrecognizedEnumValues: true,
|
|
540
628
|
skipValidation: true,
|
|
541
629
|
breadcrumbsPrefix: ["response"],
|
|
542
|
-
}));
|
|
630
|
+
}), _response.rawResponse);
|
|
543
631
|
default:
|
|
544
632
|
throw new errors.SchematicError({
|
|
545
633
|
statusCode: _response.error.statusCode,
|
|
546
634
|
body: _response.error.body,
|
|
635
|
+
rawResponse: _response.rawResponse,
|
|
547
636
|
});
|
|
548
637
|
}
|
|
549
638
|
}
|
|
@@ -552,12 +641,14 @@ class Webhooks {
|
|
|
552
641
|
throw new errors.SchematicError({
|
|
553
642
|
statusCode: _response.error.statusCode,
|
|
554
643
|
body: _response.error.rawBody,
|
|
644
|
+
rawResponse: _response.rawResponse,
|
|
555
645
|
});
|
|
556
646
|
case "timeout":
|
|
557
|
-
throw new errors.SchematicTimeoutError();
|
|
647
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /webhooks.");
|
|
558
648
|
case "unknown":
|
|
559
649
|
throw new errors.SchematicError({
|
|
560
650
|
message: _response.error.errorMessage,
|
|
651
|
+
rawResponse: _response.rawResponse,
|
|
561
652
|
});
|
|
562
653
|
}
|
|
563
654
|
});
|
|
@@ -575,12 +666,15 @@ class Webhooks {
|
|
|
575
666
|
* await client.webhooks.getWebhook("webhook_id")
|
|
576
667
|
*/
|
|
577
668
|
getWebhook(webhookId, requestOptions) {
|
|
578
|
-
|
|
669
|
+
return core.HttpResponsePromise.fromPromise(this.__getWebhook(webhookId, requestOptions));
|
|
670
|
+
}
|
|
671
|
+
__getWebhook(webhookId, requestOptions) {
|
|
579
672
|
return __awaiter(this, void 0, void 0, function* () {
|
|
673
|
+
var _a, _b, _c;
|
|
580
674
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
581
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
675
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
582
676
|
method: "GET",
|
|
583
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
677
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
584
678
|
contentType: "application/json",
|
|
585
679
|
requestType: "json",
|
|
586
680
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -588,13 +682,16 @@ class Webhooks {
|
|
|
588
682
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
589
683
|
});
|
|
590
684
|
if (_response.ok) {
|
|
591
|
-
return
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
685
|
+
return {
|
|
686
|
+
data: serializers.GetWebhookResponse.parseOrThrow(_response.body, {
|
|
687
|
+
unrecognizedObjectKeys: "passthrough",
|
|
688
|
+
allowUnrecognizedUnionMembers: true,
|
|
689
|
+
allowUnrecognizedEnumValues: true,
|
|
690
|
+
skipValidation: true,
|
|
691
|
+
breadcrumbsPrefix: ["response"],
|
|
692
|
+
}),
|
|
693
|
+
rawResponse: _response.rawResponse,
|
|
694
|
+
};
|
|
598
695
|
}
|
|
599
696
|
if (_response.error.reason === "status-code") {
|
|
600
697
|
switch (_response.error.statusCode) {
|
|
@@ -605,7 +702,7 @@ class Webhooks {
|
|
|
605
702
|
allowUnrecognizedEnumValues: true,
|
|
606
703
|
skipValidation: true,
|
|
607
704
|
breadcrumbsPrefix: ["response"],
|
|
608
|
-
}));
|
|
705
|
+
}), _response.rawResponse);
|
|
609
706
|
case 403:
|
|
610
707
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
611
708
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -613,7 +710,7 @@ class Webhooks {
|
|
|
613
710
|
allowUnrecognizedEnumValues: true,
|
|
614
711
|
skipValidation: true,
|
|
615
712
|
breadcrumbsPrefix: ["response"],
|
|
616
|
-
}));
|
|
713
|
+
}), _response.rawResponse);
|
|
617
714
|
case 404:
|
|
618
715
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
619
716
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -621,7 +718,7 @@ class Webhooks {
|
|
|
621
718
|
allowUnrecognizedEnumValues: true,
|
|
622
719
|
skipValidation: true,
|
|
623
720
|
breadcrumbsPrefix: ["response"],
|
|
624
|
-
}));
|
|
721
|
+
}), _response.rawResponse);
|
|
625
722
|
case 500:
|
|
626
723
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
627
724
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -629,11 +726,12 @@ class Webhooks {
|
|
|
629
726
|
allowUnrecognizedEnumValues: true,
|
|
630
727
|
skipValidation: true,
|
|
631
728
|
breadcrumbsPrefix: ["response"],
|
|
632
|
-
}));
|
|
729
|
+
}), _response.rawResponse);
|
|
633
730
|
default:
|
|
634
731
|
throw new errors.SchematicError({
|
|
635
732
|
statusCode: _response.error.statusCode,
|
|
636
733
|
body: _response.error.body,
|
|
734
|
+
rawResponse: _response.rawResponse,
|
|
637
735
|
});
|
|
638
736
|
}
|
|
639
737
|
}
|
|
@@ -642,12 +740,14 @@ class Webhooks {
|
|
|
642
740
|
throw new errors.SchematicError({
|
|
643
741
|
statusCode: _response.error.statusCode,
|
|
644
742
|
body: _response.error.rawBody,
|
|
743
|
+
rawResponse: _response.rawResponse,
|
|
645
744
|
});
|
|
646
745
|
case "timeout":
|
|
647
|
-
throw new errors.SchematicTimeoutError();
|
|
746
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /webhooks/{webhook_id}.");
|
|
648
747
|
case "unknown":
|
|
649
748
|
throw new errors.SchematicError({
|
|
650
749
|
message: _response.error.errorMessage,
|
|
750
|
+
rawResponse: _response.rawResponse,
|
|
651
751
|
});
|
|
652
752
|
}
|
|
653
753
|
});
|
|
@@ -667,12 +767,15 @@ class Webhooks {
|
|
|
667
767
|
* await client.webhooks.updateWebhook("webhook_id")
|
|
668
768
|
*/
|
|
669
769
|
updateWebhook(webhookId, request = {}, requestOptions) {
|
|
670
|
-
|
|
671
|
-
|
|
770
|
+
return core.HttpResponsePromise.fromPromise(this.__updateWebhook(webhookId, request, requestOptions));
|
|
771
|
+
}
|
|
772
|
+
__updateWebhook(webhookId_1) {
|
|
773
|
+
return __awaiter(this, arguments, void 0, function* (webhookId, request = {}, requestOptions) {
|
|
774
|
+
var _a, _b, _c;
|
|
672
775
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
673
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
776
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
674
777
|
method: "PUT",
|
|
675
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
778
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
676
779
|
contentType: "application/json",
|
|
677
780
|
requestType: "json",
|
|
678
781
|
body: serializers.UpdateWebhookRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -681,13 +784,16 @@ class Webhooks {
|
|
|
681
784
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
682
785
|
});
|
|
683
786
|
if (_response.ok) {
|
|
684
|
-
return
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
787
|
+
return {
|
|
788
|
+
data: serializers.UpdateWebhookResponse.parseOrThrow(_response.body, {
|
|
789
|
+
unrecognizedObjectKeys: "passthrough",
|
|
790
|
+
allowUnrecognizedUnionMembers: true,
|
|
791
|
+
allowUnrecognizedEnumValues: true,
|
|
792
|
+
skipValidation: true,
|
|
793
|
+
breadcrumbsPrefix: ["response"],
|
|
794
|
+
}),
|
|
795
|
+
rawResponse: _response.rawResponse,
|
|
796
|
+
};
|
|
691
797
|
}
|
|
692
798
|
if (_response.error.reason === "status-code") {
|
|
693
799
|
switch (_response.error.statusCode) {
|
|
@@ -698,7 +804,7 @@ class Webhooks {
|
|
|
698
804
|
allowUnrecognizedEnumValues: true,
|
|
699
805
|
skipValidation: true,
|
|
700
806
|
breadcrumbsPrefix: ["response"],
|
|
701
|
-
}));
|
|
807
|
+
}), _response.rawResponse);
|
|
702
808
|
case 401:
|
|
703
809
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
704
810
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -706,7 +812,7 @@ class Webhooks {
|
|
|
706
812
|
allowUnrecognizedEnumValues: true,
|
|
707
813
|
skipValidation: true,
|
|
708
814
|
breadcrumbsPrefix: ["response"],
|
|
709
|
-
}));
|
|
815
|
+
}), _response.rawResponse);
|
|
710
816
|
case 403:
|
|
711
817
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
712
818
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -714,7 +820,7 @@ class Webhooks {
|
|
|
714
820
|
allowUnrecognizedEnumValues: true,
|
|
715
821
|
skipValidation: true,
|
|
716
822
|
breadcrumbsPrefix: ["response"],
|
|
717
|
-
}));
|
|
823
|
+
}), _response.rawResponse);
|
|
718
824
|
case 404:
|
|
719
825
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
720
826
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -722,7 +828,7 @@ class Webhooks {
|
|
|
722
828
|
allowUnrecognizedEnumValues: true,
|
|
723
829
|
skipValidation: true,
|
|
724
830
|
breadcrumbsPrefix: ["response"],
|
|
725
|
-
}));
|
|
831
|
+
}), _response.rawResponse);
|
|
726
832
|
case 500:
|
|
727
833
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
728
834
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -730,11 +836,12 @@ class Webhooks {
|
|
|
730
836
|
allowUnrecognizedEnumValues: true,
|
|
731
837
|
skipValidation: true,
|
|
732
838
|
breadcrumbsPrefix: ["response"],
|
|
733
|
-
}));
|
|
839
|
+
}), _response.rawResponse);
|
|
734
840
|
default:
|
|
735
841
|
throw new errors.SchematicError({
|
|
736
842
|
statusCode: _response.error.statusCode,
|
|
737
843
|
body: _response.error.body,
|
|
844
|
+
rawResponse: _response.rawResponse,
|
|
738
845
|
});
|
|
739
846
|
}
|
|
740
847
|
}
|
|
@@ -743,12 +850,14 @@ class Webhooks {
|
|
|
743
850
|
throw new errors.SchematicError({
|
|
744
851
|
statusCode: _response.error.statusCode,
|
|
745
852
|
body: _response.error.rawBody,
|
|
853
|
+
rawResponse: _response.rawResponse,
|
|
746
854
|
});
|
|
747
855
|
case "timeout":
|
|
748
|
-
throw new errors.SchematicTimeoutError();
|
|
856
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /webhooks/{webhook_id}.");
|
|
749
857
|
case "unknown":
|
|
750
858
|
throw new errors.SchematicError({
|
|
751
859
|
message: _response.error.errorMessage,
|
|
860
|
+
rawResponse: _response.rawResponse,
|
|
752
861
|
});
|
|
753
862
|
}
|
|
754
863
|
});
|
|
@@ -760,18 +869,22 @@ class Webhooks {
|
|
|
760
869
|
* @throws {@link Schematic.BadRequestError}
|
|
761
870
|
* @throws {@link Schematic.UnauthorizedError}
|
|
762
871
|
* @throws {@link Schematic.ForbiddenError}
|
|
872
|
+
* @throws {@link Schematic.NotFoundError}
|
|
763
873
|
* @throws {@link Schematic.InternalServerError}
|
|
764
874
|
*
|
|
765
875
|
* @example
|
|
766
876
|
* await client.webhooks.deleteWebhook("webhook_id")
|
|
767
877
|
*/
|
|
768
878
|
deleteWebhook(webhookId, requestOptions) {
|
|
769
|
-
|
|
879
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteWebhook(webhookId, requestOptions));
|
|
880
|
+
}
|
|
881
|
+
__deleteWebhook(webhookId, requestOptions) {
|
|
770
882
|
return __awaiter(this, void 0, void 0, function* () {
|
|
883
|
+
var _a, _b, _c;
|
|
771
884
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
772
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
885
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, `webhooks/${encodeURIComponent(webhookId)}`),
|
|
773
886
|
method: "DELETE",
|
|
774
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
887
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
775
888
|
contentType: "application/json",
|
|
776
889
|
requestType: "json",
|
|
777
890
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -779,13 +892,16 @@ class Webhooks {
|
|
|
779
892
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
780
893
|
});
|
|
781
894
|
if (_response.ok) {
|
|
782
|
-
return
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
895
|
+
return {
|
|
896
|
+
data: serializers.DeleteWebhookResponse.parseOrThrow(_response.body, {
|
|
897
|
+
unrecognizedObjectKeys: "passthrough",
|
|
898
|
+
allowUnrecognizedUnionMembers: true,
|
|
899
|
+
allowUnrecognizedEnumValues: true,
|
|
900
|
+
skipValidation: true,
|
|
901
|
+
breadcrumbsPrefix: ["response"],
|
|
902
|
+
}),
|
|
903
|
+
rawResponse: _response.rawResponse,
|
|
904
|
+
};
|
|
789
905
|
}
|
|
790
906
|
if (_response.error.reason === "status-code") {
|
|
791
907
|
switch (_response.error.statusCode) {
|
|
@@ -796,7 +912,7 @@ class Webhooks {
|
|
|
796
912
|
allowUnrecognizedEnumValues: true,
|
|
797
913
|
skipValidation: true,
|
|
798
914
|
breadcrumbsPrefix: ["response"],
|
|
799
|
-
}));
|
|
915
|
+
}), _response.rawResponse);
|
|
800
916
|
case 401:
|
|
801
917
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
802
918
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -804,7 +920,7 @@ class Webhooks {
|
|
|
804
920
|
allowUnrecognizedEnumValues: true,
|
|
805
921
|
skipValidation: true,
|
|
806
922
|
breadcrumbsPrefix: ["response"],
|
|
807
|
-
}));
|
|
923
|
+
}), _response.rawResponse);
|
|
808
924
|
case 403:
|
|
809
925
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
810
926
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -812,7 +928,15 @@ class Webhooks {
|
|
|
812
928
|
allowUnrecognizedEnumValues: true,
|
|
813
929
|
skipValidation: true,
|
|
814
930
|
breadcrumbsPrefix: ["response"],
|
|
815
|
-
}));
|
|
931
|
+
}), _response.rawResponse);
|
|
932
|
+
case 404:
|
|
933
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
934
|
+
unrecognizedObjectKeys: "passthrough",
|
|
935
|
+
allowUnrecognizedUnionMembers: true,
|
|
936
|
+
allowUnrecognizedEnumValues: true,
|
|
937
|
+
skipValidation: true,
|
|
938
|
+
breadcrumbsPrefix: ["response"],
|
|
939
|
+
}), _response.rawResponse);
|
|
816
940
|
case 500:
|
|
817
941
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
818
942
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -820,11 +944,12 @@ class Webhooks {
|
|
|
820
944
|
allowUnrecognizedEnumValues: true,
|
|
821
945
|
skipValidation: true,
|
|
822
946
|
breadcrumbsPrefix: ["response"],
|
|
823
|
-
}));
|
|
947
|
+
}), _response.rawResponse);
|
|
824
948
|
default:
|
|
825
949
|
throw new errors.SchematicError({
|
|
826
950
|
statusCode: _response.error.statusCode,
|
|
827
951
|
body: _response.error.body,
|
|
952
|
+
rawResponse: _response.rawResponse,
|
|
828
953
|
});
|
|
829
954
|
}
|
|
830
955
|
}
|
|
@@ -833,12 +958,14 @@ class Webhooks {
|
|
|
833
958
|
throw new errors.SchematicError({
|
|
834
959
|
statusCode: _response.error.statusCode,
|
|
835
960
|
body: _response.error.rawBody,
|
|
961
|
+
rawResponse: _response.rawResponse,
|
|
836
962
|
});
|
|
837
963
|
case "timeout":
|
|
838
|
-
throw new errors.SchematicTimeoutError();
|
|
964
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /webhooks/{webhook_id}.");
|
|
839
965
|
case "unknown":
|
|
840
966
|
throw new errors.SchematicError({
|
|
841
967
|
message: _response.error.errorMessage,
|
|
968
|
+
rawResponse: _response.rawResponse,
|
|
842
969
|
});
|
|
843
970
|
}
|
|
844
971
|
});
|
|
@@ -850,14 +977,18 @@ class Webhooks {
|
|
|
850
977
|
* @throws {@link Schematic.BadRequestError}
|
|
851
978
|
* @throws {@link Schematic.UnauthorizedError}
|
|
852
979
|
* @throws {@link Schematic.ForbiddenError}
|
|
980
|
+
* @throws {@link Schematic.NotFoundError}
|
|
853
981
|
* @throws {@link Schematic.InternalServerError}
|
|
854
982
|
*
|
|
855
983
|
* @example
|
|
856
984
|
* await client.webhooks.countWebhooks()
|
|
857
985
|
*/
|
|
858
986
|
countWebhooks(request = {}, requestOptions) {
|
|
859
|
-
|
|
860
|
-
|
|
987
|
+
return core.HttpResponsePromise.fromPromise(this.__countWebhooks(request, requestOptions));
|
|
988
|
+
}
|
|
989
|
+
__countWebhooks() {
|
|
990
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
991
|
+
var _a, _b, _c;
|
|
861
992
|
const { q, limit, offset } = request;
|
|
862
993
|
const _queryParams = {};
|
|
863
994
|
if (q != null) {
|
|
@@ -870,9 +1001,9 @@ class Webhooks {
|
|
|
870
1001
|
_queryParams["offset"] = offset.toString();
|
|
871
1002
|
}
|
|
872
1003
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
873
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.
|
|
1004
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "webhooks/count"),
|
|
874
1005
|
method: "GET",
|
|
875
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1006
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
876
1007
|
contentType: "application/json",
|
|
877
1008
|
queryParameters: _queryParams,
|
|
878
1009
|
requestType: "json",
|
|
@@ -881,13 +1012,16 @@ class Webhooks {
|
|
|
881
1012
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
882
1013
|
});
|
|
883
1014
|
if (_response.ok) {
|
|
884
|
-
return
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
1015
|
+
return {
|
|
1016
|
+
data: serializers.CountWebhooksResponse.parseOrThrow(_response.body, {
|
|
1017
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1018
|
+
allowUnrecognizedUnionMembers: true,
|
|
1019
|
+
allowUnrecognizedEnumValues: true,
|
|
1020
|
+
skipValidation: true,
|
|
1021
|
+
breadcrumbsPrefix: ["response"],
|
|
1022
|
+
}),
|
|
1023
|
+
rawResponse: _response.rawResponse,
|
|
1024
|
+
};
|
|
891
1025
|
}
|
|
892
1026
|
if (_response.error.reason === "status-code") {
|
|
893
1027
|
switch (_response.error.statusCode) {
|
|
@@ -898,7 +1032,7 @@ class Webhooks {
|
|
|
898
1032
|
allowUnrecognizedEnumValues: true,
|
|
899
1033
|
skipValidation: true,
|
|
900
1034
|
breadcrumbsPrefix: ["response"],
|
|
901
|
-
}));
|
|
1035
|
+
}), _response.rawResponse);
|
|
902
1036
|
case 401:
|
|
903
1037
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
904
1038
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -906,7 +1040,7 @@ class Webhooks {
|
|
|
906
1040
|
allowUnrecognizedEnumValues: true,
|
|
907
1041
|
skipValidation: true,
|
|
908
1042
|
breadcrumbsPrefix: ["response"],
|
|
909
|
-
}));
|
|
1043
|
+
}), _response.rawResponse);
|
|
910
1044
|
case 403:
|
|
911
1045
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
912
1046
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -914,7 +1048,15 @@ class Webhooks {
|
|
|
914
1048
|
allowUnrecognizedEnumValues: true,
|
|
915
1049
|
skipValidation: true,
|
|
916
1050
|
breadcrumbsPrefix: ["response"],
|
|
917
|
-
}));
|
|
1051
|
+
}), _response.rawResponse);
|
|
1052
|
+
case 404:
|
|
1053
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1054
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1055
|
+
allowUnrecognizedUnionMembers: true,
|
|
1056
|
+
allowUnrecognizedEnumValues: true,
|
|
1057
|
+
skipValidation: true,
|
|
1058
|
+
breadcrumbsPrefix: ["response"],
|
|
1059
|
+
}), _response.rawResponse);
|
|
918
1060
|
case 500:
|
|
919
1061
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
920
1062
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -922,11 +1064,12 @@ class Webhooks {
|
|
|
922
1064
|
allowUnrecognizedEnumValues: true,
|
|
923
1065
|
skipValidation: true,
|
|
924
1066
|
breadcrumbsPrefix: ["response"],
|
|
925
|
-
}));
|
|
1067
|
+
}), _response.rawResponse);
|
|
926
1068
|
default:
|
|
927
1069
|
throw new errors.SchematicError({
|
|
928
1070
|
statusCode: _response.error.statusCode,
|
|
929
1071
|
body: _response.error.body,
|
|
1072
|
+
rawResponse: _response.rawResponse,
|
|
930
1073
|
});
|
|
931
1074
|
}
|
|
932
1075
|
}
|
|
@@ -935,12 +1078,14 @@ class Webhooks {
|
|
|
935
1078
|
throw new errors.SchematicError({
|
|
936
1079
|
statusCode: _response.error.statusCode,
|
|
937
1080
|
body: _response.error.rawBody,
|
|
1081
|
+
rawResponse: _response.rawResponse,
|
|
938
1082
|
});
|
|
939
1083
|
case "timeout":
|
|
940
|
-
throw new errors.SchematicTimeoutError();
|
|
1084
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /webhooks/count.");
|
|
941
1085
|
case "unknown":
|
|
942
1086
|
throw new errors.SchematicError({
|
|
943
1087
|
message: _response.error.errorMessage,
|
|
1088
|
+
rawResponse: _response.rawResponse,
|
|
944
1089
|
});
|
|
945
1090
|
}
|
|
946
1091
|
});
|