@schematichq/schematic-typescript-node 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -0
- package/Client.js +13 -8
- package/README.md +2 -0
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +2 -1
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +2 -1
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/InternalServerError.js +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +2 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accesstokens/client/Client.d.ts +3 -1
- package/api/resources/accesstokens/client/Client.js +30 -12
- package/api/resources/accounts/client/Client.d.ts +51 -14
- package/api/resources/accounts/client/Client.js +489 -175
- package/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/api/resources/accounts/types/index.d.ts +1 -0
- package/api/resources/accounts/types/index.js +1 -0
- package/api/resources/billing/client/Client.d.ts +64 -26
- package/api/resources/billing/client/Client.js +651 -259
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/index.d.ts +1 -1
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
- package/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/{dist/api/resources/billing/types/ListCustomersParams.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/{dist/api/resources/billing/types/ListCustomersResponse.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/api/resources/billing/types/index.d.ts +3 -2
- package/api/resources/billing/types/index.js +3 -2
- package/api/resources/checkout/client/Client.d.ts +11 -4
- package/api/resources/checkout/client/Client.js +113 -50
- package/api/resources/companies/client/Client.d.ts +95 -37
- package/api/resources/companies/client/Client.js +903 -391
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/api/resources/components/client/Client.d.ts +18 -7
- package/api/resources/components/client/Client.js +188 -89
- package/api/resources/crm/client/Client.d.ts +15 -5
- package/api/resources/crm/client/Client.js +151 -61
- package/api/resources/dataexports/client/Client.d.ts +58 -0
- package/api/resources/dataexports/client/Client.js +265 -0
- package/api/resources/dataexports/client/index.d.ts +1 -0
- package/api/resources/dataexports/client/index.js +17 -0
- package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/api/resources/dataexports/client/requests/index.js +2 -0
- package/api/resources/dataexports/index.d.ts +2 -0
- package/api/resources/dataexports/index.js +18 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/api/resources/dataexports/types/index.d.ts +1 -0
- package/api/resources/dataexports/types/index.js +17 -0
- package/api/resources/entitlements/client/Client.d.ts +53 -22
- package/api/resources/entitlements/client/Client.js +534 -239
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/api/resources/events/client/Client.d.ts +16 -6
- package/api/resources/events/client/Client.js +164 -74
- package/api/resources/features/client/Client.d.ts +52 -19
- package/api/resources/features/client/Client.js +533 -236
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/plangroups/client/Client.d.ts +7 -3
- package/api/resources/plangroups/client/Client.js +73 -37
- package/api/resources/plans/client/Client.d.ts +124 -11
- package/api/resources/plans/client/Client.js +1010 -171
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/api/resources/plans/client/requests/index.d.ts +4 -0
- package/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/index.d.ts +8 -0
- package/api/resources/plans/types/index.js +8 -0
- package/api/resources/webhooks/client/Client.d.ts +24 -9
- package/api/resources/webhooks/client/Client.js +249 -114
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/types/BillingPriceResponseData.d.ts +2 -0
- package/api/types/BillingPriceView.d.ts +7 -0
- package/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +2 -0
- package/api/types/BillingProductResponseData.d.ts +2 -0
- package/api/types/CheckFlagResponseData.d.ts +2 -0
- package/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/api/types/DataExportResponseData.d.ts +17 -0
- package/api/types/DataExportResponseData.js +5 -0
- package/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/api/types/EntitlementTriggerConfig.js +5 -0
- package/api/types/EventSummaryResponseData.d.ts +2 -2
- package/api/types/PlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanTraitResponseData.d.ts +16 -0
- package/api/types/PlanTraitResponseData.js +5 -0
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/api/types/QuickstartResp.d.ts +6 -0
- package/api/types/QuickstartResp.js +5 -0
- package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/api/types/WebhookResponseData.d.ts +2 -0
- package/api/types/index.d.ts +7 -0
- package/api/types/index.js +7 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/Fetcher.js +7 -0
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/custom.js +17 -0
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +2 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +2 -1
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.js +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +2 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +2 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accesstokens/client/Client.d.ts +3 -1
- package/dist/api/resources/accesstokens/client/Client.js +30 -12
- package/dist/api/resources/accounts/client/Client.d.ts +51 -14
- package/dist/api/resources/accounts/client/Client.js +489 -175
- package/dist/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/dist/api/resources/accounts/types/QuickstartResponse.js +5 -0
- package/dist/api/resources/accounts/types/index.d.ts +1 -0
- package/dist/api/resources/accounts/types/index.js +1 -0
- package/dist/api/resources/billing/client/Client.d.ts +64 -26
- package/dist/api/resources/billing/client/Client.js +651 -259
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/{api/resources/billing/types/ListCustomersParams.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/{api/resources/billing/types/ListCustomersResponse.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/dist/api/resources/billing/types/index.d.ts +3 -2
- package/dist/api/resources/billing/types/index.js +3 -2
- package/dist/api/resources/checkout/client/Client.d.ts +11 -4
- package/dist/api/resources/checkout/client/Client.js +113 -50
- package/dist/api/resources/companies/client/Client.d.ts +95 -37
- package/dist/api/resources/companies/client/Client.js +903 -391
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/api/resources/components/client/Client.d.ts +18 -7
- package/dist/api/resources/components/client/Client.js +188 -89
- package/dist/api/resources/crm/client/Client.d.ts +15 -5
- package/dist/api/resources/crm/client/Client.js +151 -61
- package/dist/api/resources/dataexports/client/Client.d.ts +58 -0
- package/dist/api/resources/dataexports/client/Client.js +265 -0
- package/dist/api/resources/dataexports/client/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/index.js +17 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
- package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/requests/index.js +2 -0
- package/dist/api/resources/dataexports/index.d.ts +2 -0
- package/dist/api/resources/dataexports/index.js +18 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/dist/api/resources/dataexports/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/types/index.js +17 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +53 -22
- package/dist/api/resources/entitlements/client/Client.js +534 -239
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/api/resources/events/client/Client.d.ts +16 -6
- package/dist/api/resources/events/client/Client.js +164 -74
- package/dist/api/resources/features/client/Client.d.ts +52 -19
- package/dist/api/resources/features/client/Client.js +533 -236
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +7 -3
- package/dist/api/resources/plangroups/client/Client.js +73 -37
- package/dist/api/resources/plans/client/Client.d.ts +124 -11
- package/dist/api/resources/plans/client/Client.js +1010 -171
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +4 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/index.d.ts +8 -0
- package/dist/api/resources/plans/types/index.js +8 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +24 -9
- package/dist/api/resources/webhooks/client/Client.js +249 -114
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +7 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +2 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/api/types/DataExportResponseData.d.ts +17 -0
- package/dist/api/types/DataExportResponseData.js +5 -0
- package/dist/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/dist/api/types/EntitlementTriggerConfig.js +5 -0
- package/dist/api/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/api/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanTraitResponseData.d.ts +16 -0
- package/dist/api/types/PlanTraitResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/dist/api/types/QuickstartResp.d.ts +6 -0
- package/dist/api/types/QuickstartResp.js +5 -0
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/dist/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/WebhookResponseData.d.ts +2 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/Fetcher.js +7 -0
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/custom.js +17 -0
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/errors/SchematicError.d.ts +4 -1
- package/dist/errors/SchematicError.js +4 -7
- package/dist/events.d.ts +4 -0
- package/dist/events.js +41 -5
- package/dist/events.test.js +50 -3
- package/dist/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/dist/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/index.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.js +1 -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/ListBillingProductsParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/dist/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
- package/dist/serialization/resources/billing/types/index.d.ts +3 -2
- package/dist/serialization/resources/billing/types/index.js +3 -2
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.js +1 -1
- package/dist/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/index.js +17 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/dist/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/dist/serialization/resources/dataexports/index.d.ts +2 -0
- package/dist/serialization/resources/dataexports/index.js +18 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/dist/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/types/index.js +17 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- 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/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/index.js +5 -1
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.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/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/UpdatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/index.d.ts +8 -0
- package/dist/serialization/resources/plans/types/index.js +8 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.js +2 -0
- package/dist/serialization/types/BillingPriceView.d.ts +7 -0
- package/dist/serialization/types/BillingPriceView.js +7 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductDetailResponseData.js +2 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +3 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
- package/dist/serialization/types/BillingProductPricing.js +2 -0
- package/dist/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductResponseData.js +2 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/dist/serialization/types/DataExportResponseData.d.ts +20 -0
- package/dist/serialization/types/DataExportResponseData.js +51 -0
- package/dist/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/dist/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/serialization/types/EventSummaryResponseData.js +2 -2
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanDetailResponseData.js +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +2 -0
- package/dist/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/dist/serialization/types/PlanTraitResponseData.js +50 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/dist/serialization/types/QuickstartResp.d.ts +12 -0
- package/dist/serialization/types/QuickstartResp.js +43 -0
- package/dist/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/dist/serialization/types/UpsertUserRequestBody.js +2 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +6 -0
- package/dist/serialization/types/WebhookResponseData.d.ts +2 -0
- package/dist/serialization/types/WebhookResponseData.js +2 -0
- package/dist/serialization/types/index.d.ts +7 -0
- package/dist/serialization/types/index.js +7 -0
- package/errors/SchematicError.d.ts +4 -1
- package/errors/SchematicError.js +4 -7
- package/events.d.ts +4 -0
- package/events.js +41 -5
- package/events.test.js +50 -3
- package/package.json +3 -2
- package/reference.md +412 -15
- package/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/serialization/resources/accounts/types/index.d.ts +1 -0
- package/serialization/resources/accounts/types/index.js +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
- package/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/serialization/resources/billing/types/CountCustomersParams.js +1 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +3 -2
- package/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
- package/serialization/resources/billing/types/index.d.ts +3 -2
- package/serialization/resources/billing/types/index.js +3 -2
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
- package/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupUserParams.js +1 -1
- package/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/index.js +17 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/serialization/resources/dataexports/index.d.ts +2 -0
- package/serialization/resources/dataexports/index.js +18 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/serialization/resources/dataexports/types/index.js +17 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
- package/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/serialization/resources/plans/client/requests/index.js +5 -1
- package/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/index.d.ts +8 -0
- package/serialization/resources/plans/types/index.js +8 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/serialization/types/BillingPriceResponseData.js +2 -0
- package/serialization/types/BillingPriceView.d.ts +7 -0
- package/serialization/types/BillingPriceView.js +7 -0
- package/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
- package/serialization/types/BillingProductDetailResponseData.js +2 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/serialization/types/BillingProductPriceResponseData.js +3 -0
- package/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/serialization/types/BillingProductPricing.d.ts +2 -0
- package/serialization/types/BillingProductPricing.js +2 -0
- package/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/serialization/types/BillingProductResponseData.js +2 -0
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/serialization/types/CompanyDetailResponseData.js +2 -1
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/serialization/types/DataExportResponseData.d.ts +20 -0
- package/serialization/types/DataExportResponseData.js +51 -0
- package/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/serialization/types/EventSummaryResponseData.js +2 -2
- package/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanDetailResponseData.js +2 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
- package/serialization/types/PlanEntitlementResponseData.js +2 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +2 -0
- package/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/serialization/types/PlanTraitResponseData.js +50 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -0
- package/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/serialization/types/QuickstartResp.d.ts +12 -0
- package/serialization/types/QuickstartResp.js +43 -0
- package/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/serialization/types/UpsertUserRequestBody.js +2 -0
- package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.js +6 -0
- package/serialization/types/WebhookResponseData.d.ts +2 -0
- package/serialization/types/WebhookResponseData.js +2 -0
- package/serialization/types/index.d.ts +7 -0
- package/serialization/types/index.js +7 -0
- /package/api/resources/{billing/client/requests/ListCustomersRequest.js → accounts/types/QuickstartResponse.js} +0 -0
- /package/api/resources/billing/{types/ListCustomersParams.js → client/requests/ListCustomersWithSubscriptionsRequest.js} +0 -0
- /package/api/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ListCustomersRequest.js → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersParams.js → api/resources/dataexports/client/requests/CreateDataExportRequestBody.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/dataexports/types/CreateDataExportResponse.js} +0 -0
package/Client.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { Entitlements } from "./api/resources/entitlements/client/Client";
|
|
|
12
12
|
import { Plans } from "./api/resources/plans/client/Client";
|
|
13
13
|
import { Components } from "./api/resources/components/client/Client";
|
|
14
14
|
import { Crm } from "./api/resources/crm/client/Client";
|
|
15
|
+
import { Dataexports } from "./api/resources/dataexports/client/Client";
|
|
15
16
|
import { Events } from "./api/resources/events/client/Client";
|
|
16
17
|
import { Plangroups } from "./api/resources/plangroups/client/Client";
|
|
17
18
|
import { Accesstokens } from "./api/resources/accesstokens/client/Client";
|
|
@@ -46,6 +47,7 @@ export declare class SchematicClient {
|
|
|
46
47
|
protected _plans: Plans | undefined;
|
|
47
48
|
protected _components: Components | undefined;
|
|
48
49
|
protected _crm: Crm | undefined;
|
|
50
|
+
protected _dataexports: Dataexports | undefined;
|
|
49
51
|
protected _events: Events | undefined;
|
|
50
52
|
protected _plangroups: Plangroups | undefined;
|
|
51
53
|
protected _accesstokens: Accesstokens | undefined;
|
|
@@ -60,6 +62,7 @@ export declare class SchematicClient {
|
|
|
60
62
|
get plans(): Plans;
|
|
61
63
|
get components(): Components;
|
|
62
64
|
get crm(): Crm;
|
|
65
|
+
get dataexports(): Dataexports;
|
|
63
66
|
get events(): Events;
|
|
64
67
|
get plangroups(): Plangroups;
|
|
65
68
|
get accesstokens(): Accesstokens;
|
package/Client.js
CHANGED
|
@@ -13,10 +13,11 @@ const Client_6 = require("./api/resources/entitlements/client/Client");
|
|
|
13
13
|
const Client_7 = require("./api/resources/plans/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/components/client/Client");
|
|
15
15
|
const Client_9 = require("./api/resources/crm/client/Client");
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
19
|
-
const Client_13 = require("./api/resources/
|
|
16
|
+
const Client_10 = require("./api/resources/dataexports/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/events/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/plangroups/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/accesstokens/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/webhooks/client/Client");
|
|
20
21
|
class SchematicClient {
|
|
21
22
|
constructor(_options) {
|
|
22
23
|
this._options = _options;
|
|
@@ -57,21 +58,25 @@ class SchematicClient {
|
|
|
57
58
|
var _a;
|
|
58
59
|
return ((_a = this._crm) !== null && _a !== void 0 ? _a : (this._crm = new Client_9.Crm(this._options)));
|
|
59
60
|
}
|
|
61
|
+
get dataexports() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._dataexports) !== null && _a !== void 0 ? _a : (this._dataexports = new Client_10.Dataexports(this._options)));
|
|
64
|
+
}
|
|
60
65
|
get events() {
|
|
61
66
|
var _a;
|
|
62
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
67
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_11.Events(this._options)));
|
|
63
68
|
}
|
|
64
69
|
get plangroups() {
|
|
65
70
|
var _a;
|
|
66
|
-
return ((_a = this._plangroups) !== null && _a !== void 0 ? _a : (this._plangroups = new
|
|
71
|
+
return ((_a = this._plangroups) !== null && _a !== void 0 ? _a : (this._plangroups = new Client_12.Plangroups(this._options)));
|
|
67
72
|
}
|
|
68
73
|
get accesstokens() {
|
|
69
74
|
var _a;
|
|
70
|
-
return ((_a = this._accesstokens) !== null && _a !== void 0 ? _a : (this._accesstokens = new
|
|
75
|
+
return ((_a = this._accesstokens) !== null && _a !== void 0 ? _a : (this._accesstokens = new Client_13.Accesstokens(this._options)));
|
|
71
76
|
}
|
|
72
77
|
get webhooks() {
|
|
73
78
|
var _a;
|
|
74
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
79
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_14.Webhooks(this._options)));
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
82
|
exports.SchematicClient = SchematicClient;
|
package/README.md
CHANGED
|
@@ -85,6 +85,8 @@ client.close();
|
|
|
85
85
|
|
|
86
86
|
## Usage examples
|
|
87
87
|
|
|
88
|
+
A number of these examples use `keys` to identify companies and users. Learn more about keys [here](https://docs.schematichq.com/developer_resources/key_management).
|
|
89
|
+
|
|
88
90
|
### Sending identify events
|
|
89
91
|
|
|
90
92
|
Create or update users and companies using identify events.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
5
|
import * as Schematic from "../index";
|
|
6
|
+
import * as core from "../../core";
|
|
6
7
|
export declare class BadRequestError extends errors.SchematicError {
|
|
7
|
-
constructor(body: Schematic.ApiError);
|
|
8
|
+
constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
|
|
8
9
|
}
|
|
@@ -39,11 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.BadRequestError = void 0;
|
|
40
40
|
const errors = __importStar(require("../../errors/index"));
|
|
41
41
|
class BadRequestError extends errors.SchematicError {
|
|
42
|
-
constructor(body) {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
43
|
super({
|
|
44
44
|
message: "BadRequestError",
|
|
45
45
|
statusCode: 400,
|
|
46
46
|
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
47
48
|
});
|
|
48
49
|
Object.setPrototypeOf(this, BadRequestError.prototype);
|
|
49
50
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
5
|
import * as Schematic from "../index";
|
|
6
|
+
import * as core from "../../core";
|
|
6
7
|
export declare class ForbiddenError extends errors.SchematicError {
|
|
7
|
-
constructor(body: Schematic.ApiError);
|
|
8
|
+
constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
|
|
8
9
|
}
|
|
@@ -39,11 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ForbiddenError = void 0;
|
|
40
40
|
const errors = __importStar(require("../../errors/index"));
|
|
41
41
|
class ForbiddenError extends errors.SchematicError {
|
|
42
|
-
constructor(body) {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
43
|
super({
|
|
44
44
|
message: "ForbiddenError",
|
|
45
45
|
statusCode: 403,
|
|
46
46
|
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
47
48
|
});
|
|
48
49
|
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
49
50
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
5
|
import * as Schematic from "../index";
|
|
6
|
+
import * as core from "../../core";
|
|
6
7
|
export declare class InternalServerError extends errors.SchematicError {
|
|
7
|
-
constructor(body: Schematic.ApiError);
|
|
8
|
+
constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
|
|
8
9
|
}
|
|
@@ -39,11 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.InternalServerError = void 0;
|
|
40
40
|
const errors = __importStar(require("../../errors/index"));
|
|
41
41
|
class InternalServerError extends errors.SchematicError {
|
|
42
|
-
constructor(body) {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
43
|
super({
|
|
44
44
|
message: "InternalServerError",
|
|
45
45
|
statusCode: 500,
|
|
46
46
|
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
47
48
|
});
|
|
48
49
|
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
49
50
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
5
|
import * as Schematic from "../index";
|
|
6
|
+
import * as core from "../../core";
|
|
6
7
|
export declare class NotFoundError extends errors.SchematicError {
|
|
7
|
-
constructor(body: Schematic.ApiError);
|
|
8
|
+
constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
|
|
8
9
|
}
|
|
@@ -39,11 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.NotFoundError = void 0;
|
|
40
40
|
const errors = __importStar(require("../../errors/index"));
|
|
41
41
|
class NotFoundError extends errors.SchematicError {
|
|
42
|
-
constructor(body) {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
43
|
super({
|
|
44
44
|
message: "NotFoundError",
|
|
45
45
|
statusCode: 404,
|
|
46
46
|
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
47
48
|
});
|
|
48
49
|
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
49
50
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
5
|
import * as Schematic from "../index";
|
|
6
|
+
import * as core from "../../core";
|
|
6
7
|
export declare class UnauthorizedError extends errors.SchematicError {
|
|
7
|
-
constructor(body: Schematic.ApiError);
|
|
8
|
+
constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
|
|
8
9
|
}
|
|
@@ -39,11 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.UnauthorizedError = void 0;
|
|
40
40
|
const errors = __importStar(require("../../errors/index"));
|
|
41
41
|
class UnauthorizedError extends errors.SchematicError {
|
|
42
|
-
constructor(body) {
|
|
42
|
+
constructor(body, rawResponse) {
|
|
43
43
|
super({
|
|
44
44
|
message: "UnauthorizedError",
|
|
45
45
|
statusCode: 401,
|
|
46
46
|
body: body,
|
|
47
|
+
rawResponse: rawResponse,
|
|
47
48
|
});
|
|
48
49
|
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
49
50
|
}
|
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -17,5 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./BadRequestError"), exports);
|
|
18
18
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
19
19
|
__exportStar(require("./ForbiddenError"), exports);
|
|
20
|
-
__exportStar(require("./InternalServerError"), exports);
|
|
21
20
|
__exportStar(require("./NotFoundError"), exports);
|
|
21
|
+
__exportStar(require("./InternalServerError"), exports);
|
|
@@ -33,6 +33,7 @@ export declare class Accesstokens {
|
|
|
33
33
|
* @throws {@link Schematic.BadRequestError}
|
|
34
34
|
* @throws {@link Schematic.UnauthorizedError}
|
|
35
35
|
* @throws {@link Schematic.ForbiddenError}
|
|
36
|
+
* @throws {@link Schematic.NotFoundError}
|
|
36
37
|
* @throws {@link Schematic.InternalServerError}
|
|
37
38
|
*
|
|
38
39
|
* @example
|
|
@@ -43,7 +44,8 @@ export declare class Accesstokens {
|
|
|
43
44
|
* resourceType: "resource_type"
|
|
44
45
|
* })
|
|
45
46
|
*/
|
|
46
|
-
issueTemporaryAccessToken(request: Schematic.IssueTemporaryAccessTokenRequestBody, requestOptions?: Accesstokens.RequestOptions):
|
|
47
|
+
issueTemporaryAccessToken(request: Schematic.IssueTemporaryAccessTokenRequestBody, requestOptions?: Accesstokens.RequestOptions): core.HttpResponsePromise<Schematic.IssueTemporaryAccessTokenResponse>;
|
|
48
|
+
private __issueTemporaryAccessToken;
|
|
47
49
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
48
50
|
"X-Schematic-Api-Key": string;
|
|
49
51
|
}>;
|
|
@@ -66,6 +66,7 @@ class Accesstokens {
|
|
|
66
66
|
* @throws {@link Schematic.BadRequestError}
|
|
67
67
|
* @throws {@link Schematic.UnauthorizedError}
|
|
68
68
|
* @throws {@link Schematic.ForbiddenError}
|
|
69
|
+
* @throws {@link Schematic.NotFoundError}
|
|
69
70
|
* @throws {@link Schematic.InternalServerError}
|
|
70
71
|
*
|
|
71
72
|
* @example
|
|
@@ -77,12 +78,15 @@ class Accesstokens {
|
|
|
77
78
|
* })
|
|
78
79
|
*/
|
|
79
80
|
issueTemporaryAccessToken(request, requestOptions) {
|
|
81
|
+
return core.HttpResponsePromise.fromPromise(this.__issueTemporaryAccessToken(request, requestOptions));
|
|
82
|
+
}
|
|
83
|
+
__issueTemporaryAccessToken(request, requestOptions) {
|
|
80
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
85
|
var _a, _b, _c;
|
|
82
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
83
87
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchematicEnvironment.Default, "temporary-access-tokens"),
|
|
84
88
|
method: "POST",
|
|
85
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
89
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.11", "User-Agent": "@schematichq/schematic-typescript-node/1.1.11", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
90
|
contentType: "application/json",
|
|
87
91
|
requestType: "json",
|
|
88
92
|
body: serializers.IssueTemporaryAccessTokenRequestBody.jsonOrThrow(request, {
|
|
@@ -93,13 +97,16 @@ class Accesstokens {
|
|
|
93
97
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
94
98
|
});
|
|
95
99
|
if (_response.ok) {
|
|
96
|
-
return
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
return {
|
|
101
|
+
data: serializers.IssueTemporaryAccessTokenResponse.parseOrThrow(_response.body, {
|
|
102
|
+
unrecognizedObjectKeys: "passthrough",
|
|
103
|
+
allowUnrecognizedUnionMembers: true,
|
|
104
|
+
allowUnrecognizedEnumValues: true,
|
|
105
|
+
skipValidation: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}),
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
};
|
|
103
110
|
}
|
|
104
111
|
if (_response.error.reason === "status-code") {
|
|
105
112
|
switch (_response.error.statusCode) {
|
|
@@ -110,7 +117,7 @@ class Accesstokens {
|
|
|
110
117
|
allowUnrecognizedEnumValues: true,
|
|
111
118
|
skipValidation: true,
|
|
112
119
|
breadcrumbsPrefix: ["response"],
|
|
113
|
-
}));
|
|
120
|
+
}), _response.rawResponse);
|
|
114
121
|
case 401:
|
|
115
122
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
116
123
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -118,7 +125,7 @@ class Accesstokens {
|
|
|
118
125
|
allowUnrecognizedEnumValues: true,
|
|
119
126
|
skipValidation: true,
|
|
120
127
|
breadcrumbsPrefix: ["response"],
|
|
121
|
-
}));
|
|
128
|
+
}), _response.rawResponse);
|
|
122
129
|
case 403:
|
|
123
130
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
124
131
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -126,7 +133,15 @@ class Accesstokens {
|
|
|
126
133
|
allowUnrecognizedEnumValues: true,
|
|
127
134
|
skipValidation: true,
|
|
128
135
|
breadcrumbsPrefix: ["response"],
|
|
129
|
-
}));
|
|
136
|
+
}), _response.rawResponse);
|
|
137
|
+
case 404:
|
|
138
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
139
|
+
unrecognizedObjectKeys: "passthrough",
|
|
140
|
+
allowUnrecognizedUnionMembers: true,
|
|
141
|
+
allowUnrecognizedEnumValues: true,
|
|
142
|
+
skipValidation: true,
|
|
143
|
+
breadcrumbsPrefix: ["response"],
|
|
144
|
+
}), _response.rawResponse);
|
|
130
145
|
case 500:
|
|
131
146
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
132
147
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -134,11 +149,12 @@ class Accesstokens {
|
|
|
134
149
|
allowUnrecognizedEnumValues: true,
|
|
135
150
|
skipValidation: true,
|
|
136
151
|
breadcrumbsPrefix: ["response"],
|
|
137
|
-
}));
|
|
152
|
+
}), _response.rawResponse);
|
|
138
153
|
default:
|
|
139
154
|
throw new errors.SchematicError({
|
|
140
155
|
statusCode: _response.error.statusCode,
|
|
141
156
|
body: _response.error.body,
|
|
157
|
+
rawResponse: _response.rawResponse,
|
|
142
158
|
});
|
|
143
159
|
}
|
|
144
160
|
}
|
|
@@ -147,12 +163,14 @@ class Accesstokens {
|
|
|
147
163
|
throw new errors.SchematicError({
|
|
148
164
|
statusCode: _response.error.statusCode,
|
|
149
165
|
body: _response.error.rawBody,
|
|
166
|
+
rawResponse: _response.rawResponse,
|
|
150
167
|
});
|
|
151
168
|
case "timeout":
|
|
152
169
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /temporary-access-tokens.");
|
|
153
170
|
case "unknown":
|
|
154
171
|
throw new errors.SchematicError({
|
|
155
172
|
message: _response.error.errorMessage,
|
|
173
|
+
rawResponse: _response.rawResponse,
|
|
156
174
|
});
|
|
157
175
|
}
|
|
158
176
|
});
|
|
@@ -33,6 +33,7 @@ export declare class Accounts {
|
|
|
33
33
|
* @throws {@link Schematic.BadRequestError}
|
|
34
34
|
* @throws {@link Schematic.UnauthorizedError}
|
|
35
35
|
* @throws {@link Schematic.ForbiddenError}
|
|
36
|
+
* @throws {@link Schematic.NotFoundError}
|
|
36
37
|
* @throws {@link Schematic.InternalServerError}
|
|
37
38
|
*
|
|
38
39
|
* @example
|
|
@@ -40,7 +41,8 @@ export declare class Accounts {
|
|
|
40
41
|
* requireEnvironment: true
|
|
41
42
|
* })
|
|
42
43
|
*/
|
|
43
|
-
listApiKeys(request: Schematic.ListApiKeysRequest, requestOptions?: Accounts.RequestOptions):
|
|
44
|
+
listApiKeys(request: Schematic.ListApiKeysRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.ListApiKeysResponse>;
|
|
45
|
+
private __listApiKeys;
|
|
44
46
|
/**
|
|
45
47
|
* @param {Schematic.CreateApiKeyRequestBody} request
|
|
46
48
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -48,6 +50,7 @@ export declare class Accounts {
|
|
|
48
50
|
* @throws {@link Schematic.BadRequestError}
|
|
49
51
|
* @throws {@link Schematic.UnauthorizedError}
|
|
50
52
|
* @throws {@link Schematic.ForbiddenError}
|
|
53
|
+
* @throws {@link Schematic.NotFoundError}
|
|
51
54
|
* @throws {@link Schematic.InternalServerError}
|
|
52
55
|
*
|
|
53
56
|
* @example
|
|
@@ -55,7 +58,8 @@ export declare class Accounts {
|
|
|
55
58
|
* name: "name"
|
|
56
59
|
* })
|
|
57
60
|
*/
|
|
58
|
-
createApiKey(request: Schematic.CreateApiKeyRequestBody, requestOptions?: Accounts.RequestOptions):
|
|
61
|
+
createApiKey(request: Schematic.CreateApiKeyRequestBody, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.CreateApiKeyResponse>;
|
|
62
|
+
private __createApiKey;
|
|
59
63
|
/**
|
|
60
64
|
* @param {string} apiKeyId - api_key_id
|
|
61
65
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -68,7 +72,8 @@ export declare class Accounts {
|
|
|
68
72
|
* @example
|
|
69
73
|
* await client.accounts.getApiKey("api_key_id")
|
|
70
74
|
*/
|
|
71
|
-
getApiKey(apiKeyId: string, requestOptions?: Accounts.RequestOptions):
|
|
75
|
+
getApiKey(apiKeyId: string, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.GetApiKeyResponse>;
|
|
76
|
+
private __getApiKey;
|
|
72
77
|
/**
|
|
73
78
|
* @param {string} apiKeyId - api_key_id
|
|
74
79
|
* @param {Schematic.UpdateApiKeyRequestBody} request
|
|
@@ -83,7 +88,8 @@ export declare class Accounts {
|
|
|
83
88
|
* @example
|
|
84
89
|
* await client.accounts.updateApiKey("api_key_id")
|
|
85
90
|
*/
|
|
86
|
-
updateApiKey(apiKeyId: string, request?: Schematic.UpdateApiKeyRequestBody, requestOptions?: Accounts.RequestOptions):
|
|
91
|
+
updateApiKey(apiKeyId: string, request?: Schematic.UpdateApiKeyRequestBody, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.UpdateApiKeyResponse>;
|
|
92
|
+
private __updateApiKey;
|
|
87
93
|
/**
|
|
88
94
|
* @param {string} apiKeyId - api_key_id
|
|
89
95
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,12 +97,14 @@ export declare class Accounts {
|
|
|
91
97
|
* @throws {@link Schematic.BadRequestError}
|
|
92
98
|
* @throws {@link Schematic.UnauthorizedError}
|
|
93
99
|
* @throws {@link Schematic.ForbiddenError}
|
|
100
|
+
* @throws {@link Schematic.NotFoundError}
|
|
94
101
|
* @throws {@link Schematic.InternalServerError}
|
|
95
102
|
*
|
|
96
103
|
* @example
|
|
97
104
|
* await client.accounts.deleteApiKey("api_key_id")
|
|
98
105
|
*/
|
|
99
|
-
deleteApiKey(apiKeyId: string, requestOptions?: Accounts.RequestOptions):
|
|
106
|
+
deleteApiKey(apiKeyId: string, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.DeleteApiKeyResponse>;
|
|
107
|
+
private __deleteApiKey;
|
|
100
108
|
/**
|
|
101
109
|
* @param {Schematic.CountApiKeysRequest} request
|
|
102
110
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -104,6 +112,7 @@ export declare class Accounts {
|
|
|
104
112
|
* @throws {@link Schematic.BadRequestError}
|
|
105
113
|
* @throws {@link Schematic.UnauthorizedError}
|
|
106
114
|
* @throws {@link Schematic.ForbiddenError}
|
|
115
|
+
* @throws {@link Schematic.NotFoundError}
|
|
107
116
|
* @throws {@link Schematic.InternalServerError}
|
|
108
117
|
*
|
|
109
118
|
* @example
|
|
@@ -111,7 +120,8 @@ export declare class Accounts {
|
|
|
111
120
|
* requireEnvironment: true
|
|
112
121
|
* })
|
|
113
122
|
*/
|
|
114
|
-
countApiKeys(request: Schematic.CountApiKeysRequest, requestOptions?: Accounts.RequestOptions):
|
|
123
|
+
countApiKeys(request: Schematic.CountApiKeysRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.CountApiKeysResponse>;
|
|
124
|
+
private __countApiKeys;
|
|
115
125
|
/**
|
|
116
126
|
* @param {Schematic.ListApiRequestsRequest} request
|
|
117
127
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -119,12 +129,14 @@ export declare class Accounts {
|
|
|
119
129
|
* @throws {@link Schematic.BadRequestError}
|
|
120
130
|
* @throws {@link Schematic.UnauthorizedError}
|
|
121
131
|
* @throws {@link Schematic.ForbiddenError}
|
|
132
|
+
* @throws {@link Schematic.NotFoundError}
|
|
122
133
|
* @throws {@link Schematic.InternalServerError}
|
|
123
134
|
*
|
|
124
135
|
* @example
|
|
125
136
|
* await client.accounts.listApiRequests()
|
|
126
137
|
*/
|
|
127
|
-
listApiRequests(request?: Schematic.ListApiRequestsRequest, requestOptions?: Accounts.RequestOptions):
|
|
138
|
+
listApiRequests(request?: Schematic.ListApiRequestsRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.ListApiRequestsResponse>;
|
|
139
|
+
private __listApiRequests;
|
|
128
140
|
/**
|
|
129
141
|
* @param {string} apiRequestId - api_request_id
|
|
130
142
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -137,7 +149,8 @@ export declare class Accounts {
|
|
|
137
149
|
* @example
|
|
138
150
|
* await client.accounts.getApiRequest("api_request_id")
|
|
139
151
|
*/
|
|
140
|
-
getApiRequest(apiRequestId: string, requestOptions?: Accounts.RequestOptions):
|
|
152
|
+
getApiRequest(apiRequestId: string, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.GetApiRequestResponse>;
|
|
153
|
+
private __getApiRequest;
|
|
141
154
|
/**
|
|
142
155
|
* @param {Schematic.CountApiRequestsRequest} request
|
|
143
156
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -145,12 +158,14 @@ export declare class Accounts {
|
|
|
145
158
|
* @throws {@link Schematic.BadRequestError}
|
|
146
159
|
* @throws {@link Schematic.UnauthorizedError}
|
|
147
160
|
* @throws {@link Schematic.ForbiddenError}
|
|
161
|
+
* @throws {@link Schematic.NotFoundError}
|
|
148
162
|
* @throws {@link Schematic.InternalServerError}
|
|
149
163
|
*
|
|
150
164
|
* @example
|
|
151
165
|
* await client.accounts.countApiRequests()
|
|
152
166
|
*/
|
|
153
|
-
countApiRequests(request?: Schematic.CountApiRequestsRequest, requestOptions?: Accounts.RequestOptions):
|
|
167
|
+
countApiRequests(request?: Schematic.CountApiRequestsRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.CountApiRequestsResponse>;
|
|
168
|
+
private __countApiRequests;
|
|
154
169
|
/**
|
|
155
170
|
* @param {Schematic.ListEnvironmentsRequest} request
|
|
156
171
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -158,12 +173,14 @@ export declare class Accounts {
|
|
|
158
173
|
* @throws {@link Schematic.BadRequestError}
|
|
159
174
|
* @throws {@link Schematic.UnauthorizedError}
|
|
160
175
|
* @throws {@link Schematic.ForbiddenError}
|
|
176
|
+
* @throws {@link Schematic.NotFoundError}
|
|
161
177
|
* @throws {@link Schematic.InternalServerError}
|
|
162
178
|
*
|
|
163
179
|
* @example
|
|
164
180
|
* await client.accounts.listEnvironments()
|
|
165
181
|
*/
|
|
166
|
-
listEnvironments(request?: Schematic.ListEnvironmentsRequest, requestOptions?: Accounts.RequestOptions):
|
|
182
|
+
listEnvironments(request?: Schematic.ListEnvironmentsRequest, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.ListEnvironmentsResponse>;
|
|
183
|
+
private __listEnvironments;
|
|
167
184
|
/**
|
|
168
185
|
* @param {Schematic.CreateEnvironmentRequestBody} request
|
|
169
186
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -171,6 +188,7 @@ export declare class Accounts {
|
|
|
171
188
|
* @throws {@link Schematic.BadRequestError}
|
|
172
189
|
* @throws {@link Schematic.UnauthorizedError}
|
|
173
190
|
* @throws {@link Schematic.ForbiddenError}
|
|
191
|
+
* @throws {@link Schematic.NotFoundError}
|
|
174
192
|
* @throws {@link Schematic.InternalServerError}
|
|
175
193
|
*
|
|
176
194
|
* @example
|
|
@@ -179,7 +197,8 @@ export declare class Accounts {
|
|
|
179
197
|
* name: "name"
|
|
180
198
|
* })
|
|
181
199
|
*/
|
|
182
|
-
createEnvironment(request: Schematic.CreateEnvironmentRequestBody, requestOptions?: Accounts.RequestOptions):
|
|
200
|
+
createEnvironment(request: Schematic.CreateEnvironmentRequestBody, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.CreateEnvironmentResponse>;
|
|
201
|
+
private __createEnvironment;
|
|
183
202
|
/**
|
|
184
203
|
* @param {string} environmentId - environment_id
|
|
185
204
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -192,7 +211,8 @@ export declare class Accounts {
|
|
|
192
211
|
* @example
|
|
193
212
|
* await client.accounts.getEnvironment("environment_id")
|
|
194
213
|
*/
|
|
195
|
-
getEnvironment(environmentId: string, requestOptions?: Accounts.RequestOptions):
|
|
214
|
+
getEnvironment(environmentId: string, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.GetEnvironmentResponse>;
|
|
215
|
+
private __getEnvironment;
|
|
196
216
|
/**
|
|
197
217
|
* @param {string} environmentId - environment_id
|
|
198
218
|
* @param {Schematic.UpdateEnvironmentRequestBody} request
|
|
@@ -207,7 +227,8 @@ export declare class Accounts {
|
|
|
207
227
|
* @example
|
|
208
228
|
* await client.accounts.updateEnvironment("environment_id")
|
|
209
229
|
*/
|
|
210
|
-
updateEnvironment(environmentId: string, request?: Schematic.UpdateEnvironmentRequestBody, requestOptions?: Accounts.RequestOptions):
|
|
230
|
+
updateEnvironment(environmentId: string, request?: Schematic.UpdateEnvironmentRequestBody, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.UpdateEnvironmentResponse>;
|
|
231
|
+
private __updateEnvironment;
|
|
211
232
|
/**
|
|
212
233
|
* @param {string} environmentId - environment_id
|
|
213
234
|
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -215,12 +236,28 @@ export declare class Accounts {
|
|
|
215
236
|
* @throws {@link Schematic.BadRequestError}
|
|
216
237
|
* @throws {@link Schematic.UnauthorizedError}
|
|
217
238
|
* @throws {@link Schematic.ForbiddenError}
|
|
239
|
+
* @throws {@link Schematic.NotFoundError}
|
|
218
240
|
* @throws {@link Schematic.InternalServerError}
|
|
219
241
|
*
|
|
220
242
|
* @example
|
|
221
243
|
* await client.accounts.deleteEnvironment("environment_id")
|
|
222
244
|
*/
|
|
223
|
-
deleteEnvironment(environmentId: string, requestOptions?: Accounts.RequestOptions):
|
|
245
|
+
deleteEnvironment(environmentId: string, requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.DeleteEnvironmentResponse>;
|
|
246
|
+
private __deleteEnvironment;
|
|
247
|
+
/**
|
|
248
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
249
|
+
*
|
|
250
|
+
* @throws {@link Schematic.BadRequestError}
|
|
251
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
252
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
253
|
+
* @throws {@link Schematic.NotFoundError}
|
|
254
|
+
* @throws {@link Schematic.InternalServerError}
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* await client.accounts.quickstart()
|
|
258
|
+
*/
|
|
259
|
+
quickstart(requestOptions?: Accounts.RequestOptions): core.HttpResponsePromise<Schematic.QuickstartResponse>;
|
|
260
|
+
private __quickstart;
|
|
224
261
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
225
262
|
"X-Schematic-Api-Key": string;
|
|
226
263
|
}>;
|