@schematichq/schematic-typescript-node 1.3.0 → 1.3.2
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/dist/Client.d.ts +3 -0
- package/dist/Client.js +87 -0
- package/dist/api/errors/BadRequestError.js +52 -0
- package/dist/api/errors/ForbiddenError.js +52 -0
- package/dist/api/errors/InternalServerError.js +52 -0
- package/dist/api/errors/NotFoundError.js +52 -0
- package/dist/api/errors/UnauthorizedError.js +52 -0
- package/dist/api/errors/index.js +21 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/accesstokens/client/Client.js +184 -0
- package/dist/api/resources/accesstokens/client/index.js +17 -0
- package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +5 -0
- package/dist/api/resources/accesstokens/client/requests/index.js +2 -0
- package/dist/api/resources/accesstokens/index.js +18 -0
- package/dist/api/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +5 -0
- package/dist/api/resources/accesstokens/types/index.js +17 -0
- package/dist/api/resources/accounts/client/Client.js +1755 -0
- package/dist/api/resources/accounts/client/index.js +17 -0
- package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.js +5 -0
- package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.js +5 -0
- package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.js +5 -0
- package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +5 -0
- package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.js +5 -0
- package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.js +5 -0
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.js +5 -0
- package/dist/api/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +5 -0
- package/dist/api/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +5 -0
- package/dist/api/resources/accounts/client/requests/index.js +2 -0
- package/dist/api/resources/accounts/index.js +18 -0
- package/dist/api/resources/accounts/types/CountApiKeysParams.js +5 -0
- package/dist/api/resources/accounts/types/CountApiKeysResponse.js +5 -0
- package/dist/api/resources/accounts/types/CountApiRequestsParams.js +5 -0
- package/dist/api/resources/accounts/types/CountApiRequestsResponse.js +5 -0
- package/dist/api/resources/accounts/types/CreateApiKeyResponse.js +5 -0
- package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +9 -0
- package/dist/api/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +11 -0
- package/dist/api/resources/accounts/types/CreateEnvironmentResponse.js +5 -0
- package/dist/api/resources/accounts/types/DeleteApiKeyResponse.js +5 -0
- package/dist/api/resources/accounts/types/DeleteEnvironmentResponse.js +5 -0
- package/dist/api/resources/accounts/types/GetApiKeyResponse.js +5 -0
- package/dist/api/resources/accounts/types/GetApiRequestResponse.js +5 -0
- package/dist/api/resources/accounts/types/GetEnvironmentResponse.js +5 -0
- package/dist/api/resources/accounts/types/ListApiKeysParams.js +5 -0
- package/dist/api/resources/accounts/types/ListApiKeysResponse.js +5 -0
- package/dist/api/resources/accounts/types/ListApiRequestsParams.js +5 -0
- package/dist/api/resources/accounts/types/ListApiRequestsResponse.js +5 -0
- package/dist/api/resources/accounts/types/ListEnvironmentsParams.js +5 -0
- package/dist/api/resources/accounts/types/ListEnvironmentsResponse.js +5 -0
- package/dist/api/resources/accounts/types/QuickstartResponse.js +5 -0
- package/dist/api/resources/accounts/types/UpdateApiKeyResponse.js +5 -0
- package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +9 -0
- package/dist/api/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +11 -0
- package/dist/api/resources/accounts/types/UpdateEnvironmentResponse.js +5 -0
- package/dist/api/resources/accounts/types/index.js +38 -0
- package/dist/api/resources/billing/client/Client.d.ts +0 -3
- package/dist/api/resources/billing/client/Client.js +2585 -0
- package/dist/api/resources/billing/client/index.js +17 -0
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +49 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +42 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +24 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/index.js +2 -0
- package/dist/api/resources/billing/index.js +18 -0
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
- 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/CountBillingProductsResponse.js +5 -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 +0 -1
- package/dist/api/resources/billing/types/CountCustomersParams.js +5 -0
- package/dist/api/resources/billing/types/CountCustomersResponse.js +5 -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/CreateBillingPriceRequestBodyTiersMode.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.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.js +5 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/ListBillingProductsParams.js +5 -0
- 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/ListBillingProductsResponse.js +5 -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.js +5 -0
- package/dist/api/resources/billing/types/ListCouponsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
- package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
- package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +27 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.js +5 -0
- 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/ListProductPricesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListProductPricesResponse.js +5 -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 +19 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.js +5 -0
- package/dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +8 -0
- package/dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.js +10 -0
- 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/SearchBillingPricesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponse.js +5 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +8 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.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/UpsertBillingCouponResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertBillingCustomerResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertBillingPriceResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertBillingProductResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertBillingSubscriptionResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
- package/dist/api/resources/billing/types/index.js +60 -0
- package/dist/api/resources/checkout/client/Client.js +546 -0
- package/dist/api/resources/checkout/client/index.js +17 -0
- package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.js +5 -0
- package/dist/api/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +5 -0
- package/dist/api/resources/checkout/client/requests/index.js +2 -0
- package/dist/api/resources/checkout/index.js +18 -0
- package/dist/api/resources/checkout/types/CheckoutInternalResponse.js +5 -0
- package/dist/api/resources/checkout/types/GetCheckoutDataResponse.js +5 -0
- package/dist/api/resources/checkout/types/PreviewCheckoutInternalResponse.js +5 -0
- package/dist/api/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +5 -0
- package/dist/api/resources/checkout/types/index.js +20 -0
- package/dist/api/resources/companies/client/Client.js +4102 -0
- package/dist/api/resources/companies/client/index.js +17 -0
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CountUsersRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +5 -0
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/GetActiveDealsRequest.d.ts +22 -0
- package/dist/api/resources/companies/client/requests/GetActiveDealsRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +5 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/ListUsersRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/LookupUserRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +5 -0
- package/dist/api/resources/companies/client/requests/index.js +2 -0
- package/dist/api/resources/companies/index.js +18 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +5 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +5 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/CountCompaniesParams.js +5 -0
- package/dist/api/resources/companies/types/CountCompaniesResponse.js +5 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsParams.js +5 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +10 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponse.js +5 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +10 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsParams.js +5 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +10 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +12 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +14 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponse.js +5 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +10 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +12 -0
- package/dist/api/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +14 -0
- package/dist/api/resources/companies/types/CountUsersParams.js +5 -0
- package/dist/api/resources/companies/types/CountUsersResponse.js +5 -0
- package/dist/api/resources/companies/types/CreateCompanyResponse.js +5 -0
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +10 -0
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +12 -0
- package/dist/api/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +14 -0
- package/dist/api/resources/companies/types/CreateUserResponse.js +5 -0
- package/dist/api/resources/companies/types/DeleteCompanyByKeysResponse.js +5 -0
- package/dist/api/resources/companies/types/DeleteCompanyMembershipResponse.js +5 -0
- package/dist/api/resources/companies/types/DeleteCompanyResponse.js +5 -0
- package/dist/api/resources/companies/types/DeleteUserByKeysResponse.js +5 -0
- package/dist/api/resources/companies/types/DeleteUserResponse.js +5 -0
- package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.js +5 -0
- package/dist/api/resources/companies/types/GetActiveCompanySubscriptionResponse.js +5 -0
- package/dist/api/resources/companies/types/GetActiveDealsParams.d.ts +14 -0
- package/dist/api/resources/companies/types/GetActiveDealsParams.js +5 -0
- package/dist/api/resources/companies/types/GetActiveDealsResponse.d.ts +10 -0
- package/dist/api/resources/companies/types/GetActiveDealsResponse.js +5 -0
- package/dist/api/resources/companies/types/GetCompanyResponse.js +5 -0
- package/dist/api/resources/companies/types/GetEntityTraitDefinitionResponse.js +5 -0
- package/dist/api/resources/companies/types/GetEntityTraitValuesParams.js +5 -0
- package/dist/api/resources/companies/types/GetEntityTraitValuesResponse.js +5 -0
- package/dist/api/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +5 -0
- package/dist/api/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +5 -0
- package/dist/api/resources/companies/types/GetUserResponse.js +5 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +5 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +5 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.js +5 -0
- package/dist/api/resources/companies/types/ListCompaniesResponse.js +5 -0
- package/dist/api/resources/companies/types/ListCompanyMembershipsParams.js +5 -0
- package/dist/api/resources/companies/types/ListCompanyMembershipsResponse.js +5 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsParams.js +5 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +10 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponse.js +5 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +10 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsParams.js +5 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +10 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +12 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +14 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponse.js +5 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +8 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +10 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +12 -0
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +14 -0
- package/dist/api/resources/companies/types/ListUsersParams.js +5 -0
- package/dist/api/resources/companies/types/ListUsersResponse.js +5 -0
- package/dist/api/resources/companies/types/LookupCompanyParams.js +5 -0
- package/dist/api/resources/companies/types/LookupCompanyResponse.js +5 -0
- package/dist/api/resources/companies/types/LookupUserParams.js +5 -0
- package/dist/api/resources/companies/types/LookupUserResponse.js +5 -0
- package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +12 -0
- package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +14 -0
- package/dist/api/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +5 -0
- package/dist/api/resources/companies/types/UpsertCompanyResponse.js +5 -0
- package/dist/api/resources/companies/types/UpsertCompanyTraitResponse.js +5 -0
- package/dist/api/resources/companies/types/UpsertUserResponse.js +5 -0
- package/dist/api/resources/companies/types/UpsertUserTraitResponse.js +5 -0
- package/dist/api/resources/companies/types/index.js +84 -0
- package/dist/api/resources/components/client/Client.js +846 -0
- package/dist/api/resources/components/client/index.js +17 -0
- package/dist/api/resources/components/client/requests/CountComponentsRequest.js +5 -0
- package/dist/api/resources/components/client/requests/CreateComponentRequestBody.js +5 -0
- package/dist/api/resources/components/client/requests/ListComponentsRequest.js +5 -0
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
- package/dist/api/resources/components/client/requests/UpdateComponentRequestBody.js +5 -0
- package/dist/api/resources/components/client/requests/index.js +2 -0
- package/dist/api/resources/components/index.js +18 -0
- package/dist/api/resources/components/types/CountComponentsParams.js +5 -0
- package/dist/api/resources/components/types/CountComponentsResponse.js +5 -0
- package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +8 -0
- package/dist/api/resources/components/types/CreateComponentRequestBodyEntityType.js +10 -0
- package/dist/api/resources/components/types/CreateComponentResponse.js +5 -0
- package/dist/api/resources/components/types/DeleteComponentResponse.js +5 -0
- package/dist/api/resources/components/types/GetComponentResponse.js +5 -0
- package/dist/api/resources/components/types/ListComponentsParams.js +5 -0
- package/dist/api/resources/components/types/ListComponentsResponse.js +5 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
- package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
- package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +8 -0
- package/dist/api/resources/components/types/UpdateComponentRequestBodyEntityType.js +10 -0
- package/dist/api/resources/components/types/UpdateComponentRequestBodyState.d.ts +8 -0
- package/dist/api/resources/components/types/UpdateComponentRequestBodyState.js +10 -0
- package/dist/api/resources/components/types/UpdateComponentResponse.js +5 -0
- package/dist/api/resources/components/types/index.js +29 -0
- package/dist/api/resources/credits/client/Client.d.ts +21 -0
- package/dist/api/resources/credits/client/Client.js +2338 -0
- package/dist/api/resources/credits/client/index.js +17 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +7 -16
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +1 -2
- package/dist/api/resources/credits/client/requests/index.js +2 -0
- package/dist/api/resources/credits/index.js +18 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsParams.d.ts +13 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CountCreditBundlesParams.js +5 -0
- package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.js +10 -0
- package/dist/api/resources/credits/types/CountCreditBundlesResponse.js +5 -0
- package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +10 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/dist/api/resources/credits/types/CreateBillingCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +12 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +10 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +10 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +10 -0
- package/dist/api/resources/credits/types/CreateCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/DeleteCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/GetCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/ListBillingCreditsParams.js +5 -0
- package/dist/api/resources/credits/types/ListBillingCreditsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.js +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.js +12 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +12 -0
- package/dist/api/resources/credits/types/ListCreditBundlesParams.js +5 -0
- package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.js +10 -0
- package/dist/api/resources/credits/types/ListCreditBundlesResponse.js +5 -0
- package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +10 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditParams.js +5 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/dist/api/resources/credits/types/UpdateBillingCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/UpdateCreditBundleResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/UpdateCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +8 -0
- package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.js +10 -0
- package/dist/api/resources/credits/types/ZeroOutGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/index.d.ts +2 -0
- package/dist/api/resources/credits/types/index.js +61 -0
- package/dist/api/resources/crm/client/Client.d.ts +129 -0
- package/dist/api/resources/crm/client/Client.js +657 -0
- package/dist/api/resources/crm/client/index.d.ts +1 -0
- package/dist/api/resources/crm/client/index.js +17 -0
- package/dist/api/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.d.ts +14 -0
- package/dist/api/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +5 -0
- package/dist/api/resources/crm/client/requests/CreateCrmDealRequestBody.d.ts +22 -0
- package/dist/api/resources/crm/client/requests/CreateCrmDealRequestBody.js +5 -0
- package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +23 -0
- package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +5 -0
- package/dist/api/resources/crm/client/requests/CreateCrmProductRequestBody.d.ts +26 -0
- package/dist/api/resources/crm/client/requests/CreateCrmProductRequestBody.js +5 -0
- package/dist/api/resources/crm/client/requests/ListCrmProductsRequest.d.ts +19 -0
- package/dist/api/resources/crm/client/requests/ListCrmProductsRequest.js +5 -0
- package/dist/api/resources/crm/client/requests/index.d.ts +5 -0
- package/dist/api/resources/crm/client/requests/index.js +2 -0
- package/dist/api/resources/crm/index.d.ts +2 -0
- package/dist/api/resources/crm/index.js +18 -0
- package/dist/api/resources/crm/types/ListCrmProductsParams.d.ts +14 -0
- package/dist/api/resources/crm/types/ListCrmProductsParams.js +5 -0
- package/dist/api/resources/crm/types/ListCrmProductsResponse.d.ts +10 -0
- package/dist/api/resources/crm/types/ListCrmProductsResponse.js +5 -0
- package/dist/api/resources/crm/types/UpsertCrmDealResponse.d.ts +9 -0
- package/dist/api/resources/crm/types/UpsertCrmDealResponse.js +5 -0
- package/dist/api/resources/crm/types/UpsertCrmProductResponse.d.ts +9 -0
- package/dist/api/resources/crm/types/UpsertCrmProductResponse.js +5 -0
- package/dist/api/resources/crm/types/UpsertDealLineItemAssociationResponse.d.ts +9 -0
- package/dist/api/resources/crm/types/UpsertDealLineItemAssociationResponse.js +5 -0
- package/dist/api/resources/crm/types/UpsertLineItemResponse.d.ts +9 -0
- package/dist/api/resources/crm/types/UpsertLineItemResponse.js +5 -0
- package/dist/api/resources/crm/types/index.d.ts +6 -0
- package/dist/api/resources/crm/types/index.js +22 -0
- package/dist/api/resources/dataexports/client/Client.js +265 -0
- package/dist/api/resources/dataexports/client/index.js +17 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
- package/dist/api/resources/dataexports/client/requests/index.js +2 -0
- package/dist/api/resources/dataexports/index.js +18 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/dist/api/resources/dataexports/types/index.js +17 -0
- package/dist/api/resources/entitlements/client/Client.js +2431 -0
- package/dist/api/resources/entitlements/client/index.js +17 -0
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +5 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.js +5 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +5 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +5 -0
- package/dist/api/resources/entitlements/client/requests/index.js +2 -0
- package/dist/api/resources/entitlements/index.js +18 -0
- package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.js +5 -0
- package/dist/api/resources/entitlements/types/CountCompanyOverridesResponse.js +5 -0
- package/dist/api/resources/entitlements/types/CountFeatureCompaniesParams.js +5 -0
- package/dist/api/resources/entitlements/types/CountFeatureCompaniesResponse.js +5 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsageParams.js +5 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsageResponse.js +5 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsersParams.js +5 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsersResponse.js +5 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.js +5 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsResponse.js +5 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +12 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +11 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +13 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideResponse.js +5 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +12 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +11 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +13 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementResponse.js +5 -0
- package/dist/api/resources/entitlements/types/DeleteCompanyOverrideResponse.js +5 -0
- package/dist/api/resources/entitlements/types/DeletePlanEntitlementResponse.js +5 -0
- package/dist/api/resources/entitlements/types/GetCompanyOverrideResponse.js +5 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +5 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +5 -0
- package/dist/api/resources/entitlements/types/GetPlanEntitlementResponse.js +5 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.js +5 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesResponse.js +5 -0
- package/dist/api/resources/entitlements/types/ListFeatureCompaniesParams.js +5 -0
- package/dist/api/resources/entitlements/types/ListFeatureCompaniesResponse.js +5 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageParams.js +5 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageResponse.js +5 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsersParams.js +5 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsersResponse.js +5 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.js +5 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsResponse.js +5 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +12 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +11 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +13 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideResponse.js +5 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +12 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +11 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +13 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementResponse.js +5 -0
- package/dist/api/resources/entitlements/types/index.js +60 -0
- package/dist/api/resources/events/client/Client.js +757 -0
- package/dist/api/resources/events/client/index.js +17 -0
- package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.js +5 -0
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.js +5 -0
- package/dist/api/resources/events/client/requests/ListEventsRequest.js +5 -0
- package/dist/api/resources/events/client/requests/index.js +2 -0
- package/dist/api/resources/events/index.js +18 -0
- package/dist/api/resources/events/types/CreateEventBatchResponse.js +5 -0
- package/dist/api/resources/events/types/CreateEventResponse.js +5 -0
- package/dist/api/resources/events/types/GetEventResponse.js +5 -0
- package/dist/api/resources/events/types/GetEventSummariesParams.js +5 -0
- package/dist/api/resources/events/types/GetEventSummariesResponse.js +5 -0
- package/dist/api/resources/events/types/GetSegmentIntegrationStatusResponse.js +5 -0
- package/dist/api/resources/events/types/ListEventsParams.js +5 -0
- package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.d.ts +9 -0
- package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.js +11 -0
- package/dist/api/resources/events/types/ListEventsResponse.js +5 -0
- package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +9 -0
- package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +11 -0
- package/dist/api/resources/events/types/index.js +26 -0
- package/dist/api/resources/features/client/Client.js +2324 -0
- package/dist/api/resources/features/client/index.js +17 -0
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.js +5 -0
- package/dist/api/resources/features/client/requests/CountFlagsRequest.js +5 -0
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.js +5 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.js +5 -0
- package/dist/api/resources/features/client/requests/ListFlagsRequest.js +5 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.js +5 -0
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.js +5 -0
- package/dist/api/resources/features/client/requests/index.js +2 -0
- package/dist/api/resources/features/index.js +18 -0
- package/dist/api/resources/features/types/CheckFlagResponse.js +5 -0
- package/dist/api/resources/features/types/CheckFlagsResponse.js +5 -0
- package/dist/api/resources/features/types/CountAudienceCompaniesResponse.d.ts +9 -0
- package/dist/api/resources/features/types/CountAudienceCompaniesResponse.js +5 -0
- package/dist/api/resources/features/types/CountAudienceUsersResponse.d.ts +9 -0
- package/dist/api/resources/features/types/CountAudienceUsersResponse.js +5 -0
- package/dist/api/resources/features/types/CountFeaturesParams.js +5 -0
- package/dist/api/resources/features/types/CountFeaturesResponse.js +5 -0
- package/dist/api/resources/features/types/CountFlagsParams.js +5 -0
- package/dist/api/resources/features/types/CountFlagsResponse.js +5 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +9 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyFeatureType.js +11 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/dist/api/resources/features/types/CreateFeatureResponse.js +5 -0
- package/dist/api/resources/features/types/CreateFlagResponse.js +5 -0
- package/dist/api/resources/features/types/DeleteFeatureResponse.js +5 -0
- package/dist/api/resources/features/types/DeleteFlagResponse.js +5 -0
- package/dist/api/resources/features/types/GetFeatureResponse.js +5 -0
- package/dist/api/resources/features/types/GetFlagResponse.js +5 -0
- package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +10 -0
- package/dist/api/resources/features/types/ListAudienceCompaniesResponse.js +5 -0
- package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +10 -0
- package/dist/api/resources/features/types/ListAudienceUsersResponse.js +5 -0
- package/dist/api/resources/features/types/ListFeaturesParams.js +5 -0
- package/dist/api/resources/features/types/ListFeaturesResponse.js +5 -0
- package/dist/api/resources/features/types/ListFlagsParams.js +5 -0
- package/dist/api/resources/features/types/ListFlagsResponse.js +5 -0
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +9 -0
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +11 -0
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/dist/api/resources/features/types/UpdateFeatureResponse.js +5 -0
- package/dist/api/resources/features/types/UpdateFlagResponse.js +5 -0
- package/dist/api/resources/features/types/UpdateFlagRulesResponse.js +5 -0
- package/dist/api/resources/features/types/index.js +43 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +84 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +52 -0
- package/dist/api/resources/planbundle/client/index.d.ts +1 -0
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +16 -0
- package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +16 -0
- package/dist/api/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/api/resources/planbundle/index.d.ts +2 -0
- package/dist/api/resources/planbundle/types/CreatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/Client.js +396 -0
- package/dist/api/resources/plangroups/client/index.js +17 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/index.js +2 -0
- package/dist/api/resources/plangroups/index.js +18 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/index.js +19 -0
- package/dist/api/resources/plans/client/Client.js +2047 -0
- package/dist/api/resources/plans/client/index.js +17 -0
- 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/CountPlansRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +5 -2
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.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/ListPlansRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +25 -0
- package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +3 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.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 +6 -3
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +0 -3
- package/dist/api/resources/plans/client/requests/index.js +2 -0
- package/dist/api/resources/plans/index.js +18 -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/CountPlansParams.js +5 -0
- package/dist/api/resources/plans/types/CountPlansRequestPlanType.d.ts +11 -0
- package/dist/api/resources/plans/types/CountPlansRequestPlanType.js +10 -0
- package/dist/api/resources/plans/types/CountPlansResponse.js +5 -0
- package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +11 -0
- package/dist/api/resources/plans/types/CountPlansResponseParamsPlanType.js +10 -0
- package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +8 -0
- package/dist/api/resources/plans/types/CreatePlanRequestBodyPlanType.js +10 -0
- package/dist/api/resources/plans/types/CreatePlanResponse.js +5 -0
- 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/DeleteAudienceResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/DeleteAudienceResponse.js +5 -0
- package/dist/api/resources/plans/types/DeletePlanResponse.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/GetAudienceResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/GetAudienceResponse.js +5 -0
- package/dist/api/resources/plans/types/GetPlanResponse.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/ListPlansParams.js +5 -0
- package/dist/api/resources/plans/types/ListPlansRequestPlanType.d.ts +11 -0
- package/dist/api/resources/plans/types/ListPlansRequestPlanType.js +10 -0
- package/dist/api/resources/plans/types/ListPlansResponse.js +5 -0
- package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +11 -0
- package/dist/api/resources/plans/types/ListPlansResponseParamsPlanType.js +10 -0
- package/dist/api/resources/plans/types/UpdateAudienceResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/UpdateAudienceResponse.js +5 -0
- package/dist/api/resources/plans/types/UpdateCompanyPlansResponse.js +5 -0
- package/dist/api/resources/plans/types/UpdatePlanResponse.js +5 -0
- 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/UpsertBillingProductPlanResponse.js +5 -0
- package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +9 -0
- package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +11 -0
- package/dist/api/resources/plans/types/index.js +43 -0
- package/dist/api/resources/webhooks/client/Client.js +1100 -0
- package/dist/api/resources/webhooks/client/index.js +17 -0
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.js +5 -0
- package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.js +5 -0
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.js +5 -0
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.js +5 -0
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.js +5 -0
- package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +5 -0
- package/dist/api/resources/webhooks/client/requests/index.js +2 -0
- package/dist/api/resources/webhooks/index.js +18 -0
- package/dist/api/resources/webhooks/types/CountWebhookEventsParams.js +5 -0
- package/dist/api/resources/webhooks/types/CountWebhookEventsResponse.js +5 -0
- package/dist/api/resources/webhooks/types/CountWebhooksParams.js +5 -0
- package/dist/api/resources/webhooks/types/CountWebhooksResponse.js +5 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +34 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +36 -0
- package/dist/api/resources/webhooks/types/CreateWebhookResponse.js +5 -0
- package/dist/api/resources/webhooks/types/DeleteWebhookResponse.js +5 -0
- package/dist/api/resources/webhooks/types/GetWebhookEventResponse.js +5 -0
- package/dist/api/resources/webhooks/types/GetWebhookResponse.js +5 -0
- package/dist/api/resources/webhooks/types/ListWebhookEventsParams.js +5 -0
- package/dist/api/resources/webhooks/types/ListWebhookEventsResponse.js +5 -0
- package/dist/api/resources/webhooks/types/ListWebhooksParams.js +5 -0
- package/dist/api/resources/webhooks/types/ListWebhooksResponse.js +5 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +34 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +36 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +8 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +10 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookResponse.js +5 -0
- package/dist/api/resources/webhooks/types/index.js +32 -0
- package/dist/api/types/ApiError.js +5 -0
- package/dist/api/types/ApiKeyCreateResponseData.js +5 -0
- package/dist/api/types/ApiKeyRequestListResponseData.js +5 -0
- package/dist/api/types/ApiKeyRequestResponseData.js +5 -0
- package/dist/api/types/ApiKeyResponseData.js +5 -0
- package/dist/api/types/AudienceRequestBody.d.ts +13 -0
- package/dist/api/types/AudienceRequestBody.js +5 -0
- package/dist/api/types/BillingCouponResponseData.js +5 -0
- package/dist/api/types/BillingCreditBundleResponseData.js +5 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditGrantResponseData.js +5 -0
- package/dist/api/types/BillingCreditResponseData.js +5 -0
- package/dist/api/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/api/types/BillingCustomerResponseData.js +5 -0
- package/dist/api/types/BillingCustomerSubscription.js +5 -0
- package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.js +5 -0
- package/dist/api/types/BillingMeterResponseData.js +5 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.js +5 -0
- package/dist/api/types/BillingPriceResponseData.js +5 -0
- package/dist/api/types/BillingPriceView.js +5 -0
- package/dist/api/types/BillingProductDetailResponseData.js +5 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/dist/api/types/BillingProductPlanResponseData.js +5 -0
- package/dist/api/types/BillingProductPriceResponseData.js +5 -0
- package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.js +5 -0
- package/dist/api/types/BillingProductPricingUsageType.d.ts +8 -0
- package/dist/api/types/BillingProductPricingUsageType.js +10 -0
- package/dist/api/types/BillingProductResponseData.js +5 -0
- package/dist/api/types/BillingSubscriptionDiscount.js +5 -0
- package/dist/api/types/BillingSubscriptionDiscountView.js +5 -0
- package/dist/api/types/BillingSubscriptionResponseData.js +5 -0
- package/dist/api/types/BillingSubscriptionView.js +5 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.js +5 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.js +5 -0
- package/dist/api/types/CheckFlagRequestBody.js +5 -0
- package/dist/api/types/CheckFlagResponseData.js +5 -0
- package/dist/api/types/CheckFlagsResponseData.js +5 -0
- package/dist/api/types/CheckoutDataResponseData.js +5 -0
- package/dist/api/types/CompanyCrmDealsResponseData.d.ts +11 -0
- package/dist/api/types/CompanyCrmDealsResponseData.js +5 -0
- package/dist/api/types/CompanyDetailResponseData.js +5 -0
- package/dist/api/types/CompanyEventPeriodMetricsResponseData.js +5 -0
- package/dist/api/types/CompanyMembershipDetailResponseData.js +5 -0
- package/dist/api/types/CompanyMembershipResponseData.js +5 -0
- package/dist/api/types/CompanyOverrideResponseData.js +5 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/dist/api/types/CompanyResponseData.js +5 -0
- package/dist/api/types/CompanySubscriptionResponseData.js +5 -0
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.js +5 -0
- package/dist/api/types/CompatiblePlans.js +5 -0
- package/dist/api/types/CompatiblePlansResponseData.js +5 -0
- package/dist/api/types/ComponentCapabilities.js +5 -0
- package/dist/api/types/ComponentHydrateResponseData.js +5 -0
- package/dist/api/types/ComponentPreviewResponseData.js +5 -0
- package/dist/api/types/ComponentResponseData.js +5 -0
- package/dist/api/types/CountResponse.js +5 -0
- package/dist/api/types/CouponRequestBody.js +5 -0
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +20 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.js +5 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +29 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.js +12 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +11 -0
- package/dist/api/types/CreateEntitlementReqCommonValueType.js +13 -0
- package/dist/api/types/CreateEventRequestBody.js +5 -0
- package/dist/api/types/CreateEventRequestBodyEventType.d.ts +12 -0
- package/dist/api/types/CreateEventRequestBodyEventType.js +11 -0
- package/dist/api/types/CreateFlagRequestBody.js +5 -0
- package/dist/api/types/CreateOrUpdateConditionGroupRequestBody.js +5 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBody.js +5 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +16 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +12 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +16 -0
- package/dist/api/types/CreateOrUpdateFlagRequestBody.js +5 -0
- package/dist/api/types/CreateOrUpdateRuleRequestBody.js +5 -0
- package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.js +14 -0
- package/dist/api/types/CreatePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreatePriceTierRequestBody.js +5 -0
- package/dist/api/types/CreditBundlePurchaseResponseData.js +5 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
- package/dist/api/types/CrmDealLineItem.d.ts +18 -0
- package/dist/api/types/CrmDealLineItem.js +5 -0
- package/dist/api/types/CrmDealResponseData.d.ts +19 -0
- package/dist/api/types/CrmDealResponseData.js +5 -0
- package/dist/api/types/CrmLineItemResponseData.d.ts +14 -0
- package/dist/api/types/CrmLineItemResponseData.js +5 -0
- package/dist/api/types/CrmProductResponseData.d.ts +18 -0
- package/dist/api/types/CrmProductResponseData.js +5 -0
- package/dist/api/types/CustomPlanConfig.js +5 -0
- package/dist/api/types/CustomPlanViewConfigResponseData.js +5 -0
- package/dist/api/types/DataExportResponseData.js +5 -0
- package/dist/api/types/Decimal.d.ts +4 -0
- package/dist/api/types/Decimal.js +5 -0
- package/dist/api/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/DeleteResponse.js +5 -0
- package/dist/api/types/EntitlementTriggerConfig.js +5 -0
- package/dist/api/types/EntitlementsInPlan.js +5 -0
- package/dist/api/types/EntityKeyDefinitionResponseData.js +5 -0
- package/dist/api/types/EntityKeyDetailResponseData.js +5 -0
- package/dist/api/types/EntityKeyResponseData.js +5 -0
- package/dist/api/types/EntityTraitDefinitionResponseData.js +5 -0
- package/dist/api/types/EntityTraitDetailResponseData.js +5 -0
- package/dist/api/types/EntityTraitResponseData.js +5 -0
- package/dist/api/types/EntityTraitValue.js +5 -0
- package/dist/api/types/EnvironmentDetailResponseData.js +5 -0
- package/dist/api/types/EnvironmentResponseData.js +5 -0
- package/dist/api/types/EventBody.js +5 -0
- package/dist/api/types/EventBodyFlagCheck.js +5 -0
- package/dist/api/types/EventBodyIdentify.js +5 -0
- package/dist/api/types/EventBodyIdentifyCompany.js +5 -0
- package/dist/api/types/EventBodyTrack.js +5 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -1
- package/dist/api/types/EventDetailResponseData.js +5 -0
- package/dist/api/types/EventResponseData.d.ts +1 -1
- package/dist/api/types/EventResponseData.js +5 -0
- package/dist/api/types/EventSummaryResponseData.js +5 -0
- package/dist/api/types/FeatureCompanyResponseData.js +5 -0
- package/dist/api/types/FeatureCompanyResponseDataAllocationType.d.ts +13 -0
- package/dist/api/types/FeatureCompanyResponseDataAllocationType.js +12 -0
- package/dist/api/types/FeatureCompanyUserResponseData.js +5 -0
- package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +13 -0
- package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.js +12 -0
- package/dist/api/types/FeatureDetailResponseData.js +5 -0
- package/dist/api/types/FeatureResponseData.js +5 -0
- package/dist/api/types/FeatureUsageDataResponseData.js +5 -0
- package/dist/api/types/FeatureUsageDetailResponseData.js +5 -0
- package/dist/api/types/FeatureUsageResponseData.js +5 -0
- package/dist/api/types/FeatureUsageResponseDataAllocationType.d.ts +13 -0
- package/dist/api/types/FeatureUsageResponseDataAllocationType.js +12 -0
- package/dist/api/types/FlagDetailResponseData.js +5 -0
- package/dist/api/types/FlagResponseData.js +5 -0
- package/dist/api/types/GenericPreviewObject.js +5 -0
- package/dist/api/types/InvoiceRequestBody.js +5 -0
- package/dist/api/types/InvoiceResponseData.js +5 -0
- package/dist/api/types/IssueTemporaryAccessTokenResponseData.js +5 -0
- package/dist/api/types/KeysRequestBody.js +5 -0
- package/dist/api/types/MeterRequestBody.js +5 -0
- package/dist/api/types/OrderedPlansInGroup.js +5 -0
- package/dist/api/types/PaginationFilter.d.ts +9 -0
- package/dist/api/types/PaginationFilter.js +5 -0
- package/dist/api/types/PaymentMethodRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodResponseData.js +5 -0
- package/dist/api/types/PlanAudienceDetailResponseData.d.ts +21 -0
- package/dist/api/types/PlanAudienceDetailResponseData.js +5 -0
- package/dist/api/types/PlanAudienceResponseData.d.ts +15 -0
- package/dist/api/types/PlanAudienceResponseData.js +5 -0
- package/dist/api/types/PlanBundleAction.d.ts +6 -0
- package/dist/api/types/PlanBundleCreditGrantRequestBody.d.ts +8 -0
- package/dist/api/types/PlanBundleEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/PlanBundleResponseData.d.ts +8 -0
- package/dist/api/types/PlanChangeSubscriptionAction.d.ts +1 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanDetailResponseData.js +5 -0
- package/dist/api/types/PlanEntitlementResponseData.js +5 -0
- package/dist/api/types/PlanEntitlementsOrder.js +5 -0
- package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupPlanEntitlementsOrder.js +5 -0
- package/dist/api/types/PlanGroupResponseData.js +5 -0
- package/dist/api/types/PlanResponseData.js +5 -0
- package/dist/api/types/PlanTraitResponseData.js +5 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionStatus.d.ts +6 -0
- package/dist/api/types/PreviewObject.js +5 -0
- package/dist/api/types/PreviewObjectResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/dist/api/types/QuickstartResp.js +5 -0
- package/dist/api/types/RawEventBatchResponseData.js +5 -0
- package/dist/api/types/RawEventResponseData.d.ts +1 -1
- package/dist/api/types/RawEventResponseData.js +5 -0
- package/dist/api/types/RuleConditionDetailResponseData.js +5 -0
- package/dist/api/types/RuleConditionGroupDetailResponseData.js +5 -0
- package/dist/api/types/RuleConditionGroupResponseData.js +5 -0
- package/dist/api/types/RuleConditionResponseData.js +5 -0
- package/dist/api/types/RuleDetailResponseData.js +5 -0
- package/dist/api/types/RuleResponseData.js +5 -0
- package/dist/api/types/RulesDetailResponseData.js +5 -0
- package/dist/api/types/SegmentStatusResp.js +5 -0
- package/dist/api/types/StripeEmbedInfo.js +5 -0
- package/dist/api/types/TemporaryAccessTokenResponseData.js +5 -0
- package/dist/api/types/UpdateAddOnRequestBody.js +5 -0
- package/dist/api/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -8
- package/dist/api/types/UpdateCreditBundleRequestBody.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.js +12 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +11 -0
- package/dist/api/types/UpdateEntitlementReqCommonValueType.js +13 -0
- package/dist/api/types/UpdatePayInAdvanceRequestBody.js +5 -0
- package/dist/api/types/UpdatePlanRequestBody.d.ts +5 -0
- package/dist/api/types/UpdateRuleRequestBody.js +5 -0
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +14 -0
- package/dist/api/types/UpsertCompanyRequestBody.js +5 -0
- package/dist/api/types/UpsertTraitRequestBody.js +5 -0
- package/dist/api/types/UpsertUserRequestBody.js +5 -0
- package/dist/api/types/UpsertUserSubRequestBody.js +5 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.js +5 -0
- package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +13 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.js +5 -0
- package/dist/api/types/UserDetailResponseData.js +5 -0
- package/dist/api/types/UserResponseData.js +5 -0
- package/dist/api/types/WebhookEventDetailResponseData.js +5 -0
- package/dist/api/types/WebhookEventResponseData.js +5 -0
- package/dist/api/types/WebhookRequestType.d.ts +2 -0
- package/dist/api/types/WebhookResponseData.js +5 -0
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +188 -0
- package/dist/cache.js +102 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.js +107 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/createRequestUrl.js +12 -0
- package/dist/core/fetcher/custom.js +132 -0
- package/dist/core/fetcher/getFetchFn.js +68 -0
- package/dist/core/fetcher/getHeader.js +11 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.js +54 -0
- package/dist/core/fetcher/index.js +15 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.js +40 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/core/index.js +42 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.js +103 -0
- package/dist/core/schemas/Schema.js +24 -0
- package/dist/core/schemas/builders/bigint/bigint.js +53 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.js +62 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.js +38 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.js +30 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.js +24 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +11 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.js +54 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +28 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +28 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.js +261 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +7 -0
- package/dist/core/schemas/builders/object/property.js +15 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +53 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.js +93 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +145 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +9 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.js +43 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +39 -0
- package/dist/core/schemas/builders/union/discriminant.js +9 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.js +129 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +15 -0
- package/dist/core/schemas/utils/entries.js +6 -0
- package/dist/core/schemas/utils/filterObject.js +13 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +27 -0
- package/dist/core/schemas/utils/isPlainObject.js +17 -0
- package/dist/core/schemas/utils/keys.js +6 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +27 -0
- package/dist/core/schemas/utils/partition.js +15 -0
- package/dist/environments.js +9 -0
- package/dist/errors/SchematicError.js +30 -0
- package/dist/errors/SchematicTimeoutError.js +13 -0
- package/dist/errors/index.js +7 -0
- package/dist/events.js +118 -0
- package/dist/index.js +3 -3
- package/dist/logger.js +19 -0
- package/dist/main.js +1 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/resources/accesstokens/client/index.js +17 -0
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +44 -0
- package/dist/serialization/resources/accesstokens/client/requests/index.js +5 -0
- package/dist/serialization/resources/accesstokens/index.js +18 -0
- package/dist/serialization/resources/accesstokens/types/IssueTemporaryAccessTokenResponse.js +45 -0
- package/dist/serialization/resources/accesstokens/types/index.js +17 -0
- package/dist/serialization/resources/accounts/client/index.js +17 -0
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.js +45 -0
- package/dist/serialization/resources/accounts/client/requests/CreateEnvironmentRequestBody.js +45 -0
- package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.js +44 -0
- package/dist/serialization/resources/accounts/client/requests/UpdateEnvironmentRequestBody.js +45 -0
- package/dist/serialization/resources/accounts/client/requests/index.js +11 -0
- package/dist/serialization/resources/accounts/index.js +18 -0
- package/dist/serialization/resources/accounts/types/CountApiKeysParams.js +46 -0
- package/dist/serialization/resources/accounts/types/CountApiKeysResponse.js +46 -0
- package/dist/serialization/resources/accounts/types/CountApiRequestsParams.js +47 -0
- package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.js +46 -0
- package/dist/serialization/resources/accounts/types/CreateApiKeyResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.d.ts +10 -0
- package/dist/serialization/resources/accounts/types/CreateEnvironmentRequestBodyEnvironmentType.js +41 -0
- package/dist/serialization/resources/accounts/types/CreateEnvironmentResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/DeleteApiKeyResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/DeleteEnvironmentResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/GetApiKeyResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/GetApiRequestResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/GetEnvironmentResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/ListApiKeysParams.js +46 -0
- package/dist/serialization/resources/accounts/types/ListApiKeysResponse.js +46 -0
- package/dist/serialization/resources/accounts/types/ListApiRequestsParams.js +47 -0
- package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.js +46 -0
- package/dist/serialization/resources/accounts/types/ListEnvironmentsParams.js +45 -0
- package/dist/serialization/resources/accounts/types/ListEnvironmentsResponse.js +46 -0
- package/dist/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/UpdateApiKeyResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.d.ts +10 -0
- package/dist/serialization/resources/accounts/types/UpdateEnvironmentRequestBodyEnvironmentType.js +41 -0
- package/dist/serialization/resources/accounts/types/UpdateEnvironmentResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/index.js +38 -0
- package/dist/serialization/resources/billing/client/index.js +17 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.js +49 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +60 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +46 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +31 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +62 -0
- package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.js +51 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +54 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +46 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +54 -0
- package/dist/serialization/resources/billing/client/requests/index.js +19 -0
- package/dist/serialization/resources/billing/index.js +18 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +54 -0
- 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 +46 -0
- 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 +0 -1
- package/dist/serialization/resources/billing/types/CountCustomersParams.js +48 -0
- package/dist/serialization/resources/billing/types/CountCustomersResponse.js +46 -0
- 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/CreateBillingPriceRequestBodyTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.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.js +45 -0
- package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.js +45 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +54 -0
- 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 +46 -0
- 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.js +46 -0
- package/dist/serialization/resources/billing/types/ListCouponsResponse.js +46 -0
- package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.js +48 -0
- package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +46 -0
- package/dist/serialization/resources/billing/types/ListInvoicesParams.js +47 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +46 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.js +45 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.js +46 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +46 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +46 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +23 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +54 -0
- 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.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListProductPricesResponse.js +46 -0
- 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 +21 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +52 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.js +41 -0
- 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.d.ts +15 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.js +46 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +41 -0
- 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 +45 -0
- package/dist/serialization/resources/billing/types/UpsertBillingCustomerResponse.js +45 -0
- package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.js +45 -0
- package/dist/serialization/resources/billing/types/UpsertBillingPriceResponse.js +45 -0
- package/dist/serialization/resources/billing/types/UpsertBillingProductResponse.js +45 -0
- package/dist/serialization/resources/billing/types/UpsertBillingSubscriptionResponse.js +45 -0
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +45 -0
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +45 -0
- package/dist/serialization/resources/billing/types/index.js +60 -0
- package/dist/serialization/resources/checkout/client/index.js +17 -0
- package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.js +44 -0
- package/dist/serialization/resources/checkout/client/requests/UpdateTrialEndRequestBody.js +43 -0
- package/dist/serialization/resources/checkout/client/requests/index.js +7 -0
- package/dist/serialization/resources/checkout/index.js +18 -0
- package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.js +45 -0
- package/dist/serialization/resources/checkout/types/GetCheckoutDataResponse.js +45 -0
- package/dist/serialization/resources/checkout/types/PreviewCheckoutInternalResponse.js +45 -0
- package/dist/serialization/resources/checkout/types/UpdateCustomerSubscriptionTrialEndResponse.js +45 -0
- package/dist/serialization/resources/checkout/types/index.js +20 -0
- package/dist/serialization/resources/companies/client/index.js +17 -0
- package/dist/serialization/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.js +48 -0
- package/dist/serialization/resources/companies/client/requests/GetOrCreateCompanyMembershipRequestBody.js +44 -0
- package/dist/serialization/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.js +45 -0
- package/dist/serialization/resources/companies/client/requests/index.js +9 -0
- package/dist/serialization/resources/companies/index.js +18 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +57 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +46 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +50 -0
- package/dist/serialization/resources/companies/types/CountCompaniesResponse.js +46 -0
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsParams.js +48 -0
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsRequestEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponse.js +46 -0
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountEntityKeyDefinitionsResponseParamsEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsParams.js +50 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsRequestTraitType.js +41 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponse.js +46 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CountEntityTraitDefinitionsResponseParamsTraitType.js +41 -0
- package/dist/serialization/resources/companies/types/CountUsersParams.js +48 -0
- package/dist/serialization/resources/companies/types/CountUsersResponse.js +46 -0
- package/dist/serialization/resources/companies/types/CreateCompanyResponse.js +45 -0
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/CreateEntityTraitDefinitionRequestBodyTraitType.js +41 -0
- package/dist/serialization/resources/companies/types/CreateUserResponse.js +45 -0
- package/dist/serialization/resources/companies/types/DeleteCompanyByKeysResponse.js +45 -0
- package/dist/serialization/resources/companies/types/DeleteCompanyMembershipResponse.js +45 -0
- package/dist/serialization/resources/companies/types/DeleteCompanyResponse.js +45 -0
- package/dist/serialization/resources/companies/types/DeleteUserByKeysResponse.js +45 -0
- package/dist/serialization/resources/companies/types/DeleteUserResponse.js +45 -0
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +46 -0
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionResponse.js +46 -0
- package/dist/serialization/resources/companies/types/GetActiveDealsParams.d.ts +15 -0
- package/dist/serialization/resources/companies/types/GetActiveDealsParams.js +46 -0
- package/dist/serialization/resources/companies/types/GetActiveDealsResponse.d.ts +15 -0
- package/dist/serialization/resources/companies/types/GetActiveDealsResponse.js +46 -0
- package/dist/serialization/resources/companies/types/GetCompanyResponse.js +45 -0
- package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionResponse.js +45 -0
- package/dist/serialization/resources/companies/types/GetEntityTraitValuesParams.js +46 -0
- package/dist/serialization/resources/companies/types/GetEntityTraitValuesResponse.js +46 -0
- package/dist/serialization/resources/companies/types/GetOrCreateCompanyMembershipResponse.js +45 -0
- package/dist/serialization/resources/companies/types/GetOrCreateEntityTraitDefinitionResponse.js +45 -0
- package/dist/serialization/resources/companies/types/GetUserResponse.js +45 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +57 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +46 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +50 -0
- package/dist/serialization/resources/companies/types/ListCompaniesResponse.js +46 -0
- package/dist/serialization/resources/companies/types/ListCompanyMembershipsParams.js +46 -0
- package/dist/serialization/resources/companies/types/ListCompanyMembershipsResponse.js +46 -0
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsParams.js +48 -0
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsRequestEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponse.js +46 -0
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListEntityKeyDefinitionsResponseParamsEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsParams.js +50 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsRequestTraitType.js +41 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponse.js +46 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsEntityType.js +41 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/ListEntityTraitDefinitionsResponseParamsTraitType.js +41 -0
- package/dist/serialization/resources/companies/types/ListUsersParams.js +48 -0
- package/dist/serialization/resources/companies/types/ListUsersResponse.js +46 -0
- package/dist/serialization/resources/companies/types/LookupCompanyParams.js +43 -0
- package/dist/serialization/resources/companies/types/LookupCompanyResponse.js +46 -0
- package/dist/serialization/resources/companies/types/LookupUserParams.js +43 -0
- package/dist/serialization/resources/companies/types/LookupUserResponse.js +46 -0
- package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.d.ts +10 -0
- package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionRequestBodyTraitType.js +41 -0
- package/dist/serialization/resources/companies/types/UpdateEntityTraitDefinitionResponse.js +45 -0
- package/dist/serialization/resources/companies/types/UpsertCompanyResponse.js +45 -0
- package/dist/serialization/resources/companies/types/UpsertCompanyTraitResponse.js +45 -0
- package/dist/serialization/resources/companies/types/UpsertUserResponse.js +45 -0
- package/dist/serialization/resources/companies/types/UpsertUserTraitResponse.js +45 -0
- package/dist/serialization/resources/companies/types/index.js +84 -0
- package/dist/serialization/resources/components/client/index.js +17 -0
- package/dist/serialization/resources/components/client/requests/CreateComponentRequestBody.js +46 -0
- package/dist/serialization/resources/components/client/requests/UpdateComponentRequestBody.js +48 -0
- package/dist/serialization/resources/components/client/requests/index.js +7 -0
- package/dist/serialization/resources/components/index.js +18 -0
- package/dist/serialization/resources/components/types/CountComponentsParams.js +45 -0
- package/dist/serialization/resources/components/types/CountComponentsResponse.js +46 -0
- package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.d.ts +10 -0
- package/dist/serialization/resources/components/types/CreateComponentRequestBodyEntityType.js +41 -0
- package/dist/serialization/resources/components/types/CreateComponentResponse.js +45 -0
- package/dist/serialization/resources/components/types/DeleteComponentResponse.js +45 -0
- package/dist/serialization/resources/components/types/GetComponentResponse.js +45 -0
- package/dist/serialization/resources/components/types/ListComponentsParams.js +45 -0
- package/dist/serialization/resources/components/types/ListComponentsResponse.js +46 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +44 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataResponse.js +46 -0
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.d.ts +10 -0
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyEntityType.js +41 -0
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.d.ts +10 -0
- package/dist/serialization/resources/components/types/UpdateComponentRequestBodyState.js +41 -0
- package/dist/serialization/resources/components/types/UpdateComponentResponse.js +45 -0
- package/dist/serialization/resources/components/types/index.js +29 -0
- package/dist/serialization/resources/credits/client/index.js +17 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +56 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +9 -22
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +49 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +54 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +55 -0
- package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +44 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/credits/client/requests/index.js +13 -0
- package/dist/serialization/resources/credits/index.js +18 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsParams.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +47 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesParams.js +49 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js +41 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingCreditResponse.js +45 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +41 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +41 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +41 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/GetCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +45 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsParams.js +46 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +47 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsParams.js +49 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.js +41 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.js +41 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +41 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +41 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesParams.js +49 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.js +41 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +41 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditParams.js +46 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditResponse.js +46 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/dist/serialization/resources/credits/types/UpdateBillingCreditResponse.js +45 -0
- package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.js +41 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/index.d.ts +2 -0
- package/dist/serialization/resources/credits/types/index.js +61 -0
- package/dist/serialization/resources/crm/client/index.d.ts +1 -0
- package/dist/serialization/resources/crm/client/index.js +17 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.d.ts +13 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealLineItemAssociationRequestBody.js +44 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.d.ts +20 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmDealRequestBody.js +51 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +19 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +50 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.d.ts +19 -0
- package/dist/serialization/resources/crm/client/requests/CreateCrmProductRequestBody.js +50 -0
- package/dist/serialization/resources/crm/client/requests/index.d.ts +4 -0
- package/dist/serialization/resources/crm/client/requests/index.js +11 -0
- package/dist/serialization/resources/crm/index.d.ts +2 -0
- package/dist/serialization/resources/crm/index.js +18 -0
- package/dist/serialization/resources/crm/types/ListCrmProductsParams.d.ts +15 -0
- package/dist/serialization/resources/crm/types/ListCrmProductsParams.js +46 -0
- package/dist/serialization/resources/crm/types/ListCrmProductsResponse.d.ts +15 -0
- package/dist/serialization/resources/crm/types/ListCrmProductsResponse.js +46 -0
- package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.d.ts +14 -0
- package/dist/serialization/resources/crm/types/UpsertCrmDealResponse.js +45 -0
- package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.d.ts +14 -0
- package/dist/serialization/resources/crm/types/UpsertCrmProductResponse.js +45 -0
- package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.d.ts +14 -0
- package/dist/serialization/resources/crm/types/UpsertDealLineItemAssociationResponse.js +45 -0
- package/dist/serialization/resources/crm/types/UpsertLineItemResponse.d.ts +14 -0
- package/dist/serialization/resources/crm/types/UpsertLineItemResponse.js +45 -0
- package/dist/serialization/resources/crm/types/index.d.ts +6 -0
- package/dist/serialization/resources/crm/types/index.js +22 -0
- package/dist/serialization/resources/dataexports/client/index.js +17 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/dist/serialization/resources/dataexports/index.js +18 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/dist/serialization/resources/dataexports/types/index.js +17 -0
- package/dist/serialization/resources/entitlements/client/index.js +17 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +55 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +69 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +53 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +67 -0
- package/dist/serialization/resources/entitlements/client/requests/index.js +11 -0
- package/dist/serialization/resources/entitlements/index.js +18 -0
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesParams.js +51 -0
- package/dist/serialization/resources/entitlements/types/CountCompanyOverridesResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesParams.js +46 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureCompaniesResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +49 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsersParams.js +46 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsersResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +51 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +41 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/DeleteCompanyOverrideResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/DeletePlanEntitlementResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/GetCompanyOverrideResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +43 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/GetPlanEntitlementResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/ListCompanyOverridesParams.js +51 -0
- package/dist/serialization/resources/entitlements/types/ListCompanyOverridesResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesParams.js +46 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureCompaniesResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +49 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsersParams.js +46 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsersResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +51 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsResponse.js +46 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +41 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementResponse.js +45 -0
- package/dist/serialization/resources/entitlements/types/index.js +60 -0
- package/dist/serialization/resources/events/client/index.js +17 -0
- package/dist/serialization/resources/events/client/requests/CreateEventBatchRequestBody.js +44 -0
- package/dist/serialization/resources/events/client/requests/index.js +5 -0
- package/dist/serialization/resources/events/index.js +18 -0
- package/dist/serialization/resources/events/types/CreateEventBatchResponse.js +45 -0
- package/dist/serialization/resources/events/types/CreateEventResponse.js +45 -0
- package/dist/serialization/resources/events/types/GetEventResponse.js +45 -0
- package/dist/serialization/resources/events/types/GetEventSummariesParams.js +46 -0
- package/dist/serialization/resources/events/types/GetEventSummariesResponse.js +46 -0
- package/dist/serialization/resources/events/types/GetSegmentIntegrationStatusResponse.js +45 -0
- package/dist/serialization/resources/events/types/ListEventsParams.js +50 -0
- package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.d.ts +10 -0
- package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.js +41 -0
- package/dist/serialization/resources/events/types/ListEventsResponse.js +46 -0
- package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +10 -0
- package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +41 -0
- package/dist/serialization/resources/events/types/index.js +26 -0
- package/dist/serialization/resources/features/client/index.js +17 -0
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +56 -0
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +56 -0
- package/dist/serialization/resources/features/client/requests/UpdateFlagRulesRequestBody.js +44 -0
- package/dist/serialization/resources/features/client/requests/index.js +9 -0
- package/dist/serialization/resources/features/index.js +18 -0
- package/dist/serialization/resources/features/types/CheckFlagResponse.js +45 -0
- package/dist/serialization/resources/features/types/CheckFlagsResponse.js +45 -0
- package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.d.ts +14 -0
- package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.js +45 -0
- package/dist/serialization/resources/features/types/CountAudienceUsersResponse.d.ts +14 -0
- package/dist/serialization/resources/features/types/CountAudienceUsersResponse.js +45 -0
- package/dist/serialization/resources/features/types/CountFeaturesParams.js +50 -0
- package/dist/serialization/resources/features/types/CountFeaturesResponse.js +46 -0
- package/dist/serialization/resources/features/types/CountFlagsParams.js +47 -0
- package/dist/serialization/resources/features/types/CountFlagsResponse.js +46 -0
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.d.ts +10 -0
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyFeatureType.js +41 -0
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/dist/serialization/resources/features/types/CreateFeatureResponse.js +45 -0
- package/dist/serialization/resources/features/types/CreateFlagResponse.js +45 -0
- package/dist/serialization/resources/features/types/DeleteFeatureResponse.js +45 -0
- package/dist/serialization/resources/features/types/DeleteFlagResponse.js +45 -0
- package/dist/serialization/resources/features/types/GetFeatureResponse.js +45 -0
- package/dist/serialization/resources/features/types/GetFlagResponse.js +45 -0
- package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.d.ts +14 -0
- package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.js +45 -0
- package/dist/serialization/resources/features/types/ListAudienceUsersResponse.d.ts +14 -0
- package/dist/serialization/resources/features/types/ListAudienceUsersResponse.js +45 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.js +50 -0
- package/dist/serialization/resources/features/types/ListFeaturesResponse.js +46 -0
- package/dist/serialization/resources/features/types/ListFlagsParams.js +47 -0
- package/dist/serialization/resources/features/types/ListFlagsResponse.js +46 -0
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.d.ts +10 -0
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyFeatureType.js +41 -0
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/dist/serialization/resources/features/types/UpdateFeatureResponse.js +45 -0
- package/dist/serialization/resources/features/types/UpdateFlagResponse.js +45 -0
- package/dist/serialization/resources/features/types/UpdateFlagRulesResponse.js +45 -0
- package/dist/serialization/resources/features/types/index.js +43 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +84 -0
- package/dist/serialization/resources/planbundle/client/index.d.ts +1 -0
- package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +18 -0
- package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +18 -0
- package/dist/serialization/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/types/CreatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/index.js +17 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +53 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +53 -0
- package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/dist/serialization/resources/plangroups/index.js +18 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +45 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +45 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +45 -0
- package/dist/serialization/resources/plangroups/types/index.js +19 -0
- package/dist/serialization/resources/plans/client/index.js +17 -0
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +7 -4
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +47 -0
- 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.d.ts +15 -0
- package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.js +46 -0
- package/dist/serialization/resources/plans/client/requests/UpdateCompanyPlansRequestBody.js +44 -0
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +5 -2
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +45 -0
- 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 +7 -4
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +54 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +0 -3
- package/dist/serialization/resources/plans/client/requests/index.js +17 -0
- package/dist/serialization/resources/plans/index.js +18 -0
- 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 +53 -0
- package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/CountPlansRequestPlanType.js +41 -0
- package/dist/serialization/resources/plans/types/CountPlansResponse.js +46 -0
- package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/CountPlansResponseParamsPlanType.js +41 -0
- package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/CreatePlanRequestBodyPlanType.js +41 -0
- package/dist/serialization/resources/plans/types/CreatePlanResponse.js +45 -0
- 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.d.ts +14 -0
- package/dist/serialization/resources/plans/types/DeleteAudienceResponse.js +45 -0
- package/dist/serialization/resources/plans/types/DeletePlanResponse.js +45 -0
- 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.d.ts +14 -0
- package/dist/serialization/resources/plans/types/GetAudienceResponse.js +45 -0
- package/dist/serialization/resources/plans/types/GetPlanResponse.js +45 -0
- 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 +53 -0
- package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/ListPlansRequestPlanType.js +41 -0
- package/dist/serialization/resources/plans/types/ListPlansResponse.js +46 -0
- package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/ListPlansResponseParamsPlanType.js +41 -0
- package/dist/serialization/resources/plans/types/UpdateAudienceResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/UpdateAudienceResponse.js +45 -0
- package/dist/serialization/resources/plans/types/UpdateCompanyPlansResponse.js +45 -0
- package/dist/serialization/resources/plans/types/UpdatePlanResponse.js +45 -0
- 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 +45 -0
- package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +41 -0
- package/dist/serialization/resources/plans/types/index.js +43 -0
- package/dist/serialization/resources/webhooks/client/index.js +17 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +48 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +50 -0
- package/dist/serialization/resources/webhooks/client/requests/index.js +7 -0
- package/dist/serialization/resources/webhooks/index.js +18 -0
- package/dist/serialization/resources/webhooks/types/CountWebhookEventsParams.js +47 -0
- package/dist/serialization/resources/webhooks/types/CountWebhookEventsResponse.js +46 -0
- package/dist/serialization/resources/webhooks/types/CountWebhooksParams.js +45 -0
- package/dist/serialization/resources/webhooks/types/CountWebhooksResponse.js +46 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +70 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookResponse.js +45 -0
- package/dist/serialization/resources/webhooks/types/DeleteWebhookResponse.js +45 -0
- package/dist/serialization/resources/webhooks/types/GetWebhookEventResponse.js +45 -0
- package/dist/serialization/resources/webhooks/types/GetWebhookResponse.js +45 -0
- package/dist/serialization/resources/webhooks/types/ListWebhookEventsParams.js +47 -0
- package/dist/serialization/resources/webhooks/types/ListWebhookEventsResponse.js +46 -0
- package/dist/serialization/resources/webhooks/types/ListWebhooksParams.js +45 -0
- package/dist/serialization/resources/webhooks/types/ListWebhooksResponse.js +46 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +70 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.d.ts +10 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyStatus.js +41 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookResponse.js +45 -0
- package/dist/serialization/resources/webhooks/types/index.js +32 -0
- package/dist/serialization/types/ApiError.js +43 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.js +51 -0
- package/dist/serialization/types/ApiKeyRequestListResponseData.js +58 -0
- package/dist/serialization/types/ApiKeyRequestResponseData.js +61 -0
- package/dist/serialization/types/ApiKeyResponseData.js +50 -0
- package/dist/serialization/types/AudienceRequestBody.d.ts +18 -0
- package/dist/serialization/types/AudienceRequestBody.js +49 -0
- package/dist/serialization/types/BillingCouponResponseData.js +58 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.js +55 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.js +60 -0
- package/dist/serialization/types/BillingCreditResponseData.js +59 -0
- package/dist/serialization/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingCustomerResponseData.js +50 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +48 -0
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.js +52 -0
- package/dist/serialization/types/BillingMeterResponseData.js +47 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.js +51 -0
- package/dist/serialization/types/BillingPriceResponseData.js +49 -0
- package/dist/serialization/types/BillingPriceView.js +64 -0
- package/dist/serialization/types/BillingProductDetailResponseData.js +57 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +62 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +53 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +57 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/dist/serialization/types/BillingProductPricing.js +53 -0
- package/dist/serialization/types/BillingProductPricingUsageType.d.ts +10 -0
- package/dist/serialization/types/BillingProductPricingUsageType.js +41 -0
- package/dist/serialization/types/BillingProductResponseData.js +54 -0
- package/dist/serialization/types/BillingSubscriptionDiscount.js +49 -0
- package/dist/serialization/types/BillingSubscriptionDiscountView.js +56 -0
- package/dist/serialization/types/BillingSubscriptionResponseData.js +60 -0
- package/dist/serialization/types/BillingSubscriptionView.js +68 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +55 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.js +54 -0
- package/dist/serialization/types/CheckFlagRequestBody.js +44 -0
- package/dist/serialization/types/CheckFlagResponseData.js +56 -0
- package/dist/serialization/types/CheckFlagsResponseData.js +44 -0
- package/dist/serialization/types/CheckoutDataResponseData.js +59 -0
- package/dist/serialization/types/CompanyCrmDealsResponseData.d.ts +17 -0
- package/dist/serialization/types/CompanyCrmDealsResponseData.js +48 -0
- package/dist/serialization/types/CompanyDetailResponseData.js +68 -0
- package/dist/serialization/types/CompanyEventPeriodMetricsResponseData.js +53 -0
- package/dist/serialization/types/CompanyMembershipDetailResponseData.js +49 -0
- package/dist/serialization/types/CompanyMembershipResponseData.js +47 -0
- package/dist/serialization/types/CompanyOverrideResponseData.js +64 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +75 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +51 -0
- package/dist/serialization/types/CompanyResponseData.js +49 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +60 -0
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.js +70 -0
- package/dist/serialization/types/CompatiblePlans.js +44 -0
- package/dist/serialization/types/CompatiblePlansResponseData.js +44 -0
- package/dist/serialization/types/ComponentCapabilities.js +44 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +66 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +67 -0
- package/dist/serialization/types/ComponentResponseData.js +49 -0
- package/dist/serialization/types/CountResponse.js +43 -0
- package/dist/serialization/types/CouponRequestBody.js +50 -0
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +31 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +47 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +39 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.js +53 -0
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +41 -0
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +41 -0
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.d.ts +10 -0
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +41 -0
- package/dist/serialization/types/CreateEventRequestBody.js +47 -0
- package/dist/serialization/types/CreateEventRequestBodyEventType.d.ts +10 -0
- package/dist/serialization/types/CreateEventRequestBodyEventType.js +41 -0
- package/dist/serialization/types/CreateFlagRequestBody.js +49 -0
- package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.js +47 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +57 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +50 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +41 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +41 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +41 -0
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +50 -0
- package/dist/serialization/types/CreateOrUpdateRuleRequestBody.js +52 -0
- package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.js +48 -0
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +13 -0
- package/dist/serialization/types/CreatePriceTierRequestBody.js +46 -0
- package/dist/serialization/types/CreditBundlePurchaseResponseData.js +46 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CrmDealLineItem.d.ts +24 -0
- package/dist/serialization/types/CrmDealLineItem.js +55 -0
- package/dist/serialization/types/CrmDealResponseData.d.ts +22 -0
- package/dist/serialization/types/CrmDealResponseData.js +53 -0
- package/dist/serialization/types/CrmLineItemResponseData.d.ts +17 -0
- package/dist/serialization/types/CrmLineItemResponseData.js +48 -0
- package/dist/serialization/types/CrmProductResponseData.d.ts +21 -0
- package/dist/serialization/types/CrmProductResponseData.js +52 -0
- package/dist/serialization/types/CustomPlanConfig.js +45 -0
- package/dist/serialization/types/CustomPlanViewConfigResponseData.js +45 -0
- package/dist/serialization/types/DataExportResponseData.js +51 -0
- package/dist/serialization/types/Decimal.d.ts +10 -0
- package/dist/serialization/types/Decimal.js +41 -0
- package/dist/serialization/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +9 -0
- package/dist/serialization/types/DeleteResponse.js +43 -0
- package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/dist/serialization/types/EntitlementsInPlan.js +44 -0
- package/dist/serialization/types/EntityKeyDefinitionResponseData.js +47 -0
- package/dist/serialization/types/EntityKeyDetailResponseData.js +53 -0
- package/dist/serialization/types/EntityKeyResponseData.js +51 -0
- package/dist/serialization/types/EntityTraitDefinitionResponseData.js +49 -0
- package/dist/serialization/types/EntityTraitDetailResponseData.js +50 -0
- package/dist/serialization/types/EntityTraitResponseData.js +48 -0
- package/dist/serialization/types/EntityTraitValue.js +44 -0
- package/dist/serialization/types/EnvironmentDetailResponseData.js +49 -0
- package/dist/serialization/types/EnvironmentResponseData.js +47 -0
- package/dist/serialization/types/EventBody.js +44 -0
- package/dist/serialization/types/EventBodyFlagCheck.js +52 -0
- package/dist/serialization/types/EventBodyIdentify.js +47 -0
- package/dist/serialization/types/EventBodyIdentifyCompany.js +45 -0
- package/dist/serialization/types/EventBodyTrack.js +47 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/EventDetailResponseData.js +65 -0
- package/dist/serialization/types/EventResponseData.d.ts +1 -1
- package/dist/serialization/types/EventResponseData.js +61 -0
- package/dist/serialization/types/EventSummaryResponseData.js +48 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +59 -0
- package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.d.ts +10 -0
- package/dist/serialization/types/FeatureCompanyResponseDataAllocationType.js +41 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +60 -0
- package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.d.ts +10 -0
- package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.js +41 -0
- package/dist/serialization/types/FeatureDetailResponseData.js +63 -0
- package/dist/serialization/types/FeatureResponseData.js +55 -0
- package/dist/serialization/types/FeatureUsageDataResponseData.js +51 -0
- package/dist/serialization/types/FeatureUsageDetailResponseData.js +44 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +62 -0
- package/dist/serialization/types/FeatureUsageResponseDataAllocationType.d.ts +10 -0
- package/dist/serialization/types/FeatureUsageResponseDataAllocationType.js +41 -0
- package/dist/serialization/types/FlagDetailResponseData.js +57 -0
- package/dist/serialization/types/FlagResponseData.js +52 -0
- package/dist/serialization/types/GenericPreviewObject.js +46 -0
- package/dist/serialization/types/InvoiceRequestBody.js +53 -0
- package/dist/serialization/types/InvoiceResponseData.js +59 -0
- package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.js +50 -0
- package/dist/serialization/types/KeysRequestBody.js +43 -0
- package/dist/serialization/types/MeterRequestBody.js +45 -0
- package/dist/serialization/types/OrderedPlansInGroup.js +45 -0
- package/dist/serialization/types/PaginationFilter.d.ts +13 -0
- package/dist/serialization/types/PaginationFilter.js +44 -0
- package/dist/serialization/types/PaymentMethodRequestBody.js +53 -0
- package/dist/serialization/types/PaymentMethodResponseData.js +59 -0
- package/dist/serialization/types/PlanAudienceDetailResponseData.d.ts +25 -0
- package/dist/serialization/types/PlanAudienceDetailResponseData.js +56 -0
- package/dist/serialization/types/PlanAudienceResponseData.d.ts +21 -0
- package/dist/serialization/types/PlanAudienceResponseData.js +52 -0
- package/dist/serialization/types/PlanBundleAction.d.ts +7 -0
- package/dist/serialization/types/PlanBundleCreditGrantRequestBody.d.ts +17 -0
- package/dist/serialization/types/PlanBundleEntitlementRequestBody.d.ts +13 -0
- package/dist/serialization/types/PlanBundleResponseData.d.ts +18 -0
- package/dist/serialization/types/PlanChangeSubscriptionAction.d.ts +1 -1
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanDetailResponseData.js +65 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +72 -0
- package/dist/serialization/types/PlanEntitlementsOrder.js +44 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +55 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +71 -0
- package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.js +45 -0
- package/dist/serialization/types/PlanGroupResponseData.js +51 -0
- package/dist/serialization/types/PlanResponseData.js +50 -0
- package/dist/serialization/types/PlanTraitResponseData.js +50 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +21 -0
- package/dist/serialization/types/PlanVersionStatus.d.ts +7 -0
- package/dist/serialization/types/PreviewObject.js +46 -0
- package/dist/serialization/types/PreviewObjectResponseData.js +46 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +55 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/dist/serialization/types/QuickstartResp.js +43 -0
- package/dist/serialization/types/RawEventBatchResponseData.js +44 -0
- package/dist/serialization/types/RawEventResponseData.d.ts +1 -1
- package/dist/serialization/types/RawEventResponseData.js +47 -0
- package/dist/serialization/types/RuleConditionDetailResponseData.js +66 -0
- package/dist/serialization/types/RuleConditionGroupDetailResponseData.js +51 -0
- package/dist/serialization/types/RuleConditionGroupResponseData.js +49 -0
- package/dist/serialization/types/RuleConditionResponseData.js +61 -0
- package/dist/serialization/types/RuleDetailResponseData.js +56 -0
- package/dist/serialization/types/RuleResponseData.js +52 -0
- package/dist/serialization/types/RulesDetailResponseData.js +46 -0
- package/dist/serialization/types/SegmentStatusResp.js +45 -0
- package/dist/serialization/types/StripeEmbedInfo.js +44 -0
- package/dist/serialization/types/TemporaryAccessTokenResponseData.js +49 -0
- package/dist/serialization/types/UpdateAddOnRequestBody.js +44 -0
- package/dist/serialization/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +10 -10
- package/dist/serialization/types/UpdateCreditBundleRequestBody.js +44 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +52 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +41 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +41 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +10 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +41 -0
- package/dist/serialization/types/UpdatePayInAdvanceRequestBody.js +44 -0
- package/dist/serialization/types/UpdatePlanRequestBody.d.ts +11 -0
- package/dist/serialization/types/UpdateRuleRequestBody.js +49 -0
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +20 -0
- package/dist/serialization/types/UpsertCompanyRequestBody.js +48 -0
- package/dist/serialization/types/UpsertTraitRequestBody.js +47 -0
- package/dist/serialization/types/UpsertUserRequestBody.js +54 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +50 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +57 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +41 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +54 -0
- package/dist/serialization/types/UserDetailResponseData.js +55 -0
- package/dist/serialization/types/UserResponseData.js +48 -0
- package/dist/serialization/types/WebhookEventDetailResponseData.js +53 -0
- package/dist/serialization/types/WebhookEventResponseData.js +51 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/WebhookResponseData.js +52 -0
- package/dist/serialization/types/index.d.ts +15 -0
- package/dist/serialization/types/index.js +188 -0
- package/dist/webhooks.js +170 -0
- package/dist/wrapper.d.ts +10 -1
- package/dist/wrapper.js +178 -0
- package/package.json +66 -66
package/dist/cache.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LocalCache = void 0;
|
|
13
|
+
const timers_1 = require("timers");
|
|
14
|
+
class LocalCache {
|
|
15
|
+
constructor({ maxItems = 1000, ttl = 5000 } = {}) {
|
|
16
|
+
this.accessCounter = 0;
|
|
17
|
+
this.cache = new Map();
|
|
18
|
+
this.maxItems = maxItems;
|
|
19
|
+
this.defaultTTL = ttl;
|
|
20
|
+
}
|
|
21
|
+
get(key) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const item = this.cache.get(key);
|
|
24
|
+
if (!item)
|
|
25
|
+
return undefined;
|
|
26
|
+
// Check if the item has expired
|
|
27
|
+
if (item.expiration <= Date.now()) {
|
|
28
|
+
this.evictItem(key, item);
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
// Update the access counter for LRU eviction
|
|
32
|
+
this.accessCounter++;
|
|
33
|
+
item.accessCounter = this.accessCounter;
|
|
34
|
+
this.cache.set(key, item);
|
|
35
|
+
return item.value;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
set(key, value, ttlOverride) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
// If maxItems is 0, caching is disabled
|
|
41
|
+
if (this.maxItems === 0)
|
|
42
|
+
return;
|
|
43
|
+
const ttl = ttlOverride !== null && ttlOverride !== void 0 ? ttlOverride : this.defaultTTL;
|
|
44
|
+
// Check if the key already exists in the cache
|
|
45
|
+
const existingItem = this.cache.get(key);
|
|
46
|
+
if (existingItem) {
|
|
47
|
+
this.evictItem(key, existingItem);
|
|
48
|
+
}
|
|
49
|
+
// Evict expired items
|
|
50
|
+
this.evictExpiredItems();
|
|
51
|
+
// Evict LRU items if the cache size exceeds the max items
|
|
52
|
+
this.evictLRUItems();
|
|
53
|
+
// Add the new item to the cache
|
|
54
|
+
this.accessCounter++;
|
|
55
|
+
const newItem = {
|
|
56
|
+
value,
|
|
57
|
+
accessCounter: this.accessCounter,
|
|
58
|
+
expiration: Date.now() + ttl,
|
|
59
|
+
timeoutId: (0, timers_1.setTimeout)(() => this.evictItem(key, newItem), ttl),
|
|
60
|
+
};
|
|
61
|
+
this.cache.set(key, newItem);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
resetCache() {
|
|
65
|
+
this.cache.forEach((item) => {
|
|
66
|
+
if (item.timeoutId) {
|
|
67
|
+
(0, timers_1.clearTimeout)(item.timeoutId);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
this.cache.clear();
|
|
71
|
+
this.accessCounter = 0;
|
|
72
|
+
}
|
|
73
|
+
evictItem(key, item) {
|
|
74
|
+
if (item.timeoutId) {
|
|
75
|
+
(0, timers_1.clearTimeout)(item.timeoutId);
|
|
76
|
+
}
|
|
77
|
+
this.cache.delete(key);
|
|
78
|
+
}
|
|
79
|
+
evictExpiredItems() {
|
|
80
|
+
this.cache.forEach((item, key) => {
|
|
81
|
+
if (item.expiration <= Date.now()) {
|
|
82
|
+
this.evictItem(key, item);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
evictLRUItems() {
|
|
87
|
+
while (this.cache.size >= this.maxItems) {
|
|
88
|
+
let oldestKey;
|
|
89
|
+
let oldestAccessCounter = Number.MAX_SAFE_INTEGER;
|
|
90
|
+
this.cache.forEach((item, k) => {
|
|
91
|
+
if (item.accessCounter < oldestAccessCounter) {
|
|
92
|
+
oldestKey = k;
|
|
93
|
+
oldestAccessCounter = item.accessCounter;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
if (oldestKey) {
|
|
97
|
+
this.evictItem(oldestKey, this.cache.get(oldestKey));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.LocalCache = LocalCache;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.fetcher = void 0;
|
|
13
|
+
exports.fetcherImpl = fetcherImpl;
|
|
14
|
+
const json_1 = require("../json");
|
|
15
|
+
const RawResponse_1 = require("./RawResponse");
|
|
16
|
+
const createRequestUrl_1 = require("./createRequestUrl");
|
|
17
|
+
const getFetchFn_1 = require("./getFetchFn");
|
|
18
|
+
const getRequestBody_1 = require("./getRequestBody");
|
|
19
|
+
const getResponseBody_1 = require("./getResponseBody");
|
|
20
|
+
const makeRequest_1 = require("./makeRequest");
|
|
21
|
+
const requestWithRetries_1 = require("./requestWithRetries");
|
|
22
|
+
function fetcherImpl(args) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const headers = {};
|
|
25
|
+
if (args.body !== undefined && args.contentType != null) {
|
|
26
|
+
headers["Content-Type"] = args.contentType;
|
|
27
|
+
}
|
|
28
|
+
if (args.headers != null) {
|
|
29
|
+
for (const [key, value] of Object.entries(args.headers)) {
|
|
30
|
+
if (value != null) {
|
|
31
|
+
headers[key] = value;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const url = (0, createRequestUrl_1.createRequestUrl)(args.url, args.queryParameters);
|
|
36
|
+
const requestBody = yield (0, getRequestBody_1.getRequestBody)({
|
|
37
|
+
body: args.body,
|
|
38
|
+
type: args.requestType === "json" ? "json" : "other",
|
|
39
|
+
});
|
|
40
|
+
const fetchFn = yield (0, getFetchFn_1.getFetchFn)();
|
|
41
|
+
try {
|
|
42
|
+
const response = yield (0, requestWithRetries_1.requestWithRetries)(() => __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return (0, makeRequest_1.makeRequest)(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
|
|
44
|
+
}), args.maxRetries);
|
|
45
|
+
const responseBody = yield (0, getResponseBody_1.getResponseBody)(response, args.responseType);
|
|
46
|
+
if (response.status >= 200 && response.status < 400) {
|
|
47
|
+
return {
|
|
48
|
+
ok: true,
|
|
49
|
+
body: responseBody,
|
|
50
|
+
headers: response.headers,
|
|
51
|
+
rawResponse: (0, RawResponse_1.toRawResponse)(response),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return {
|
|
56
|
+
ok: false,
|
|
57
|
+
error: {
|
|
58
|
+
reason: "status-code",
|
|
59
|
+
statusCode: response.status,
|
|
60
|
+
body: responseBody,
|
|
61
|
+
},
|
|
62
|
+
rawResponse: (0, RawResponse_1.toRawResponse)(response),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
if (args.abortSignal != null && args.abortSignal.aborted) {
|
|
68
|
+
return {
|
|
69
|
+
ok: false,
|
|
70
|
+
error: {
|
|
71
|
+
reason: "unknown",
|
|
72
|
+
errorMessage: "The user aborted a request",
|
|
73
|
+
},
|
|
74
|
+
rawResponse: RawResponse_1.abortRawResponse,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
else if (error instanceof Error && error.name === "AbortError") {
|
|
78
|
+
return {
|
|
79
|
+
ok: false,
|
|
80
|
+
error: {
|
|
81
|
+
reason: "timeout",
|
|
82
|
+
},
|
|
83
|
+
rawResponse: RawResponse_1.abortRawResponse,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
else if (error instanceof Error) {
|
|
87
|
+
return {
|
|
88
|
+
ok: false,
|
|
89
|
+
error: {
|
|
90
|
+
reason: "unknown",
|
|
91
|
+
errorMessage: error.message,
|
|
92
|
+
},
|
|
93
|
+
rawResponse: RawResponse_1.unknownRawResponse,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
ok: false,
|
|
98
|
+
error: {
|
|
99
|
+
reason: "unknown",
|
|
100
|
+
errorMessage: (0, json_1.toJson)(error),
|
|
101
|
+
},
|
|
102
|
+
rawResponse: RawResponse_1.unknownRawResponse,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
exports.fetcher = fetcherImpl;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Headers = void 0;
|
|
4
|
+
let Headers;
|
|
5
|
+
if (typeof globalThis.Headers !== "undefined") {
|
|
6
|
+
exports.Headers = Headers = globalThis.Headers;
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
exports.Headers = Headers = class Headers {
|
|
10
|
+
constructor(init) {
|
|
11
|
+
this.headers = new Map();
|
|
12
|
+
if (init) {
|
|
13
|
+
if (init instanceof Headers) {
|
|
14
|
+
init.forEach((value, key) => this.append(key, value));
|
|
15
|
+
}
|
|
16
|
+
else if (Array.isArray(init)) {
|
|
17
|
+
for (const [key, value] of init) {
|
|
18
|
+
if (typeof key === "string" && typeof value === "string") {
|
|
19
|
+
this.append(key, value);
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
throw new TypeError("Each header entry must be a [string, string] tuple");
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
for (const [key, value] of Object.entries(init)) {
|
|
28
|
+
if (typeof value === "string") {
|
|
29
|
+
this.append(key, value);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
throw new TypeError("Header values must be strings");
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
append(name, value) {
|
|
39
|
+
const key = name.toLowerCase();
|
|
40
|
+
const existing = this.headers.get(key) || [];
|
|
41
|
+
this.headers.set(key, [...existing, value]);
|
|
42
|
+
}
|
|
43
|
+
delete(name) {
|
|
44
|
+
const key = name.toLowerCase();
|
|
45
|
+
this.headers.delete(key);
|
|
46
|
+
}
|
|
47
|
+
get(name) {
|
|
48
|
+
const key = name.toLowerCase();
|
|
49
|
+
const values = this.headers.get(key);
|
|
50
|
+
return values ? values.join(", ") : null;
|
|
51
|
+
}
|
|
52
|
+
has(name) {
|
|
53
|
+
const key = name.toLowerCase();
|
|
54
|
+
return this.headers.has(key);
|
|
55
|
+
}
|
|
56
|
+
set(name, value) {
|
|
57
|
+
const key = name.toLowerCase();
|
|
58
|
+
this.headers.set(key, [value]);
|
|
59
|
+
}
|
|
60
|
+
forEach(callbackfn, thisArg) {
|
|
61
|
+
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
62
|
+
this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
|
|
63
|
+
}
|
|
64
|
+
getSetCookie() {
|
|
65
|
+
return this.headers.get("set-cookie") || [];
|
|
66
|
+
}
|
|
67
|
+
*entries() {
|
|
68
|
+
for (const [key, values] of this.headers.entries()) {
|
|
69
|
+
yield [key, values.join(", ")];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
*keys() {
|
|
73
|
+
yield* this.headers.keys();
|
|
74
|
+
}
|
|
75
|
+
*values() {
|
|
76
|
+
for (const values of this.headers.values()) {
|
|
77
|
+
yield values.join(", ");
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
[Symbol.iterator]() {
|
|
81
|
+
return this.entries();
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HttpResponsePromise = void 0;
|
|
13
|
+
/**
|
|
14
|
+
* A promise that returns the parsed response and lets you retrieve the raw response too.
|
|
15
|
+
*/
|
|
16
|
+
class HttpResponsePromise extends Promise {
|
|
17
|
+
constructor(promise) {
|
|
18
|
+
// Initialize with a no-op to avoid premature parsing
|
|
19
|
+
super((resolve) => {
|
|
20
|
+
resolve(undefined);
|
|
21
|
+
});
|
|
22
|
+
this.innerPromise = promise;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates an `HttpResponsePromise` from a function that returns a promise.
|
|
26
|
+
*
|
|
27
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
28
|
+
* @param args - Arguments to pass to the function.
|
|
29
|
+
* @returns An `HttpResponsePromise` instance.
|
|
30
|
+
*/
|
|
31
|
+
static fromFunction(fn, ...args) {
|
|
32
|
+
return new HttpResponsePromise(fn(...args));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
|
|
36
|
+
*
|
|
37
|
+
* @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
|
|
38
|
+
* @returns A function that returns an `HttpResponsePromise` instance.
|
|
39
|
+
*/
|
|
40
|
+
static interceptFunction(fn) {
|
|
41
|
+
return (...args) => {
|
|
42
|
+
return HttpResponsePromise.fromPromise(fn(...args));
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Creates an `HttpResponsePromise` from an existing promise.
|
|
47
|
+
*
|
|
48
|
+
* @param promise - A promise resolving to a `WithRawResponse` object.
|
|
49
|
+
* @returns An `HttpResponsePromise` instance.
|
|
50
|
+
*/
|
|
51
|
+
static fromPromise(promise) {
|
|
52
|
+
return new HttpResponsePromise(promise);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Creates an `HttpResponsePromise` from an executor function.
|
|
56
|
+
*
|
|
57
|
+
* @param executor - A function that takes resolve and reject callbacks to create a promise.
|
|
58
|
+
* @returns An `HttpResponsePromise` instance.
|
|
59
|
+
*/
|
|
60
|
+
static fromExecutor(executor) {
|
|
61
|
+
const promise = new Promise(executor);
|
|
62
|
+
return new HttpResponsePromise(promise);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Creates an `HttpResponsePromise` from a resolved result.
|
|
66
|
+
*
|
|
67
|
+
* @param result - A `WithRawResponse` object to resolve immediately.
|
|
68
|
+
* @returns An `HttpResponsePromise` instance.
|
|
69
|
+
*/
|
|
70
|
+
static fromResult(result) {
|
|
71
|
+
const promise = Promise.resolve(result);
|
|
72
|
+
return new HttpResponsePromise(promise);
|
|
73
|
+
}
|
|
74
|
+
unwrap() {
|
|
75
|
+
if (!this.unwrappedPromise) {
|
|
76
|
+
this.unwrappedPromise = this.innerPromise.then(({ data }) => data);
|
|
77
|
+
}
|
|
78
|
+
return this.unwrappedPromise;
|
|
79
|
+
}
|
|
80
|
+
/** @inheritdoc */
|
|
81
|
+
then(onfulfilled, onrejected) {
|
|
82
|
+
return this.unwrap().then(onfulfilled, onrejected);
|
|
83
|
+
}
|
|
84
|
+
/** @inheritdoc */
|
|
85
|
+
catch(onrejected) {
|
|
86
|
+
return this.unwrap().catch(onrejected);
|
|
87
|
+
}
|
|
88
|
+
/** @inheritdoc */
|
|
89
|
+
finally(onfinally) {
|
|
90
|
+
return this.unwrap().finally(onfinally);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Retrieves the data and raw response.
|
|
94
|
+
*
|
|
95
|
+
* @returns A promise resolving to a `WithRawResponse` object.
|
|
96
|
+
*/
|
|
97
|
+
withRawResponse() {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
return yield this.innerPromise;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.HttpResponsePromise = HttpResponsePromise;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unknownRawResponse = exports.abortRawResponse = void 0;
|
|
4
|
+
exports.toRawResponse = toRawResponse;
|
|
5
|
+
const Headers_1 = require("./Headers");
|
|
6
|
+
/**
|
|
7
|
+
* A raw response indicating that the request was aborted.
|
|
8
|
+
*/
|
|
9
|
+
exports.abortRawResponse = {
|
|
10
|
+
headers: new Headers_1.Headers(),
|
|
11
|
+
redirected: false,
|
|
12
|
+
status: 499,
|
|
13
|
+
statusText: "Client Closed Request",
|
|
14
|
+
type: "error",
|
|
15
|
+
url: "",
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A raw response indicating an unknown error.
|
|
19
|
+
*/
|
|
20
|
+
exports.unknownRawResponse = {
|
|
21
|
+
headers: new Headers_1.Headers(),
|
|
22
|
+
redirected: false,
|
|
23
|
+
status: 0,
|
|
24
|
+
statusText: "Unknown Error",
|
|
25
|
+
type: "error",
|
|
26
|
+
url: "",
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
|
|
30
|
+
* excluding the `body` and `bodyUsed` fields.
|
|
31
|
+
*
|
|
32
|
+
* @param response - The `RawResponse` object to convert.
|
|
33
|
+
* @returns A `RawResponse` object containing the extracted properties of the input response.
|
|
34
|
+
*/
|
|
35
|
+
function toRawResponse(response) {
|
|
36
|
+
return {
|
|
37
|
+
headers: response.headers,
|
|
38
|
+
redirected: response.redirected,
|
|
39
|
+
status: response.status,
|
|
40
|
+
statusText: response.statusText,
|
|
41
|
+
type: response.type,
|
|
42
|
+
url: response.url,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Supplier = void 0;
|
|
13
|
+
exports.Supplier = {
|
|
14
|
+
get: (supplier) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
if (typeof supplier === "function") {
|
|
16
|
+
return supplier();
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
return supplier;
|
|
20
|
+
}
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createRequestUrl = createRequestUrl;
|
|
7
|
+
const qs_1 = __importDefault(require("qs"));
|
|
8
|
+
function createRequestUrl(baseUrl, queryParameters) {
|
|
9
|
+
return Object.keys(queryParameters !== null && queryParameters !== void 0 ? queryParameters : {}).length > 0
|
|
10
|
+
? `${baseUrl}?${qs_1.default.stringify(queryParameters, { arrayFormat: "repeat" })}`
|
|
11
|
+
: baseUrl;
|
|
12
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.offlineFetcher = void 0;
|
|
13
|
+
exports.provideFetcher = provideFetcher;
|
|
14
|
+
const RawResponse_1 = require("./RawResponse");
|
|
15
|
+
const createRequestUrl_1 = require("./createRequestUrl");
|
|
16
|
+
const getFetchFn_1 = require("./getFetchFn");
|
|
17
|
+
const getRequestBody_1 = require("./getRequestBody");
|
|
18
|
+
const getResponseBody_1 = require("./getResponseBody");
|
|
19
|
+
const makeRequest_1 = require("./makeRequest");
|
|
20
|
+
const requestWithRetries_1 = require("./requestWithRetries");
|
|
21
|
+
const Headers_1 = require("./Headers");
|
|
22
|
+
function provideFetcher(defaultHeaders) {
|
|
23
|
+
return function fetcherImpl(args) {
|
|
24
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
const headers = {};
|
|
26
|
+
if (defaultHeaders) {
|
|
27
|
+
Object.assign(headers, defaultHeaders);
|
|
28
|
+
}
|
|
29
|
+
if (args.body !== undefined && args.contentType != null) {
|
|
30
|
+
headers["Content-Type"] = args.contentType;
|
|
31
|
+
}
|
|
32
|
+
if (args.headers != null) {
|
|
33
|
+
for (const [key, value] of Object.entries(args.headers)) {
|
|
34
|
+
if (value != null) {
|
|
35
|
+
headers[key] = value;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
const url = (0, createRequestUrl_1.createRequestUrl)(args.url, args.queryParameters);
|
|
40
|
+
let requestBody = yield (0, getRequestBody_1.getRequestBody)({
|
|
41
|
+
body: args.body,
|
|
42
|
+
type: args.requestType === "json" ? "json" : "other",
|
|
43
|
+
});
|
|
44
|
+
const fetchFn = yield (0, getFetchFn_1.getFetchFn)();
|
|
45
|
+
try {
|
|
46
|
+
const response = yield (0, requestWithRetries_1.requestWithRetries)(() => __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
return (0, makeRequest_1.makeRequest)(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
|
|
48
|
+
}), args.maxRetries);
|
|
49
|
+
let responseBody = yield (0, getResponseBody_1.getResponseBody)(response, args.responseType);
|
|
50
|
+
const rawResponse = (0, RawResponse_1.toRawResponse)(response);
|
|
51
|
+
if (response.status >= 200 && response.status < 400) {
|
|
52
|
+
return {
|
|
53
|
+
ok: true,
|
|
54
|
+
body: responseBody,
|
|
55
|
+
headers: response.headers,
|
|
56
|
+
rawResponse,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return {
|
|
61
|
+
ok: false,
|
|
62
|
+
error: {
|
|
63
|
+
reason: "status-code",
|
|
64
|
+
statusCode: response.status,
|
|
65
|
+
body: responseBody,
|
|
66
|
+
},
|
|
67
|
+
rawResponse,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
if (args.abortSignal != null && args.abortSignal.aborted) {
|
|
73
|
+
return {
|
|
74
|
+
ok: false,
|
|
75
|
+
error: {
|
|
76
|
+
reason: "unknown",
|
|
77
|
+
errorMessage: "The user aborted a request",
|
|
78
|
+
},
|
|
79
|
+
rawResponse: RawResponse_1.abortRawResponse,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
else if (error instanceof Error && error.name === "AbortError") {
|
|
83
|
+
return {
|
|
84
|
+
ok: false,
|
|
85
|
+
error: {
|
|
86
|
+
reason: "timeout",
|
|
87
|
+
},
|
|
88
|
+
rawResponse: RawResponse_1.abortRawResponse,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
else if (error instanceof Error) {
|
|
92
|
+
return {
|
|
93
|
+
ok: false,
|
|
94
|
+
error: {
|
|
95
|
+
reason: "unknown",
|
|
96
|
+
errorMessage: error.message,
|
|
97
|
+
},
|
|
98
|
+
rawResponse: RawResponse_1.unknownRawResponse,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
ok: false,
|
|
103
|
+
error: {
|
|
104
|
+
reason: "unknown",
|
|
105
|
+
errorMessage: JSON.stringify(error),
|
|
106
|
+
},
|
|
107
|
+
rawResponse: RawResponse_1.unknownRawResponse,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function offlineFetcherImpl(_args) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return {
|
|
116
|
+
ok: true,
|
|
117
|
+
body: {},
|
|
118
|
+
headers: {
|
|
119
|
+
"Content-Type": "application/json",
|
|
120
|
+
},
|
|
121
|
+
rawResponse: {
|
|
122
|
+
headers: new Headers_1.Headers(),
|
|
123
|
+
redirected: false,
|
|
124
|
+
status: 200,
|
|
125
|
+
statusText: "OK",
|
|
126
|
+
type: "basic",
|
|
127
|
+
url: "",
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
exports.offlineFetcher = offlineFetcherImpl;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
+
exports.getFetchFn = getFetchFn;
|
|
46
|
+
const runtime_1 = require("../runtime");
|
|
47
|
+
/**
|
|
48
|
+
* Returns a fetch function based on the runtime
|
|
49
|
+
*/
|
|
50
|
+
function getFetchFn() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
// In Node.js 18+ environments, use native fetch
|
|
53
|
+
if (runtime_1.RUNTIME.type === "node" && runtime_1.RUNTIME.parsedVersion != null && runtime_1.RUNTIME.parsedVersion >= 18) {
|
|
54
|
+
return fetch;
|
|
55
|
+
}
|
|
56
|
+
// In Node.js 18 or lower environments, the SDK always uses`node-fetch`.
|
|
57
|
+
if (runtime_1.RUNTIME.type === "node") {
|
|
58
|
+
return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
|
|
59
|
+
}
|
|
60
|
+
// Otherwise the SDK uses global fetch if available,
|
|
61
|
+
// and falls back to node-fetch.
|
|
62
|
+
if (typeof fetch == "function") {
|
|
63
|
+
return fetch;
|
|
64
|
+
}
|
|
65
|
+
// Defaults to node `node-fetch` if global fetch isn't available
|
|
66
|
+
return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
|
|
67
|
+
});
|
|
68
|
+
}
|