@schematichq/schematic-typescript-node 1.5.10 → 1.5.13

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 (217) hide show
  1. package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
  2. package/dist/api/errors/index.d.ts +1 -0
  3. package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
  4. package/dist/api/resources/billing/client/Client.d.ts +43 -0
  5. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  6. package/dist/api/resources/billing/client/requests/ListCompanyBillingProfilesRequest.d.ts +20 -0
  7. package/dist/api/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +15 -0
  8. package/dist/api/resources/billing/client/requests/index.d.ts +2 -0
  9. package/dist/api/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +13 -0
  10. package/dist/api/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +6 -0
  11. package/dist/api/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +6 -0
  12. package/dist/api/resources/billing/types/index.d.ts +3 -0
  13. package/dist/api/resources/credits/client/Client.d.ts +123 -0
  14. package/dist/api/resources/credits/client/requests/CountCreditSpendPoliciesRequest.d.ts +24 -0
  15. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  16. package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +17 -0
  17. package/dist/api/resources/credits/client/requests/ListCreditSpendPoliciesRequest.d.ts +24 -0
  18. package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +8 -0
  19. package/dist/api/resources/credits/client/requests/index.d.ts +4 -0
  20. package/dist/api/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +15 -0
  21. package/dist/api/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +6 -0
  22. package/dist/api/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +6 -0
  23. package/dist/api/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +6 -0
  24. package/dist/api/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +6 -0
  25. package/dist/api/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +15 -0
  26. package/dist/api/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +6 -0
  27. package/dist/api/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +6 -0
  28. package/dist/api/resources/credits/types/index.d.ts +8 -0
  29. package/dist/api/resources/events/client/Client.d.ts +50 -0
  30. package/dist/api/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
  31. package/dist/api/resources/events/client/requests/index.d.ts +1 -0
  32. package/dist/api/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +6 -0
  33. package/dist/api/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +6 -0
  34. package/dist/api/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +6 -0
  35. package/dist/api/resources/events/types/index.d.ts +3 -0
  36. package/dist/api/resources/integrationsapi/client/Client.d.ts +83 -0
  37. package/dist/api/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
  38. package/dist/api/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
  39. package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
  40. package/dist/api/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +6 -0
  41. package/dist/api/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +6 -0
  42. package/dist/api/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +6 -0
  43. package/dist/api/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +6 -0
  44. package/dist/api/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +6 -0
  45. package/dist/api/resources/integrationsapi/types/index.d.ts +5 -0
  46. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  47. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  48. package/dist/api/resources/planmigrations/client/Client.d.ts +40 -5
  49. package/dist/api/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +8 -0
  50. package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
  51. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
  52. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -1
  53. package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
  54. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
  55. package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
  56. package/dist/api/resources/planmigrations/types/CancelMigrationResponse.d.ts +6 -0
  57. package/dist/api/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +6 -0
  58. package/dist/api/resources/planmigrations/types/index.d.ts +2 -0
  59. package/dist/api/resources/plans/client/Client.d.ts +3 -1
  60. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
  61. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +3 -0
  62. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -1
  63. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +4 -0
  64. package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  65. package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  66. package/dist/api/types/BillingArrearsAnchor.d.ts +5 -0
  67. package/dist/api/types/BillingArrearsCadence.d.ts +5 -0
  68. package/dist/api/types/BillingCreditGrantResponseData.d.ts +7 -0
  69. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +12 -0
  70. package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
  71. package/dist/api/types/ClaimedStripeSandboxKeysResponseData.d.ts +5 -0
  72. package/dist/api/types/CompanyBillingProfileResponseData.d.ts +17 -0
  73. package/dist/api/types/CompanyDetailResponseData.d.ts +3 -0
  74. package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
  75. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +6 -0
  76. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +12 -0
  77. package/dist/api/types/CreditCompanyGrantView.d.ts +7 -0
  78. package/dist/api/types/CreditLeaseResponseData.d.ts +1 -0
  79. package/dist/api/types/CreditSpendPolicyResponseData.d.ts +12 -0
  80. package/dist/api/types/CreditSpendPolicyScope.d.ts +6 -0
  81. package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
  82. package/dist/api/types/EventBodyInference.d.ts +4 -2
  83. package/dist/api/types/GetOnboardingStateResp.d.ts +8 -0
  84. package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +2 -1
  85. package/dist/api/types/OnboardingRequirement.d.ts +2 -0
  86. package/dist/api/types/OnboardingRoadmapView.d.ts +4 -0
  87. package/dist/api/types/OnboardingStripeImport.d.ts +6 -0
  88. package/dist/api/types/OtlpEnvironmentSettingsResponseData.d.ts +10 -0
  89. package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
  90. package/dist/api/types/PlanCreditGrantView.d.ts +6 -0
  91. package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
  92. package/dist/api/types/PlanGroupResponseData.d.ts +1 -0
  93. package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
  94. package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +1 -0
  95. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  96. package/dist/api/types/PlanVersionMigrationStatus.d.ts +1 -0
  97. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
  98. package/dist/api/types/RuleConditionDetailResponseData.d.ts +1 -0
  99. package/dist/api/types/RuleConditionPlanVersionResponseData.d.ts +7 -0
  100. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  101. package/dist/api/types/RulesengineCompany.d.ts +1 -0
  102. package/dist/api/types/RulesengineCreditPostpaidConfig.d.ts +3 -0
  103. package/dist/api/types/SlackConnectInviteStatus.d.ts +8 -0
  104. package/dist/api/types/SlackConnectInviteView.d.ts +7 -0
  105. package/dist/api/types/StripeIntegrationConfig.d.ts +6 -0
  106. package/dist/api/types/StripeSandboxClaimLink.d.ts +6 -0
  107. package/dist/api/types/StripeSandboxCountriesResponseData.d.ts +3 -0
  108. package/dist/api/types/StripeSandboxInstallResponseData.d.ts +10 -0
  109. package/dist/api/types/StripeSandboxKeysResponseData.d.ts +5 -0
  110. package/dist/api/types/TemporaryAccessTokenIssuerType.d.ts +5 -0
  111. package/dist/api/types/TemporaryAccessTokenResponseData.d.ts +2 -1
  112. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +12 -0
  113. package/dist/api/types/WebhookEventDetailResponseData.d.ts +1 -0
  114. package/dist/api/types/WebhookEventResponseData.d.ts +1 -0
  115. package/dist/api/types/index.d.ts +19 -0
  116. package/dist/credits/lease-store.d.ts +17 -8
  117. package/dist/index.js +25 -9
  118. package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
  119. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  120. package/dist/serialization/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +16 -0
  121. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  122. package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +14 -0
  123. package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +12 -0
  124. package/dist/serialization/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +11 -0
  125. package/dist/serialization/resources/billing/types/index.d.ts +3 -0
  126. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  127. package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +13 -0
  128. package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +10 -0
  129. package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
  130. package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +16 -0
  131. package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +12 -0
  132. package/dist/serialization/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +11 -0
  133. package/dist/serialization/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +11 -0
  134. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +11 -0
  135. package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +16 -0
  136. package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +12 -0
  137. package/dist/serialization/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +11 -0
  138. package/dist/serialization/resources/credits/types/index.d.ts +8 -0
  139. package/dist/serialization/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
  140. package/dist/serialization/resources/events/client/requests/index.d.ts +1 -0
  141. package/dist/serialization/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +11 -0
  142. package/dist/serialization/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +11 -0
  143. package/dist/serialization/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +11 -0
  144. package/dist/serialization/resources/events/types/index.d.ts +3 -0
  145. package/dist/serialization/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
  146. package/dist/serialization/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
  147. package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +2 -0
  148. package/dist/serialization/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +11 -0
  149. package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +11 -0
  150. package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +11 -0
  151. package/dist/serialization/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +11 -0
  152. package/dist/serialization/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +11 -0
  153. package/dist/serialization/resources/integrationsapi/types/index.d.ts +5 -0
  154. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  155. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  156. package/dist/serialization/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +10 -0
  157. package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
  158. package/dist/serialization/resources/planmigrations/types/CancelMigrationResponse.d.ts +11 -0
  159. package/dist/serialization/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +11 -0
  160. package/dist/serialization/resources/planmigrations/types/index.d.ts +2 -0
  161. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
  162. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  163. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  164. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  165. package/dist/serialization/types/BillingArrearsAnchor.d.ts +7 -0
  166. package/dist/serialization/types/BillingArrearsCadence.d.ts +7 -0
  167. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +4 -0
  168. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +8 -0
  169. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  170. package/dist/serialization/types/ClaimedStripeSandboxKeysResponseData.d.ts +11 -0
  171. package/dist/serialization/types/CompanyBillingProfileResponseData.d.ts +25 -0
  172. package/dist/serialization/types/CompanyDetailResponseData.d.ts +5 -0
  173. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -0
  174. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +8 -0
  175. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  176. package/dist/serialization/types/CreditCompanyGrantView.d.ts +8 -0
  177. package/dist/serialization/types/CreditLeaseResponseData.d.ts +1 -0
  178. package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +18 -0
  179. package/dist/serialization/types/CreditSpendPolicyScope.d.ts +7 -0
  180. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
  181. package/dist/serialization/types/EventBodyInference.d.ts +1 -0
  182. package/dist/serialization/types/GetOnboardingStateResp.d.ts +11 -0
  183. package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.d.ts +3 -1
  184. package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
  185. package/dist/serialization/types/OnboardingRoadmapView.d.ts +10 -0
  186. package/dist/serialization/types/OnboardingStripeImport.d.ts +7 -0
  187. package/dist/serialization/types/OtlpEnvironmentSettingsResponseData.d.ts +16 -0
  188. package/dist/serialization/types/PendingMigrationResponseData.d.ts +14 -0
  189. package/dist/serialization/types/PlanCreditGrantView.d.ts +8 -0
  190. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +1 -0
  191. package/dist/serialization/types/PlanGroupResponseData.d.ts +1 -0
  192. package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
  193. package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +1 -1
  194. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
  195. package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +1 -1
  196. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
  197. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +2 -0
  198. package/dist/serialization/types/RuleConditionPlanVersionResponseData.d.ts +13 -0
  199. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  200. package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
  201. package/dist/serialization/types/RulesengineCreditPostpaidConfig.d.ts +9 -0
  202. package/dist/serialization/types/SlackConnectInviteStatus.d.ts +7 -0
  203. package/dist/serialization/types/SlackConnectInviteView.d.ts +13 -0
  204. package/dist/serialization/types/StripeIntegrationConfig.d.ts +3 -0
  205. package/dist/serialization/types/StripeSandboxClaimLink.d.ts +12 -0
  206. package/dist/serialization/types/StripeSandboxCountriesResponseData.d.ts +9 -0
  207. package/dist/serialization/types/StripeSandboxInstallResponseData.d.ts +17 -0
  208. package/dist/serialization/types/StripeSandboxKeysResponseData.d.ts +11 -0
  209. package/dist/serialization/types/TemporaryAccessTokenIssuerType.d.ts +7 -0
  210. package/dist/serialization/types/TemporaryAccessTokenResponseData.d.ts +3 -1
  211. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  212. package/dist/serialization/types/WebhookEventDetailResponseData.d.ts +1 -0
  213. package/dist/serialization/types/WebhookEventResponseData.d.ts +1 -0
  214. package/dist/serialization/types/index.d.ts +19 -0
  215. package/dist/wasm/rulesengine.d.ts +1 -1
  216. package/dist/wasm/rulesengine.js +30 -30
  217. package/package.json +1 -4
@@ -0,0 +1,7 @@
1
+ import type * as core from "../../core";
2
+ import * as errors from "../../errors/index";
3
+ import type * as Schematic from "../index";
4
+ export declare class PaymentRequiredError extends errors.SchematicError {
5
+ readonly body: Schematic.ApiError;
6
+ constructor(body: Schematic.ApiError, rawResponse?: core.RawResponse);
7
+ }
@@ -2,4 +2,5 @@ export * from "./BadRequestError";
2
2
  export * from "./ForbiddenError";
3
3
  export * from "./InternalServerError";
4
4
  export * from "./NotFoundError";
5
+ export * from "./PaymentRequiredError";
5
6
  export * from "./UnauthorizedError";
@@ -4,6 +4,8 @@ import type * as Schematic from "../../../../index";
4
4
  * {}
5
5
  */
6
6
  export interface UpdateOnboardingStateRequestBody {
7
+ country?: string;
8
+ dismissed?: boolean;
7
9
  path?: Schematic.OnboardingPath;
8
10
  pricingPageUrl?: string;
9
11
  track?: Schematic.OnboardingTrack;
@@ -550,6 +550,49 @@ export declare class BillingClient {
550
550
  */
551
551
  countBillingProducts(request?: Schematic.CountBillingProductsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingProductsResponse>;
552
552
  private __countBillingProducts;
553
+ /**
554
+ * @param {Schematic.ListCompanyBillingProfilesRequest} request
555
+ * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
556
+ *
557
+ * @throws {@link Schematic.BadRequestError}
558
+ * @throws {@link Schematic.UnauthorizedError}
559
+ * @throws {@link Schematic.ForbiddenError}
560
+ * @throws {@link Schematic.NotFoundError}
561
+ * @throws {@link Schematic.InternalServerError}
562
+ * @throws {@link errors.SchematicError}
563
+ * @throws {@link errors.SchematicTimeoutError}
564
+ *
565
+ * @example
566
+ * await client.billing.listCompanyBillingProfiles({
567
+ * companyId: "company_id",
568
+ * isDefault: true,
569
+ * providerType: "metronome",
570
+ * limit: 1000000,
571
+ * offset: 1000000
572
+ * })
573
+ */
574
+ listCompanyBillingProfiles(request?: Schematic.ListCompanyBillingProfilesRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCompanyBillingProfilesResponse>;
575
+ private __listCompanyBillingProfiles;
576
+ /**
577
+ * @param {string} billing_profile_id - billing_profile_id
578
+ * @param {Schematic.UpdateCompanyBillingProfileRequestBody} request
579
+ * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
580
+ *
581
+ * @throws {@link Schematic.BadRequestError}
582
+ * @throws {@link Schematic.UnauthorizedError}
583
+ * @throws {@link Schematic.ForbiddenError}
584
+ * @throws {@link Schematic.NotFoundError}
585
+ * @throws {@link Schematic.InternalServerError}
586
+ * @throws {@link errors.SchematicError}
587
+ * @throws {@link errors.SchematicTimeoutError}
588
+ *
589
+ * @example
590
+ * await client.billing.updateCompanyBillingProfile("billing_profile_id", {
591
+ * collectionMethod: "charge_automatically"
592
+ * })
593
+ */
594
+ updateCompanyBillingProfile(billing_profile_id: string, request: Schematic.UpdateCompanyBillingProfileRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCompanyBillingProfileResponse>;
595
+ private __updateCompanyBillingProfile;
553
596
  /**
554
597
  * @param {Schematic.CreateBillingSubscriptionRequestBody} request
555
598
  * @param {BillingClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -42,6 +42,7 @@ export interface CreateBillingSubscriptionRequestBody {
42
42
  periodStart?: number;
43
43
  productExternalIds: Schematic.BillingProductPricing[];
44
44
  providerType?: Schematic.BillingProviderType;
45
+ startedAt?: Date;
45
46
  status?: string;
46
47
  subscriptionExternalId: string;
47
48
  totalPrice: number;
@@ -0,0 +1,20 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * companyId: "company_id",
6
+ * isDefault: true,
7
+ * providerType: "metronome",
8
+ * limit: 1000000,
9
+ * offset: 1000000
10
+ * }
11
+ */
12
+ export interface ListCompanyBillingProfilesRequest {
13
+ companyId?: string;
14
+ isDefault?: boolean;
15
+ providerType?: Schematic.BillingProviderType;
16
+ /** Page limit (default 100) */
17
+ limit?: number;
18
+ /** Page offset (default 0) */
19
+ offset?: number;
20
+ }
@@ -0,0 +1,15 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * collectionMethod: "charge_automatically"
6
+ * }
7
+ */
8
+ export interface UpdateCompanyBillingProfileRequestBody {
9
+ collectionMethod: Schematic.BillingCollectionMethod;
10
+ daysUntilDue?: number;
11
+ isDefault?: boolean;
12
+ name?: string;
13
+ paymentMethodId?: string;
14
+ prorationBehavior?: Schematic.ProrationBehavior;
15
+ }
@@ -11,8 +11,10 @@ export type { CreatePaymentMethodRequestBody } from "./CreatePaymentMethodReques
11
11
  export type { ListBillingPricesRequest } from "./ListBillingPricesRequest";
12
12
  export type { ListBillingProductPricesRequest } from "./ListBillingProductPricesRequest";
13
13
  export type { ListBillingProductsRequest } from "./ListBillingProductsRequest";
14
+ export type { ListCompanyBillingProfilesRequest } from "./ListCompanyBillingProfilesRequest";
14
15
  export type { ListCouponsRequest } from "./ListCouponsRequest";
15
16
  export type { ListCustomersWithSubscriptionsRequest } from "./ListCustomersWithSubscriptionsRequest";
16
17
  export type { ListInvoicesRequest } from "./ListInvoicesRequest";
17
18
  export type { ListMetersRequest } from "./ListMetersRequest";
18
19
  export type { ListPaymentMethodsRequest } from "./ListPaymentMethodsRequest";
20
+ export type { UpdateCompanyBillingProfileRequestBody } from "./UpdateCompanyBillingProfileRequestBody";
@@ -0,0 +1,13 @@
1
+ import type * as Schematic from "../../../index";
2
+ /**
3
+ * Input parameters
4
+ */
5
+ export interface ListCompanyBillingProfilesParams {
6
+ companyId?: string;
7
+ isDefault?: boolean;
8
+ /** Page limit (default 100) */
9
+ limit?: number;
10
+ /** Page offset (default 0) */
11
+ offset?: number;
12
+ providerType?: Schematic.BillingProviderType;
13
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface ListCompanyBillingProfilesResponse {
3
+ data: Schematic.CompanyBillingProfileResponseData[];
4
+ /** Input parameters */
5
+ params: Schematic.ListCompanyBillingProfilesParams;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface UpdateCompanyBillingProfileResponse {
3
+ data: Schematic.CompanyBillingProfileResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -14,6 +14,8 @@ export * from "./ListBillingProductPricesParams";
14
14
  export * from "./ListBillingProductPricesResponse";
15
15
  export * from "./ListBillingProductsParams";
16
16
  export * from "./ListBillingProductsResponse";
17
+ export * from "./ListCompanyBillingProfilesParams";
18
+ export * from "./ListCompanyBillingProfilesResponse";
17
19
  export * from "./ListCouponsParams";
18
20
  export * from "./ListCouponsResponse";
19
21
  export * from "./ListCustomersWithSubscriptionsParams";
@@ -24,6 +26,7 @@ export * from "./ListMetersParams";
24
26
  export * from "./ListMetersResponse";
25
27
  export * from "./ListPaymentMethodsParams";
26
28
  export * from "./ListPaymentMethodsResponse";
29
+ export * from "./UpdateCompanyBillingProfileResponse";
27
30
  export * from "./UpsertBillingCouponResponse";
28
31
  export * from "./UpsertBillingCustomerResponse";
29
32
  export * from "./UpsertBillingMeterResponse";
@@ -408,6 +408,7 @@ export declare class CreditsClient {
408
408
  *
409
409
  * @throws {@link Schematic.BadRequestError}
410
410
  * @throws {@link Schematic.UnauthorizedError}
411
+ * @throws {@link Schematic.PaymentRequiredError}
411
412
  * @throws {@link Schematic.ForbiddenError}
412
413
  * @throws {@link Schematic.NotFoundError}
413
414
  * @throws {@link Schematic.InternalServerError}
@@ -430,6 +431,7 @@ export declare class CreditsClient {
430
431
  *
431
432
  * @throws {@link Schematic.BadRequestError}
432
433
  * @throws {@link Schematic.UnauthorizedError}
434
+ * @throws {@link Schematic.PaymentRequiredError}
433
435
  * @throws {@link Schematic.ForbiddenError}
434
436
  * @throws {@link Schematic.NotFoundError}
435
437
  * @throws {@link Schematic.InternalServerError}
@@ -595,6 +597,127 @@ export declare class CreditsClient {
595
597
  */
596
598
  countBillingPlanCreditGrants(request?: Schematic.CountBillingPlanCreditGrantsRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingPlanCreditGrantsResponse>;
597
599
  private __countBillingPlanCreditGrants;
600
+ /**
601
+ * @param {Schematic.ListCreditSpendPoliciesRequest} request
602
+ * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
603
+ *
604
+ * @throws {@link Schematic.BadRequestError}
605
+ * @throws {@link Schematic.UnauthorizedError}
606
+ * @throws {@link Schematic.ForbiddenError}
607
+ * @throws {@link Schematic.NotFoundError}
608
+ * @throws {@link Schematic.InternalServerError}
609
+ * @throws {@link errors.SchematicError}
610
+ * @throws {@link errors.SchematicTimeoutError}
611
+ *
612
+ * @example
613
+ * await client.credits.listCreditSpendPolicies({
614
+ * billingCreditId: "billing_credit_id",
615
+ * companyId: "company_id",
616
+ * scopeType: "company",
617
+ * userId: "user_id",
618
+ * userIds: ["user_ids"],
619
+ * limit: 1000000,
620
+ * offset: 1000000
621
+ * })
622
+ */
623
+ listCreditSpendPolicies(request?: Schematic.ListCreditSpendPoliciesRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCreditSpendPoliciesResponse>;
624
+ private __listCreditSpendPolicies;
625
+ /**
626
+ * @param {Schematic.CreateCreditSpendPolicyRequestBody} request
627
+ * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
628
+ *
629
+ * @throws {@link Schematic.BadRequestError}
630
+ * @throws {@link Schematic.UnauthorizedError}
631
+ * @throws {@link Schematic.ForbiddenError}
632
+ * @throws {@link Schematic.NotFoundError}
633
+ * @throws {@link Schematic.InternalServerError}
634
+ * @throws {@link errors.SchematicError}
635
+ * @throws {@link errors.SchematicTimeoutError}
636
+ *
637
+ * @example
638
+ * await client.credits.createCreditSpendPolicy({
639
+ * billingCreditId: "billing_credit_id",
640
+ * maxPerDraw: 1.1
641
+ * })
642
+ */
643
+ createCreditSpendPolicy(request: Schematic.CreateCreditSpendPolicyRequestBody, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.CreateCreditSpendPolicyResponse>;
644
+ private __createCreditSpendPolicy;
645
+ /**
646
+ * @param {string} spend_policy_id - spend_policy_id
647
+ * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
648
+ *
649
+ * @throws {@link Schematic.UnauthorizedError}
650
+ * @throws {@link Schematic.ForbiddenError}
651
+ * @throws {@link Schematic.NotFoundError}
652
+ * @throws {@link Schematic.InternalServerError}
653
+ * @throws {@link errors.SchematicError}
654
+ * @throws {@link errors.SchematicTimeoutError}
655
+ *
656
+ * @example
657
+ * await client.credits.getCreditSpendPolicy("spend_policy_id")
658
+ */
659
+ getCreditSpendPolicy(spend_policy_id: string, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetCreditSpendPolicyResponse>;
660
+ private __getCreditSpendPolicy;
661
+ /**
662
+ * @param {string} spend_policy_id - spend_policy_id
663
+ * @param {Schematic.UpdateCreditSpendPolicyRequestBody} request
664
+ * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
665
+ *
666
+ * @throws {@link Schematic.BadRequestError}
667
+ * @throws {@link Schematic.UnauthorizedError}
668
+ * @throws {@link Schematic.ForbiddenError}
669
+ * @throws {@link Schematic.NotFoundError}
670
+ * @throws {@link Schematic.InternalServerError}
671
+ * @throws {@link errors.SchematicError}
672
+ * @throws {@link errors.SchematicTimeoutError}
673
+ *
674
+ * @example
675
+ * await client.credits.updateCreditSpendPolicy("spend_policy_id")
676
+ */
677
+ updateCreditSpendPolicy(spend_policy_id: string, request?: Schematic.UpdateCreditSpendPolicyRequestBody, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCreditSpendPolicyResponse>;
678
+ private __updateCreditSpendPolicy;
679
+ /**
680
+ * @param {string} spend_policy_id - spend_policy_id
681
+ * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
682
+ *
683
+ * @throws {@link Schematic.BadRequestError}
684
+ * @throws {@link Schematic.UnauthorizedError}
685
+ * @throws {@link Schematic.ForbiddenError}
686
+ * @throws {@link Schematic.NotFoundError}
687
+ * @throws {@link Schematic.InternalServerError}
688
+ * @throws {@link errors.SchematicError}
689
+ * @throws {@link errors.SchematicTimeoutError}
690
+ *
691
+ * @example
692
+ * await client.credits.deleteCreditSpendPolicy("spend_policy_id")
693
+ */
694
+ deleteCreditSpendPolicy(spend_policy_id: string, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCreditSpendPolicyResponse>;
695
+ private __deleteCreditSpendPolicy;
696
+ /**
697
+ * @param {Schematic.CountCreditSpendPoliciesRequest} request
698
+ * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
699
+ *
700
+ * @throws {@link Schematic.BadRequestError}
701
+ * @throws {@link Schematic.UnauthorizedError}
702
+ * @throws {@link Schematic.ForbiddenError}
703
+ * @throws {@link Schematic.NotFoundError}
704
+ * @throws {@link Schematic.InternalServerError}
705
+ * @throws {@link errors.SchematicError}
706
+ * @throws {@link errors.SchematicTimeoutError}
707
+ *
708
+ * @example
709
+ * await client.credits.countCreditSpendPolicies({
710
+ * billingCreditId: "billing_credit_id",
711
+ * companyId: "company_id",
712
+ * scopeType: "company",
713
+ * userId: "user_id",
714
+ * userIds: ["user_ids"],
715
+ * limit: 1000000,
716
+ * offset: 1000000
717
+ * })
718
+ */
719
+ countCreditSpendPolicies(request?: Schematic.CountCreditSpendPoliciesRequest, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountCreditSpendPoliciesResponse>;
720
+ private __countCreditSpendPolicies;
598
721
  /**
599
722
  * @param {Schematic.ListCreditEventLedgerRequest} request
600
723
  * @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,24 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * billingCreditId: "billing_credit_id",
6
+ * companyId: "company_id",
7
+ * scopeType: "company",
8
+ * userId: "user_id",
9
+ * userIds: ["user_ids"],
10
+ * limit: 1000000,
11
+ * offset: 1000000
12
+ * }
13
+ */
14
+ export interface CountCreditSpendPoliciesRequest {
15
+ billingCreditId?: string;
16
+ companyId?: string;
17
+ scopeType?: Schematic.CreditSpendPolicyScope;
18
+ userId?: string;
19
+ userIds?: string | string[];
20
+ /** Page limit (default 100) */
21
+ limit?: number;
22
+ /** Page offset (default 0) */
23
+ offset?: number;
24
+ }
@@ -11,6 +11,7 @@ import type * as Schematic from "../../../../index";
11
11
  export interface CreateCompanyCreditGrant {
12
12
  billingPeriodsCount?: number;
13
13
  companyId: string;
14
+ creditBundleId?: string;
14
15
  creditId: string;
15
16
  currency?: string;
16
17
  expiresAt?: Date;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * billingCreditId: "billing_credit_id",
5
+ * maxPerDraw: 1.1
6
+ * }
7
+ */
8
+ export interface CreateCreditSpendPolicyRequestBody {
9
+ billingCreditId: string;
10
+ /** The company the cap applies to. Set exactly one of company_id and user_id. */
11
+ companyId?: string;
12
+ label?: string;
13
+ /** The largest number of credits a single draw may spend. */
14
+ maxPerDraw: number;
15
+ /** The user the cap applies to. Set exactly one of company_id and user_id. */
16
+ userId?: string;
17
+ }
@@ -0,0 +1,24 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * billingCreditId: "billing_credit_id",
6
+ * companyId: "company_id",
7
+ * scopeType: "company",
8
+ * userId: "user_id",
9
+ * userIds: ["user_ids"],
10
+ * limit: 1000000,
11
+ * offset: 1000000
12
+ * }
13
+ */
14
+ export interface ListCreditSpendPoliciesRequest {
15
+ billingCreditId?: string;
16
+ companyId?: string;
17
+ scopeType?: Schematic.CreditSpendPolicyScope;
18
+ userId?: string;
19
+ userIds?: string | string[];
20
+ /** Page limit (default 100) */
21
+ limit?: number;
22
+ /** Page offset (default 0) */
23
+ offset?: number;
24
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface UpdateCreditSpendPolicyRequestBody {
6
+ label?: string;
7
+ maxPerDraw?: number;
8
+ }
@@ -5,9 +5,11 @@ export type { CountBillingPlanCreditGrantsRequest } from "./CountBillingPlanCred
5
5
  export type { CountCompanyGrantsRequest } from "./CountCompanyGrantsRequest";
6
6
  export type { CountCreditBundlesRequest } from "./CountCreditBundlesRequest";
7
7
  export type { CountCreditEventLedgerRequest } from "./CountCreditEventLedgerRequest";
8
+ export type { CountCreditSpendPoliciesRequest } from "./CountCreditSpendPoliciesRequest";
8
9
  export type { CreateBillingCreditRequestBody } from "./CreateBillingCreditRequestBody";
9
10
  export type { CreateCompanyCreditGrant } from "./CreateCompanyCreditGrant";
10
11
  export type { CreateCreditBundleRequestBody } from "./CreateCreditBundleRequestBody";
12
+ export type { CreateCreditSpendPolicyRequestBody } from "./CreateCreditSpendPolicyRequestBody";
11
13
  export type { DeleteBillingPlanCreditGrantRequest } from "./DeleteBillingPlanCreditGrantRequest";
12
14
  export type { ExtendCreditLeaseRequestBody } from "./ExtendCreditLeaseRequestBody";
13
15
  export type { ListBillingCreditsRequest } from "./ListBillingCreditsRequest";
@@ -16,7 +18,9 @@ export type { ListCompanyCreditBalancesRequest } from "./ListCompanyCreditBalanc
16
18
  export type { ListCompanyGrantsRequest } from "./ListCompanyGrantsRequest";
17
19
  export type { ListCreditBundlesRequest } from "./ListCreditBundlesRequest";
18
20
  export type { ListCreditEventLedgerRequest } from "./ListCreditEventLedgerRequest";
21
+ export type { ListCreditSpendPoliciesRequest } from "./ListCreditSpendPoliciesRequest";
19
22
  export type { ListGrantsForCreditRequest } from "./ListGrantsForCreditRequest";
20
23
  export type { UpdateBillingCreditRequestBody } from "./UpdateBillingCreditRequestBody";
21
24
  export type { UpdateCreditBundleDetailsRequestBody } from "./UpdateCreditBundleDetailsRequestBody";
25
+ export type { UpdateCreditSpendPolicyRequestBody } from "./UpdateCreditSpendPolicyRequestBody";
22
26
  export type { ZeroOutGrantRequestBody } from "./ZeroOutGrantRequestBody";
@@ -0,0 +1,15 @@
1
+ import type * as Schematic from "../../../index";
2
+ /**
3
+ * Input parameters
4
+ */
5
+ export interface CountCreditSpendPoliciesParams {
6
+ billingCreditId?: string;
7
+ companyId?: string;
8
+ /** Page limit (default 100) */
9
+ limit?: number;
10
+ /** Page offset (default 0) */
11
+ offset?: number;
12
+ scopeType?: Schematic.CreditSpendPolicyScope;
13
+ userId?: string;
14
+ userIds?: string[];
15
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface CountCreditSpendPoliciesResponse {
3
+ data: Schematic.CountResponse;
4
+ /** Input parameters */
5
+ params: Schematic.CountCreditSpendPoliciesParams;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface CreateCreditSpendPolicyResponse {
3
+ data: Schematic.CreditSpendPolicyResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface DeleteCreditSpendPolicyResponse {
3
+ data: Schematic.DeleteResponse;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetCreditSpendPolicyResponse {
3
+ data: Schematic.CreditSpendPolicyResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,15 @@
1
+ import type * as Schematic from "../../../index";
2
+ /**
3
+ * Input parameters
4
+ */
5
+ export interface ListCreditSpendPoliciesParams {
6
+ billingCreditId?: string;
7
+ companyId?: string;
8
+ /** Page limit (default 100) */
9
+ limit?: number;
10
+ /** Page offset (default 0) */
11
+ offset?: number;
12
+ scopeType?: Schematic.CreditSpendPolicyScope;
13
+ userId?: string;
14
+ userIds?: string[];
15
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface ListCreditSpendPoliciesResponse {
3
+ data: Schematic.CreditSpendPolicyResponseData[];
4
+ /** Input parameters */
5
+ params: Schematic.ListCreditSpendPoliciesParams;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface UpdateCreditSpendPolicyResponse {
3
+ data: Schematic.CreditSpendPolicyResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -11,14 +11,19 @@ export * from "./CountCreditBundlesParams";
11
11
  export * from "./CountCreditBundlesResponse";
12
12
  export * from "./CountCreditEventLedgerParams";
13
13
  export * from "./CountCreditEventLedgerResponse";
14
+ export * from "./CountCreditSpendPoliciesParams";
15
+ export * from "./CountCreditSpendPoliciesResponse";
14
16
  export * from "./CreateBillingCreditResponse";
15
17
  export * from "./CreateBillingPlanCreditGrantResponse";
16
18
  export * from "./CreateCreditBundleResponse";
19
+ export * from "./CreateCreditSpendPolicyResponse";
17
20
  export * from "./DeleteBillingPlanCreditGrantParams";
18
21
  export * from "./DeleteBillingPlanCreditGrantResponse";
19
22
  export * from "./DeleteCreditBundleResponse";
23
+ export * from "./DeleteCreditSpendPolicyResponse";
20
24
  export * from "./ExtendCreditLeaseResponse";
21
25
  export * from "./GetCreditBundleResponse";
26
+ export * from "./GetCreditSpendPolicyResponse";
22
27
  export * from "./GetSingleBillingCreditResponse";
23
28
  export * from "./GetSingleBillingPlanCreditGrantResponse";
24
29
  export * from "./GrantBillingCreditsToCompanyResponse";
@@ -34,6 +39,8 @@ export * from "./ListCreditBundlesParams";
34
39
  export * from "./ListCreditBundlesResponse";
35
40
  export * from "./ListCreditEventLedgerParams";
36
41
  export * from "./ListCreditEventLedgerResponse";
42
+ export * from "./ListCreditSpendPoliciesParams";
43
+ export * from "./ListCreditSpendPoliciesResponse";
37
44
  export * from "./ListGrantsForCreditParams";
38
45
  export * from "./ListGrantsForCreditResponse";
39
46
  export * from "./ReleaseCreditLeaseResponse";
@@ -41,4 +48,5 @@ export * from "./SoftDeleteBillingCreditResponse";
41
48
  export * from "./UpdateBillingCreditResponse";
42
49
  export * from "./UpdateBillingPlanCreditGrantResponse";
43
50
  export * from "./UpdateCreditBundleDetailsResponse";
51
+ export * from "./UpdateCreditSpendPolicyResponse";
44
52
  export * from "./ZeroOutGrantResponse";
@@ -114,6 +114,56 @@ export declare class EventsClient {
114
114
  */
115
115
  getEvent(event_id: string, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetEventResponse>;
116
116
  private __getEvent;
117
+ /**
118
+ * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link Schematic.UnauthorizedError}
121
+ * @throws {@link Schematic.ForbiddenError}
122
+ * @throws {@link Schematic.NotFoundError}
123
+ * @throws {@link Schematic.InternalServerError}
124
+ * @throws {@link errors.SchematicError}
125
+ * @throws {@link errors.SchematicTimeoutError}
126
+ *
127
+ * @example
128
+ * await client.events.getOtlpEnvironmentSettings()
129
+ */
130
+ getOtlpEnvironmentSettings(requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetOtlpEnvironmentSettingsResponse>;
131
+ private __getOtlpEnvironmentSettings;
132
+ /**
133
+ * @param {Schematic.UpsertOtlpEnvironmentSettingsRequestBody} request
134
+ * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
135
+ *
136
+ * @throws {@link Schematic.BadRequestError}
137
+ * @throws {@link Schematic.UnauthorizedError}
138
+ * @throws {@link Schematic.ForbiddenError}
139
+ * @throws {@link Schematic.NotFoundError}
140
+ * @throws {@link Schematic.InternalServerError}
141
+ * @throws {@link errors.SchematicError}
142
+ * @throws {@link errors.SchematicTimeoutError}
143
+ *
144
+ * @example
145
+ * await client.events.upsertOtlpEnvironmentSettings({
146
+ * toolEventsEnabled: true
147
+ * })
148
+ */
149
+ upsertOtlpEnvironmentSettings(request: Schematic.UpsertOtlpEnvironmentSettingsRequestBody, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertOtlpEnvironmentSettingsResponse>;
150
+ private __upsertOtlpEnvironmentSettings;
151
+ /**
152
+ * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link Schematic.BadRequestError}
155
+ * @throws {@link Schematic.UnauthorizedError}
156
+ * @throws {@link Schematic.ForbiddenError}
157
+ * @throws {@link Schematic.NotFoundError}
158
+ * @throws {@link Schematic.InternalServerError}
159
+ * @throws {@link errors.SchematicError}
160
+ * @throws {@link errors.SchematicTimeoutError}
161
+ *
162
+ * @example
163
+ * await client.events.deleteOtlpEnvironmentSettings()
164
+ */
165
+ deleteOtlpEnvironmentSettings(requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<Schematic.DeleteOtlpEnvironmentSettingsResponse>;
166
+ private __deleteOtlpEnvironmentSettings;
117
167
  /**
118
168
  * @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
119
169
  *
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * toolEventsEnabled: true
5
+ * }
6
+ */
7
+ export interface UpsertOtlpEnvironmentSettingsRequestBody {
8
+ companyAttribute?: string;
9
+ companyKey?: string;
10
+ toolEventsEnabled: boolean;
11
+ userAttribute?: string;
12
+ userKey?: string;
13
+ }
@@ -1,3 +1,4 @@
1
1
  export type { CreateEventBatchRequestBody } from "./CreateEventBatchRequestBody";
2
2
  export type { GetEventSummariesRequest } from "./GetEventSummariesRequest";
3
3
  export type { ListEventsRequest } from "./ListEventsRequest";
4
+ export type { UpsertOtlpEnvironmentSettingsRequestBody } from "./UpsertOtlpEnvironmentSettingsRequestBody";
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface DeleteOtlpEnvironmentSettingsResponse {
3
+ data: Schematic.DeleteResponse;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetOtlpEnvironmentSettingsResponse {
3
+ data: Schematic.OtlpEnvironmentSettingsResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }