@schematichq/schematic-typescript-node 1.1.10 → 1.1.12
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 +6 -0
- package/Client.js +30 -20
- 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 +4 -3
- package/api/resources/accesstokens/client/Client.js +33 -16
- package/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
- 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 +657 -260
- 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 +5 -1
- 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/SearchBillingPricesRequest.d.ts +1 -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/CreateBillingPriceRequestBodyTiersMode.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +10 -0
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/api/resources/billing/types/{ListCustomersParams.d.ts → 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/SearchBillingPricesParams.d.ts +1 -0
- package/{dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts → api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts} +2 -2
- package/{dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → api/resources/billing/types/SearchBillingPricesRequestTiersMode.js} +2 -2
- package/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +8 -0
- package/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +10 -0
- package/api/resources/billing/types/index.d.ts +6 -3
- package/api/resources/billing/types/index.js +6 -3
- package/api/resources/checkout/client/Client.d.ts +23 -6
- package/api/resources/checkout/client/Client.js +125 -52
- package/api/resources/companies/client/Client.d.ts +119 -43
- package/api/resources/companies/client/Client.js +1306 -434
- package/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +66 -0
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +66 -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/client/requests/index.d.ts +2 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +37 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +5 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +9 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +5 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +37 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +5 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +10 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +5 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
- package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -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/companies/types/index.d.ts +8 -0
- package/api/resources/companies/types/index.js +8 -0
- package/api/resources/components/client/Client.d.ts +18 -7
- package/api/resources/components/client/Client.js +188 -89
- package/api/resources/credits/client/Client.d.ts +338 -0
- package/api/resources/credits/client/Client.js +2338 -0
- package/api/resources/credits/client/index.d.ts +1 -0
- package/api/resources/credits/client/index.js +17 -0
- package/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/CountBillingCreditsRequest.js +5 -0
- package/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +22 -0
- package/api/resources/credits/client/requests/CountCreditBundlesRequest.js +5 -0
- package/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +26 -0
- package/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +5 -0
- package/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +21 -0
- package/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +5 -0
- package/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +24 -0
- package/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +5 -0
- package/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/ListBillingCreditsRequest.js +5 -0
- package/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +21 -0
- package/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +5 -0
- package/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +22 -0
- package/api/resources/credits/client/requests/ListCreditBundlesRequest.js +5 -0
- package/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +19 -0
- package/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +5 -0
- package/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +5 -0
- package/api/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +11 -0
- package/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +5 -0
- package/api/resources/credits/client/requests/index.d.ts +14 -0
- package/api/resources/credits/client/requests/index.js +2 -0
- package/api/resources/credits/index.d.ts +2 -0
- package/api/resources/credits/index.js +18 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +14 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsParams.js +5 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +9 -0
- package/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +5 -0
- package/api/resources/credits/types/CountBillingCreditsParams.d.ts +14 -0
- package/api/resources/credits/types/CountBillingCreditsParams.js +5 -0
- package/api/resources/credits/types/CountBillingCreditsResponse.d.ts +9 -0
- package/api/resources/credits/types/CountBillingCreditsResponse.js +5 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +15 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +5 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +9 -0
- package/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +5 -0
- package/api/resources/credits/types/CountCreditBundlesParams.d.ts +17 -0
- package/api/resources/credits/types/CountCreditBundlesParams.js +5 -0
- package/api/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +8 -0
- package/api/resources/credits/types/CountCreditBundlesRequestStatus.js +10 -0
- package/api/resources/credits/types/CountCreditBundlesResponse.d.ts +9 -0
- package/api/resources/credits/types/CountCreditBundlesResponse.js +5 -0
- package/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +10 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/api/resources/credits/types/CreateBillingCreditResponse.d.ts +9 -0
- package/api/resources/credits/types/CreateBillingCreditResponse.js +5 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +12 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +10 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +9 -0
- package/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +5 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +8 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +10 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +8 -0
- package/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +10 -0
- package/api/resources/credits/types/CreateCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/CreateCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +9 -0
- package/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +5 -0
- package/api/resources/credits/types/DeleteCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/DeleteCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/GetCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/GetCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/GetSingleBillingCreditResponse.d.ts +9 -0
- package/api/resources/credits/types/GetSingleBillingCreditResponse.js +5 -0
- package/api/resources/credits/types/ListBillingCreditsParams.d.ts +14 -0
- package/api/resources/credits/types/ListBillingCreditsParams.js +5 -0
- package/api/resources/credits/types/ListBillingCreditsResponse.d.ts +10 -0
- package/api/resources/credits/types/ListBillingCreditsResponse.js +5 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +15 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +5 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +10 -0
- package/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +5 -0
- package/api/resources/credits/types/ListCompanyGrantsParams.d.ts +16 -0
- package/api/resources/credits/types/ListCompanyGrantsParams.js +5 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +8 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestDir.js +10 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/api/resources/credits/types/ListCompanyGrantsRequestOrder.js +12 -0
- package/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +10 -0
- package/api/resources/credits/types/ListCompanyGrantsResponse.js +5 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +8 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +10 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +12 -0
- package/api/resources/credits/types/ListCreditBundlesParams.d.ts +17 -0
- package/api/resources/credits/types/ListCreditBundlesParams.js +5 -0
- package/api/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +8 -0
- package/api/resources/credits/types/ListCreditBundlesRequestStatus.js +10 -0
- package/api/resources/credits/types/ListCreditBundlesResponse.d.ts +10 -0
- package/api/resources/credits/types/ListCreditBundlesResponse.js +5 -0
- package/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +8 -0
- package/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +10 -0
- package/api/resources/credits/types/ListGrantsForCreditParams.d.ts +14 -0
- package/api/resources/credits/types/ListGrantsForCreditParams.js +5 -0
- package/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +10 -0
- package/api/resources/credits/types/ListGrantsForCreditResponse.js +5 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +12 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
- package/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
- package/api/resources/credits/types/UpdateBillingCreditResponse.d.ts +9 -0
- package/api/resources/credits/types/UpdateBillingCreditResponse.js +5 -0
- package/api/resources/credits/types/UpdateCreditBundleResponse.d.ts +9 -0
- package/api/resources/credits/types/UpdateCreditBundleResponse.js +5 -0
- package/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +8 -0
- package/api/resources/credits/types/ZeroOutGrantRequestBodyReason.js +10 -0
- package/api/resources/credits/types/ZeroOutGrantResponse.d.ts +9 -0
- package/api/resources/credits/types/ZeroOutGrantResponse.js +5 -0
- package/api/resources/credits/types/index.d.ts +45 -0
- package/api/resources/credits/types/index.js +61 -0
- 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/CreateDataExportRequestBody.js +5 -0
- package/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/api/resources/dataexports/client/requests/index.js +2 -0
- package/api/resources/dataexports/index.d.ts +2 -0
- package/api/resources/dataexports/index.js +18 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/api/resources/dataexports/types/index.d.ts +1 -0
- package/api/resources/dataexports/types/index.js +17 -0
- package/api/resources/entitlements/client/Client.d.ts +57 -22
- package/api/resources/entitlements/client/Client.js +538 -239
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +2 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -0
- package/api/resources/entitlements/types/index.d.ts +2 -0
- package/api/resources/entitlements/types/index.js +2 -0
- package/api/resources/events/client/Client.d.ts +16 -6
- package/api/resources/events/client/Client.js +168 -76
- package/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -1
- package/api/resources/events/types/ListEventsParams.d.ts +2 -1
- package/api/resources/events/types/ListEventsRequestEventTypesItem.d.ts +9 -0
- package/api/resources/events/types/ListEventsRequestEventTypesItem.js +11 -0
- package/api/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +9 -0
- package/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +11 -0
- package/api/resources/events/types/index.d.ts +2 -0
- package/api/resources/events/types/index.js +2 -0
- package/api/resources/features/client/Client.d.ts +54 -21
- package/api/resources/features/client/Client.js +559 -240
- package/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -0
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -0
- package/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/types/CountFeaturesParams.d.ts +4 -0
- package/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/api/resources/features/types/ListFeaturesParams.d.ts +4 -0
- package/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
- package/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +17 -0
- package/api/resources/features/types/index.d.ts +2 -0
- package/api/resources/features/types/index.js +2 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/plangroups/client/Client.d.ts +7 -3
- package/api/resources/plangroups/client/Client.js +73 -37
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/api/resources/plans/client/Client.d.ts +125 -12
- package/api/resources/plans/client/Client.js +1011 -172
- 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 +8 -2
- 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/UpsertBillingProductRequestBodyChargeType.d.ts +9 -0
- package/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +11 -0
- package/api/resources/plans/types/index.d.ts +9 -0
- package/api/resources/plans/types/index.js +9 -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/BillingCreditBundleResponseData.d.ts +18 -0
- package/api/types/BillingCreditBundleResponseData.js +5 -0
- package/api/types/BillingCreditGrantResponseData.d.ts +23 -0
- package/api/types/BillingCreditGrantResponseData.js +5 -0
- package/api/types/BillingCreditResponseData.d.ts +21 -0
- package/api/types/BillingCreditResponseData.js +5 -0
- package/api/types/BillingPlanCreditGrantResponseData.d.ts +14 -0
- package/api/types/BillingPlanCreditGrantResponseData.js +5 -0
- package/api/types/BillingPriceResponseData.d.ts +2 -0
- package/api/types/BillingPriceView.d.ts +8 -0
- package/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/api/types/BillingProductPlanResponseData.d.ts +3 -0
- package/api/types/BillingProductPriceResponseData.d.ts +4 -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/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
- package/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/api/types/CheckFlagResponseData.d.ts +2 -0
- package/api/types/CheckoutDataResponseData.d.ts +2 -0
- package/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +27 -0
- package/api/types/CompanyViewWithFeatureUsageResponseData.js +5 -0
- package/api/types/CompatiblePlans.d.ts +7 -0
- package/api/types/CompatiblePlans.js +5 -0
- package/api/types/CompatiblePlansResponseData.d.ts +7 -0
- package/api/types/CompatiblePlansResponseData.js +5 -0
- package/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/api/types/CreateEntitlementReqCommonValueType.d.ts +2 -1
- package/api/types/CreateEntitlementReqCommonValueType.js +1 -0
- package/api/types/CreateFlagRequestBody.d.ts +1 -1
- package/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/api/types/CreatePriceTierRequestBody.d.ts +9 -0
- package/api/types/CreatePriceTierRequestBody.js +5 -0
- package/api/types/CreditBundlePurchaseResponseData.d.ts +9 -0
- package/api/types/CreditBundlePurchaseResponseData.js +5 -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/FeatureUsageDataResponseData.d.ts +14 -0
- package/api/types/FeatureUsageDataResponseData.js +5 -0
- package/api/types/PlanDetailResponseData.d.ts +3 -0
- package/api/types/PlanEntitlementResponseData.d.ts +3 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/api/types/PlanGroupResponseData.d.ts +1 -0
- package/api/types/PlanTraitResponseData.d.ts +16 -0
- package/api/types/PlanTraitResponseData.js +5 -0
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +4 -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/UpdateCreditBundleRequestBody.d.ts +7 -0
- package/api/types/UpdateCreditBundleRequestBody.js +5 -0
- package/api/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/api/types/UpdateEntitlementReqCommonValueType.d.ts +2 -1
- package/api/types/UpdateEntitlementReqCommonValueType.js +1 -0
- package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/api/types/UpsertUserRequestBody.d.ts +8 -3
- package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +11 -1
- package/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +13 -0
- package/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/api/types/WebhookResponseData.d.ts +2 -0
- package/api/types/index.d.ts +19 -0
- package/api/types/index.js +19 -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 +6 -0
- package/dist/Client.js +30 -20
- 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 +4 -3
- package/dist/api/resources/accesstokens/client/Client.js +33 -16
- package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
- 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 +657 -260
- 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 +5 -1
- 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/SearchBillingPricesRequest.d.ts +1 -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/CreateBillingPriceRequestBodyTiersMode.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +10 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/dist/api/resources/billing/types/{ListCustomersParams.d.ts → 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/SearchBillingPricesParams.d.ts +1 -0
- package/{api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts → dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts} +2 -2
- package/{api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.js} +2 -2
- 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/index.d.ts +6 -3
- package/dist/api/resources/billing/types/index.js +6 -3
- package/dist/api/resources/checkout/client/Client.d.ts +23 -6
- package/dist/api/resources/checkout/client/Client.js +125 -52
- package/dist/api/resources/companies/client/Client.d.ts +119 -43
- package/dist/api/resources/companies/client/Client.js +1306 -434
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +66 -0
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js +5 -0
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +66 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js +5 -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/client/requests/index.d.ts +2 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +37 -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.d.ts +9 -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.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +37 -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.d.ts +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.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/companies/types/index.d.ts +8 -0
- package/dist/api/resources/companies/types/index.js +8 -0
- 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/credits/client/Client.d.ts +338 -0
- package/dist/api/resources/credits/client/Client.js +2338 -0
- package/dist/api/resources/credits/client/index.d.ts +1 -0
- package/dist/api/resources/credits/client/index.js +17 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +22 -0
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +21 -0
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +21 -0
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +22 -0
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +19 -0
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +5 -0
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +11 -0
- package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +5 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +14 -0
- package/dist/api/resources/credits/client/requests/index.js +2 -0
- package/dist/api/resources/credits/index.d.ts +2 -0
- package/dist/api/resources/credits/index.js +18 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +14 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsParams.d.ts +14 -0
- package/dist/api/resources/credits/types/CountBillingCreditsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingCreditsResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountBillingCreditsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +15 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/CountCreditBundlesParams.d.ts +17 -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.d.ts +9 -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.d.ts +9 -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.d.ts +9 -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.d.ts +9 -0
- package/dist/api/resources/credits/types/CreateCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/DeleteCreditBundleResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/DeleteCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/GetCreditBundleResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/GetCreditBundleResponse.js +5 -0
- package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.js +5 -0
- package/dist/api/resources/credits/types/ListBillingCreditsParams.d.ts +14 -0
- package/dist/api/resources/credits/types/ListBillingCreditsParams.js +5 -0
- package/dist/api/resources/credits/types/ListBillingCreditsResponse.d.ts +10 -0
- package/dist/api/resources/credits/types/ListBillingCreditsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +15 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +5 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +10 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +5 -0
- package/dist/api/resources/credits/types/ListCompanyGrantsParams.d.ts +16 -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.d.ts +10 -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.d.ts +17 -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.d.ts +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.d.ts +14 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditParams.js +5 -0
- package/dist/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +10 -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.d.ts +9 -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.d.ts +9 -0
- package/dist/api/resources/credits/types/ZeroOutGrantResponse.js +5 -0
- package/dist/api/resources/credits/types/index.d.ts +45 -0
- package/dist/api/resources/credits/types/index.js +61 -0
- 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 +57 -22
- package/dist/api/resources/entitlements/client/Client.js +538 -239
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -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 +2 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -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 +2 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -0
- package/dist/api/resources/entitlements/types/index.d.ts +2 -0
- package/dist/api/resources/entitlements/types/index.js +2 -0
- package/dist/api/resources/events/client/Client.d.ts +16 -6
- package/dist/api/resources/events/client/Client.js +168 -76
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -1
- package/dist/api/resources/events/types/ListEventsParams.d.ts +2 -1
- 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/ListEventsResponseParamsEventTypesItem.d.ts +9 -0
- package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +11 -0
- package/dist/api/resources/events/types/index.d.ts +2 -0
- package/dist/api/resources/events/types/index.js +2 -0
- package/dist/api/resources/features/client/Client.d.ts +54 -21
- package/dist/api/resources/features/client/Client.js +559 -240
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -0
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/types/CountFeaturesParams.d.ts +4 -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/ListFeaturesParams.d.ts +4 -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/index.d.ts +2 -0
- package/dist/api/resources/features/types/index.js +2 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -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/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plans/client/Client.d.ts +125 -12
- package/dist/api/resources/plans/client/Client.js +1011 -172
- 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 +8 -2
- 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/UpsertBillingProductRequestBodyChargeType.d.ts +9 -0
- package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +11 -0
- package/dist/api/resources/plans/types/index.d.ts +9 -0
- package/dist/api/resources/plans/types/index.js +9 -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/BillingCreditBundleResponseData.d.ts +18 -0
- package/dist/api/types/BillingCreditBundleResponseData.js +5 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +23 -0
- package/dist/api/types/BillingCreditGrantResponseData.js +5 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +21 -0
- package/dist/api/types/BillingCreditResponseData.js +5 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +14 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.js +5 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +8 -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 +3 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +4 -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/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +27 -0
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.js +5 -0
- package/dist/api/types/CompatiblePlans.d.ts +7 -0
- package/dist/api/types/CompatiblePlans.js +5 -0
- package/dist/api/types/CompatiblePlansResponseData.d.ts +7 -0
- package/dist/api/types/CompatiblePlansResponseData.js +5 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +2 -1
- package/dist/api/types/CreateEntitlementReqCommonValueType.js +1 -0
- package/dist/api/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/api/types/CreatePriceTierRequestBody.d.ts +9 -0
- package/dist/api/types/CreatePriceTierRequestBody.js +5 -0
- package/dist/api/types/CreditBundlePurchaseResponseData.d.ts +9 -0
- package/dist/api/types/CreditBundlePurchaseResponseData.js +5 -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/FeatureUsageDataResponseData.d.ts +14 -0
- package/dist/api/types/FeatureUsageDataResponseData.js +5 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +1 -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 +4 -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/UpdateCreditBundleRequestBody.d.ts +7 -0
- package/dist/api/types/UpdateCreditBundleRequestBody.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +2 -1
- package/dist/api/types/UpdateEntitlementReqCommonValueType.js +1 -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 +8 -3
- package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +11 -1
- package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +11 -0
- package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +13 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/WebhookResponseData.d.ts +2 -0
- package/dist/api/types/index.d.ts +19 -0
- package/dist/api/types/index.js +19 -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/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -1
- 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 +6 -2
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +6 -2
- 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/CreateBillingPriceRequestBodyTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.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/{serialization/resources/billing/types/ListCustomersParams.d.ts → dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/{serialization/resources/billing/types/ListCustomersParams.js → dist/serialization/resources/billing/types/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/SearchBillingPricesParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +2 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +10 -0
- package/dist/serialization/resources/billing/types/{CreateBillingPriceRequestBodyTierMode.js → SearchBillingPricesRequestTiersMode.js} +2 -2
- 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/index.d.ts +6 -3
- package/dist/serialization/resources/billing/types/index.js +6 -3
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +26 -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.d.ts +15 -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.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +26 -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.d.ts +15 -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.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/companies/types/index.d.ts +8 -0
- package/dist/serialization/resources/companies/types/index.js +8 -0
- package/dist/serialization/resources/credits/client/index.d.ts +1 -0
- package/dist/serialization/resources/credits/client/index.js +17 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +25 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +56 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +18 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +49 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +23 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +54 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +55 -0
- package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +13 -0
- package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +44 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/credits/client/requests/index.js +13 -0
- package/dist/serialization/resources/credits/index.d.ts +2 -0
- package/dist/serialization/resources/credits/index.js +18 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsParams.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +47 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesParams.d.ts +18 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesParams.js +49 -0
- package/dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +10 -0
- package/{serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js} +2 -2
- package/dist/serialization/resources/credits/types/CountCreditBundlesResponse.d.ts +15 -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.d.ts +14 -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.d.ts +14 -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.d.ts +14 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/GetCreditBundleResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/GetCreditBundleResponse.js +45 -0
- package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.d.ts +14 -0
- package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +45 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsParams.js +46 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +47 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +46 -0
- package/dist/serialization/resources/credits/types/ListCompanyGrantsParams.d.ts +18 -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.d.ts +15 -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.d.ts +18 -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.d.ts +15 -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.d.ts +15 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditParams.js +46 -0
- package/dist/serialization/resources/credits/types/ListGrantsForCreditResponse.d.ts +15 -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.d.ts +14 -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.d.ts +14 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantResponse.js +45 -0
- package/dist/serialization/resources/credits/types/index.d.ts +45 -0
- package/dist/serialization/resources/credits/types/index.js +61 -0
- package/dist/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/index.js +17 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/dist/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/dist/serialization/resources/dataexports/index.d.ts +2 -0
- package/dist/serialization/resources/dataexports/index.js +18 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/dist/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/types/index.js +17 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +13 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +13 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -1
- 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 +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -1
- 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/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -1
- 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 +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -1
- package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/index.js +2 -0
- package/dist/serialization/resources/events/types/ListEventsParams.d.ts +2 -1
- package/dist/serialization/resources/events/types/ListEventsParams.js +2 -1
- 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/ListEventsResponseParamsEventTypesItem.d.ts +10 -0
- package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +41 -0
- package/dist/serialization/resources/events/types/index.d.ts +2 -0
- package/dist/serialization/resources/events/types/index.js +2 -0
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -1
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +2 -1
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -1
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +2 -1
- package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/features/types/CountFeaturesParams.js +2 -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/ListFeaturesParams.d.ts +2 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.js +2 -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/index.d.ts +2 -0
- package/dist/serialization/resources/features/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +6 -0
- package/dist/serialization/resources/index.js +7 -1
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -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/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 -1
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +7 -1
- 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/UpsertBillingProductRequestBodyChargeType.d.ts +10 -0
- package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +41 -0
- package/dist/serialization/resources/plans/types/index.d.ts +9 -0
- package/dist/serialization/resources/plans/types/index.js +9 -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/BillingCreditBundleResponseData.d.ts +24 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.js +55 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +29 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.js +60 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +28 -0
- package/dist/serialization/types/BillingCreditResponseData.js +59 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +20 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.js +51 -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 +8 -0
- package/dist/serialization/types/BillingPriceView.js +8 -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 +3 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +3 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +4 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +4 -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/ChangeSubscriptionInternalRequestBody.d.ts +3 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +3 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +3 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.js +3 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -0
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +4 -0
- package/dist/serialization/types/CheckoutDataResponseData.js +4 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyOverrideResponseData.js +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +4 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +39 -0
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.js +70 -0
- package/dist/serialization/types/CompatiblePlans.d.ts +13 -0
- package/dist/serialization/types/CompatiblePlans.js +44 -0
- package/dist/serialization/types/CompatiblePlansResponseData.d.ts +13 -0
- package/dist/serialization/types/CompatiblePlansResponseData.js +44 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.js +1 -0
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +1 -1
- package/dist/serialization/types/CreateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateFlagRequestBody.js +1 -1
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +1 -1
- package/dist/serialization/types/CreatePriceTierRequestBody.d.ts +15 -0
- package/dist/serialization/types/CreatePriceTierRequestBody.js +46 -0
- package/dist/serialization/types/CreditBundlePurchaseResponseData.d.ts +15 -0
- package/dist/serialization/types/CreditBundlePurchaseResponseData.js +46 -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/FeatureUsageDataResponseData.d.ts +20 -0
- package/dist/serialization/types/FeatureUsageDataResponseData.js +51 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanDetailResponseData.js +3 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +5 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +4 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupResponseData.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 +5 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +5 -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/UpdateCreditBundleRequestBody.d.ts +13 -0
- package/dist/serialization/types/UpdateCreditBundleRequestBody.js +44 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.js +1 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +1 -1
- package/dist/serialization/types/UpsertUserRequestBody.d.ts +3 -1
- package/dist/serialization/types/UpsertUserRequestBody.js +5 -1
- package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +12 -1
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +12 -1
- package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +41 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.js +1 -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 +19 -0
- package/dist/serialization/types/index.js +19 -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 +4 -3
- package/reference.md +1830 -378
- package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
- package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -1
- 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 +6 -2
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +6 -2
- 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/CreateBillingPriceRequestBodyTiersMode.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +41 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/{dist/serialization/resources/billing/types/ListCustomersParams.d.ts → serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/{dist/serialization/resources/billing/types/ListCustomersParams.js → serialization/resources/billing/types/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/SearchBillingPricesParams.d.ts +2 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +2 -0
- package/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.js +41 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +10 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +41 -0
- package/serialization/resources/billing/types/index.d.ts +6 -3
- package/serialization/resources/billing/types/index.js +6 -3
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +26 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +57 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +15 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +46 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +26 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +57 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +15 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +46 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
- package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -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/companies/types/index.d.ts +8 -0
- package/serialization/resources/companies/types/index.js +8 -0
- package/serialization/resources/credits/client/index.d.ts +1 -0
- package/serialization/resources/credits/client/index.js +17 -0
- package/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +25 -0
- package/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +56 -0
- package/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +18 -0
- package/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +49 -0
- package/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +23 -0
- package/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +54 -0
- package/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
- package/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +55 -0
- package/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +13 -0
- package/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +44 -0
- package/serialization/resources/credits/client/requests/index.d.ts +5 -0
- package/serialization/resources/credits/client/requests/index.js +13 -0
- package/serialization/resources/credits/index.d.ts +2 -0
- package/serialization/resources/credits/index.js +18 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +46 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/CountBillingCreditsParams.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsParams.js +46 -0
- package/serialization/resources/credits/types/CountBillingCreditsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingCreditsResponse.js +46 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +16 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +47 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/CountCreditBundlesParams.d.ts +18 -0
- package/serialization/resources/credits/types/CountCreditBundlesParams.js +49 -0
- package/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +10 -0
- package/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js +41 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponse.d.ts +15 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponse.js +46 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +41 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/serialization/resources/credits/types/CreateBillingCreditResponse.d.ts +14 -0
- package/serialization/resources/credits/types/CreateBillingCreditResponse.js +45 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +41 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +41 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +14 -0
- package/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +45 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +10 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +41 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +10 -0
- package/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +41 -0
- package/serialization/resources/credits/types/CreateCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/CreateCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +14 -0
- package/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +45 -0
- package/serialization/resources/credits/types/DeleteCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/DeleteCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/GetCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/GetCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/GetSingleBillingCreditResponse.d.ts +14 -0
- package/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +45 -0
- package/serialization/resources/credits/types/ListBillingCreditsParams.d.ts +15 -0
- package/serialization/resources/credits/types/ListBillingCreditsParams.js +46 -0
- package/serialization/resources/credits/types/ListBillingCreditsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListBillingCreditsResponse.js +46 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +16 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +47 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/ListCompanyGrantsParams.d.ts +18 -0
- package/serialization/resources/credits/types/ListCompanyGrantsParams.js +49 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestDir.js +41 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.js +41 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponse.js +46 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +41 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
- package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +41 -0
- package/serialization/resources/credits/types/ListCreditBundlesParams.d.ts +18 -0
- package/serialization/resources/credits/types/ListCreditBundlesParams.js +49 -0
- package/serialization/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +10 -0
- package/serialization/resources/credits/types/ListCreditBundlesRequestStatus.js +41 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponse.js +46 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +10 -0
- package/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +41 -0
- package/serialization/resources/credits/types/ListGrantsForCreditParams.d.ts +15 -0
- package/serialization/resources/credits/types/ListGrantsForCreditParams.js +46 -0
- package/serialization/resources/credits/types/ListGrantsForCreditResponse.d.ts +15 -0
- package/serialization/resources/credits/types/ListGrantsForCreditResponse.js +46 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +46 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
- package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
- package/serialization/resources/credits/types/UpdateBillingCreditResponse.d.ts +14 -0
- package/serialization/resources/credits/types/UpdateBillingCreditResponse.js +45 -0
- package/serialization/resources/credits/types/UpdateCreditBundleResponse.d.ts +14 -0
- package/serialization/resources/credits/types/UpdateCreditBundleResponse.js +45 -0
- package/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +10 -0
- package/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.js +41 -0
- package/serialization/resources/credits/types/ZeroOutGrantResponse.d.ts +14 -0
- package/serialization/resources/credits/types/ZeroOutGrantResponse.js +45 -0
- package/serialization/resources/credits/types/index.d.ts +45 -0
- package/serialization/resources/credits/types/index.js +61 -0
- package/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/index.js +17 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/serialization/resources/dataexports/index.d.ts +2 -0
- package/serialization/resources/dataexports/index.js +18 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/serialization/resources/dataexports/types/index.js +17 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +1 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +13 -1
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +1 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +13 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -1
- package/serialization/resources/entitlements/types/index.d.ts +2 -0
- package/serialization/resources/entitlements/types/index.js +2 -0
- package/serialization/resources/events/types/ListEventsParams.d.ts +2 -1
- package/serialization/resources/events/types/ListEventsParams.js +2 -1
- package/serialization/resources/events/types/ListEventsRequestEventTypesItem.d.ts +10 -0
- package/serialization/resources/events/types/ListEventsRequestEventTypesItem.js +41 -0
- package/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +10 -0
- package/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +41 -0
- package/serialization/resources/events/types/index.d.ts +2 -0
- package/serialization/resources/events/types/index.js +2 -0
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -1
- package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +2 -1
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -1
- package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +2 -1
- package/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/serialization/resources/features/types/CountFeaturesParams.js +2 -0
- package/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/serialization/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/serialization/resources/features/types/ListFeaturesParams.js +2 -0
- package/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
- package/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +51 -0
- package/serialization/resources/features/types/index.d.ts +2 -0
- package/serialization/resources/features/types/index.js +2 -0
- package/serialization/resources/index.d.ts +6 -0
- package/serialization/resources/index.js +7 -1
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
- 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 +7 -1
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +7 -1
- 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/UpsertBillingProductRequestBodyChargeType.d.ts +10 -0
- package/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +41 -0
- package/serialization/resources/plans/types/index.d.ts +9 -0
- package/serialization/resources/plans/types/index.js +9 -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/BillingCreditBundleResponseData.d.ts +24 -0
- package/serialization/types/BillingCreditBundleResponseData.js +55 -0
- package/serialization/types/BillingCreditGrantResponseData.d.ts +29 -0
- package/serialization/types/BillingCreditGrantResponseData.js +60 -0
- package/serialization/types/BillingCreditResponseData.d.ts +28 -0
- package/serialization/types/BillingCreditResponseData.js +59 -0
- package/serialization/types/BillingPlanCreditGrantResponseData.d.ts +20 -0
- package/serialization/types/BillingPlanCreditGrantResponseData.js +51 -0
- package/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/serialization/types/BillingPriceResponseData.js +2 -0
- package/serialization/types/BillingPriceView.d.ts +8 -0
- package/serialization/types/BillingPriceView.js +8 -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 +3 -0
- package/serialization/types/BillingProductPlanResponseData.js +3 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +4 -0
- package/serialization/types/BillingProductPriceResponseData.js +4 -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/ChangeSubscriptionInternalRequestBody.d.ts +3 -0
- package/serialization/types/ChangeSubscriptionInternalRequestBody.js +3 -0
- package/serialization/types/ChangeSubscriptionRequestBody.d.ts +3 -0
- package/serialization/types/ChangeSubscriptionRequestBody.js +3 -0
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -0
- package/serialization/types/CheckoutDataResponseData.d.ts +4 -0
- package/serialization/types/CheckoutDataResponseData.js +4 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/serialization/types/CompanyDetailResponseData.js +2 -1
- package/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/serialization/types/CompanyOverrideResponseData.js +1 -0
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +4 -0
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +39 -0
- package/serialization/types/CompanyViewWithFeatureUsageResponseData.js +70 -0
- package/serialization/types/CompatiblePlans.d.ts +13 -0
- package/serialization/types/CompatiblePlans.js +44 -0
- package/serialization/types/CompatiblePlansResponseData.d.ts +13 -0
- package/serialization/types/CompatiblePlansResponseData.js +44 -0
- package/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/serialization/types/ComponentHydrateResponseData.js +2 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/serialization/types/ComponentPreviewResponseData.js +2 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/serialization/types/CreateEntitlementReqCommon.js +1 -0
- package/serialization/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
- package/serialization/types/CreateEntitlementReqCommonValueType.js +1 -1
- package/serialization/types/CreateFlagRequestBody.d.ts +1 -1
- package/serialization/types/CreateFlagRequestBody.js +1 -1
- package/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
- package/serialization/types/CreateOrUpdateFlagRequestBody.js +1 -1
- package/serialization/types/CreatePriceTierRequestBody.d.ts +15 -0
- package/serialization/types/CreatePriceTierRequestBody.js +46 -0
- package/serialization/types/CreditBundlePurchaseResponseData.d.ts +15 -0
- package/serialization/types/CreditBundlePurchaseResponseData.js +46 -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/FeatureUsageDataResponseData.d.ts +20 -0
- package/serialization/types/FeatureUsageDataResponseData.js +51 -0
- package/serialization/types/PlanDetailResponseData.d.ts +3 -0
- package/serialization/types/PlanDetailResponseData.js +3 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
- package/serialization/types/PlanEntitlementResponseData.js +5 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +4 -0
- package/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/serialization/types/PlanGroupResponseData.js +2 -0
- package/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/serialization/types/PlanTraitResponseData.js +50 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +5 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +5 -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/UpdateCreditBundleRequestBody.d.ts +13 -0
- package/serialization/types/UpdateCreditBundleRequestBody.js +44 -0
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/serialization/types/UpdateEntitlementReqCommon.js +1 -0
- package/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
- package/serialization/types/UpdateEntitlementReqCommonValueType.js +1 -1
- package/serialization/types/UpsertUserRequestBody.d.ts +3 -1
- package/serialization/types/UpsertUserRequestBody.js +5 -1
- package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +12 -1
- package/serialization/types/UsageBasedEntitlementRequestBody.js +12 -1
- package/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +10 -0
- package/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +41 -0
- package/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/serialization/types/UsageBasedEntitlementResponseData.js +1 -0
- package/serialization/types/WebhookResponseData.d.ts +2 -0
- package/serialization/types/WebhookResponseData.js +2 -0
- package/serialization/types/index.d.ts +19 -0
- package/serialization/types/index.js +19 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +0 -10
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +0 -10
- /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/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js} +0 -0
|
@@ -66,6 +66,7 @@ class Accounts {
|
|
|
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
|
|
@@ -74,6 +75,9 @@ class Accounts {
|
|
|
74
75
|
* })
|
|
75
76
|
*/
|
|
76
77
|
listApiKeys(request, requestOptions) {
|
|
78
|
+
return core.HttpResponsePromise.fromPromise(this.__listApiKeys(request, requestOptions));
|
|
79
|
+
}
|
|
80
|
+
__listApiKeys(request, requestOptions) {
|
|
77
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
82
|
var _a, _b, _c;
|
|
79
83
|
const { environmentId, requireEnvironment, limit, offset } = request;
|
|
@@ -91,7 +95,7 @@ class Accounts {
|
|
|
91
95
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
92
96
|
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, "api-keys"),
|
|
93
97
|
method: "GET",
|
|
94
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
98
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
95
99
|
contentType: "application/json",
|
|
96
100
|
queryParameters: _queryParams,
|
|
97
101
|
requestType: "json",
|
|
@@ -100,13 +104,16 @@ class Accounts {
|
|
|
100
104
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
101
105
|
});
|
|
102
106
|
if (_response.ok) {
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
return {
|
|
108
|
+
data: serializers.ListApiKeysResponse.parseOrThrow(_response.body, {
|
|
109
|
+
unrecognizedObjectKeys: "passthrough",
|
|
110
|
+
allowUnrecognizedUnionMembers: true,
|
|
111
|
+
allowUnrecognizedEnumValues: true,
|
|
112
|
+
skipValidation: true,
|
|
113
|
+
breadcrumbsPrefix: ["response"],
|
|
114
|
+
}),
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
};
|
|
110
117
|
}
|
|
111
118
|
if (_response.error.reason === "status-code") {
|
|
112
119
|
switch (_response.error.statusCode) {
|
|
@@ -117,7 +124,7 @@ class Accounts {
|
|
|
117
124
|
allowUnrecognizedEnumValues: true,
|
|
118
125
|
skipValidation: true,
|
|
119
126
|
breadcrumbsPrefix: ["response"],
|
|
120
|
-
}));
|
|
127
|
+
}), _response.rawResponse);
|
|
121
128
|
case 401:
|
|
122
129
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
123
130
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -125,7 +132,7 @@ class Accounts {
|
|
|
125
132
|
allowUnrecognizedEnumValues: true,
|
|
126
133
|
skipValidation: true,
|
|
127
134
|
breadcrumbsPrefix: ["response"],
|
|
128
|
-
}));
|
|
135
|
+
}), _response.rawResponse);
|
|
129
136
|
case 403:
|
|
130
137
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
131
138
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -133,7 +140,15 @@ class Accounts {
|
|
|
133
140
|
allowUnrecognizedEnumValues: true,
|
|
134
141
|
skipValidation: true,
|
|
135
142
|
breadcrumbsPrefix: ["response"],
|
|
136
|
-
}));
|
|
143
|
+
}), _response.rawResponse);
|
|
144
|
+
case 404:
|
|
145
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
146
|
+
unrecognizedObjectKeys: "passthrough",
|
|
147
|
+
allowUnrecognizedUnionMembers: true,
|
|
148
|
+
allowUnrecognizedEnumValues: true,
|
|
149
|
+
skipValidation: true,
|
|
150
|
+
breadcrumbsPrefix: ["response"],
|
|
151
|
+
}), _response.rawResponse);
|
|
137
152
|
case 500:
|
|
138
153
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
139
154
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -141,11 +156,12 @@ class Accounts {
|
|
|
141
156
|
allowUnrecognizedEnumValues: true,
|
|
142
157
|
skipValidation: true,
|
|
143
158
|
breadcrumbsPrefix: ["response"],
|
|
144
|
-
}));
|
|
159
|
+
}), _response.rawResponse);
|
|
145
160
|
default:
|
|
146
161
|
throw new errors.SchematicError({
|
|
147
162
|
statusCode: _response.error.statusCode,
|
|
148
163
|
body: _response.error.body,
|
|
164
|
+
rawResponse: _response.rawResponse,
|
|
149
165
|
});
|
|
150
166
|
}
|
|
151
167
|
}
|
|
@@ -154,12 +170,14 @@ class Accounts {
|
|
|
154
170
|
throw new errors.SchematicError({
|
|
155
171
|
statusCode: _response.error.statusCode,
|
|
156
172
|
body: _response.error.rawBody,
|
|
173
|
+
rawResponse: _response.rawResponse,
|
|
157
174
|
});
|
|
158
175
|
case "timeout":
|
|
159
176
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /api-keys.");
|
|
160
177
|
case "unknown":
|
|
161
178
|
throw new errors.SchematicError({
|
|
162
179
|
message: _response.error.errorMessage,
|
|
180
|
+
rawResponse: _response.rawResponse,
|
|
163
181
|
});
|
|
164
182
|
}
|
|
165
183
|
});
|
|
@@ -171,6 +189,7 @@ class Accounts {
|
|
|
171
189
|
* @throws {@link Schematic.BadRequestError}
|
|
172
190
|
* @throws {@link Schematic.UnauthorizedError}
|
|
173
191
|
* @throws {@link Schematic.ForbiddenError}
|
|
192
|
+
* @throws {@link Schematic.NotFoundError}
|
|
174
193
|
* @throws {@link Schematic.InternalServerError}
|
|
175
194
|
*
|
|
176
195
|
* @example
|
|
@@ -179,12 +198,15 @@ class Accounts {
|
|
|
179
198
|
* })
|
|
180
199
|
*/
|
|
181
200
|
createApiKey(request, requestOptions) {
|
|
201
|
+
return core.HttpResponsePromise.fromPromise(this.__createApiKey(request, requestOptions));
|
|
202
|
+
}
|
|
203
|
+
__createApiKey(request, requestOptions) {
|
|
182
204
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183
205
|
var _a, _b, _c;
|
|
184
206
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
185
207
|
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, "api-keys"),
|
|
186
208
|
method: "POST",
|
|
187
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
209
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
188
210
|
contentType: "application/json",
|
|
189
211
|
requestType: "json",
|
|
190
212
|
body: serializers.CreateApiKeyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -193,13 +215,16 @@ class Accounts {
|
|
|
193
215
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
194
216
|
});
|
|
195
217
|
if (_response.ok) {
|
|
196
|
-
return
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
218
|
+
return {
|
|
219
|
+
data: serializers.CreateApiKeyResponse.parseOrThrow(_response.body, {
|
|
220
|
+
unrecognizedObjectKeys: "passthrough",
|
|
221
|
+
allowUnrecognizedUnionMembers: true,
|
|
222
|
+
allowUnrecognizedEnumValues: true,
|
|
223
|
+
skipValidation: true,
|
|
224
|
+
breadcrumbsPrefix: ["response"],
|
|
225
|
+
}),
|
|
226
|
+
rawResponse: _response.rawResponse,
|
|
227
|
+
};
|
|
203
228
|
}
|
|
204
229
|
if (_response.error.reason === "status-code") {
|
|
205
230
|
switch (_response.error.statusCode) {
|
|
@@ -210,7 +235,7 @@ class Accounts {
|
|
|
210
235
|
allowUnrecognizedEnumValues: true,
|
|
211
236
|
skipValidation: true,
|
|
212
237
|
breadcrumbsPrefix: ["response"],
|
|
213
|
-
}));
|
|
238
|
+
}), _response.rawResponse);
|
|
214
239
|
case 401:
|
|
215
240
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
216
241
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -218,7 +243,7 @@ class Accounts {
|
|
|
218
243
|
allowUnrecognizedEnumValues: true,
|
|
219
244
|
skipValidation: true,
|
|
220
245
|
breadcrumbsPrefix: ["response"],
|
|
221
|
-
}));
|
|
246
|
+
}), _response.rawResponse);
|
|
222
247
|
case 403:
|
|
223
248
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
224
249
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -226,7 +251,15 @@ class Accounts {
|
|
|
226
251
|
allowUnrecognizedEnumValues: true,
|
|
227
252
|
skipValidation: true,
|
|
228
253
|
breadcrumbsPrefix: ["response"],
|
|
229
|
-
}));
|
|
254
|
+
}), _response.rawResponse);
|
|
255
|
+
case 404:
|
|
256
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
257
|
+
unrecognizedObjectKeys: "passthrough",
|
|
258
|
+
allowUnrecognizedUnionMembers: true,
|
|
259
|
+
allowUnrecognizedEnumValues: true,
|
|
260
|
+
skipValidation: true,
|
|
261
|
+
breadcrumbsPrefix: ["response"],
|
|
262
|
+
}), _response.rawResponse);
|
|
230
263
|
case 500:
|
|
231
264
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
232
265
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -234,11 +267,12 @@ class Accounts {
|
|
|
234
267
|
allowUnrecognizedEnumValues: true,
|
|
235
268
|
skipValidation: true,
|
|
236
269
|
breadcrumbsPrefix: ["response"],
|
|
237
|
-
}));
|
|
270
|
+
}), _response.rawResponse);
|
|
238
271
|
default:
|
|
239
272
|
throw new errors.SchematicError({
|
|
240
273
|
statusCode: _response.error.statusCode,
|
|
241
274
|
body: _response.error.body,
|
|
275
|
+
rawResponse: _response.rawResponse,
|
|
242
276
|
});
|
|
243
277
|
}
|
|
244
278
|
}
|
|
@@ -247,12 +281,14 @@ class Accounts {
|
|
|
247
281
|
throw new errors.SchematicError({
|
|
248
282
|
statusCode: _response.error.statusCode,
|
|
249
283
|
body: _response.error.rawBody,
|
|
284
|
+
rawResponse: _response.rawResponse,
|
|
250
285
|
});
|
|
251
286
|
case "timeout":
|
|
252
287
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /api-keys.");
|
|
253
288
|
case "unknown":
|
|
254
289
|
throw new errors.SchematicError({
|
|
255
290
|
message: _response.error.errorMessage,
|
|
291
|
+
rawResponse: _response.rawResponse,
|
|
256
292
|
});
|
|
257
293
|
}
|
|
258
294
|
});
|
|
@@ -270,12 +306,15 @@ class Accounts {
|
|
|
270
306
|
* await client.accounts.getApiKey("api_key_id")
|
|
271
307
|
*/
|
|
272
308
|
getApiKey(apiKeyId, requestOptions) {
|
|
309
|
+
return core.HttpResponsePromise.fromPromise(this.__getApiKey(apiKeyId, requestOptions));
|
|
310
|
+
}
|
|
311
|
+
__getApiKey(apiKeyId, requestOptions) {
|
|
273
312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
313
|
var _a, _b, _c;
|
|
275
314
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
276
315
|
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, `api-keys/${encodeURIComponent(apiKeyId)}`),
|
|
277
316
|
method: "GET",
|
|
278
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
317
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
279
318
|
contentType: "application/json",
|
|
280
319
|
requestType: "json",
|
|
281
320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -283,13 +322,16 @@ class Accounts {
|
|
|
283
322
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
284
323
|
});
|
|
285
324
|
if (_response.ok) {
|
|
286
|
-
return
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
325
|
+
return {
|
|
326
|
+
data: serializers.GetApiKeyResponse.parseOrThrow(_response.body, {
|
|
327
|
+
unrecognizedObjectKeys: "passthrough",
|
|
328
|
+
allowUnrecognizedUnionMembers: true,
|
|
329
|
+
allowUnrecognizedEnumValues: true,
|
|
330
|
+
skipValidation: true,
|
|
331
|
+
breadcrumbsPrefix: ["response"],
|
|
332
|
+
}),
|
|
333
|
+
rawResponse: _response.rawResponse,
|
|
334
|
+
};
|
|
293
335
|
}
|
|
294
336
|
if (_response.error.reason === "status-code") {
|
|
295
337
|
switch (_response.error.statusCode) {
|
|
@@ -300,7 +342,7 @@ class Accounts {
|
|
|
300
342
|
allowUnrecognizedEnumValues: true,
|
|
301
343
|
skipValidation: true,
|
|
302
344
|
breadcrumbsPrefix: ["response"],
|
|
303
|
-
}));
|
|
345
|
+
}), _response.rawResponse);
|
|
304
346
|
case 403:
|
|
305
347
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
306
348
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -308,7 +350,7 @@ class Accounts {
|
|
|
308
350
|
allowUnrecognizedEnumValues: true,
|
|
309
351
|
skipValidation: true,
|
|
310
352
|
breadcrumbsPrefix: ["response"],
|
|
311
|
-
}));
|
|
353
|
+
}), _response.rawResponse);
|
|
312
354
|
case 404:
|
|
313
355
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
314
356
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -316,7 +358,7 @@ class Accounts {
|
|
|
316
358
|
allowUnrecognizedEnumValues: true,
|
|
317
359
|
skipValidation: true,
|
|
318
360
|
breadcrumbsPrefix: ["response"],
|
|
319
|
-
}));
|
|
361
|
+
}), _response.rawResponse);
|
|
320
362
|
case 500:
|
|
321
363
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
322
364
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -324,11 +366,12 @@ class Accounts {
|
|
|
324
366
|
allowUnrecognizedEnumValues: true,
|
|
325
367
|
skipValidation: true,
|
|
326
368
|
breadcrumbsPrefix: ["response"],
|
|
327
|
-
}));
|
|
369
|
+
}), _response.rawResponse);
|
|
328
370
|
default:
|
|
329
371
|
throw new errors.SchematicError({
|
|
330
372
|
statusCode: _response.error.statusCode,
|
|
331
373
|
body: _response.error.body,
|
|
374
|
+
rawResponse: _response.rawResponse,
|
|
332
375
|
});
|
|
333
376
|
}
|
|
334
377
|
}
|
|
@@ -337,12 +380,14 @@ class Accounts {
|
|
|
337
380
|
throw new errors.SchematicError({
|
|
338
381
|
statusCode: _response.error.statusCode,
|
|
339
382
|
body: _response.error.rawBody,
|
|
383
|
+
rawResponse: _response.rawResponse,
|
|
340
384
|
});
|
|
341
385
|
case "timeout":
|
|
342
386
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /api-keys/{api_key_id}.");
|
|
343
387
|
case "unknown":
|
|
344
388
|
throw new errors.SchematicError({
|
|
345
389
|
message: _response.error.errorMessage,
|
|
390
|
+
rawResponse: _response.rawResponse,
|
|
346
391
|
});
|
|
347
392
|
}
|
|
348
393
|
});
|
|
@@ -361,13 +406,16 @@ class Accounts {
|
|
|
361
406
|
* @example
|
|
362
407
|
* await client.accounts.updateApiKey("api_key_id")
|
|
363
408
|
*/
|
|
364
|
-
updateApiKey(
|
|
409
|
+
updateApiKey(apiKeyId, request = {}, requestOptions) {
|
|
410
|
+
return core.HttpResponsePromise.fromPromise(this.__updateApiKey(apiKeyId, request, requestOptions));
|
|
411
|
+
}
|
|
412
|
+
__updateApiKey(apiKeyId_1) {
|
|
365
413
|
return __awaiter(this, arguments, void 0, function* (apiKeyId, request = {}, requestOptions) {
|
|
366
414
|
var _a, _b, _c;
|
|
367
415
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
368
416
|
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, `api-keys/${encodeURIComponent(apiKeyId)}`),
|
|
369
417
|
method: "PUT",
|
|
370
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
418
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
371
419
|
contentType: "application/json",
|
|
372
420
|
requestType: "json",
|
|
373
421
|
body: serializers.UpdateApiKeyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -376,13 +424,16 @@ class Accounts {
|
|
|
376
424
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
377
425
|
});
|
|
378
426
|
if (_response.ok) {
|
|
379
|
-
return
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
427
|
+
return {
|
|
428
|
+
data: serializers.UpdateApiKeyResponse.parseOrThrow(_response.body, {
|
|
429
|
+
unrecognizedObjectKeys: "passthrough",
|
|
430
|
+
allowUnrecognizedUnionMembers: true,
|
|
431
|
+
allowUnrecognizedEnumValues: true,
|
|
432
|
+
skipValidation: true,
|
|
433
|
+
breadcrumbsPrefix: ["response"],
|
|
434
|
+
}),
|
|
435
|
+
rawResponse: _response.rawResponse,
|
|
436
|
+
};
|
|
386
437
|
}
|
|
387
438
|
if (_response.error.reason === "status-code") {
|
|
388
439
|
switch (_response.error.statusCode) {
|
|
@@ -393,7 +444,7 @@ class Accounts {
|
|
|
393
444
|
allowUnrecognizedEnumValues: true,
|
|
394
445
|
skipValidation: true,
|
|
395
446
|
breadcrumbsPrefix: ["response"],
|
|
396
|
-
}));
|
|
447
|
+
}), _response.rawResponse);
|
|
397
448
|
case 401:
|
|
398
449
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
399
450
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -401,7 +452,7 @@ class Accounts {
|
|
|
401
452
|
allowUnrecognizedEnumValues: true,
|
|
402
453
|
skipValidation: true,
|
|
403
454
|
breadcrumbsPrefix: ["response"],
|
|
404
|
-
}));
|
|
455
|
+
}), _response.rawResponse);
|
|
405
456
|
case 403:
|
|
406
457
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
407
458
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -409,7 +460,7 @@ class Accounts {
|
|
|
409
460
|
allowUnrecognizedEnumValues: true,
|
|
410
461
|
skipValidation: true,
|
|
411
462
|
breadcrumbsPrefix: ["response"],
|
|
412
|
-
}));
|
|
463
|
+
}), _response.rawResponse);
|
|
413
464
|
case 404:
|
|
414
465
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
415
466
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -417,7 +468,7 @@ class Accounts {
|
|
|
417
468
|
allowUnrecognizedEnumValues: true,
|
|
418
469
|
skipValidation: true,
|
|
419
470
|
breadcrumbsPrefix: ["response"],
|
|
420
|
-
}));
|
|
471
|
+
}), _response.rawResponse);
|
|
421
472
|
case 500:
|
|
422
473
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
423
474
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -425,11 +476,12 @@ class Accounts {
|
|
|
425
476
|
allowUnrecognizedEnumValues: true,
|
|
426
477
|
skipValidation: true,
|
|
427
478
|
breadcrumbsPrefix: ["response"],
|
|
428
|
-
}));
|
|
479
|
+
}), _response.rawResponse);
|
|
429
480
|
default:
|
|
430
481
|
throw new errors.SchematicError({
|
|
431
482
|
statusCode: _response.error.statusCode,
|
|
432
483
|
body: _response.error.body,
|
|
484
|
+
rawResponse: _response.rawResponse,
|
|
433
485
|
});
|
|
434
486
|
}
|
|
435
487
|
}
|
|
@@ -438,12 +490,14 @@ class Accounts {
|
|
|
438
490
|
throw new errors.SchematicError({
|
|
439
491
|
statusCode: _response.error.statusCode,
|
|
440
492
|
body: _response.error.rawBody,
|
|
493
|
+
rawResponse: _response.rawResponse,
|
|
441
494
|
});
|
|
442
495
|
case "timeout":
|
|
443
496
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /api-keys/{api_key_id}.");
|
|
444
497
|
case "unknown":
|
|
445
498
|
throw new errors.SchematicError({
|
|
446
499
|
message: _response.error.errorMessage,
|
|
500
|
+
rawResponse: _response.rawResponse,
|
|
447
501
|
});
|
|
448
502
|
}
|
|
449
503
|
});
|
|
@@ -455,18 +509,22 @@ class Accounts {
|
|
|
455
509
|
* @throws {@link Schematic.BadRequestError}
|
|
456
510
|
* @throws {@link Schematic.UnauthorizedError}
|
|
457
511
|
* @throws {@link Schematic.ForbiddenError}
|
|
512
|
+
* @throws {@link Schematic.NotFoundError}
|
|
458
513
|
* @throws {@link Schematic.InternalServerError}
|
|
459
514
|
*
|
|
460
515
|
* @example
|
|
461
516
|
* await client.accounts.deleteApiKey("api_key_id")
|
|
462
517
|
*/
|
|
463
518
|
deleteApiKey(apiKeyId, requestOptions) {
|
|
519
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteApiKey(apiKeyId, requestOptions));
|
|
520
|
+
}
|
|
521
|
+
__deleteApiKey(apiKeyId, requestOptions) {
|
|
464
522
|
return __awaiter(this, void 0, void 0, function* () {
|
|
465
523
|
var _a, _b, _c;
|
|
466
524
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
467
525
|
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, `api-keys/${encodeURIComponent(apiKeyId)}`),
|
|
468
526
|
method: "DELETE",
|
|
469
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
527
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
470
528
|
contentType: "application/json",
|
|
471
529
|
requestType: "json",
|
|
472
530
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -474,13 +532,16 @@ class Accounts {
|
|
|
474
532
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
475
533
|
});
|
|
476
534
|
if (_response.ok) {
|
|
477
|
-
return
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
535
|
+
return {
|
|
536
|
+
data: serializers.DeleteApiKeyResponse.parseOrThrow(_response.body, {
|
|
537
|
+
unrecognizedObjectKeys: "passthrough",
|
|
538
|
+
allowUnrecognizedUnionMembers: true,
|
|
539
|
+
allowUnrecognizedEnumValues: true,
|
|
540
|
+
skipValidation: true,
|
|
541
|
+
breadcrumbsPrefix: ["response"],
|
|
542
|
+
}),
|
|
543
|
+
rawResponse: _response.rawResponse,
|
|
544
|
+
};
|
|
484
545
|
}
|
|
485
546
|
if (_response.error.reason === "status-code") {
|
|
486
547
|
switch (_response.error.statusCode) {
|
|
@@ -491,7 +552,7 @@ class Accounts {
|
|
|
491
552
|
allowUnrecognizedEnumValues: true,
|
|
492
553
|
skipValidation: true,
|
|
493
554
|
breadcrumbsPrefix: ["response"],
|
|
494
|
-
}));
|
|
555
|
+
}), _response.rawResponse);
|
|
495
556
|
case 401:
|
|
496
557
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
497
558
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -499,7 +560,7 @@ class Accounts {
|
|
|
499
560
|
allowUnrecognizedEnumValues: true,
|
|
500
561
|
skipValidation: true,
|
|
501
562
|
breadcrumbsPrefix: ["response"],
|
|
502
|
-
}));
|
|
563
|
+
}), _response.rawResponse);
|
|
503
564
|
case 403:
|
|
504
565
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
505
566
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -507,7 +568,15 @@ class Accounts {
|
|
|
507
568
|
allowUnrecognizedEnumValues: true,
|
|
508
569
|
skipValidation: true,
|
|
509
570
|
breadcrumbsPrefix: ["response"],
|
|
510
|
-
}));
|
|
571
|
+
}), _response.rawResponse);
|
|
572
|
+
case 404:
|
|
573
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
574
|
+
unrecognizedObjectKeys: "passthrough",
|
|
575
|
+
allowUnrecognizedUnionMembers: true,
|
|
576
|
+
allowUnrecognizedEnumValues: true,
|
|
577
|
+
skipValidation: true,
|
|
578
|
+
breadcrumbsPrefix: ["response"],
|
|
579
|
+
}), _response.rawResponse);
|
|
511
580
|
case 500:
|
|
512
581
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
513
582
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -515,11 +584,12 @@ class Accounts {
|
|
|
515
584
|
allowUnrecognizedEnumValues: true,
|
|
516
585
|
skipValidation: true,
|
|
517
586
|
breadcrumbsPrefix: ["response"],
|
|
518
|
-
}));
|
|
587
|
+
}), _response.rawResponse);
|
|
519
588
|
default:
|
|
520
589
|
throw new errors.SchematicError({
|
|
521
590
|
statusCode: _response.error.statusCode,
|
|
522
591
|
body: _response.error.body,
|
|
592
|
+
rawResponse: _response.rawResponse,
|
|
523
593
|
});
|
|
524
594
|
}
|
|
525
595
|
}
|
|
@@ -528,12 +598,14 @@ class Accounts {
|
|
|
528
598
|
throw new errors.SchematicError({
|
|
529
599
|
statusCode: _response.error.statusCode,
|
|
530
600
|
body: _response.error.rawBody,
|
|
601
|
+
rawResponse: _response.rawResponse,
|
|
531
602
|
});
|
|
532
603
|
case "timeout":
|
|
533
604
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /api-keys/{api_key_id}.");
|
|
534
605
|
case "unknown":
|
|
535
606
|
throw new errors.SchematicError({
|
|
536
607
|
message: _response.error.errorMessage,
|
|
608
|
+
rawResponse: _response.rawResponse,
|
|
537
609
|
});
|
|
538
610
|
}
|
|
539
611
|
});
|
|
@@ -545,6 +617,7 @@ class Accounts {
|
|
|
545
617
|
* @throws {@link Schematic.BadRequestError}
|
|
546
618
|
* @throws {@link Schematic.UnauthorizedError}
|
|
547
619
|
* @throws {@link Schematic.ForbiddenError}
|
|
620
|
+
* @throws {@link Schematic.NotFoundError}
|
|
548
621
|
* @throws {@link Schematic.InternalServerError}
|
|
549
622
|
*
|
|
550
623
|
* @example
|
|
@@ -553,6 +626,9 @@ class Accounts {
|
|
|
553
626
|
* })
|
|
554
627
|
*/
|
|
555
628
|
countApiKeys(request, requestOptions) {
|
|
629
|
+
return core.HttpResponsePromise.fromPromise(this.__countApiKeys(request, requestOptions));
|
|
630
|
+
}
|
|
631
|
+
__countApiKeys(request, requestOptions) {
|
|
556
632
|
return __awaiter(this, void 0, void 0, function* () {
|
|
557
633
|
var _a, _b, _c;
|
|
558
634
|
const { environmentId, requireEnvironment, limit, offset } = request;
|
|
@@ -570,7 +646,7 @@ class Accounts {
|
|
|
570
646
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
571
647
|
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, "api-keys/count"),
|
|
572
648
|
method: "GET",
|
|
573
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
649
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
574
650
|
contentType: "application/json",
|
|
575
651
|
queryParameters: _queryParams,
|
|
576
652
|
requestType: "json",
|
|
@@ -579,13 +655,16 @@ class Accounts {
|
|
|
579
655
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
580
656
|
});
|
|
581
657
|
if (_response.ok) {
|
|
582
|
-
return
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
658
|
+
return {
|
|
659
|
+
data: serializers.CountApiKeysResponse.parseOrThrow(_response.body, {
|
|
660
|
+
unrecognizedObjectKeys: "passthrough",
|
|
661
|
+
allowUnrecognizedUnionMembers: true,
|
|
662
|
+
allowUnrecognizedEnumValues: true,
|
|
663
|
+
skipValidation: true,
|
|
664
|
+
breadcrumbsPrefix: ["response"],
|
|
665
|
+
}),
|
|
666
|
+
rawResponse: _response.rawResponse,
|
|
667
|
+
};
|
|
589
668
|
}
|
|
590
669
|
if (_response.error.reason === "status-code") {
|
|
591
670
|
switch (_response.error.statusCode) {
|
|
@@ -596,7 +675,7 @@ class Accounts {
|
|
|
596
675
|
allowUnrecognizedEnumValues: true,
|
|
597
676
|
skipValidation: true,
|
|
598
677
|
breadcrumbsPrefix: ["response"],
|
|
599
|
-
}));
|
|
678
|
+
}), _response.rawResponse);
|
|
600
679
|
case 401:
|
|
601
680
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
602
681
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -604,7 +683,7 @@ class Accounts {
|
|
|
604
683
|
allowUnrecognizedEnumValues: true,
|
|
605
684
|
skipValidation: true,
|
|
606
685
|
breadcrumbsPrefix: ["response"],
|
|
607
|
-
}));
|
|
686
|
+
}), _response.rawResponse);
|
|
608
687
|
case 403:
|
|
609
688
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
610
689
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -612,7 +691,15 @@ class Accounts {
|
|
|
612
691
|
allowUnrecognizedEnumValues: true,
|
|
613
692
|
skipValidation: true,
|
|
614
693
|
breadcrumbsPrefix: ["response"],
|
|
615
|
-
}));
|
|
694
|
+
}), _response.rawResponse);
|
|
695
|
+
case 404:
|
|
696
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
697
|
+
unrecognizedObjectKeys: "passthrough",
|
|
698
|
+
allowUnrecognizedUnionMembers: true,
|
|
699
|
+
allowUnrecognizedEnumValues: true,
|
|
700
|
+
skipValidation: true,
|
|
701
|
+
breadcrumbsPrefix: ["response"],
|
|
702
|
+
}), _response.rawResponse);
|
|
616
703
|
case 500:
|
|
617
704
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
618
705
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -620,11 +707,12 @@ class Accounts {
|
|
|
620
707
|
allowUnrecognizedEnumValues: true,
|
|
621
708
|
skipValidation: true,
|
|
622
709
|
breadcrumbsPrefix: ["response"],
|
|
623
|
-
}));
|
|
710
|
+
}), _response.rawResponse);
|
|
624
711
|
default:
|
|
625
712
|
throw new errors.SchematicError({
|
|
626
713
|
statusCode: _response.error.statusCode,
|
|
627
714
|
body: _response.error.body,
|
|
715
|
+
rawResponse: _response.rawResponse,
|
|
628
716
|
});
|
|
629
717
|
}
|
|
630
718
|
}
|
|
@@ -633,12 +721,14 @@ class Accounts {
|
|
|
633
721
|
throw new errors.SchematicError({
|
|
634
722
|
statusCode: _response.error.statusCode,
|
|
635
723
|
body: _response.error.rawBody,
|
|
724
|
+
rawResponse: _response.rawResponse,
|
|
636
725
|
});
|
|
637
726
|
case "timeout":
|
|
638
727
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /api-keys/count.");
|
|
639
728
|
case "unknown":
|
|
640
729
|
throw new errors.SchematicError({
|
|
641
730
|
message: _response.error.errorMessage,
|
|
731
|
+
rawResponse: _response.rawResponse,
|
|
642
732
|
});
|
|
643
733
|
}
|
|
644
734
|
});
|
|
@@ -650,12 +740,16 @@ class Accounts {
|
|
|
650
740
|
* @throws {@link Schematic.BadRequestError}
|
|
651
741
|
* @throws {@link Schematic.UnauthorizedError}
|
|
652
742
|
* @throws {@link Schematic.ForbiddenError}
|
|
743
|
+
* @throws {@link Schematic.NotFoundError}
|
|
653
744
|
* @throws {@link Schematic.InternalServerError}
|
|
654
745
|
*
|
|
655
746
|
* @example
|
|
656
747
|
* await client.accounts.listApiRequests()
|
|
657
748
|
*/
|
|
658
|
-
listApiRequests() {
|
|
749
|
+
listApiRequests(request = {}, requestOptions) {
|
|
750
|
+
return core.HttpResponsePromise.fromPromise(this.__listApiRequests(request, requestOptions));
|
|
751
|
+
}
|
|
752
|
+
__listApiRequests() {
|
|
659
753
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
660
754
|
var _a, _b, _c;
|
|
661
755
|
const { q, requestType, environmentId, limit, offset } = request;
|
|
@@ -678,7 +772,7 @@ class Accounts {
|
|
|
678
772
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
679
773
|
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, "api-requests"),
|
|
680
774
|
method: "GET",
|
|
681
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
775
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
682
776
|
contentType: "application/json",
|
|
683
777
|
queryParameters: _queryParams,
|
|
684
778
|
requestType: "json",
|
|
@@ -687,13 +781,16 @@ class Accounts {
|
|
|
687
781
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
688
782
|
});
|
|
689
783
|
if (_response.ok) {
|
|
690
|
-
return
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
784
|
+
return {
|
|
785
|
+
data: serializers.ListApiRequestsResponse.parseOrThrow(_response.body, {
|
|
786
|
+
unrecognizedObjectKeys: "passthrough",
|
|
787
|
+
allowUnrecognizedUnionMembers: true,
|
|
788
|
+
allowUnrecognizedEnumValues: true,
|
|
789
|
+
skipValidation: true,
|
|
790
|
+
breadcrumbsPrefix: ["response"],
|
|
791
|
+
}),
|
|
792
|
+
rawResponse: _response.rawResponse,
|
|
793
|
+
};
|
|
697
794
|
}
|
|
698
795
|
if (_response.error.reason === "status-code") {
|
|
699
796
|
switch (_response.error.statusCode) {
|
|
@@ -704,7 +801,7 @@ class Accounts {
|
|
|
704
801
|
allowUnrecognizedEnumValues: true,
|
|
705
802
|
skipValidation: true,
|
|
706
803
|
breadcrumbsPrefix: ["response"],
|
|
707
|
-
}));
|
|
804
|
+
}), _response.rawResponse);
|
|
708
805
|
case 401:
|
|
709
806
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
710
807
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -712,7 +809,7 @@ class Accounts {
|
|
|
712
809
|
allowUnrecognizedEnumValues: true,
|
|
713
810
|
skipValidation: true,
|
|
714
811
|
breadcrumbsPrefix: ["response"],
|
|
715
|
-
}));
|
|
812
|
+
}), _response.rawResponse);
|
|
716
813
|
case 403:
|
|
717
814
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
718
815
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -720,7 +817,15 @@ class Accounts {
|
|
|
720
817
|
allowUnrecognizedEnumValues: true,
|
|
721
818
|
skipValidation: true,
|
|
722
819
|
breadcrumbsPrefix: ["response"],
|
|
723
|
-
}));
|
|
820
|
+
}), _response.rawResponse);
|
|
821
|
+
case 404:
|
|
822
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
823
|
+
unrecognizedObjectKeys: "passthrough",
|
|
824
|
+
allowUnrecognizedUnionMembers: true,
|
|
825
|
+
allowUnrecognizedEnumValues: true,
|
|
826
|
+
skipValidation: true,
|
|
827
|
+
breadcrumbsPrefix: ["response"],
|
|
828
|
+
}), _response.rawResponse);
|
|
724
829
|
case 500:
|
|
725
830
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
726
831
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -728,11 +833,12 @@ class Accounts {
|
|
|
728
833
|
allowUnrecognizedEnumValues: true,
|
|
729
834
|
skipValidation: true,
|
|
730
835
|
breadcrumbsPrefix: ["response"],
|
|
731
|
-
}));
|
|
836
|
+
}), _response.rawResponse);
|
|
732
837
|
default:
|
|
733
838
|
throw new errors.SchematicError({
|
|
734
839
|
statusCode: _response.error.statusCode,
|
|
735
840
|
body: _response.error.body,
|
|
841
|
+
rawResponse: _response.rawResponse,
|
|
736
842
|
});
|
|
737
843
|
}
|
|
738
844
|
}
|
|
@@ -741,12 +847,14 @@ class Accounts {
|
|
|
741
847
|
throw new errors.SchematicError({
|
|
742
848
|
statusCode: _response.error.statusCode,
|
|
743
849
|
body: _response.error.rawBody,
|
|
850
|
+
rawResponse: _response.rawResponse,
|
|
744
851
|
});
|
|
745
852
|
case "timeout":
|
|
746
853
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /api-requests.");
|
|
747
854
|
case "unknown":
|
|
748
855
|
throw new errors.SchematicError({
|
|
749
856
|
message: _response.error.errorMessage,
|
|
857
|
+
rawResponse: _response.rawResponse,
|
|
750
858
|
});
|
|
751
859
|
}
|
|
752
860
|
});
|
|
@@ -764,12 +872,15 @@ class Accounts {
|
|
|
764
872
|
* await client.accounts.getApiRequest("api_request_id")
|
|
765
873
|
*/
|
|
766
874
|
getApiRequest(apiRequestId, requestOptions) {
|
|
875
|
+
return core.HttpResponsePromise.fromPromise(this.__getApiRequest(apiRequestId, requestOptions));
|
|
876
|
+
}
|
|
877
|
+
__getApiRequest(apiRequestId, requestOptions) {
|
|
767
878
|
return __awaiter(this, void 0, void 0, function* () {
|
|
768
879
|
var _a, _b, _c;
|
|
769
880
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
770
881
|
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, `api-requests/${encodeURIComponent(apiRequestId)}`),
|
|
771
882
|
method: "GET",
|
|
772
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
883
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
773
884
|
contentType: "application/json",
|
|
774
885
|
requestType: "json",
|
|
775
886
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -777,13 +888,16 @@ class Accounts {
|
|
|
777
888
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
778
889
|
});
|
|
779
890
|
if (_response.ok) {
|
|
780
|
-
return
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
891
|
+
return {
|
|
892
|
+
data: serializers.GetApiRequestResponse.parseOrThrow(_response.body, {
|
|
893
|
+
unrecognizedObjectKeys: "passthrough",
|
|
894
|
+
allowUnrecognizedUnionMembers: true,
|
|
895
|
+
allowUnrecognizedEnumValues: true,
|
|
896
|
+
skipValidation: true,
|
|
897
|
+
breadcrumbsPrefix: ["response"],
|
|
898
|
+
}),
|
|
899
|
+
rawResponse: _response.rawResponse,
|
|
900
|
+
};
|
|
787
901
|
}
|
|
788
902
|
if (_response.error.reason === "status-code") {
|
|
789
903
|
switch (_response.error.statusCode) {
|
|
@@ -794,7 +908,7 @@ class Accounts {
|
|
|
794
908
|
allowUnrecognizedEnumValues: true,
|
|
795
909
|
skipValidation: true,
|
|
796
910
|
breadcrumbsPrefix: ["response"],
|
|
797
|
-
}));
|
|
911
|
+
}), _response.rawResponse);
|
|
798
912
|
case 403:
|
|
799
913
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
800
914
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -802,7 +916,7 @@ class Accounts {
|
|
|
802
916
|
allowUnrecognizedEnumValues: true,
|
|
803
917
|
skipValidation: true,
|
|
804
918
|
breadcrumbsPrefix: ["response"],
|
|
805
|
-
}));
|
|
919
|
+
}), _response.rawResponse);
|
|
806
920
|
case 404:
|
|
807
921
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
808
922
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -810,7 +924,7 @@ class Accounts {
|
|
|
810
924
|
allowUnrecognizedEnumValues: true,
|
|
811
925
|
skipValidation: true,
|
|
812
926
|
breadcrumbsPrefix: ["response"],
|
|
813
|
-
}));
|
|
927
|
+
}), _response.rawResponse);
|
|
814
928
|
case 500:
|
|
815
929
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
816
930
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -818,11 +932,12 @@ class Accounts {
|
|
|
818
932
|
allowUnrecognizedEnumValues: true,
|
|
819
933
|
skipValidation: true,
|
|
820
934
|
breadcrumbsPrefix: ["response"],
|
|
821
|
-
}));
|
|
935
|
+
}), _response.rawResponse);
|
|
822
936
|
default:
|
|
823
937
|
throw new errors.SchematicError({
|
|
824
938
|
statusCode: _response.error.statusCode,
|
|
825
939
|
body: _response.error.body,
|
|
940
|
+
rawResponse: _response.rawResponse,
|
|
826
941
|
});
|
|
827
942
|
}
|
|
828
943
|
}
|
|
@@ -831,12 +946,14 @@ class Accounts {
|
|
|
831
946
|
throw new errors.SchematicError({
|
|
832
947
|
statusCode: _response.error.statusCode,
|
|
833
948
|
body: _response.error.rawBody,
|
|
949
|
+
rawResponse: _response.rawResponse,
|
|
834
950
|
});
|
|
835
951
|
case "timeout":
|
|
836
952
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /api-requests/{api_request_id}.");
|
|
837
953
|
case "unknown":
|
|
838
954
|
throw new errors.SchematicError({
|
|
839
955
|
message: _response.error.errorMessage,
|
|
956
|
+
rawResponse: _response.rawResponse,
|
|
840
957
|
});
|
|
841
958
|
}
|
|
842
959
|
});
|
|
@@ -848,12 +965,16 @@ class Accounts {
|
|
|
848
965
|
* @throws {@link Schematic.BadRequestError}
|
|
849
966
|
* @throws {@link Schematic.UnauthorizedError}
|
|
850
967
|
* @throws {@link Schematic.ForbiddenError}
|
|
968
|
+
* @throws {@link Schematic.NotFoundError}
|
|
851
969
|
* @throws {@link Schematic.InternalServerError}
|
|
852
970
|
*
|
|
853
971
|
* @example
|
|
854
972
|
* await client.accounts.countApiRequests()
|
|
855
973
|
*/
|
|
856
|
-
countApiRequests() {
|
|
974
|
+
countApiRequests(request = {}, requestOptions) {
|
|
975
|
+
return core.HttpResponsePromise.fromPromise(this.__countApiRequests(request, requestOptions));
|
|
976
|
+
}
|
|
977
|
+
__countApiRequests() {
|
|
857
978
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
858
979
|
var _a, _b, _c;
|
|
859
980
|
const { q, requestType, environmentId, limit, offset } = request;
|
|
@@ -876,7 +997,7 @@ class Accounts {
|
|
|
876
997
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
877
998
|
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, "api-requests/count"),
|
|
878
999
|
method: "GET",
|
|
879
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1000
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
880
1001
|
contentType: "application/json",
|
|
881
1002
|
queryParameters: _queryParams,
|
|
882
1003
|
requestType: "json",
|
|
@@ -885,13 +1006,16 @@ class Accounts {
|
|
|
885
1006
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
886
1007
|
});
|
|
887
1008
|
if (_response.ok) {
|
|
888
|
-
return
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
1009
|
+
return {
|
|
1010
|
+
data: serializers.CountApiRequestsResponse.parseOrThrow(_response.body, {
|
|
1011
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1012
|
+
allowUnrecognizedUnionMembers: true,
|
|
1013
|
+
allowUnrecognizedEnumValues: true,
|
|
1014
|
+
skipValidation: true,
|
|
1015
|
+
breadcrumbsPrefix: ["response"],
|
|
1016
|
+
}),
|
|
1017
|
+
rawResponse: _response.rawResponse,
|
|
1018
|
+
};
|
|
895
1019
|
}
|
|
896
1020
|
if (_response.error.reason === "status-code") {
|
|
897
1021
|
switch (_response.error.statusCode) {
|
|
@@ -902,7 +1026,7 @@ class Accounts {
|
|
|
902
1026
|
allowUnrecognizedEnumValues: true,
|
|
903
1027
|
skipValidation: true,
|
|
904
1028
|
breadcrumbsPrefix: ["response"],
|
|
905
|
-
}));
|
|
1029
|
+
}), _response.rawResponse);
|
|
906
1030
|
case 401:
|
|
907
1031
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
908
1032
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -910,7 +1034,7 @@ class Accounts {
|
|
|
910
1034
|
allowUnrecognizedEnumValues: true,
|
|
911
1035
|
skipValidation: true,
|
|
912
1036
|
breadcrumbsPrefix: ["response"],
|
|
913
|
-
}));
|
|
1037
|
+
}), _response.rawResponse);
|
|
914
1038
|
case 403:
|
|
915
1039
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
916
1040
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -918,7 +1042,15 @@ class Accounts {
|
|
|
918
1042
|
allowUnrecognizedEnumValues: true,
|
|
919
1043
|
skipValidation: true,
|
|
920
1044
|
breadcrumbsPrefix: ["response"],
|
|
921
|
-
}));
|
|
1045
|
+
}), _response.rawResponse);
|
|
1046
|
+
case 404:
|
|
1047
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1048
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1049
|
+
allowUnrecognizedUnionMembers: true,
|
|
1050
|
+
allowUnrecognizedEnumValues: true,
|
|
1051
|
+
skipValidation: true,
|
|
1052
|
+
breadcrumbsPrefix: ["response"],
|
|
1053
|
+
}), _response.rawResponse);
|
|
922
1054
|
case 500:
|
|
923
1055
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
924
1056
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -926,11 +1058,12 @@ class Accounts {
|
|
|
926
1058
|
allowUnrecognizedEnumValues: true,
|
|
927
1059
|
skipValidation: true,
|
|
928
1060
|
breadcrumbsPrefix: ["response"],
|
|
929
|
-
}));
|
|
1061
|
+
}), _response.rawResponse);
|
|
930
1062
|
default:
|
|
931
1063
|
throw new errors.SchematicError({
|
|
932
1064
|
statusCode: _response.error.statusCode,
|
|
933
1065
|
body: _response.error.body,
|
|
1066
|
+
rawResponse: _response.rawResponse,
|
|
934
1067
|
});
|
|
935
1068
|
}
|
|
936
1069
|
}
|
|
@@ -939,12 +1072,14 @@ class Accounts {
|
|
|
939
1072
|
throw new errors.SchematicError({
|
|
940
1073
|
statusCode: _response.error.statusCode,
|
|
941
1074
|
body: _response.error.rawBody,
|
|
1075
|
+
rawResponse: _response.rawResponse,
|
|
942
1076
|
});
|
|
943
1077
|
case "timeout":
|
|
944
1078
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /api-requests/count.");
|
|
945
1079
|
case "unknown":
|
|
946
1080
|
throw new errors.SchematicError({
|
|
947
1081
|
message: _response.error.errorMessage,
|
|
1082
|
+
rawResponse: _response.rawResponse,
|
|
948
1083
|
});
|
|
949
1084
|
}
|
|
950
1085
|
});
|
|
@@ -956,12 +1091,16 @@ class Accounts {
|
|
|
956
1091
|
* @throws {@link Schematic.BadRequestError}
|
|
957
1092
|
* @throws {@link Schematic.UnauthorizedError}
|
|
958
1093
|
* @throws {@link Schematic.ForbiddenError}
|
|
1094
|
+
* @throws {@link Schematic.NotFoundError}
|
|
959
1095
|
* @throws {@link Schematic.InternalServerError}
|
|
960
1096
|
*
|
|
961
1097
|
* @example
|
|
962
1098
|
* await client.accounts.listEnvironments()
|
|
963
1099
|
*/
|
|
964
|
-
listEnvironments() {
|
|
1100
|
+
listEnvironments(request = {}, requestOptions) {
|
|
1101
|
+
return core.HttpResponsePromise.fromPromise(this.__listEnvironments(request, requestOptions));
|
|
1102
|
+
}
|
|
1103
|
+
__listEnvironments() {
|
|
965
1104
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
966
1105
|
var _a, _b, _c;
|
|
967
1106
|
const { ids, limit, offset } = request;
|
|
@@ -983,7 +1122,7 @@ class Accounts {
|
|
|
983
1122
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
984
1123
|
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, "environments"),
|
|
985
1124
|
method: "GET",
|
|
986
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1125
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
987
1126
|
contentType: "application/json",
|
|
988
1127
|
queryParameters: _queryParams,
|
|
989
1128
|
requestType: "json",
|
|
@@ -992,13 +1131,16 @@ class Accounts {
|
|
|
992
1131
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
993
1132
|
});
|
|
994
1133
|
if (_response.ok) {
|
|
995
|
-
return
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1134
|
+
return {
|
|
1135
|
+
data: serializers.ListEnvironmentsResponse.parseOrThrow(_response.body, {
|
|
1136
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1137
|
+
allowUnrecognizedUnionMembers: true,
|
|
1138
|
+
allowUnrecognizedEnumValues: true,
|
|
1139
|
+
skipValidation: true,
|
|
1140
|
+
breadcrumbsPrefix: ["response"],
|
|
1141
|
+
}),
|
|
1142
|
+
rawResponse: _response.rawResponse,
|
|
1143
|
+
};
|
|
1002
1144
|
}
|
|
1003
1145
|
if (_response.error.reason === "status-code") {
|
|
1004
1146
|
switch (_response.error.statusCode) {
|
|
@@ -1009,7 +1151,7 @@ class Accounts {
|
|
|
1009
1151
|
allowUnrecognizedEnumValues: true,
|
|
1010
1152
|
skipValidation: true,
|
|
1011
1153
|
breadcrumbsPrefix: ["response"],
|
|
1012
|
-
}));
|
|
1154
|
+
}), _response.rawResponse);
|
|
1013
1155
|
case 401:
|
|
1014
1156
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1015
1157
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1017,7 +1159,7 @@ class Accounts {
|
|
|
1017
1159
|
allowUnrecognizedEnumValues: true,
|
|
1018
1160
|
skipValidation: true,
|
|
1019
1161
|
breadcrumbsPrefix: ["response"],
|
|
1020
|
-
}));
|
|
1162
|
+
}), _response.rawResponse);
|
|
1021
1163
|
case 403:
|
|
1022
1164
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1023
1165
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1025,7 +1167,15 @@ class Accounts {
|
|
|
1025
1167
|
allowUnrecognizedEnumValues: true,
|
|
1026
1168
|
skipValidation: true,
|
|
1027
1169
|
breadcrumbsPrefix: ["response"],
|
|
1028
|
-
}));
|
|
1170
|
+
}), _response.rawResponse);
|
|
1171
|
+
case 404:
|
|
1172
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1173
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1174
|
+
allowUnrecognizedUnionMembers: true,
|
|
1175
|
+
allowUnrecognizedEnumValues: true,
|
|
1176
|
+
skipValidation: true,
|
|
1177
|
+
breadcrumbsPrefix: ["response"],
|
|
1178
|
+
}), _response.rawResponse);
|
|
1029
1179
|
case 500:
|
|
1030
1180
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1031
1181
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1033,11 +1183,12 @@ class Accounts {
|
|
|
1033
1183
|
allowUnrecognizedEnumValues: true,
|
|
1034
1184
|
skipValidation: true,
|
|
1035
1185
|
breadcrumbsPrefix: ["response"],
|
|
1036
|
-
}));
|
|
1186
|
+
}), _response.rawResponse);
|
|
1037
1187
|
default:
|
|
1038
1188
|
throw new errors.SchematicError({
|
|
1039
1189
|
statusCode: _response.error.statusCode,
|
|
1040
1190
|
body: _response.error.body,
|
|
1191
|
+
rawResponse: _response.rawResponse,
|
|
1041
1192
|
});
|
|
1042
1193
|
}
|
|
1043
1194
|
}
|
|
@@ -1046,12 +1197,14 @@ class Accounts {
|
|
|
1046
1197
|
throw new errors.SchematicError({
|
|
1047
1198
|
statusCode: _response.error.statusCode,
|
|
1048
1199
|
body: _response.error.rawBody,
|
|
1200
|
+
rawResponse: _response.rawResponse,
|
|
1049
1201
|
});
|
|
1050
1202
|
case "timeout":
|
|
1051
1203
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /environments.");
|
|
1052
1204
|
case "unknown":
|
|
1053
1205
|
throw new errors.SchematicError({
|
|
1054
1206
|
message: _response.error.errorMessage,
|
|
1207
|
+
rawResponse: _response.rawResponse,
|
|
1055
1208
|
});
|
|
1056
1209
|
}
|
|
1057
1210
|
});
|
|
@@ -1063,6 +1216,7 @@ class Accounts {
|
|
|
1063
1216
|
* @throws {@link Schematic.BadRequestError}
|
|
1064
1217
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1065
1218
|
* @throws {@link Schematic.ForbiddenError}
|
|
1219
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1066
1220
|
* @throws {@link Schematic.InternalServerError}
|
|
1067
1221
|
*
|
|
1068
1222
|
* @example
|
|
@@ -1072,12 +1226,15 @@ class Accounts {
|
|
|
1072
1226
|
* })
|
|
1073
1227
|
*/
|
|
1074
1228
|
createEnvironment(request, requestOptions) {
|
|
1229
|
+
return core.HttpResponsePromise.fromPromise(this.__createEnvironment(request, requestOptions));
|
|
1230
|
+
}
|
|
1231
|
+
__createEnvironment(request, requestOptions) {
|
|
1075
1232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1076
1233
|
var _a, _b, _c;
|
|
1077
1234
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1078
1235
|
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, "environments"),
|
|
1079
1236
|
method: "POST",
|
|
1080
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1237
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1081
1238
|
contentType: "application/json",
|
|
1082
1239
|
requestType: "json",
|
|
1083
1240
|
body: serializers.CreateEnvironmentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1086,13 +1243,16 @@ class Accounts {
|
|
|
1086
1243
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1087
1244
|
});
|
|
1088
1245
|
if (_response.ok) {
|
|
1089
|
-
return
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1246
|
+
return {
|
|
1247
|
+
data: serializers.CreateEnvironmentResponse.parseOrThrow(_response.body, {
|
|
1248
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1249
|
+
allowUnrecognizedUnionMembers: true,
|
|
1250
|
+
allowUnrecognizedEnumValues: true,
|
|
1251
|
+
skipValidation: true,
|
|
1252
|
+
breadcrumbsPrefix: ["response"],
|
|
1253
|
+
}),
|
|
1254
|
+
rawResponse: _response.rawResponse,
|
|
1255
|
+
};
|
|
1096
1256
|
}
|
|
1097
1257
|
if (_response.error.reason === "status-code") {
|
|
1098
1258
|
switch (_response.error.statusCode) {
|
|
@@ -1103,7 +1263,7 @@ class Accounts {
|
|
|
1103
1263
|
allowUnrecognizedEnumValues: true,
|
|
1104
1264
|
skipValidation: true,
|
|
1105
1265
|
breadcrumbsPrefix: ["response"],
|
|
1106
|
-
}));
|
|
1266
|
+
}), _response.rawResponse);
|
|
1107
1267
|
case 401:
|
|
1108
1268
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1109
1269
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1111,7 +1271,7 @@ class Accounts {
|
|
|
1111
1271
|
allowUnrecognizedEnumValues: true,
|
|
1112
1272
|
skipValidation: true,
|
|
1113
1273
|
breadcrumbsPrefix: ["response"],
|
|
1114
|
-
}));
|
|
1274
|
+
}), _response.rawResponse);
|
|
1115
1275
|
case 403:
|
|
1116
1276
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1117
1277
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1119,7 +1279,15 @@ class Accounts {
|
|
|
1119
1279
|
allowUnrecognizedEnumValues: true,
|
|
1120
1280
|
skipValidation: true,
|
|
1121
1281
|
breadcrumbsPrefix: ["response"],
|
|
1122
|
-
}));
|
|
1282
|
+
}), _response.rawResponse);
|
|
1283
|
+
case 404:
|
|
1284
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1285
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1286
|
+
allowUnrecognizedUnionMembers: true,
|
|
1287
|
+
allowUnrecognizedEnumValues: true,
|
|
1288
|
+
skipValidation: true,
|
|
1289
|
+
breadcrumbsPrefix: ["response"],
|
|
1290
|
+
}), _response.rawResponse);
|
|
1123
1291
|
case 500:
|
|
1124
1292
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1125
1293
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1127,11 +1295,12 @@ class Accounts {
|
|
|
1127
1295
|
allowUnrecognizedEnumValues: true,
|
|
1128
1296
|
skipValidation: true,
|
|
1129
1297
|
breadcrumbsPrefix: ["response"],
|
|
1130
|
-
}));
|
|
1298
|
+
}), _response.rawResponse);
|
|
1131
1299
|
default:
|
|
1132
1300
|
throw new errors.SchematicError({
|
|
1133
1301
|
statusCode: _response.error.statusCode,
|
|
1134
1302
|
body: _response.error.body,
|
|
1303
|
+
rawResponse: _response.rawResponse,
|
|
1135
1304
|
});
|
|
1136
1305
|
}
|
|
1137
1306
|
}
|
|
@@ -1140,12 +1309,14 @@ class Accounts {
|
|
|
1140
1309
|
throw new errors.SchematicError({
|
|
1141
1310
|
statusCode: _response.error.statusCode,
|
|
1142
1311
|
body: _response.error.rawBody,
|
|
1312
|
+
rawResponse: _response.rawResponse,
|
|
1143
1313
|
});
|
|
1144
1314
|
case "timeout":
|
|
1145
1315
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /environments.");
|
|
1146
1316
|
case "unknown":
|
|
1147
1317
|
throw new errors.SchematicError({
|
|
1148
1318
|
message: _response.error.errorMessage,
|
|
1319
|
+
rawResponse: _response.rawResponse,
|
|
1149
1320
|
});
|
|
1150
1321
|
}
|
|
1151
1322
|
});
|
|
@@ -1163,12 +1334,15 @@ class Accounts {
|
|
|
1163
1334
|
* await client.accounts.getEnvironment("environment_id")
|
|
1164
1335
|
*/
|
|
1165
1336
|
getEnvironment(environmentId, requestOptions) {
|
|
1337
|
+
return core.HttpResponsePromise.fromPromise(this.__getEnvironment(environmentId, requestOptions));
|
|
1338
|
+
}
|
|
1339
|
+
__getEnvironment(environmentId, requestOptions) {
|
|
1166
1340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1167
1341
|
var _a, _b, _c;
|
|
1168
1342
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1169
1343
|
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, `environments/${encodeURIComponent(environmentId)}`),
|
|
1170
1344
|
method: "GET",
|
|
1171
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1345
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1172
1346
|
contentType: "application/json",
|
|
1173
1347
|
requestType: "json",
|
|
1174
1348
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1176,13 +1350,16 @@ class Accounts {
|
|
|
1176
1350
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1177
1351
|
});
|
|
1178
1352
|
if (_response.ok) {
|
|
1179
|
-
return
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1353
|
+
return {
|
|
1354
|
+
data: serializers.GetEnvironmentResponse.parseOrThrow(_response.body, {
|
|
1355
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1356
|
+
allowUnrecognizedUnionMembers: true,
|
|
1357
|
+
allowUnrecognizedEnumValues: true,
|
|
1358
|
+
skipValidation: true,
|
|
1359
|
+
breadcrumbsPrefix: ["response"],
|
|
1360
|
+
}),
|
|
1361
|
+
rawResponse: _response.rawResponse,
|
|
1362
|
+
};
|
|
1186
1363
|
}
|
|
1187
1364
|
if (_response.error.reason === "status-code") {
|
|
1188
1365
|
switch (_response.error.statusCode) {
|
|
@@ -1193,7 +1370,7 @@ class Accounts {
|
|
|
1193
1370
|
allowUnrecognizedEnumValues: true,
|
|
1194
1371
|
skipValidation: true,
|
|
1195
1372
|
breadcrumbsPrefix: ["response"],
|
|
1196
|
-
}));
|
|
1373
|
+
}), _response.rawResponse);
|
|
1197
1374
|
case 403:
|
|
1198
1375
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1199
1376
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1201,7 +1378,7 @@ class Accounts {
|
|
|
1201
1378
|
allowUnrecognizedEnumValues: true,
|
|
1202
1379
|
skipValidation: true,
|
|
1203
1380
|
breadcrumbsPrefix: ["response"],
|
|
1204
|
-
}));
|
|
1381
|
+
}), _response.rawResponse);
|
|
1205
1382
|
case 404:
|
|
1206
1383
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1207
1384
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1209,7 +1386,7 @@ class Accounts {
|
|
|
1209
1386
|
allowUnrecognizedEnumValues: true,
|
|
1210
1387
|
skipValidation: true,
|
|
1211
1388
|
breadcrumbsPrefix: ["response"],
|
|
1212
|
-
}));
|
|
1389
|
+
}), _response.rawResponse);
|
|
1213
1390
|
case 500:
|
|
1214
1391
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1215
1392
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1217,11 +1394,12 @@ class Accounts {
|
|
|
1217
1394
|
allowUnrecognizedEnumValues: true,
|
|
1218
1395
|
skipValidation: true,
|
|
1219
1396
|
breadcrumbsPrefix: ["response"],
|
|
1220
|
-
}));
|
|
1397
|
+
}), _response.rawResponse);
|
|
1221
1398
|
default:
|
|
1222
1399
|
throw new errors.SchematicError({
|
|
1223
1400
|
statusCode: _response.error.statusCode,
|
|
1224
1401
|
body: _response.error.body,
|
|
1402
|
+
rawResponse: _response.rawResponse,
|
|
1225
1403
|
});
|
|
1226
1404
|
}
|
|
1227
1405
|
}
|
|
@@ -1230,12 +1408,14 @@ class Accounts {
|
|
|
1230
1408
|
throw new errors.SchematicError({
|
|
1231
1409
|
statusCode: _response.error.statusCode,
|
|
1232
1410
|
body: _response.error.rawBody,
|
|
1411
|
+
rawResponse: _response.rawResponse,
|
|
1233
1412
|
});
|
|
1234
1413
|
case "timeout":
|
|
1235
1414
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling GET /environments/{environment_id}.");
|
|
1236
1415
|
case "unknown":
|
|
1237
1416
|
throw new errors.SchematicError({
|
|
1238
1417
|
message: _response.error.errorMessage,
|
|
1418
|
+
rawResponse: _response.rawResponse,
|
|
1239
1419
|
});
|
|
1240
1420
|
}
|
|
1241
1421
|
});
|
|
@@ -1254,13 +1434,16 @@ class Accounts {
|
|
|
1254
1434
|
* @example
|
|
1255
1435
|
* await client.accounts.updateEnvironment("environment_id")
|
|
1256
1436
|
*/
|
|
1257
|
-
updateEnvironment(
|
|
1437
|
+
updateEnvironment(environmentId, request = {}, requestOptions) {
|
|
1438
|
+
return core.HttpResponsePromise.fromPromise(this.__updateEnvironment(environmentId, request, requestOptions));
|
|
1439
|
+
}
|
|
1440
|
+
__updateEnvironment(environmentId_1) {
|
|
1258
1441
|
return __awaiter(this, arguments, void 0, function* (environmentId, request = {}, requestOptions) {
|
|
1259
1442
|
var _a, _b, _c;
|
|
1260
1443
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1261
1444
|
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, `environments/${encodeURIComponent(environmentId)}`),
|
|
1262
1445
|
method: "PUT",
|
|
1263
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1446
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1264
1447
|
contentType: "application/json",
|
|
1265
1448
|
requestType: "json",
|
|
1266
1449
|
body: serializers.UpdateEnvironmentRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1269,13 +1452,16 @@ class Accounts {
|
|
|
1269
1452
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1270
1453
|
});
|
|
1271
1454
|
if (_response.ok) {
|
|
1272
|
-
return
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1455
|
+
return {
|
|
1456
|
+
data: serializers.UpdateEnvironmentResponse.parseOrThrow(_response.body, {
|
|
1457
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1458
|
+
allowUnrecognizedUnionMembers: true,
|
|
1459
|
+
allowUnrecognizedEnumValues: true,
|
|
1460
|
+
skipValidation: true,
|
|
1461
|
+
breadcrumbsPrefix: ["response"],
|
|
1462
|
+
}),
|
|
1463
|
+
rawResponse: _response.rawResponse,
|
|
1464
|
+
};
|
|
1279
1465
|
}
|
|
1280
1466
|
if (_response.error.reason === "status-code") {
|
|
1281
1467
|
switch (_response.error.statusCode) {
|
|
@@ -1286,7 +1472,7 @@ class Accounts {
|
|
|
1286
1472
|
allowUnrecognizedEnumValues: true,
|
|
1287
1473
|
skipValidation: true,
|
|
1288
1474
|
breadcrumbsPrefix: ["response"],
|
|
1289
|
-
}));
|
|
1475
|
+
}), _response.rawResponse);
|
|
1290
1476
|
case 401:
|
|
1291
1477
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1292
1478
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1294,7 +1480,7 @@ class Accounts {
|
|
|
1294
1480
|
allowUnrecognizedEnumValues: true,
|
|
1295
1481
|
skipValidation: true,
|
|
1296
1482
|
breadcrumbsPrefix: ["response"],
|
|
1297
|
-
}));
|
|
1483
|
+
}), _response.rawResponse);
|
|
1298
1484
|
case 403:
|
|
1299
1485
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1300
1486
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1302,7 +1488,7 @@ class Accounts {
|
|
|
1302
1488
|
allowUnrecognizedEnumValues: true,
|
|
1303
1489
|
skipValidation: true,
|
|
1304
1490
|
breadcrumbsPrefix: ["response"],
|
|
1305
|
-
}));
|
|
1491
|
+
}), _response.rawResponse);
|
|
1306
1492
|
case 404:
|
|
1307
1493
|
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1308
1494
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1310,7 +1496,7 @@ class Accounts {
|
|
|
1310
1496
|
allowUnrecognizedEnumValues: true,
|
|
1311
1497
|
skipValidation: true,
|
|
1312
1498
|
breadcrumbsPrefix: ["response"],
|
|
1313
|
-
}));
|
|
1499
|
+
}), _response.rawResponse);
|
|
1314
1500
|
case 500:
|
|
1315
1501
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1316
1502
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1318,11 +1504,12 @@ class Accounts {
|
|
|
1318
1504
|
allowUnrecognizedEnumValues: true,
|
|
1319
1505
|
skipValidation: true,
|
|
1320
1506
|
breadcrumbsPrefix: ["response"],
|
|
1321
|
-
}));
|
|
1507
|
+
}), _response.rawResponse);
|
|
1322
1508
|
default:
|
|
1323
1509
|
throw new errors.SchematicError({
|
|
1324
1510
|
statusCode: _response.error.statusCode,
|
|
1325
1511
|
body: _response.error.body,
|
|
1512
|
+
rawResponse: _response.rawResponse,
|
|
1326
1513
|
});
|
|
1327
1514
|
}
|
|
1328
1515
|
}
|
|
@@ -1331,12 +1518,14 @@ class Accounts {
|
|
|
1331
1518
|
throw new errors.SchematicError({
|
|
1332
1519
|
statusCode: _response.error.statusCode,
|
|
1333
1520
|
body: _response.error.rawBody,
|
|
1521
|
+
rawResponse: _response.rawResponse,
|
|
1334
1522
|
});
|
|
1335
1523
|
case "timeout":
|
|
1336
1524
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling PUT /environments/{environment_id}.");
|
|
1337
1525
|
case "unknown":
|
|
1338
1526
|
throw new errors.SchematicError({
|
|
1339
1527
|
message: _response.error.errorMessage,
|
|
1528
|
+
rawResponse: _response.rawResponse,
|
|
1340
1529
|
});
|
|
1341
1530
|
}
|
|
1342
1531
|
});
|
|
@@ -1348,18 +1537,22 @@ class Accounts {
|
|
|
1348
1537
|
* @throws {@link Schematic.BadRequestError}
|
|
1349
1538
|
* @throws {@link Schematic.UnauthorizedError}
|
|
1350
1539
|
* @throws {@link Schematic.ForbiddenError}
|
|
1540
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1351
1541
|
* @throws {@link Schematic.InternalServerError}
|
|
1352
1542
|
*
|
|
1353
1543
|
* @example
|
|
1354
1544
|
* await client.accounts.deleteEnvironment("environment_id")
|
|
1355
1545
|
*/
|
|
1356
1546
|
deleteEnvironment(environmentId, requestOptions) {
|
|
1547
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteEnvironment(environmentId, requestOptions));
|
|
1548
|
+
}
|
|
1549
|
+
__deleteEnvironment(environmentId, requestOptions) {
|
|
1357
1550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1358
1551
|
var _a, _b, _c;
|
|
1359
1552
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1360
1553
|
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, `environments/${encodeURIComponent(environmentId)}`),
|
|
1361
1554
|
method: "DELETE",
|
|
1362
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1555
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1363
1556
|
contentType: "application/json",
|
|
1364
1557
|
requestType: "json",
|
|
1365
1558
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1367,13 +1560,16 @@ class Accounts {
|
|
|
1367
1560
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1368
1561
|
});
|
|
1369
1562
|
if (_response.ok) {
|
|
1370
|
-
return
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1563
|
+
return {
|
|
1564
|
+
data: serializers.DeleteEnvironmentResponse.parseOrThrow(_response.body, {
|
|
1565
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1566
|
+
allowUnrecognizedUnionMembers: true,
|
|
1567
|
+
allowUnrecognizedEnumValues: true,
|
|
1568
|
+
skipValidation: true,
|
|
1569
|
+
breadcrumbsPrefix: ["response"],
|
|
1570
|
+
}),
|
|
1571
|
+
rawResponse: _response.rawResponse,
|
|
1572
|
+
};
|
|
1377
1573
|
}
|
|
1378
1574
|
if (_response.error.reason === "status-code") {
|
|
1379
1575
|
switch (_response.error.statusCode) {
|
|
@@ -1384,7 +1580,7 @@ class Accounts {
|
|
|
1384
1580
|
allowUnrecognizedEnumValues: true,
|
|
1385
1581
|
skipValidation: true,
|
|
1386
1582
|
breadcrumbsPrefix: ["response"],
|
|
1387
|
-
}));
|
|
1583
|
+
}), _response.rawResponse);
|
|
1388
1584
|
case 401:
|
|
1389
1585
|
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1390
1586
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1392,7 +1588,7 @@ class Accounts {
|
|
|
1392
1588
|
allowUnrecognizedEnumValues: true,
|
|
1393
1589
|
skipValidation: true,
|
|
1394
1590
|
breadcrumbsPrefix: ["response"],
|
|
1395
|
-
}));
|
|
1591
|
+
}), _response.rawResponse);
|
|
1396
1592
|
case 403:
|
|
1397
1593
|
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1398
1594
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1400,7 +1596,15 @@ class Accounts {
|
|
|
1400
1596
|
allowUnrecognizedEnumValues: true,
|
|
1401
1597
|
skipValidation: true,
|
|
1402
1598
|
breadcrumbsPrefix: ["response"],
|
|
1403
|
-
}));
|
|
1599
|
+
}), _response.rawResponse);
|
|
1600
|
+
case 404:
|
|
1601
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1602
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1603
|
+
allowUnrecognizedUnionMembers: true,
|
|
1604
|
+
allowUnrecognizedEnumValues: true,
|
|
1605
|
+
skipValidation: true,
|
|
1606
|
+
breadcrumbsPrefix: ["response"],
|
|
1607
|
+
}), _response.rawResponse);
|
|
1404
1608
|
case 500:
|
|
1405
1609
|
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1406
1610
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -1408,11 +1612,12 @@ class Accounts {
|
|
|
1408
1612
|
allowUnrecognizedEnumValues: true,
|
|
1409
1613
|
skipValidation: true,
|
|
1410
1614
|
breadcrumbsPrefix: ["response"],
|
|
1411
|
-
}));
|
|
1615
|
+
}), _response.rawResponse);
|
|
1412
1616
|
default:
|
|
1413
1617
|
throw new errors.SchematicError({
|
|
1414
1618
|
statusCode: _response.error.statusCode,
|
|
1415
1619
|
body: _response.error.body,
|
|
1620
|
+
rawResponse: _response.rawResponse,
|
|
1416
1621
|
});
|
|
1417
1622
|
}
|
|
1418
1623
|
}
|
|
@@ -1421,12 +1626,121 @@ class Accounts {
|
|
|
1421
1626
|
throw new errors.SchematicError({
|
|
1422
1627
|
statusCode: _response.error.statusCode,
|
|
1423
1628
|
body: _response.error.rawBody,
|
|
1629
|
+
rawResponse: _response.rawResponse,
|
|
1424
1630
|
});
|
|
1425
1631
|
case "timeout":
|
|
1426
1632
|
throw new errors.SchematicTimeoutError("Timeout exceeded when calling DELETE /environments/{environment_id}.");
|
|
1427
1633
|
case "unknown":
|
|
1428
1634
|
throw new errors.SchematicError({
|
|
1429
1635
|
message: _response.error.errorMessage,
|
|
1636
|
+
rawResponse: _response.rawResponse,
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
}
|
|
1641
|
+
/**
|
|
1642
|
+
* @param {Accounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
1643
|
+
*
|
|
1644
|
+
* @throws {@link Schematic.BadRequestError}
|
|
1645
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
1646
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
1647
|
+
* @throws {@link Schematic.NotFoundError}
|
|
1648
|
+
* @throws {@link Schematic.InternalServerError}
|
|
1649
|
+
*
|
|
1650
|
+
* @example
|
|
1651
|
+
* await client.accounts.quickstart()
|
|
1652
|
+
*/
|
|
1653
|
+
quickstart(requestOptions) {
|
|
1654
|
+
return core.HttpResponsePromise.fromPromise(this.__quickstart(requestOptions));
|
|
1655
|
+
}
|
|
1656
|
+
__quickstart(requestOptions) {
|
|
1657
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1658
|
+
var _a, _b, _c;
|
|
1659
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1660
|
+
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, "quickstart"),
|
|
1661
|
+
method: "POST",
|
|
1662
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.12", "User-Agent": "@schematichq/schematic-typescript-node/1.1.12", "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),
|
|
1663
|
+
contentType: "application/json",
|
|
1664
|
+
requestType: "json",
|
|
1665
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1666
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1667
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1668
|
+
});
|
|
1669
|
+
if (_response.ok) {
|
|
1670
|
+
return {
|
|
1671
|
+
data: serializers.QuickstartResponse.parseOrThrow(_response.body, {
|
|
1672
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1673
|
+
allowUnrecognizedUnionMembers: true,
|
|
1674
|
+
allowUnrecognizedEnumValues: true,
|
|
1675
|
+
skipValidation: true,
|
|
1676
|
+
breadcrumbsPrefix: ["response"],
|
|
1677
|
+
}),
|
|
1678
|
+
rawResponse: _response.rawResponse,
|
|
1679
|
+
};
|
|
1680
|
+
}
|
|
1681
|
+
if (_response.error.reason === "status-code") {
|
|
1682
|
+
switch (_response.error.statusCode) {
|
|
1683
|
+
case 400:
|
|
1684
|
+
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1685
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1686
|
+
allowUnrecognizedUnionMembers: true,
|
|
1687
|
+
allowUnrecognizedEnumValues: true,
|
|
1688
|
+
skipValidation: true,
|
|
1689
|
+
breadcrumbsPrefix: ["response"],
|
|
1690
|
+
}), _response.rawResponse);
|
|
1691
|
+
case 401:
|
|
1692
|
+
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1693
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1694
|
+
allowUnrecognizedUnionMembers: true,
|
|
1695
|
+
allowUnrecognizedEnumValues: true,
|
|
1696
|
+
skipValidation: true,
|
|
1697
|
+
breadcrumbsPrefix: ["response"],
|
|
1698
|
+
}), _response.rawResponse);
|
|
1699
|
+
case 403:
|
|
1700
|
+
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1701
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1702
|
+
allowUnrecognizedUnionMembers: true,
|
|
1703
|
+
allowUnrecognizedEnumValues: true,
|
|
1704
|
+
skipValidation: true,
|
|
1705
|
+
breadcrumbsPrefix: ["response"],
|
|
1706
|
+
}), _response.rawResponse);
|
|
1707
|
+
case 404:
|
|
1708
|
+
throw new Schematic.NotFoundError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1709
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1710
|
+
allowUnrecognizedUnionMembers: true,
|
|
1711
|
+
allowUnrecognizedEnumValues: true,
|
|
1712
|
+
skipValidation: true,
|
|
1713
|
+
breadcrumbsPrefix: ["response"],
|
|
1714
|
+
}), _response.rawResponse);
|
|
1715
|
+
case 500:
|
|
1716
|
+
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1717
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1718
|
+
allowUnrecognizedUnionMembers: true,
|
|
1719
|
+
allowUnrecognizedEnumValues: true,
|
|
1720
|
+
skipValidation: true,
|
|
1721
|
+
breadcrumbsPrefix: ["response"],
|
|
1722
|
+
}), _response.rawResponse);
|
|
1723
|
+
default:
|
|
1724
|
+
throw new errors.SchematicError({
|
|
1725
|
+
statusCode: _response.error.statusCode,
|
|
1726
|
+
body: _response.error.body,
|
|
1727
|
+
rawResponse: _response.rawResponse,
|
|
1728
|
+
});
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
switch (_response.error.reason) {
|
|
1732
|
+
case "non-json":
|
|
1733
|
+
throw new errors.SchematicError({
|
|
1734
|
+
statusCode: _response.error.statusCode,
|
|
1735
|
+
body: _response.error.rawBody,
|
|
1736
|
+
rawResponse: _response.rawResponse,
|
|
1737
|
+
});
|
|
1738
|
+
case "timeout":
|
|
1739
|
+
throw new errors.SchematicTimeoutError("Timeout exceeded when calling POST /quickstart.");
|
|
1740
|
+
case "unknown":
|
|
1741
|
+
throw new errors.SchematicError({
|
|
1742
|
+
message: _response.error.errorMessage,
|
|
1743
|
+
rawResponse: _response.rawResponse,
|
|
1430
1744
|
});
|
|
1431
1745
|
}
|
|
1432
1746
|
});
|