@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.
- package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/Client.d.ts +43 -0
- package/dist/api/resources/billing/client/requests/ListCompanyBillingProfilesRequest.d.ts +20 -0
- package/dist/api/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +15 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +2 -0
- package/dist/api/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +13 -0
- package/dist/api/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/index.d.ts +3 -0
- package/dist/api/resources/credits/client/Client.d.ts +123 -0
- package/dist/api/resources/credits/client/requests/CountCreditSpendPoliciesRequest.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +17 -0
- package/dist/api/resources/credits/client/requests/ListCreditSpendPoliciesRequest.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +8 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +4 -0
- package/dist/api/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +15 -0
- package/dist/api/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +15 -0
- package/dist/api/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +8 -0
- package/dist/api/resources/events/client/Client.d.ts +50 -0
- package/dist/api/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
- package/dist/api/resources/events/client/requests/index.d.ts +1 -0
- package/dist/api/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/index.d.ts +3 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +83 -0
- package/dist/api/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
- package/dist/api/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/index.d.ts +5 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +40 -5
- package/dist/api/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +8 -0
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/types/CancelMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +1 -1
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -1
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +4 -0
- package/dist/api/types/ClaimedStripeSandboxKeysResponseData.d.ts +5 -0
- package/dist/api/types/CompanyBillingProfileResponseData.d.ts +17 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +3 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
- package/dist/api/types/CreditLeaseResponseData.d.ts +1 -0
- package/dist/api/types/CreditSpendPolicyResponseData.d.ts +12 -0
- package/dist/api/types/CreditSpendPolicyScope.d.ts +6 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
- package/dist/api/types/EventBodyInference.d.ts +4 -2
- package/dist/api/types/GetOnboardingStateResp.d.ts +6 -0
- package/dist/api/types/OnboardingRequirement.d.ts +1 -0
- package/dist/api/types/OnboardingStripeImport.d.ts +6 -0
- package/dist/api/types/OtlpEnvironmentSettingsResponseData.d.ts +10 -0
- package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
- package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStatus.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +1 -0
- package/dist/api/types/RuleConditionPlanVersionResponseData.d.ts +7 -0
- package/dist/api/types/StripeIntegrationConfig.d.ts +6 -0
- package/dist/api/types/StripeSandboxClaimLink.d.ts +6 -0
- package/dist/api/types/StripeSandboxCountriesResponseData.d.ts +3 -0
- package/dist/api/types/StripeSandboxInstallResponseData.d.ts +10 -0
- package/dist/api/types/StripeSandboxKeysResponseData.d.ts +5 -0
- package/dist/api/types/index.d.ts +12 -0
- package/dist/credits/lease-store.d.ts +17 -8
- package/dist/index.js +25 -9
- package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +16 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +14 -0
- package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +12 -0
- package/dist/serialization/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/index.d.ts +3 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +13 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +10 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +8 -0
- package/dist/serialization/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
- package/dist/serialization/resources/events/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/index.d.ts +3 -0
- package/dist/serialization/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
- package/dist/serialization/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
- package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/index.d.ts +5 -0
- package/dist/serialization/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +10 -0
- package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CancelMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
- package/dist/serialization/types/ClaimedStripeSandboxKeysResponseData.d.ts +11 -0
- package/dist/serialization/types/CompanyBillingProfileResponseData.d.ts +25 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -0
- package/dist/serialization/types/CreditLeaseResponseData.d.ts +1 -0
- package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +18 -0
- package/dist/serialization/types/CreditSpendPolicyScope.d.ts +7 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/EventBodyInference.d.ts +1 -0
- package/dist/serialization/types/GetOnboardingStateResp.d.ts +7 -0
- package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
- package/dist/serialization/types/OnboardingStripeImport.d.ts +7 -0
- package/dist/serialization/types/OtlpEnvironmentSettingsResponseData.d.ts +16 -0
- package/dist/serialization/types/PendingMigrationResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +1 -1
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +1 -1
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/RuleConditionPlanVersionResponseData.d.ts +13 -0
- package/dist/serialization/types/StripeIntegrationConfig.d.ts +3 -0
- package/dist/serialization/types/StripeSandboxClaimLink.d.ts +12 -0
- package/dist/serialization/types/StripeSandboxCountriesResponseData.d.ts +9 -0
- package/dist/serialization/types/StripeSandboxInstallResponseData.d.ts +17 -0
- package/dist/serialization/types/StripeSandboxKeysResponseData.d.ts +11 -0
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/wasm/rulesengine.d.ts +1 -1
- package/dist/wasm/rulesengine.js +30 -30
- 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.
|
|
@@ -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";
|
|
@@ -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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
206
|
+
* status: "cancelled",
|
|
172
207
|
* limit: 1000000,
|
|
173
208
|
* offset: 1000000
|
|
174
209
|
* })
|
|
@@ -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";
|
|
@@ -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: "
|
|
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: "
|
|
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,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;
|
|
@@ -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
|
+
}
|
|
@@ -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
|
|
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
|
-
/**
|
|
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
|
}
|
|
@@ -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;
|
|
@@ -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;
|