@schematichq/schematic-typescript-node 1.5.8 → 1.5.10

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.
Files changed (218) hide show
  1. package/README.md +1 -1
  2. package/dist/BaseClient.d.ts +12 -0
  3. package/dist/Client.d.ts +3 -0
  4. package/dist/api/errors/BadRequestError.d.ts +1 -0
  5. package/dist/api/errors/ForbiddenError.d.ts +1 -0
  6. package/dist/api/errors/InternalServerError.d.ts +1 -0
  7. package/dist/api/errors/NotFoundError.d.ts +1 -0
  8. package/dist/api/errors/UnauthorizedError.d.ts +1 -0
  9. package/dist/api/resources/accesstokens/client/Client.d.ts +2 -0
  10. package/dist/api/resources/accounts/client/Client.d.ts +70 -0
  11. package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +11 -0
  12. package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
  13. package/dist/api/resources/accounts/types/GetOnboardingStateResponse.d.ts +6 -0
  14. package/dist/api/resources/accounts/types/UpdateOnboardingStateResponse.d.ts +6 -0
  15. package/dist/api/resources/accounts/types/index.d.ts +2 -0
  16. package/dist/api/resources/billing/client/Client.d.ts +48 -0
  17. package/dist/api/resources/catalogs/client/Client.d.ts +28 -0
  18. package/dist/api/resources/checkout/client/Client.d.ts +18 -0
  19. package/dist/api/resources/companies/client/Client.d.ts +139 -3
  20. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +3 -0
  21. package/dist/api/resources/companies/client/requests/CountEntityTraitsRequest.d.ts +18 -0
  22. package/dist/api/resources/companies/client/requests/GetBillingEntityChildSubscriptionsRequest.d.ts +1 -1
  23. package/dist/api/resources/companies/client/requests/GetCompanyBillingEntityRequest.d.ts +1 -1
  24. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +3 -0
  25. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +0 -2
  26. package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
  27. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  28. package/dist/api/resources/companies/types/CountEntityTraitsParams.d.ts +12 -0
  29. package/dist/api/resources/companies/types/CountEntityTraitsResponse.d.ts +6 -0
  30. package/dist/api/resources/companies/types/DeleteEntityTraitDefinitionResponse.d.ts +6 -0
  31. package/dist/api/resources/companies/types/GetEntityTraitDefinitionUsageResponse.d.ts +6 -0
  32. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  33. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +0 -1
  34. package/dist/api/resources/companies/types/index.d.ts +4 -0
  35. package/dist/api/resources/components/client/Client.d.ts +16 -0
  36. package/dist/api/resources/componentspublic/client/Client.d.ts +2 -0
  37. package/dist/api/resources/credits/client/Client.d.ts +62 -2
  38. package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +1 -1
  39. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -0
  40. package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +1 -1
  41. package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
  42. package/dist/api/resources/dataexports/client/Client.d.ts +8 -0
  43. package/dist/api/resources/entitlements/client/Client.d.ts +73 -0
  44. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageHistoryRequest.d.ts +29 -0
  45. package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
  46. package/dist/api/resources/entitlements/types/ListFeatureUsageHistoryParams.d.ts +20 -0
  47. package/dist/api/resources/entitlements/types/ListFeatureUsageHistoryResponse.d.ts +6 -0
  48. package/dist/api/resources/entitlements/types/index.d.ts +2 -0
  49. package/dist/api/resources/events/client/Client.d.ts +12 -0
  50. package/dist/api/resources/features/client/Client.d.ts +34 -0
  51. package/dist/api/resources/insights/client/Client.d.ts +12 -0
  52. package/dist/api/resources/integrationsapi/client/Client.d.ts +18 -0
  53. package/dist/api/resources/licenses/client/Client.d.ts +6 -0
  54. package/dist/api/resources/planbundle/client/Client.d.ts +27 -6
  55. package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +11 -3
  56. package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +6 -2
  57. package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +5 -2
  58. package/dist/api/resources/plangroups/client/Client.d.ts +8 -0
  59. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +3 -0
  60. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +3 -0
  61. package/dist/api/resources/planmigrations/client/Client.d.ts +22 -8
  62. package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
  63. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
  64. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +4 -6
  65. package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
  66. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
  67. package/dist/api/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +2 -2
  68. package/dist/api/resources/plans/client/Client.d.ts +46 -12
  69. package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -2
  70. package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +2 -2
  71. package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +3 -0
  72. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +3 -0
  73. package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +2 -0
  74. package/dist/api/resources/scheduledcheckout/client/Client.d.ts +8 -0
  75. package/dist/api/resources/webhooks/client/Client.d.ts +20 -0
  76. package/dist/api/types/AuditLogResponseData.d.ts +1 -0
  77. package/dist/api/types/BillingCollectionMethod.d.ts +5 -0
  78. package/dist/api/types/BillingCreditBundleResponseData.d.ts +2 -0
  79. package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
  80. package/dist/api/types/BillingCreditGrantResponseData.d.ts +4 -0
  81. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +3 -1
  82. package/dist/api/types/CheckFlagRequestBody.d.ts +3 -0
  83. package/dist/api/types/CheckoutBundlePurchaseBehavior.d.ts +5 -0
  84. package/dist/api/types/CheckoutSettingsResponseData.d.ts +3 -0
  85. package/dist/api/types/CompanyBillingCheckoutSettings.d.ts +1 -0
  86. package/dist/api/types/CompanyFeatureUsageExportMetadata.d.ts +6 -0
  87. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +1 -0
  88. package/dist/api/types/ComponentCheckoutSettings.d.ts +2 -0
  89. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -1
  90. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -1
  91. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  92. package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
  93. package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
  94. package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
  95. package/dist/api/types/CustomPlanBillingResponseData.d.ts +4 -0
  96. package/dist/api/types/EntityTraitDefinitionUsage.d.ts +8 -0
  97. package/dist/api/types/EventBodyFlagCheck.d.ts +2 -0
  98. package/dist/api/types/FeatureUsageHistoryResponseData.d.ts +12 -0
  99. package/dist/api/types/GetOnboardingStateResp.d.ts +9 -0
  100. package/dist/api/types/ManagePlanRequest.d.ts +14 -0
  101. package/dist/api/types/MigrationProrationBehavior.d.ts +6 -0
  102. package/dist/api/types/OnboardingMilestone.d.ts +5 -0
  103. package/dist/api/types/OnboardingMilestoneView.d.ts +7 -0
  104. package/dist/api/types/OnboardingPath.d.ts +5 -0
  105. package/dist/api/types/OnboardingRequirement.d.ts +9 -0
  106. package/dist/api/types/OnboardingRequirementStatus.d.ts +6 -0
  107. package/dist/api/types/OnboardingRequirementView.d.ts +8 -0
  108. package/dist/api/types/OnboardingTrack.d.ts +5 -0
  109. package/dist/api/types/PlanBillingSource.d.ts +5 -0
  110. package/dist/api/types/PlanBundleResponseData.d.ts +1 -0
  111. package/dist/api/types/PlanChangeResponseData.d.ts +6 -0
  112. package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
  113. package/dist/api/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +1 -0
  114. package/dist/api/types/PlanVersionMigrationPreviewResponseData.d.ts +1 -0
  115. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  116. package/dist/api/types/PreflightEventUsageRequestBody.d.ts +6 -0
  117. package/dist/api/types/PreflightRequestBody.d.ts +9 -0
  118. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  119. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  120. package/dist/api/types/StripeIntegrationConfig.d.ts +2 -0
  121. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +23 -0
  122. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +5 -2
  123. package/dist/api/types/UpsertCompanyRequestBody.d.ts +2 -0
  124. package/dist/api/types/UpsertUserRequestBody.d.ts +2 -0
  125. package/dist/api/types/UpsertUserSubRequestBody.d.ts +2 -0
  126. package/dist/api/types/WhoAmIResponseData.d.ts +1 -0
  127. package/dist/api/types/index.d.ts +17 -0
  128. package/dist/core/fetcher/redactUrl.d.ts +2 -0
  129. package/dist/core/requestBody.d.ts +12 -0
  130. package/dist/core/runtime/index.d.ts +1 -1
  131. package/dist/core/runtime/runtime.d.ts +19 -0
  132. package/dist/errors/SchematicError.d.ts +1 -0
  133. package/dist/errors/SchematicTimeoutError.d.ts +2 -2
  134. package/dist/events.d.ts +6 -0
  135. package/dist/index.js +9 -9
  136. package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +14 -0
  137. package/dist/serialization/resources/accounts/client/requests/index.d.ts +1 -0
  138. package/dist/serialization/resources/accounts/types/GetOnboardingStateResponse.d.ts +11 -0
  139. package/dist/serialization/resources/accounts/types/UpdateOnboardingStateResponse.d.ts +11 -0
  140. package/dist/serialization/resources/accounts/types/index.d.ts +2 -0
  141. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  142. package/dist/serialization/resources/companies/types/CountEntityTraitsParams.d.ts +13 -0
  143. package/dist/serialization/resources/companies/types/CountEntityTraitsResponse.d.ts +12 -0
  144. package/dist/serialization/resources/companies/types/DeleteEntityTraitDefinitionResponse.d.ts +11 -0
  145. package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionUsageResponse.d.ts +11 -0
  146. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  147. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +0 -1
  148. package/dist/serialization/resources/companies/types/index.d.ts +4 -0
  149. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -0
  150. package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -0
  151. package/dist/serialization/resources/entitlements/types/ListFeatureUsageHistoryParams.d.ts +16 -0
  152. package/dist/serialization/resources/entitlements/types/ListFeatureUsageHistoryResponse.d.ts +12 -0
  153. package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
  154. package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +2 -2
  155. package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +1 -1
  156. package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +1 -1
  157. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +3 -0
  158. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +3 -0
  159. package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +5 -3
  160. package/dist/serialization/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +2 -1
  161. package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -1
  162. package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +2 -1
  163. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +3 -0
  164. package/dist/serialization/resources/plans/types/ListCustomPlanBillingsParams.d.ts +2 -0
  165. package/dist/serialization/types/AuditLogResponseData.d.ts +1 -0
  166. package/dist/serialization/types/BillingCollectionMethod.d.ts +7 -0
  167. package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +1 -0
  168. package/dist/serialization/types/BillingCreditBundleView.d.ts +1 -0
  169. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +2 -0
  170. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  171. package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -0
  172. package/dist/serialization/types/CheckoutBundlePurchaseBehavior.d.ts +7 -0
  173. package/dist/serialization/types/CheckoutSettingsResponseData.d.ts +3 -0
  174. package/dist/serialization/types/CompanyBillingCheckoutSettings.d.ts +1 -0
  175. package/dist/serialization/types/CompanyFeatureUsageExportMetadata.d.ts +3 -0
  176. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +1 -0
  177. package/dist/serialization/types/ComponentCheckoutSettings.d.ts +3 -0
  178. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -2
  179. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -1
  180. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  181. package/dist/serialization/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
  182. package/dist/serialization/types/CreatePlanRequestBody.d.ts +1 -1
  183. package/dist/serialization/types/CreditCompanyGrantView.d.ts +2 -0
  184. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +3 -0
  185. package/dist/serialization/types/EntityTraitDefinitionUsage.d.ts +14 -0
  186. package/dist/serialization/types/EventBodyFlagCheck.d.ts +1 -0
  187. package/dist/serialization/types/FeatureUsageHistoryResponseData.d.ts +14 -0
  188. package/dist/serialization/types/GetOnboardingStateResp.d.ts +19 -0
  189. package/dist/serialization/types/ManagePlanRequest.d.ts +8 -0
  190. package/dist/serialization/types/MigrationProrationBehavior.d.ts +7 -0
  191. package/dist/serialization/types/OnboardingMilestone.d.ts +7 -0
  192. package/dist/serialization/types/OnboardingMilestoneView.d.ts +14 -0
  193. package/dist/serialization/types/OnboardingPath.d.ts +7 -0
  194. package/dist/serialization/types/OnboardingRequirement.d.ts +7 -0
  195. package/dist/serialization/types/OnboardingRequirementStatus.d.ts +7 -0
  196. package/dist/serialization/types/OnboardingRequirementView.d.ts +15 -0
  197. package/dist/serialization/types/OnboardingTrack.d.ts +7 -0
  198. package/dist/serialization/types/PlanBillingSource.d.ts +7 -0
  199. package/dist/serialization/types/PlanBundleResponseData.d.ts +2 -0
  200. package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -0
  201. package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
  202. package/dist/serialization/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +1 -0
  203. package/dist/serialization/types/PlanVersionMigrationPreviewResponseData.d.ts +1 -0
  204. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +2 -0
  205. package/dist/serialization/types/PreflightEventUsageRequestBody.d.ts +10 -0
  206. package/dist/serialization/types/PreflightRequestBody.d.ts +12 -0
  207. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  208. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  209. package/dist/serialization/types/StripeIntegrationConfig.d.ts +1 -0
  210. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +30 -0
  211. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  212. package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +1 -0
  213. package/dist/serialization/types/UpsertUserRequestBody.d.ts +1 -0
  214. package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
  215. package/dist/serialization/types/WhoAmIResponseData.d.ts +1 -0
  216. package/dist/serialization/types/index.d.ts +17 -0
  217. package/dist/wasm/rulesengine.js +4 -4
  218. package/package.json +4 -1
package/README.md CHANGED
@@ -12,7 +12,7 @@ yarn add @schematichq/schematic-typescript-node
12
12
  pnpm add @schematichq/schematic-typescript-node
13
13
  ```
14
14
 
15
- 2. [Issue an API key](https://docs.schematichq.com/quickstart#create-an-api-key) for the appropriate environment using the [Schematic app](https://app.schematichq.com/settings/api-keys). Be sure to capture the secret key when you issue the API key; you'll only see this key once, and this is what you'll use with schematic-typescript-node.
15
+ 2. [Issue an API key](https://docs.schematichq.com/quickstart/account-setup#2-create-your-api-keys) for the appropriate environment using the [Schematic app](https://app.schematichq.com/settings/api-keys). Be sure to capture the secret key when you issue the API key; you'll only see this key once, and this is what you'll use with schematic-typescript-node.
16
16
 
17
17
  3. Using this secret key, initialize a client in your application:
18
18
 
@@ -17,6 +17,11 @@ export type BaseClientOptions = {
17
17
  fetcher?: core.FetchFunction;
18
18
  /** Configure logging for the client. */
19
19
  logging?: core.logging.LogConfig | core.logging.Logger;
20
+ /** Default options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
21
+ stream?: {
22
+ reconnectionEnabled?: boolean;
23
+ maxReconnectionAttempts?: number;
24
+ };
20
25
  /** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
21
26
  auth?: AuthOption;
22
27
  } & HeaderAuthProvider.AuthOptions;
@@ -29,8 +34,15 @@ export interface BaseRequestOptions {
29
34
  abortSignal?: AbortSignal;
30
35
  /** Additional query string parameters to include in the request. */
31
36
  queryParams?: Record<string, unknown>;
37
+ /** A dictionary containing additional parameters to spread into the request's body. */
38
+ additionalBodyParameters?: Record<string, unknown>;
32
39
  /** Additional headers to include in the request. */
33
40
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
41
+ /** Options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
42
+ stream?: {
43
+ reconnectionEnabled?: boolean;
44
+ maxReconnectionAttempts?: number;
45
+ };
34
46
  }
35
47
  export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
36
48
  logging: core.logging.Logger;
package/dist/Client.d.ts CHANGED
@@ -78,6 +78,9 @@ export declare class SchematicClient {
78
78
  /**
79
79
  * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
80
80
  *
81
+ * @throws {@link errors.SchematicError}
82
+ * @throws {@link errors.SchematicTimeoutError}
83
+ *
81
84
  * @example
82
85
  * await client.getCreditLedger()
83
86
  */
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Schematic from "../index";
4
4
  export declare class BadRequestError extends errors.SchematicError {
5
+ readonly body: Schematic.ApiError;
5
6
  constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Schematic from "../index";
4
4
  export declare class ForbiddenError extends errors.SchematicError {
5
+ readonly body: Schematic.ApiError;
5
6
  constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Schematic from "../index";
4
4
  export declare class InternalServerError extends errors.SchematicError {
5
+ readonly body: Schematic.ApiError;
5
6
  constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Schematic from "../index";
4
4
  export declare class NotFoundError extends errors.SchematicError {
5
+ readonly body: Schematic.ApiError;
5
6
  constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -2,5 +2,6 @@ import type * as core from "../../core";
2
2
  import * as errors from "../../errors/index";
3
3
  import type * as Schematic from "../index";
4
4
  export declare class UnauthorizedError extends errors.SchematicError {
5
+ readonly body: Schematic.ApiError;
5
6
  constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
6
7
  }
@@ -19,6 +19,8 @@ export declare class AccesstokensClient {
19
19
  * @throws {@link Schematic.ForbiddenError}
20
20
  * @throws {@link Schematic.NotFoundError}
21
21
  * @throws {@link Schematic.InternalServerError}
22
+ * @throws {@link errors.SchematicError}
23
+ * @throws {@link errors.SchematicTimeoutError}
22
24
  *
23
25
  * @example
24
26
  * await client.accesstokens.issueTemporaryAccessToken({
@@ -19,6 +19,8 @@ export declare class AccountsClient {
19
19
  * @throws {@link Schematic.ForbiddenError}
20
20
  * @throws {@link Schematic.NotFoundError}
21
21
  * @throws {@link Schematic.InternalServerError}
22
+ * @throws {@link errors.SchematicError}
23
+ * @throws {@link errors.SchematicTimeoutError}
22
24
  *
23
25
  * @example
24
26
  * await client.accounts.listAccountMembers({
@@ -39,6 +41,8 @@ export declare class AccountsClient {
39
41
  * @throws {@link Schematic.ForbiddenError}
40
42
  * @throws {@link Schematic.NotFoundError}
41
43
  * @throws {@link Schematic.InternalServerError}
44
+ * @throws {@link errors.SchematicError}
45
+ * @throws {@link errors.SchematicTimeoutError}
42
46
  *
43
47
  * @example
44
48
  * await client.accounts.getAccountMember("account_member_id")
@@ -54,6 +58,8 @@ export declare class AccountsClient {
54
58
  * @throws {@link Schematic.ForbiddenError}
55
59
  * @throws {@link Schematic.NotFoundError}
56
60
  * @throws {@link Schematic.InternalServerError}
61
+ * @throws {@link errors.SchematicError}
62
+ * @throws {@link errors.SchematicTimeoutError}
57
63
  *
58
64
  * @example
59
65
  * await client.accounts.countAccountMembers({
@@ -75,6 +81,8 @@ export declare class AccountsClient {
75
81
  * @throws {@link Schematic.ForbiddenError}
76
82
  * @throws {@link Schematic.NotFoundError}
77
83
  * @throws {@link Schematic.InternalServerError}
84
+ * @throws {@link errors.SchematicError}
85
+ * @throws {@link errors.SchematicTimeoutError}
78
86
  *
79
87
  * @example
80
88
  * await client.accounts.listApiKeys({
@@ -95,6 +103,8 @@ export declare class AccountsClient {
95
103
  * @throws {@link Schematic.ForbiddenError}
96
104
  * @throws {@link Schematic.NotFoundError}
97
105
  * @throws {@link Schematic.InternalServerError}
106
+ * @throws {@link errors.SchematicError}
107
+ * @throws {@link errors.SchematicTimeoutError}
98
108
  *
99
109
  * @example
100
110
  * await client.accounts.createApiKey({
@@ -111,6 +121,8 @@ export declare class AccountsClient {
111
121
  * @throws {@link Schematic.ForbiddenError}
112
122
  * @throws {@link Schematic.NotFoundError}
113
123
  * @throws {@link Schematic.InternalServerError}
124
+ * @throws {@link errors.SchematicError}
125
+ * @throws {@link errors.SchematicTimeoutError}
114
126
  *
115
127
  * @example
116
128
  * await client.accounts.getApiKey("api_key_id")
@@ -127,6 +139,8 @@ export declare class AccountsClient {
127
139
  * @throws {@link Schematic.ForbiddenError}
128
140
  * @throws {@link Schematic.NotFoundError}
129
141
  * @throws {@link Schematic.InternalServerError}
142
+ * @throws {@link errors.SchematicError}
143
+ * @throws {@link errors.SchematicTimeoutError}
130
144
  *
131
145
  * @example
132
146
  * await client.accounts.updateApiKey("api_key_id")
@@ -142,6 +156,8 @@ export declare class AccountsClient {
142
156
  * @throws {@link Schematic.ForbiddenError}
143
157
  * @throws {@link Schematic.NotFoundError}
144
158
  * @throws {@link Schematic.InternalServerError}
159
+ * @throws {@link errors.SchematicError}
160
+ * @throws {@link errors.SchematicTimeoutError}
145
161
  *
146
162
  * @example
147
163
  * await client.accounts.deleteApiKey("api_key_id")
@@ -157,6 +173,8 @@ export declare class AccountsClient {
157
173
  * @throws {@link Schematic.ForbiddenError}
158
174
  * @throws {@link Schematic.NotFoundError}
159
175
  * @throws {@link Schematic.InternalServerError}
176
+ * @throws {@link errors.SchematicError}
177
+ * @throws {@link errors.SchematicTimeoutError}
160
178
  *
161
179
  * @example
162
180
  * await client.accounts.countApiKeys({
@@ -177,6 +195,8 @@ export declare class AccountsClient {
177
195
  * @throws {@link Schematic.ForbiddenError}
178
196
  * @throws {@link Schematic.NotFoundError}
179
197
  * @throws {@link Schematic.InternalServerError}
198
+ * @throws {@link errors.SchematicError}
199
+ * @throws {@link errors.SchematicTimeoutError}
180
200
  *
181
201
  * @example
182
202
  * await client.accounts.listAuditLogs({
@@ -199,6 +219,8 @@ export declare class AccountsClient {
199
219
  * @throws {@link Schematic.ForbiddenError}
200
220
  * @throws {@link Schematic.NotFoundError}
201
221
  * @throws {@link Schematic.InternalServerError}
222
+ * @throws {@link errors.SchematicError}
223
+ * @throws {@link errors.SchematicTimeoutError}
202
224
  *
203
225
  * @example
204
226
  * await client.accounts.getAuditLog("audit_log_id")
@@ -214,6 +236,8 @@ export declare class AccountsClient {
214
236
  * @throws {@link Schematic.ForbiddenError}
215
237
  * @throws {@link Schematic.NotFoundError}
216
238
  * @throws {@link Schematic.InternalServerError}
239
+ * @throws {@link errors.SchematicError}
240
+ * @throws {@link errors.SchematicTimeoutError}
217
241
  *
218
242
  * @example
219
243
  * await client.accounts.countAuditLogs({
@@ -237,6 +261,8 @@ export declare class AccountsClient {
237
261
  * @throws {@link Schematic.ForbiddenError}
238
262
  * @throws {@link Schematic.NotFoundError}
239
263
  * @throws {@link Schematic.InternalServerError}
264
+ * @throws {@link errors.SchematicError}
265
+ * @throws {@link errors.SchematicTimeoutError}
240
266
  *
241
267
  * @example
242
268
  * await client.accounts.listEnvironments({
@@ -256,6 +282,8 @@ export declare class AccountsClient {
256
282
  * @throws {@link Schematic.ForbiddenError}
257
283
  * @throws {@link Schematic.NotFoundError}
258
284
  * @throws {@link Schematic.InternalServerError}
285
+ * @throws {@link errors.SchematicError}
286
+ * @throws {@link errors.SchematicTimeoutError}
259
287
  *
260
288
  * @example
261
289
  * await client.accounts.createEnvironment({
@@ -273,6 +301,8 @@ export declare class AccountsClient {
273
301
  * @throws {@link Schematic.ForbiddenError}
274
302
  * @throws {@link Schematic.NotFoundError}
275
303
  * @throws {@link Schematic.InternalServerError}
304
+ * @throws {@link errors.SchematicError}
305
+ * @throws {@link errors.SchematicTimeoutError}
276
306
  *
277
307
  * @example
278
308
  * await client.accounts.getEnvironment("environment_id")
@@ -289,6 +319,8 @@ export declare class AccountsClient {
289
319
  * @throws {@link Schematic.ForbiddenError}
290
320
  * @throws {@link Schematic.NotFoundError}
291
321
  * @throws {@link Schematic.InternalServerError}
322
+ * @throws {@link errors.SchematicError}
323
+ * @throws {@link errors.SchematicTimeoutError}
292
324
  *
293
325
  * @example
294
326
  * await client.accounts.updateEnvironment("environment_id")
@@ -304,12 +336,46 @@ export declare class AccountsClient {
304
336
  * @throws {@link Schematic.ForbiddenError}
305
337
  * @throws {@link Schematic.NotFoundError}
306
338
  * @throws {@link Schematic.InternalServerError}
339
+ * @throws {@link errors.SchematicError}
340
+ * @throws {@link errors.SchematicTimeoutError}
307
341
  *
308
342
  * @example
309
343
  * await client.accounts.deleteEnvironment("environment_id")
310
344
  */
311
345
  deleteEnvironment(environment_id: string, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.DeleteEnvironmentResponse>;
312
346
  private __deleteEnvironment;
347
+ /**
348
+ * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
349
+ *
350
+ * @throws {@link Schematic.UnauthorizedError}
351
+ * @throws {@link Schematic.ForbiddenError}
352
+ * @throws {@link Schematic.NotFoundError}
353
+ * @throws {@link Schematic.InternalServerError}
354
+ * @throws {@link errors.SchematicError}
355
+ * @throws {@link errors.SchematicTimeoutError}
356
+ *
357
+ * @example
358
+ * await client.accounts.getOnboardingState()
359
+ */
360
+ getOnboardingState(requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetOnboardingStateResponse>;
361
+ private __getOnboardingState;
362
+ /**
363
+ * @param {Schematic.UpdateOnboardingStateRequestBody} request
364
+ * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
365
+ *
366
+ * @throws {@link Schematic.BadRequestError}
367
+ * @throws {@link Schematic.UnauthorizedError}
368
+ * @throws {@link Schematic.ForbiddenError}
369
+ * @throws {@link Schematic.NotFoundError}
370
+ * @throws {@link Schematic.InternalServerError}
371
+ * @throws {@link errors.SchematicError}
372
+ * @throws {@link errors.SchematicTimeoutError}
373
+ *
374
+ * @example
375
+ * await client.accounts.updateOnboardingState()
376
+ */
377
+ updateOnboardingState(request?: Schematic.UpdateOnboardingStateRequestBody, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateOnboardingStateResponse>;
378
+ private __updateOnboardingState;
313
379
  /**
314
380
  * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
315
381
  *
@@ -318,6 +384,8 @@ export declare class AccountsClient {
318
384
  * @throws {@link Schematic.ForbiddenError}
319
385
  * @throws {@link Schematic.NotFoundError}
320
386
  * @throws {@link Schematic.InternalServerError}
387
+ * @throws {@link errors.SchematicError}
388
+ * @throws {@link errors.SchematicTimeoutError}
321
389
  *
322
390
  * @example
323
391
  * await client.accounts.quickstart()
@@ -331,6 +399,8 @@ export declare class AccountsClient {
331
399
  * @throws {@link Schematic.ForbiddenError}
332
400
  * @throws {@link Schematic.NotFoundError}
333
401
  * @throws {@link Schematic.InternalServerError}
402
+ * @throws {@link errors.SchematicError}
403
+ * @throws {@link errors.SchematicTimeoutError}
334
404
  *
335
405
  * @example
336
406
  * await client.accounts.getWhoAmI()
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface UpdateOnboardingStateRequestBody {
7
+ path?: Schematic.OnboardingPath;
8
+ pricingPageUrl?: string;
9
+ track?: Schematic.OnboardingTrack;
10
+ websiteUrl?: string;
11
+ }
@@ -9,3 +9,4 @@ export type { ListAuditLogsRequest } from "./ListAuditLogsRequest";
9
9
  export type { ListEnvironmentsRequest } from "./ListEnvironmentsRequest";
10
10
  export type { UpdateApiKeyRequestBody } from "./UpdateApiKeyRequestBody";
11
11
  export type { UpdateEnvironmentRequestBody } from "./UpdateEnvironmentRequestBody";
12
+ export type { UpdateOnboardingStateRequestBody } from "./UpdateOnboardingStateRequestBody";
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetOnboardingStateResponse {
3
+ data: Schematic.GetOnboardingStateResp;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface UpdateOnboardingStateResponse {
3
+ data: Schematic.GetOnboardingStateResp;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -12,6 +12,7 @@ export * from "./GetAccountMemberResponse";
12
12
  export * from "./GetApiKeyResponse";
13
13
  export * from "./GetAuditLogResponse";
14
14
  export * from "./GetEnvironmentResponse";
15
+ export * from "./GetOnboardingStateResponse";
15
16
  export * from "./GetWhoAmIResponse";
16
17
  export * from "./ListAccountMembersParams";
17
18
  export * from "./ListAccountMembersResponse";
@@ -24,3 +25,4 @@ export * from "./ListEnvironmentsResponse";
24
25
  export * from "./QuickstartResponse";
25
26
  export * from "./UpdateApiKeyResponse";
26
27
  export * from "./UpdateEnvironmentResponse";
28
+ export * from "./UpdateOnboardingStateResponse";
@@ -19,6 +19,8 @@ export declare class BillingClient {
19
19
  * @throws {@link Schematic.ForbiddenError}
20
20
  * @throws {@link Schematic.NotFoundError}
21
21
  * @throws {@link Schematic.InternalServerError}
22
+ * @throws {@link errors.SchematicError}
23
+ * @throws {@link errors.SchematicTimeoutError}
22
24
  *
23
25
  * @example
24
26
  * await client.billing.listCoupons({
@@ -39,6 +41,8 @@ export declare class BillingClient {
39
41
  * @throws {@link Schematic.ForbiddenError}
40
42
  * @throws {@link Schematic.NotFoundError}
41
43
  * @throws {@link Schematic.InternalServerError}
44
+ * @throws {@link errors.SchematicError}
45
+ * @throws {@link errors.SchematicTimeoutError}
42
46
  *
43
47
  * @example
44
48
  * await client.billing.upsertBillingCoupon({
@@ -63,6 +67,8 @@ export declare class BillingClient {
63
67
  * @throws {@link Schematic.ForbiddenError}
64
68
  * @throws {@link Schematic.NotFoundError}
65
69
  * @throws {@link Schematic.InternalServerError}
70
+ * @throws {@link errors.SchematicError}
71
+ * @throws {@link errors.SchematicTimeoutError}
66
72
  *
67
73
  * @example
68
74
  * await client.billing.deleteBillingCoupon("billing_id")
@@ -78,6 +84,8 @@ export declare class BillingClient {
78
84
  * @throws {@link Schematic.ForbiddenError}
79
85
  * @throws {@link Schematic.NotFoundError}
80
86
  * @throws {@link Schematic.InternalServerError}
87
+ * @throws {@link errors.SchematicError}
88
+ * @throws {@link errors.SchematicTimeoutError}
81
89
  *
82
90
  * @example
83
91
  * await client.billing.deleteBillingCustomer("billing_id")
@@ -93,6 +101,8 @@ export declare class BillingClient {
93
101
  * @throws {@link Schematic.ForbiddenError}
94
102
  * @throws {@link Schematic.NotFoundError}
95
103
  * @throws {@link Schematic.InternalServerError}
104
+ * @throws {@link errors.SchematicError}
105
+ * @throws {@link errors.SchematicTimeoutError}
96
106
  *
97
107
  * @example
98
108
  * await client.billing.upsertBillingCustomer({
@@ -115,6 +125,8 @@ export declare class BillingClient {
115
125
  * @throws {@link Schematic.ForbiddenError}
116
126
  * @throws {@link Schematic.NotFoundError}
117
127
  * @throws {@link Schematic.InternalServerError}
128
+ * @throws {@link errors.SchematicError}
129
+ * @throws {@link errors.SchematicTimeoutError}
118
130
  *
119
131
  * @example
120
132
  * await client.billing.listCustomersWithSubscriptions({
@@ -137,6 +149,8 @@ export declare class BillingClient {
137
149
  * @throws {@link Schematic.ForbiddenError}
138
150
  * @throws {@link Schematic.NotFoundError}
139
151
  * @throws {@link Schematic.InternalServerError}
152
+ * @throws {@link errors.SchematicError}
153
+ * @throws {@link errors.SchematicTimeoutError}
140
154
  *
141
155
  * @example
142
156
  * await client.billing.countCustomers({
@@ -159,6 +173,8 @@ export declare class BillingClient {
159
173
  * @throws {@link Schematic.ForbiddenError}
160
174
  * @throws {@link Schematic.NotFoundError}
161
175
  * @throws {@link Schematic.InternalServerError}
176
+ * @throws {@link errors.SchematicError}
177
+ * @throws {@link errors.SchematicTimeoutError}
162
178
  *
163
179
  * @example
164
180
  * await client.billing.listInvoices({
@@ -180,6 +196,8 @@ export declare class BillingClient {
180
196
  * @throws {@link Schematic.ForbiddenError}
181
197
  * @throws {@link Schematic.NotFoundError}
182
198
  * @throws {@link Schematic.InternalServerError}
199
+ * @throws {@link errors.SchematicError}
200
+ * @throws {@link errors.SchematicTimeoutError}
183
201
  *
184
202
  * @example
185
203
  * await client.billing.upsertInvoice({
@@ -203,6 +221,8 @@ export declare class BillingClient {
203
221
  * @throws {@link Schematic.ForbiddenError}
204
222
  * @throws {@link Schematic.NotFoundError}
205
223
  * @throws {@link Schematic.InternalServerError}
224
+ * @throws {@link errors.SchematicError}
225
+ * @throws {@link errors.SchematicTimeoutError}
206
226
  *
207
227
  * @example
208
228
  * await client.billing.deleteBillingInvoice("billing_id")
@@ -218,6 +238,8 @@ export declare class BillingClient {
218
238
  * @throws {@link Schematic.ForbiddenError}
219
239
  * @throws {@link Schematic.NotFoundError}
220
240
  * @throws {@link Schematic.InternalServerError}
241
+ * @throws {@link errors.SchematicError}
242
+ * @throws {@link errors.SchematicTimeoutError}
221
243
  *
222
244
  * @example
223
245
  * await client.billing.listMeters({
@@ -237,6 +259,8 @@ export declare class BillingClient {
237
259
  * @throws {@link Schematic.ForbiddenError}
238
260
  * @throws {@link Schematic.NotFoundError}
239
261
  * @throws {@link Schematic.InternalServerError}
262
+ * @throws {@link errors.SchematicError}
263
+ * @throws {@link errors.SchematicTimeoutError}
240
264
  *
241
265
  * @example
242
266
  * await client.billing.upsertBillingMeter({
@@ -257,6 +281,8 @@ export declare class BillingClient {
257
281
  * @throws {@link Schematic.ForbiddenError}
258
282
  * @throws {@link Schematic.NotFoundError}
259
283
  * @throws {@link Schematic.InternalServerError}
284
+ * @throws {@link errors.SchematicError}
285
+ * @throws {@link errors.SchematicTimeoutError}
260
286
  *
261
287
  * @example
262
288
  * await client.billing.listPaymentMethods({
@@ -277,6 +303,8 @@ export declare class BillingClient {
277
303
  * @throws {@link Schematic.ForbiddenError}
278
304
  * @throws {@link Schematic.NotFoundError}
279
305
  * @throws {@link Schematic.InternalServerError}
306
+ * @throws {@link errors.SchematicError}
307
+ * @throws {@link errors.SchematicTimeoutError}
280
308
  *
281
309
  * @example
282
310
  * await client.billing.upsertPaymentMethod({
@@ -296,6 +324,8 @@ export declare class BillingClient {
296
324
  * @throws {@link Schematic.ForbiddenError}
297
325
  * @throws {@link Schematic.NotFoundError}
298
326
  * @throws {@link Schematic.InternalServerError}
327
+ * @throws {@link errors.SchematicError}
328
+ * @throws {@link errors.SchematicTimeoutError}
299
329
  *
300
330
  * @example
301
331
  * await client.billing.deletePaymentMethodByExternalId("billing_id")
@@ -311,6 +341,8 @@ export declare class BillingClient {
311
341
  * @throws {@link Schematic.ForbiddenError}
312
342
  * @throws {@link Schematic.NotFoundError}
313
343
  * @throws {@link Schematic.InternalServerError}
344
+ * @throws {@link errors.SchematicError}
345
+ * @throws {@link errors.SchematicTimeoutError}
314
346
  *
315
347
  * @example
316
348
  * await client.billing.listBillingPrices({
@@ -345,6 +377,8 @@ export declare class BillingClient {
345
377
  * @throws {@link Schematic.ForbiddenError}
346
378
  * @throws {@link Schematic.NotFoundError}
347
379
  * @throws {@link Schematic.InternalServerError}
380
+ * @throws {@link errors.SchematicError}
381
+ * @throws {@link errors.SchematicTimeoutError}
348
382
  *
349
383
  * @example
350
384
  * await client.billing.upsertBillingPrice({
@@ -373,6 +407,8 @@ export declare class BillingClient {
373
407
  * @throws {@link Schematic.ForbiddenError}
374
408
  * @throws {@link Schematic.NotFoundError}
375
409
  * @throws {@link Schematic.InternalServerError}
410
+ * @throws {@link errors.SchematicError}
411
+ * @throws {@link errors.SchematicTimeoutError}
376
412
  *
377
413
  * @example
378
414
  * await client.billing.deleteBillingProduct("billing_id")
@@ -388,6 +424,8 @@ export declare class BillingClient {
388
424
  * @throws {@link Schematic.ForbiddenError}
389
425
  * @throws {@link Schematic.NotFoundError}
390
426
  * @throws {@link Schematic.InternalServerError}
427
+ * @throws {@link errors.SchematicError}
428
+ * @throws {@link errors.SchematicTimeoutError}
391
429
  *
392
430
  * @example
393
431
  * await client.billing.listBillingProductPrices({
@@ -422,6 +460,8 @@ export declare class BillingClient {
422
460
  * @throws {@link Schematic.ForbiddenError}
423
461
  * @throws {@link Schematic.NotFoundError}
424
462
  * @throws {@link Schematic.InternalServerError}
463
+ * @throws {@link errors.SchematicError}
464
+ * @throws {@link errors.SchematicTimeoutError}
425
465
  *
426
466
  * @example
427
467
  * await client.billing.deleteProductPrice("billing_id")
@@ -437,6 +477,8 @@ export declare class BillingClient {
437
477
  * @throws {@link Schematic.ForbiddenError}
438
478
  * @throws {@link Schematic.NotFoundError}
439
479
  * @throws {@link Schematic.InternalServerError}
480
+ * @throws {@link errors.SchematicError}
481
+ * @throws {@link errors.SchematicTimeoutError}
440
482
  *
441
483
  * @example
442
484
  * await client.billing.upsertBillingProduct({
@@ -455,6 +497,8 @@ export declare class BillingClient {
455
497
  * @throws {@link Schematic.ForbiddenError}
456
498
  * @throws {@link Schematic.NotFoundError}
457
499
  * @throws {@link Schematic.InternalServerError}
500
+ * @throws {@link errors.SchematicError}
501
+ * @throws {@link errors.SchematicTimeoutError}
458
502
  *
459
503
  * @example
460
504
  * await client.billing.listBillingProducts({
@@ -484,6 +528,8 @@ export declare class BillingClient {
484
528
  * @throws {@link Schematic.ForbiddenError}
485
529
  * @throws {@link Schematic.NotFoundError}
486
530
  * @throws {@link Schematic.InternalServerError}
531
+ * @throws {@link errors.SchematicError}
532
+ * @throws {@link errors.SchematicTimeoutError}
487
533
  *
488
534
  * @example
489
535
  * await client.billing.countBillingProducts({
@@ -513,6 +559,8 @@ export declare class BillingClient {
513
559
  * @throws {@link Schematic.ForbiddenError}
514
560
  * @throws {@link Schematic.NotFoundError}
515
561
  * @throws {@link Schematic.InternalServerError}
562
+ * @throws {@link errors.SchematicError}
563
+ * @throws {@link errors.SchematicTimeoutError}
516
564
  *
517
565
  * @example
518
566
  * await client.billing.upsertBillingSubscription({