@schematichq/schematic-typescript-node 1.5.10 → 1.5.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.
Files changed (157) 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/ListCompanyBillingProfilesRequest.d.ts +20 -0
  6. package/dist/api/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +15 -0
  7. package/dist/api/resources/billing/client/requests/index.d.ts +2 -0
  8. package/dist/api/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +13 -0
  9. package/dist/api/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +6 -0
  10. package/dist/api/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +6 -0
  11. package/dist/api/resources/billing/types/index.d.ts +3 -0
  12. package/dist/api/resources/credits/client/Client.d.ts +123 -0
  13. package/dist/api/resources/credits/client/requests/CountCreditSpendPoliciesRequest.d.ts +24 -0
  14. package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +17 -0
  15. package/dist/api/resources/credits/client/requests/ListCreditSpendPoliciesRequest.d.ts +24 -0
  16. package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +8 -0
  17. package/dist/api/resources/credits/client/requests/index.d.ts +4 -0
  18. package/dist/api/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +15 -0
  19. package/dist/api/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +6 -0
  20. package/dist/api/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +6 -0
  21. package/dist/api/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +6 -0
  22. package/dist/api/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +6 -0
  23. package/dist/api/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +15 -0
  24. package/dist/api/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +6 -0
  25. package/dist/api/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +6 -0
  26. package/dist/api/resources/credits/types/index.d.ts +8 -0
  27. package/dist/api/resources/events/client/Client.d.ts +50 -0
  28. package/dist/api/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
  29. package/dist/api/resources/events/client/requests/index.d.ts +1 -0
  30. package/dist/api/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +6 -0
  31. package/dist/api/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +6 -0
  32. package/dist/api/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +6 -0
  33. package/dist/api/resources/events/types/index.d.ts +3 -0
  34. package/dist/api/resources/integrationsapi/client/Client.d.ts +83 -0
  35. package/dist/api/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
  36. package/dist/api/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
  37. package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
  38. package/dist/api/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +6 -0
  39. package/dist/api/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +6 -0
  40. package/dist/api/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +6 -0
  41. package/dist/api/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +6 -0
  42. package/dist/api/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +6 -0
  43. package/dist/api/resources/integrationsapi/types/index.d.ts +5 -0
  44. package/dist/api/resources/planmigrations/client/Client.d.ts +40 -5
  45. package/dist/api/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +8 -0
  46. package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
  47. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
  48. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -1
  49. package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
  50. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
  51. package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
  52. package/dist/api/resources/planmigrations/types/CancelMigrationResponse.d.ts +6 -0
  53. package/dist/api/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +6 -0
  54. package/dist/api/resources/planmigrations/types/index.d.ts +2 -0
  55. package/dist/api/resources/plans/client/Client.d.ts +1 -1
  56. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -1
  57. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +4 -0
  58. package/dist/api/types/ClaimedStripeSandboxKeysResponseData.d.ts +5 -0
  59. package/dist/api/types/CompanyBillingProfileResponseData.d.ts +17 -0
  60. package/dist/api/types/CompanyDetailResponseData.d.ts +3 -0
  61. package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
  62. package/dist/api/types/CreditLeaseResponseData.d.ts +1 -0
  63. package/dist/api/types/CreditSpendPolicyResponseData.d.ts +12 -0
  64. package/dist/api/types/CreditSpendPolicyScope.d.ts +6 -0
  65. package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
  66. package/dist/api/types/EventBodyInference.d.ts +4 -2
  67. package/dist/api/types/GetOnboardingStateResp.d.ts +6 -0
  68. package/dist/api/types/OnboardingRequirement.d.ts +1 -0
  69. package/dist/api/types/OnboardingStripeImport.d.ts +6 -0
  70. package/dist/api/types/OtlpEnvironmentSettingsResponseData.d.ts +10 -0
  71. package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
  72. package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
  73. package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +1 -0
  74. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  75. package/dist/api/types/PlanVersionMigrationStatus.d.ts +1 -0
  76. package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
  77. package/dist/api/types/RuleConditionDetailResponseData.d.ts +1 -0
  78. package/dist/api/types/RuleConditionPlanVersionResponseData.d.ts +7 -0
  79. package/dist/api/types/StripeIntegrationConfig.d.ts +6 -0
  80. package/dist/api/types/StripeSandboxClaimLink.d.ts +6 -0
  81. package/dist/api/types/StripeSandboxCountriesResponseData.d.ts +3 -0
  82. package/dist/api/types/StripeSandboxInstallResponseData.d.ts +10 -0
  83. package/dist/api/types/StripeSandboxKeysResponseData.d.ts +5 -0
  84. package/dist/api/types/index.d.ts +12 -0
  85. package/dist/credits/lease-store.d.ts +17 -8
  86. package/dist/index.js +25 -9
  87. package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
  88. package/dist/serialization/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +16 -0
  89. package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
  90. package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +14 -0
  91. package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +12 -0
  92. package/dist/serialization/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +11 -0
  93. package/dist/serialization/resources/billing/types/index.d.ts +3 -0
  94. package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +13 -0
  95. package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +10 -0
  96. package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
  97. package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +16 -0
  98. package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +12 -0
  99. package/dist/serialization/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +11 -0
  100. package/dist/serialization/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +11 -0
  101. package/dist/serialization/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +11 -0
  102. package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +16 -0
  103. package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +12 -0
  104. package/dist/serialization/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +11 -0
  105. package/dist/serialization/resources/credits/types/index.d.ts +8 -0
  106. package/dist/serialization/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
  107. package/dist/serialization/resources/events/client/requests/index.d.ts +1 -0
  108. package/dist/serialization/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +11 -0
  109. package/dist/serialization/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +11 -0
  110. package/dist/serialization/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +11 -0
  111. package/dist/serialization/resources/events/types/index.d.ts +3 -0
  112. package/dist/serialization/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
  113. package/dist/serialization/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
  114. package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +2 -0
  115. package/dist/serialization/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +11 -0
  116. package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +11 -0
  117. package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +11 -0
  118. package/dist/serialization/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +11 -0
  119. package/dist/serialization/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +11 -0
  120. package/dist/serialization/resources/integrationsapi/types/index.d.ts +5 -0
  121. package/dist/serialization/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +10 -0
  122. package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
  123. package/dist/serialization/resources/planmigrations/types/CancelMigrationResponse.d.ts +11 -0
  124. package/dist/serialization/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +11 -0
  125. package/dist/serialization/resources/planmigrations/types/index.d.ts +2 -0
  126. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
  127. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  128. package/dist/serialization/types/ClaimedStripeSandboxKeysResponseData.d.ts +11 -0
  129. package/dist/serialization/types/CompanyBillingProfileResponseData.d.ts +25 -0
  130. package/dist/serialization/types/CompanyDetailResponseData.d.ts +5 -0
  131. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -0
  132. package/dist/serialization/types/CreditLeaseResponseData.d.ts +1 -0
  133. package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +18 -0
  134. package/dist/serialization/types/CreditSpendPolicyScope.d.ts +7 -0
  135. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
  136. package/dist/serialization/types/EventBodyInference.d.ts +1 -0
  137. package/dist/serialization/types/GetOnboardingStateResp.d.ts +7 -0
  138. package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
  139. package/dist/serialization/types/OnboardingStripeImport.d.ts +7 -0
  140. package/dist/serialization/types/OtlpEnvironmentSettingsResponseData.d.ts +16 -0
  141. package/dist/serialization/types/PendingMigrationResponseData.d.ts +14 -0
  142. package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
  143. package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +1 -1
  144. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
  145. package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +1 -1
  146. package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
  147. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +2 -0
  148. package/dist/serialization/types/RuleConditionPlanVersionResponseData.d.ts +13 -0
  149. package/dist/serialization/types/StripeIntegrationConfig.d.ts +3 -0
  150. package/dist/serialization/types/StripeSandboxClaimLink.d.ts +12 -0
  151. package/dist/serialization/types/StripeSandboxCountriesResponseData.d.ts +9 -0
  152. package/dist/serialization/types/StripeSandboxInstallResponseData.d.ts +17 -0
  153. package/dist/serialization/types/StripeSandboxKeysResponseData.d.ts +11 -0
  154. package/dist/serialization/types/index.d.ts +12 -0
  155. package/dist/wasm/rulesengine.d.ts +1 -1
  156. package/dist/wasm/rulesengine.js +30 -30
  157. package/package.json +1 -1
@@ -120,6 +120,55 @@ export declare class IntegrationsapiClient {
120
120
  */
121
121
  loadSampleDataSet(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.LoadSampleDataSetResponse>;
122
122
  private __loadSampleDataSet;
123
+ /**
124
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
125
+ *
126
+ * @throws {@link Schematic.UnauthorizedError}
127
+ * @throws {@link Schematic.ForbiddenError}
128
+ * @throws {@link Schematic.NotFoundError}
129
+ * @throws {@link Schematic.InternalServerError}
130
+ * @throws {@link errors.SchematicError}
131
+ * @throws {@link errors.SchematicTimeoutError}
132
+ *
133
+ * @example
134
+ * await client.integrationsapi.getStripeSandboxClaimLink()
135
+ */
136
+ getStripeSandboxClaimLink(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.GetStripeSandboxClaimLinkResponse>;
137
+ private __getStripeSandboxClaimLink;
138
+ /**
139
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
140
+ *
141
+ * @throws {@link Schematic.UnauthorizedError}
142
+ * @throws {@link Schematic.ForbiddenError}
143
+ * @throws {@link Schematic.NotFoundError}
144
+ * @throws {@link Schematic.InternalServerError}
145
+ * @throws {@link errors.SchematicError}
146
+ * @throws {@link errors.SchematicTimeoutError}
147
+ *
148
+ * @example
149
+ * await client.integrationsapi.getStripeSandboxKeys()
150
+ */
151
+ getStripeSandboxKeys(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.GetStripeSandboxKeysResponse>;
152
+ private __getStripeSandboxKeys;
153
+ /**
154
+ * @param {Schematic.ClaimStripeSandboxKeysRequestBody} request
155
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
156
+ *
157
+ * @throws {@link Schematic.BadRequestError}
158
+ * @throws {@link Schematic.UnauthorizedError}
159
+ * @throws {@link Schematic.ForbiddenError}
160
+ * @throws {@link Schematic.NotFoundError}
161
+ * @throws {@link Schematic.InternalServerError}
162
+ * @throws {@link errors.SchematicError}
163
+ * @throws {@link errors.SchematicTimeoutError}
164
+ *
165
+ * @example
166
+ * await client.integrationsapi.claimStripeSandboxKeys({
167
+ * token: "token"
168
+ * })
169
+ */
170
+ claimStripeSandboxKeys(request: Schematic.ClaimStripeSandboxKeysRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.ClaimStripeSandboxKeysResponse>;
171
+ private __claimStripeSandboxKeys;
123
172
  /**
124
173
  * @param {Schematic.InstallIntegrationRequestBody} request
125
174
  * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -158,6 +207,40 @@ export declare class IntegrationsapiClient {
158
207
  */
159
208
  installStripe(request: Schematic.InstallIntegrationRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.InstallStripeResponse>;
160
209
  private __installStripe;
210
+ /**
211
+ * @param {Schematic.InstallStripeSandboxRequestBody} request
212
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
213
+ *
214
+ * @throws {@link Schematic.BadRequestError}
215
+ * @throws {@link Schematic.UnauthorizedError}
216
+ * @throws {@link Schematic.ForbiddenError}
217
+ * @throws {@link Schematic.NotFoundError}
218
+ * @throws {@link Schematic.InternalServerError}
219
+ * @throws {@link errors.SchematicError}
220
+ * @throws {@link errors.SchematicTimeoutError}
221
+ *
222
+ * @example
223
+ * await client.integrationsapi.installStripeClaimableSandbox({
224
+ * email: "email"
225
+ * })
226
+ */
227
+ installStripeClaimableSandbox(request: Schematic.InstallStripeSandboxRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.InstallStripeClaimableSandboxResponse>;
228
+ private __installStripeClaimableSandbox;
229
+ /**
230
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
231
+ *
232
+ * @throws {@link Schematic.UnauthorizedError}
233
+ * @throws {@link Schematic.ForbiddenError}
234
+ * @throws {@link Schematic.NotFoundError}
235
+ * @throws {@link Schematic.InternalServerError}
236
+ * @throws {@link errors.SchematicError}
237
+ * @throws {@link errors.SchematicTimeoutError}
238
+ *
239
+ * @example
240
+ * await client.integrationsapi.listStripeSandboxCountries()
241
+ */
242
+ listStripeSandboxCountries(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.ListStripeSandboxCountriesResponse>;
243
+ private __listStripeSandboxCountries;
161
244
  /**
162
245
  * @param {string} integration_id - integration_id
163
246
  * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * token: "token"
5
+ * }
6
+ */
7
+ export interface ClaimStripeSandboxKeysRequestBody {
8
+ token: string;
9
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * email: "email"
5
+ * }
6
+ */
7
+ export interface InstallStripeSandboxRequestBody {
8
+ country?: string;
9
+ email: string;
10
+ name?: string;
11
+ seedSampleData?: boolean;
12
+ }
@@ -1,2 +1,4 @@
1
+ export type { ClaimStripeSandboxKeysRequestBody } from "./ClaimStripeSandboxKeysRequestBody";
2
+ export type { InstallStripeSandboxRequestBody } from "./InstallStripeSandboxRequestBody";
1
3
  export type { ListIntegrationsRequest } from "./ListIntegrationsRequest";
2
4
  export type { StartDataImportRequestBody } from "./StartDataImportRequestBody";
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface ClaimStripeSandboxKeysResponse {
3
+ data: Schematic.ClaimedStripeSandboxKeysResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetStripeSandboxClaimLinkResponse {
3
+ data: Schematic.StripeSandboxClaimLink;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface GetStripeSandboxKeysResponse {
3
+ data: Schematic.ClaimedStripeSandboxKeysResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface InstallStripeClaimableSandboxResponse {
3
+ data: Schematic.StripeSandboxInstallResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface ListStripeSandboxCountriesResponse {
3
+ data: Schematic.StripeSandboxCountriesResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -1,9 +1,14 @@
1
1
  export * from "./AssumeStripeInstalledResponse";
2
+ export * from "./ClaimStripeSandboxKeysResponse";
2
3
  export * from "./GetIntegrationWebhookUrlResponse";
4
+ export * from "./GetStripeSandboxClaimLinkResponse";
5
+ export * from "./GetStripeSandboxKeysResponse";
3
6
  export * from "./InstallIntegrationResponse";
7
+ export * from "./InstallStripeClaimableSandboxResponse";
4
8
  export * from "./InstallStripeResponse";
5
9
  export * from "./ListIntegrationsParams";
6
10
  export * from "./ListIntegrationsResponse";
11
+ export * from "./ListStripeSandboxCountriesResponse";
7
12
  export * from "./LoadSampleDataSetResponse";
8
13
  export * from "./RunIntegrationResponse";
9
14
  export * from "./StartDataImportResponse";
@@ -26,7 +26,7 @@ export declare class PlanmigrationsClient {
26
26
  * await client.planmigrations.listCompanyMigrations({
27
27
  * migrationId: "migration_id",
28
28
  * q: "q",
29
- * status: "completed",
29
+ * status: "cancelled",
30
30
  * limit: 1000000,
31
31
  * offset: 1000000
32
32
  * })
@@ -66,7 +66,7 @@ export declare class PlanmigrationsClient {
66
66
  * await client.planmigrations.countCompanyMigrations({
67
67
  * migrationId: "migration_id",
68
68
  * q: "q",
69
- * status: "completed",
69
+ * status: "cancelled",
70
70
  * limit: 1000000,
71
71
  * offset: 1000000
72
72
  * })
@@ -88,7 +88,7 @@ export declare class PlanmigrationsClient {
88
88
  * @example
89
89
  * await client.planmigrations.listMigrations({
90
90
  * planVersionId: "plan_version_id",
91
- * status: "completed",
91
+ * status: "cancelled",
92
92
  * limit: 1000000,
93
93
  * offset: 1000000
94
94
  * })
@@ -111,7 +111,7 @@ export declare class PlanmigrationsClient {
111
111
  * await client.planmigrations.createMigration({
112
112
  * planId: "plan_id",
113
113
  * planVersionIdTo: "plan_version_id_to",
114
- * strategy: "immediate",
114
+ * strategy: "end_of_billing_period",
115
115
  * targetPlanType: "plan"
116
116
  * })
117
117
  */
@@ -133,6 +133,41 @@ export declare class PlanmigrationsClient {
133
133
  */
134
134
  getMigration(plan_version_migration_id: string, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetMigrationResponse>;
135
135
  private __getMigration;
136
+ /**
137
+ * @param {string} plan_version_migration_id - plan_version_migration_id
138
+ * @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
139
+ *
140
+ * @throws {@link Schematic.BadRequestError}
141
+ * @throws {@link Schematic.UnauthorizedError}
142
+ * @throws {@link Schematic.ForbiddenError}
143
+ * @throws {@link Schematic.NotFoundError}
144
+ * @throws {@link Schematic.InternalServerError}
145
+ * @throws {@link errors.SchematicError}
146
+ * @throws {@link errors.SchematicTimeoutError}
147
+ *
148
+ * @example
149
+ * await client.planmigrations.cancelMigration("plan_version_migration_id")
150
+ */
151
+ cancelMigration(plan_version_migration_id: string, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.CancelMigrationResponse>;
152
+ private __cancelMigration;
153
+ /**
154
+ * @param {string} plan_version_migration_id - plan_version_migration_id
155
+ * @param {Schematic.CompleteMigrationNowRequestBody} request
156
+ * @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
157
+ *
158
+ * @throws {@link Schematic.BadRequestError}
159
+ * @throws {@link Schematic.UnauthorizedError}
160
+ * @throws {@link Schematic.ForbiddenError}
161
+ * @throws {@link Schematic.NotFoundError}
162
+ * @throws {@link Schematic.InternalServerError}
163
+ * @throws {@link errors.SchematicError}
164
+ * @throws {@link errors.SchematicTimeoutError}
165
+ *
166
+ * @example
167
+ * await client.planmigrations.completeMigrationNow("plan_version_migration_id")
168
+ */
169
+ completeMigrationNow(plan_version_migration_id: string, request?: Schematic.CompleteMigrationNowRequestBody, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.CompleteMigrationNowResponse>;
170
+ private __completeMigrationNow;
136
171
  /**
137
172
  * @param {string} plan_version_migration_id - plan_version_migration_id
138
173
  * @param {Schematic.RetryMigrationRequestBody} request
@@ -168,7 +203,7 @@ export declare class PlanmigrationsClient {
168
203
  * @example
169
204
  * await client.planmigrations.countMigrations({
170
205
  * planVersionId: "plan_version_id",
171
- * status: "completed",
206
+ * status: "cancelled",
172
207
  * limit: 1000000,
173
208
  * offset: 1000000
174
209
  * })
@@ -0,0 +1,8 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface CompleteMigrationNowRequestBody {
7
+ prorationBehavior?: Schematic.MigrationProrationBehavior;
8
+ }
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * migrationId: "migration_id",
6
6
  * q: "q",
7
- * status: "completed",
7
+ * status: "cancelled",
8
8
  * limit: 1000000,
9
9
  * offset: 1000000
10
10
  * }
@@ -3,7 +3,7 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * planVersionId: "plan_version_id",
6
- * status: "completed",
6
+ * status: "cancelled",
7
7
  * limit: 1000000,
8
8
  * offset: 1000000
9
9
  * }
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * planId: "plan_id",
6
6
  * planVersionIdTo: "plan_version_id_to",
7
- * strategy: "immediate",
7
+ * strategy: "end_of_billing_period",
8
8
  * targetPlanType: "plan"
9
9
  * }
10
10
  */
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * migrationId: "migration_id",
6
6
  * q: "q",
7
- * status: "completed",
7
+ * status: "cancelled",
8
8
  * limit: 1000000,
9
9
  * offset: 1000000
10
10
  * }
@@ -3,7 +3,7 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * planVersionId: "plan_version_id",
6
- * status: "completed",
6
+ * status: "cancelled",
7
7
  * limit: 1000000,
8
8
  * offset: 1000000
9
9
  * }
@@ -1,3 +1,4 @@
1
+ export type { CompleteMigrationNowRequestBody } from "./CompleteMigrationNowRequestBody";
1
2
  export type { CountCompanyMigrationsRequest } from "./CountCompanyMigrationsRequest";
2
3
  export type { CountMigrationsRequest } from "./CountMigrationsRequest";
3
4
  export type { CreateMigrationInput } from "./CreateMigrationInput";
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface CancelMigrationResponse {
3
+ data: Schematic.PlanVersionMigrationResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface CompleteMigrationNowResponse {
3
+ data: Schematic.PlanVersionMigrationResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./CancelMigrationResponse";
2
+ export * from "./CompleteMigrationNowResponse";
1
3
  export * from "./CountCompanyMigrationsParams";
2
4
  export * from "./CountCompanyMigrationsResponse";
3
5
  export * from "./CountMigrationsParams";
@@ -404,7 +404,7 @@ export declare class PlansClient {
404
404
  * @example
405
405
  * await client.plans.publishPlanVersion("plan_version_id", {
406
406
  * excludedCompanyIds: ["excluded_company_ids"],
407
- * migrationStrategy: "immediate"
407
+ * migrationStrategy: "end_of_billing_period"
408
408
  * })
409
409
  */
410
410
  publishPlanVersion(plan_version_id: string, request: Schematic.PublishPlanVersionRequestBody, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.PublishPlanVersionResponse>;
@@ -3,12 +3,14 @@ import type * as Schematic from "../../../../index";
3
3
  * @example
4
4
  * {
5
5
  * excludedCompanyIds: ["excluded_company_ids"],
6
- * migrationStrategy: "immediate"
6
+ * migrationStrategy: "end_of_billing_period"
7
7
  * }
8
8
  */
9
9
  export interface PublishPlanVersionRequestBody {
10
10
  activationStrategy?: Schematic.CustomPlanActivationStrategy;
11
11
  address?: Schematic.CustomerBillingAddress;
12
+ /** The date the subscription's billing period renews on. Only honored on a first publish that starts a subscription. */
13
+ billingCycleAnchor?: Date;
12
14
  couponExternalId?: string;
13
15
  customFieldValues?: Schematic.CheckoutFieldValue[];
14
16
  customerEmail?: string;
@@ -16,6 +18,8 @@ export interface PublishPlanVersionRequestBody {
16
18
  excludedCompanyIds: string[];
17
19
  migrationStrategy: Schematic.PlanVersionMigrationStrategy;
18
20
  phone?: string;
21
+ /** When true, the partial period between the subscription starting and its renewal date is billed pro rata straight away. When false that period is free and no invoice is raised until the renewal date. Only applies alongside billing_cycle_anchor. Defaults to true. */
22
+ prorateFirstPeriod?: boolean;
19
23
  prorationBehavior?: Schematic.MigrationProrationBehavior;
20
24
  /** Refuse the publish if any company would be migrated onto the new version */
21
25
  requireNoMigration?: boolean;
@@ -7,8 +7,12 @@ import type * as Schematic from "../../../../index";
7
7
  */
8
8
  export interface RetryCustomPlanBillingRequestBody {
9
9
  activationStrategy?: Schematic.CustomPlanActivationStrategy;
10
+ /** The date the subscription's billing period renews on. Only honored when the retry creates a subscription. */
11
+ billingCycleAnchor?: Date;
10
12
  customerEmail: string;
11
13
  daysUntilDue?: number;
14
+ /** When true, the partial period between the subscription starting and its renewal date is billed pro rata straight away. When false that period is free and no invoice is raised until the renewal date. Only applies alongside billing_cycle_anchor. Defaults to true. */
15
+ prorateFirstPeriod?: boolean;
12
16
  /** Whether Stripe emails the invoice when it is finalized. Defaults to true. */
13
17
  sendInvoice?: boolean;
14
18
  }
@@ -0,0 +1,5 @@
1
+ export interface ClaimedStripeSandboxKeysResponseData {
2
+ publishable: string;
3
+ sandboxId: string;
4
+ secret: string;
5
+ }
@@ -0,0 +1,17 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CompanyBillingProfileResponseData {
3
+ accountId: string;
4
+ billingCustomerId?: string;
5
+ collectionMethod: Schematic.BillingCollectionMethod;
6
+ companyId: string;
7
+ createdAt: Date;
8
+ daysUntilDue?: number;
9
+ environmentId: string;
10
+ id: string;
11
+ isDefault: boolean;
12
+ name?: string;
13
+ paymentMethodId?: string;
14
+ prorationBehavior?: Schematic.ProrationBehavior;
15
+ providerType: Schematic.BillingProviderType;
16
+ updatedAt: Date;
17
+ }
@@ -2,6 +2,8 @@ import type * as Schematic from "../index";
2
2
  export interface CompanyDetailResponseData {
3
3
  addOns: Schematic.CompanyPlanWithBillingSubView[];
4
4
  billingCreditBalances?: Record<string, number>;
5
+ billingProfile?: Schematic.CompanyBillingProfileResponseData;
6
+ billingProfiles?: Schematic.CompanyBillingProfileResponseData[];
5
7
  billingSubscription?: Schematic.BillingSubscriptionView;
6
8
  billingSubscriptions: Schematic.BillingSubscriptionView[];
7
9
  createdAt: Date;
@@ -17,6 +19,7 @@ export interface CompanyDetailResponseData {
17
19
  metrics: Schematic.CompanyEventPeriodMetricsResponseData[];
18
20
  name: string;
19
21
  paymentMethods: Schematic.PaymentMethodResponseData[];
22
+ pendingMigration?: Schematic.PendingMigrationResponseData;
20
23
  plan?: Schematic.CompanyPlanWithBillingSubView;
21
24
  plans: Schematic.GenericPreviewObject[];
22
25
  rules: Schematic.Rule[];
@@ -16,6 +16,8 @@ export interface CompanyOverrideResponseData {
16
16
  ruleIdUsageExceeded?: string;
17
17
  updatedAt: Date;
18
18
  valueBool?: boolean;
19
+ valueCredit?: Schematic.BillingCreditResponseData;
20
+ valueCreditId?: string;
19
21
  valueNumeric?: number;
20
22
  valueTrait?: Schematic.EntityTraitDefinitionResponseData;
21
23
  valueTraitId?: string;
@@ -6,5 +6,6 @@ export interface CreditLeaseResponseData {
6
6
  grantedAmount: number;
7
7
  id: string;
8
8
  releasedAt?: Date;
9
+ trackedAmount: number;
9
10
  updatedAt: Date;
10
11
  }
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CreditSpendPolicyResponseData {
3
+ billingCreditId: string;
4
+ companyId?: string;
5
+ createdAt: Date;
6
+ id: string;
7
+ label?: string;
8
+ maxPerDraw?: number;
9
+ scopeType: Schematic.CreditSpendPolicyScope;
10
+ updatedAt: Date;
11
+ userId?: string;
12
+ }
@@ -0,0 +1,6 @@
1
+ export declare const CreditSpendPolicyScope: {
2
+ readonly Company: "company";
3
+ readonly User: "user";
4
+ readonly Group: "group";
5
+ };
6
+ export type CreditSpendPolicyScope = (typeof CreditSpendPolicyScope)[keyof typeof CreditSpendPolicyScope];
@@ -12,6 +12,8 @@ export interface CustomPlanBillingResponseData {
12
12
  /** The flow that created this billing record: a custom plan, or a standard plan assigned by invoice through Manage Plan. */
13
13
  planBillingSource: Schematic.PlanBillingSource;
14
14
  planId: string;
15
+ /** Whether the shortened period the renewal date created was billed pro rata when the subscription started. False means that period is free and the first invoice is the one raised on the renewal date. */
16
+ prorateFirstPeriod?: boolean;
15
17
  publishedAt?: Date;
16
18
  sendInvoice: boolean;
17
19
  status: Schematic.CustomPlanBillingStatus;
@@ -1,5 +1,7 @@
1
1
  export interface EventBodyInference {
2
- /** Number of input tokens served from cache */
2
+ /** Number of input tokens written to a prompt cache; a subset of input_tokens */
3
+ cacheCreationInputTokens?: number;
4
+ /** Number of input tokens served from cache; a subset of input_tokens */
3
5
  cachedInputTokens?: number;
4
6
  /** Key-value pairs to identify the company associated with the inference event */
5
7
  company: Record<string, string>;
@@ -9,7 +11,7 @@ export interface EventBodyInference {
9
11
  currency?: string;
10
12
  /** Optional track event name to fan out for usage-based billing */
11
13
  event?: string;
12
- /** Number of input tokens for the inference request */
14
+ /** Total number of input tokens for the inference request, including those served from and written to a prompt cache */
13
15
  inputTokens: number;
14
16
  /** The inference operation; defaults to 'chat' */
15
17
  operation?: string;
@@ -1,9 +1,15 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface GetOnboardingStateResp {
3
+ agentConnectedAt?: Date;
4
+ country?: string;
5
+ dismissedAt?: Date;
3
6
  environmentId?: string;
4
7
  milestones: Schematic.OnboardingMilestoneView[];
5
8
  path?: Schematic.OnboardingPath;
9
+ pricingPageUrl?: string;
6
10
  requirements: Schematic.OnboardingRequirementView[];
11
+ stripeImport?: Schematic.OnboardingStripeImport;
7
12
  suggestedNext: Schematic.OnboardingRequirement[];
8
13
  track?: Schematic.OnboardingTrack;
14
+ websiteUrl?: string;
9
15
  }
@@ -1,4 +1,5 @@
1
1
  export declare const OnboardingRequirement: {
2
+ readonly ConnectAgent: "connect_agent";
2
3
  readonly ConnectBilling: "connect_billing";
3
4
  readonly CreateApiKey: "create_api_key";
4
5
  readonly FirstFlagCheck: "first_flag_check";
@@ -0,0 +1,6 @@
1
+ export declare const OnboardingStripeImport: {
2
+ readonly Complete: "complete";
3
+ readonly NotStarted: "not_started";
4
+ readonly Running: "running";
5
+ };
6
+ export type OnboardingStripeImport = (typeof OnboardingStripeImport)[keyof typeof OnboardingStripeImport];
@@ -0,0 +1,10 @@
1
+ export interface OtlpEnvironmentSettingsResponseData {
2
+ companyAttribute?: string;
3
+ companyKey?: string;
4
+ createdAt: Date;
5
+ environmentId: string;
6
+ toolEventsEnabled: boolean;
7
+ updatedAt: Date;
8
+ userAttribute?: string;
9
+ userKey?: string;
10
+ }
@@ -0,0 +1,8 @@
1
+ export interface PendingMigrationResponseData {
2
+ migrationId: string;
3
+ scheduledFor?: Date;
4
+ toPlanId: string;
5
+ toPlanName: string;
6
+ toPlanVersionId: string;
7
+ toPlanVersionNumber?: number;
8
+ }
@@ -9,6 +9,8 @@ export interface PlanVersionCompanyMigrationResponseData {
9
9
  id: string;
10
10
  migrationId: string;
11
11
  planVersionIdFrom?: string;
12
+ /** When this company is expected to migrate, for a migration scheduled at the end of the billing period: the end of the company's current billing period. Only set while both the company and the migration are still pending. A value at or before the time of the request means the company has no active subscription and migrates as soon as processing runs. Null means no upcoming renewal could be determined from the company's current billing status (for example, a past-due subscription or one set to cancel); it does not mean the company will never migrate. */
13
+ scheduledFor?: Date;
12
14
  startedAt?: Date;
13
15
  status: Schematic.PlanVersionCompanyMigrationStatus;
14
16
  updatedAt: Date;
@@ -1,4 +1,5 @@
1
1
  export declare const PlanVersionCompanyMigrationStatus: {
2
+ readonly Cancelled: "cancelled";
2
3
  readonly Completed: "completed";
3
4
  readonly Failed: "failed";
4
5
  readonly InProgress: "in_progress";
@@ -6,6 +6,7 @@ export interface PlanVersionMigrationResponseData {
6
6
  error?: string;
7
7
  failedCompanies: number;
8
8
  id: string;
9
+ nextDueAt?: Date;
9
10
  planId: string;
10
11
  planVersionIdFrom?: string;
11
12
  planVersionIdTo: string;
@@ -1,4 +1,5 @@
1
1
  export declare const PlanVersionMigrationStatus: {
2
+ readonly Cancelled: "cancelled";
2
3
  readonly Completed: "completed";
3
4
  readonly Failed: "failed";
4
5
  readonly InProgress: "in_progress";
@@ -1,4 +1,5 @@
1
1
  export declare const PlanVersionMigrationStrategy: {
2
+ readonly EndOfBillingPeriod: "end_of_billing_period";
2
3
  readonly Immediate: "immediate";
3
4
  readonly Leave: "leave";
4
5
  };
@@ -13,6 +13,7 @@ export interface RuleConditionDetailResponseData {
13
13
  metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
14
14
  metricValue?: number;
15
15
  operator: Schematic.ComparableOperator;
16
+ planVersions?: Schematic.RuleConditionPlanVersionResponseData[];
16
17
  resourceIds: string[];
17
18
  resources: Schematic.PreviewObjectResponseData[];
18
19
  ruleId: string;
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../index";
2
+ export interface RuleConditionPlanVersionResponseData {
3
+ id: string;
4
+ name: string;
5
+ status: Schematic.PlanVersionStatus;
6
+ version: number;
7
+ }