@schematichq/schematic-typescript-node 1.5.9 → 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/BaseClient.d.ts +12 -0
- package/dist/Client.d.ts +3 -0
- package/dist/api/errors/BadRequestError.d.ts +1 -0
- package/dist/api/errors/ForbiddenError.d.ts +1 -0
- package/dist/api/errors/InternalServerError.d.ts +1 -0
- package/dist/api/errors/NotFoundError.d.ts +1 -0
- package/dist/api/errors/PaymentRequiredError.d.ts +7 -0
- package/dist/api/errors/UnauthorizedError.d.ts +1 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/resources/accesstokens/client/Client.d.ts +2 -0
- package/dist/api/resources/accounts/client/Client.d.ts +42 -0
- package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/Client.d.ts +91 -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/catalogs/client/Client.d.ts +28 -0
- package/dist/api/resources/checkout/client/Client.d.ts +18 -0
- package/dist/api/resources/companies/client/Client.d.ts +86 -0
- package/dist/api/resources/components/client/Client.d.ts +16 -0
- package/dist/api/resources/componentspublic/client/Client.d.ts +2 -0
- package/dist/api/resources/credits/client/Client.d.ts +183 -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/dataexports/client/Client.d.ts +8 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +50 -0
- package/dist/api/resources/events/client/Client.d.ts +62 -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/features/client/Client.d.ts +34 -0
- package/dist/api/resources/insights/client/Client.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +101 -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/licenses/client/Client.d.ts +6 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +6 -2
- package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +0 -1
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +0 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +6 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +58 -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 +37 -4
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -2
- package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +1 -2
- 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/resources/scheduledcheckout/client/Client.d.ts +8 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +20 -0
- package/dist/api/types/AuditLogResponseData.d.ts +1 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +1 -1
- 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/ComponentHydrateResponseData.d.ts +1 -1
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -1
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
- package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
- 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/OnboardingRequirementView.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/PlanChangeResponseData.d.ts +6 -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/PreviewSubscriptionFinanceResponseData.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 +8 -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/UpcomingInvoiceResponseData.d.ts +23 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/index.d.ts +13 -0
- package/dist/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/core/requestBody.d.ts +12 -0
- package/dist/core/runtime/index.d.ts +1 -1
- package/dist/core/runtime/runtime.d.ts +19 -0
- package/dist/credits/lease-store.d.ts +17 -8
- package/dist/errors/SchematicError.d.ts +1 -0
- package/dist/errors/SchematicTimeoutError.d.ts +2 -2
- package/dist/events.d.ts +6 -0
- 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/CreateBillingLinkedPlanRequestBody.d.ts +1 -1
- package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +1 -1
- 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/AuditLogResponseData.d.ts +1 -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/ComponentHydrateResponseData.d.ts +2 -2
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -1
- package/dist/serialization/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +1 -1
- 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/OnboardingRequirementView.d.ts +1 -0
- 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/PlanChangeResponseData.d.ts +4 -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/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
- 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 +4 -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/UpcomingInvoiceResponseData.d.ts +30 -0
- package/dist/serialization/types/index.d.ts +13 -0
- package/dist/wasm/rulesengine.d.ts +1 -1
- package/dist/wasm/rulesengine.js +30 -30
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ export declare class PlansClient {
|
|
|
20
20
|
* @throws {@link Schematic.ForbiddenError}
|
|
21
21
|
* @throws {@link Schematic.NotFoundError}
|
|
22
22
|
* @throws {@link Schematic.InternalServerError}
|
|
23
|
+
* @throws {@link errors.SchematicError}
|
|
24
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
23
25
|
*
|
|
24
26
|
* @example
|
|
25
27
|
* await client.plans.updateCompanyPlans("company_id", {
|
|
@@ -37,6 +39,8 @@ export declare class PlansClient {
|
|
|
37
39
|
* @throws {@link Schematic.ForbiddenError}
|
|
38
40
|
* @throws {@link Schematic.NotFoundError}
|
|
39
41
|
* @throws {@link Schematic.InternalServerError}
|
|
42
|
+
* @throws {@link errors.SchematicError}
|
|
43
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
40
44
|
*
|
|
41
45
|
* @example
|
|
42
46
|
* await client.plans.listCustomPlanBillings({
|
|
@@ -61,6 +65,8 @@ export declare class PlansClient {
|
|
|
61
65
|
* @throws {@link Schematic.ForbiddenError}
|
|
62
66
|
* @throws {@link Schematic.NotFoundError}
|
|
63
67
|
* @throws {@link Schematic.InternalServerError}
|
|
68
|
+
* @throws {@link errors.SchematicError}
|
|
69
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
64
70
|
*
|
|
65
71
|
* @example
|
|
66
72
|
* await client.plans.markCustomPlanBillingPaid("custom_plan_billing_id", {
|
|
@@ -79,6 +85,8 @@ export declare class PlansClient {
|
|
|
79
85
|
* @throws {@link Schematic.ForbiddenError}
|
|
80
86
|
* @throws {@link Schematic.NotFoundError}
|
|
81
87
|
* @throws {@link Schematic.InternalServerError}
|
|
88
|
+
* @throws {@link errors.SchematicError}
|
|
89
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
82
90
|
*
|
|
83
91
|
* @example
|
|
84
92
|
* await client.plans.retryCustomPlanBilling("custom_plan_billing_id", {
|
|
@@ -96,11 +104,12 @@ export declare class PlansClient {
|
|
|
96
104
|
* @throws {@link Schematic.ForbiddenError}
|
|
97
105
|
* @throws {@link Schematic.NotFoundError}
|
|
98
106
|
* @throws {@link Schematic.InternalServerError}
|
|
107
|
+
* @throws {@link errors.SchematicError}
|
|
108
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
99
109
|
*
|
|
100
110
|
* @example
|
|
101
111
|
* await client.plans.createCustomPlan({
|
|
102
112
|
* companyId: "company_id",
|
|
103
|
-
* description: "description",
|
|
104
113
|
* name: "name"
|
|
105
114
|
* })
|
|
106
115
|
*/
|
|
@@ -115,6 +124,8 @@ export declare class PlansClient {
|
|
|
115
124
|
* @throws {@link Schematic.ForbiddenError}
|
|
116
125
|
* @throws {@link Schematic.NotFoundError}
|
|
117
126
|
* @throws {@link Schematic.InternalServerError}
|
|
127
|
+
* @throws {@link errors.SchematicError}
|
|
128
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
118
129
|
*
|
|
119
130
|
* @example
|
|
120
131
|
* await client.plans.listPlans({
|
|
@@ -148,10 +159,11 @@ export declare class PlansClient {
|
|
|
148
159
|
* @throws {@link Schematic.ForbiddenError}
|
|
149
160
|
* @throws {@link Schematic.NotFoundError}
|
|
150
161
|
* @throws {@link Schematic.InternalServerError}
|
|
162
|
+
* @throws {@link errors.SchematicError}
|
|
163
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
151
164
|
*
|
|
152
165
|
* @example
|
|
153
166
|
* await client.plans.createPlan({
|
|
154
|
-
* description: "description",
|
|
155
167
|
* name: "name",
|
|
156
168
|
* planType: "plan"
|
|
157
169
|
* })
|
|
@@ -167,6 +179,8 @@ export declare class PlansClient {
|
|
|
167
179
|
* @throws {@link Schematic.ForbiddenError}
|
|
168
180
|
* @throws {@link Schematic.NotFoundError}
|
|
169
181
|
* @throws {@link Schematic.InternalServerError}
|
|
182
|
+
* @throws {@link errors.SchematicError}
|
|
183
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
170
184
|
*
|
|
171
185
|
* @example
|
|
172
186
|
* await client.plans.getPlan("plan_id", {
|
|
@@ -185,6 +199,8 @@ export declare class PlansClient {
|
|
|
185
199
|
* @throws {@link Schematic.ForbiddenError}
|
|
186
200
|
* @throws {@link Schematic.NotFoundError}
|
|
187
201
|
* @throws {@link Schematic.InternalServerError}
|
|
202
|
+
* @throws {@link errors.SchematicError}
|
|
203
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
188
204
|
*
|
|
189
205
|
* @example
|
|
190
206
|
* await client.plans.updatePlan("plan_id", {
|
|
@@ -202,6 +218,8 @@ export declare class PlansClient {
|
|
|
202
218
|
* @throws {@link Schematic.ForbiddenError}
|
|
203
219
|
* @throws {@link Schematic.NotFoundError}
|
|
204
220
|
* @throws {@link Schematic.InternalServerError}
|
|
221
|
+
* @throws {@link errors.SchematicError}
|
|
222
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
205
223
|
*
|
|
206
224
|
* @example
|
|
207
225
|
* await client.plans.deletePlan("plan_id")
|
|
@@ -218,6 +236,8 @@ export declare class PlansClient {
|
|
|
218
236
|
* @throws {@link Schematic.ForbiddenError}
|
|
219
237
|
* @throws {@link Schematic.NotFoundError}
|
|
220
238
|
* @throws {@link Schematic.InternalServerError}
|
|
239
|
+
* @throws {@link errors.SchematicError}
|
|
240
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
221
241
|
*
|
|
222
242
|
* @example
|
|
223
243
|
* await client.plans.upsertBillingProductPlan("plan_id", {
|
|
@@ -236,11 +256,12 @@ export declare class PlansClient {
|
|
|
236
256
|
* @throws {@link Schematic.ForbiddenError}
|
|
237
257
|
* @throws {@link Schematic.NotFoundError}
|
|
238
258
|
* @throws {@link Schematic.InternalServerError}
|
|
259
|
+
* @throws {@link errors.SchematicError}
|
|
260
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
239
261
|
*
|
|
240
262
|
* @example
|
|
241
263
|
* await client.plans.upsertPlanForBillingProduct({
|
|
242
264
|
* billingProvider: "metronome",
|
|
243
|
-
* description: "description",
|
|
244
265
|
* externalResourceId: "external_resource_id",
|
|
245
266
|
* name: "name",
|
|
246
267
|
* planType: "plan"
|
|
@@ -257,6 +278,8 @@ export declare class PlansClient {
|
|
|
257
278
|
* @throws {@link Schematic.ForbiddenError}
|
|
258
279
|
* @throws {@link Schematic.NotFoundError}
|
|
259
280
|
* @throws {@link Schematic.InternalServerError}
|
|
281
|
+
* @throws {@link errors.SchematicError}
|
|
282
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
260
283
|
*
|
|
261
284
|
* @example
|
|
262
285
|
* await client.plans.listBillingProductMatchCompanies({
|
|
@@ -277,6 +300,8 @@ export declare class PlansClient {
|
|
|
277
300
|
* @throws {@link Schematic.ForbiddenError}
|
|
278
301
|
* @throws {@link Schematic.NotFoundError}
|
|
279
302
|
* @throws {@link Schematic.InternalServerError}
|
|
303
|
+
* @throws {@link errors.SchematicError}
|
|
304
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
280
305
|
*
|
|
281
306
|
* @example
|
|
282
307
|
* await client.plans.countBillingProductMatchCompanies({
|
|
@@ -297,6 +322,8 @@ export declare class PlansClient {
|
|
|
297
322
|
* @throws {@link Schematic.ForbiddenError}
|
|
298
323
|
* @throws {@link Schematic.NotFoundError}
|
|
299
324
|
* @throws {@link Schematic.InternalServerError}
|
|
325
|
+
* @throws {@link errors.SchematicError}
|
|
326
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
300
327
|
*
|
|
301
328
|
* @example
|
|
302
329
|
* await client.plans.countPlans({
|
|
@@ -330,6 +357,8 @@ export declare class PlansClient {
|
|
|
330
357
|
* @throws {@link Schematic.ForbiddenError}
|
|
331
358
|
* @throws {@link Schematic.NotFoundError}
|
|
332
359
|
* @throws {@link Schematic.InternalServerError}
|
|
360
|
+
* @throws {@link errors.SchematicError}
|
|
361
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
333
362
|
*
|
|
334
363
|
* @example
|
|
335
364
|
* await client.plans.listPlanIssues({
|
|
@@ -349,6 +378,8 @@ export declare class PlansClient {
|
|
|
349
378
|
* @throws {@link Schematic.ForbiddenError}
|
|
350
379
|
* @throws {@link Schematic.NotFoundError}
|
|
351
380
|
* @throws {@link Schematic.InternalServerError}
|
|
381
|
+
* @throws {@link errors.SchematicError}
|
|
382
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
352
383
|
*
|
|
353
384
|
* @example
|
|
354
385
|
* await client.plans.deletePlanVersion("plan_version_id", {
|
|
@@ -367,11 +398,13 @@ export declare class PlansClient {
|
|
|
367
398
|
* @throws {@link Schematic.ForbiddenError}
|
|
368
399
|
* @throws {@link Schematic.NotFoundError}
|
|
369
400
|
* @throws {@link Schematic.InternalServerError}
|
|
401
|
+
* @throws {@link errors.SchematicError}
|
|
402
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
370
403
|
*
|
|
371
404
|
* @example
|
|
372
405
|
* await client.plans.publishPlanVersion("plan_version_id", {
|
|
373
406
|
* excludedCompanyIds: ["excluded_company_ids"],
|
|
374
|
-
* migrationStrategy: "
|
|
407
|
+
* migrationStrategy: "end_of_billing_period"
|
|
375
408
|
* })
|
|
376
409
|
*/
|
|
377
410
|
publishPlanVersion(plan_version_id: string, request: Schematic.PublishPlanVersionRequestBody, requestOptions?: PlansClient.RequestOptions): core.HttpResponsePromise<Schematic.PublishPlanVersionResponse>;
|
|
@@ -3,7 +3,6 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* billingProvider: "metronome",
|
|
6
|
-
* description: "description",
|
|
7
6
|
* externalResourceId: "external_resource_id",
|
|
8
7
|
* name: "name",
|
|
9
8
|
* planType: "plan"
|
|
@@ -11,7 +10,7 @@ import type * as Schematic from "../../../../index";
|
|
|
11
10
|
*/
|
|
12
11
|
export interface CreateBillingLinkedPlanRequestBody {
|
|
13
12
|
billingProvider: Schematic.BillingProviderType;
|
|
14
|
-
description
|
|
13
|
+
description?: string;
|
|
15
14
|
externalResourceId: string;
|
|
16
15
|
externalResourceVersion?: string;
|
|
17
16
|
icon?: Schematic.PlanIcon;
|
|
@@ -3,7 +3,6 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* companyId: "company_id",
|
|
6
|
-
* description: "description",
|
|
7
6
|
* name: "name"
|
|
8
7
|
* }
|
|
9
8
|
*/
|
|
@@ -11,7 +10,7 @@ export interface CreateCustomPlanRequestBody {
|
|
|
11
10
|
companyId: string;
|
|
12
11
|
copiedFromPlanId?: string;
|
|
13
12
|
copiedPriceId?: string;
|
|
14
|
-
description
|
|
13
|
+
description?: string;
|
|
15
14
|
icon?: Schematic.PlanIcon;
|
|
16
15
|
name: string;
|
|
17
16
|
}
|
|
@@ -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
|
}
|
|
@@ -19,6 +19,8 @@ export declare class ScheduledcheckoutClient {
|
|
|
19
19
|
* @throws {@link Schematic.ForbiddenError}
|
|
20
20
|
* @throws {@link Schematic.NotFoundError}
|
|
21
21
|
* @throws {@link Schematic.InternalServerError}
|
|
22
|
+
* @throws {@link errors.SchematicError}
|
|
23
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
22
24
|
*
|
|
23
25
|
* @example
|
|
24
26
|
* await client.scheduledcheckout.listScheduledCheckouts({
|
|
@@ -39,6 +41,8 @@ export declare class ScheduledcheckoutClient {
|
|
|
39
41
|
* @throws {@link Schematic.ForbiddenError}
|
|
40
42
|
* @throws {@link Schematic.NotFoundError}
|
|
41
43
|
* @throws {@link Schematic.InternalServerError}
|
|
44
|
+
* @throws {@link errors.SchematicError}
|
|
45
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
42
46
|
*
|
|
43
47
|
* @example
|
|
44
48
|
* await client.scheduledcheckout.createScheduledCheckout({
|
|
@@ -58,6 +62,8 @@ export declare class ScheduledcheckoutClient {
|
|
|
58
62
|
* @throws {@link Schematic.ForbiddenError}
|
|
59
63
|
* @throws {@link Schematic.NotFoundError}
|
|
60
64
|
* @throws {@link Schematic.InternalServerError}
|
|
65
|
+
* @throws {@link errors.SchematicError}
|
|
66
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
61
67
|
*
|
|
62
68
|
* @example
|
|
63
69
|
* await client.scheduledcheckout.getScheduledCheckout("scheduled_checkout_id")
|
|
@@ -74,6 +80,8 @@ export declare class ScheduledcheckoutClient {
|
|
|
74
80
|
* @throws {@link Schematic.ForbiddenError}
|
|
75
81
|
* @throws {@link Schematic.NotFoundError}
|
|
76
82
|
* @throws {@link Schematic.InternalServerError}
|
|
83
|
+
* @throws {@link errors.SchematicError}
|
|
84
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
77
85
|
*
|
|
78
86
|
* @example
|
|
79
87
|
* await client.scheduledcheckout.updateScheduledCheckout("scheduled_checkout_id")
|
|
@@ -19,6 +19,8 @@ export declare class WebhooksClient {
|
|
|
19
19
|
* @throws {@link Schematic.ForbiddenError}
|
|
20
20
|
* @throws {@link Schematic.NotFoundError}
|
|
21
21
|
* @throws {@link Schematic.InternalServerError}
|
|
22
|
+
* @throws {@link errors.SchematicError}
|
|
23
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
22
24
|
*
|
|
23
25
|
* @example
|
|
24
26
|
* await client.webhooks.listWebhookEvents({
|
|
@@ -39,6 +41,8 @@ export declare class WebhooksClient {
|
|
|
39
41
|
* @throws {@link Schematic.ForbiddenError}
|
|
40
42
|
* @throws {@link Schematic.NotFoundError}
|
|
41
43
|
* @throws {@link Schematic.InternalServerError}
|
|
44
|
+
* @throws {@link errors.SchematicError}
|
|
45
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
42
46
|
*
|
|
43
47
|
* @example
|
|
44
48
|
* await client.webhooks.getWebhookEvent("webhook_event_id")
|
|
@@ -54,6 +58,8 @@ export declare class WebhooksClient {
|
|
|
54
58
|
* @throws {@link Schematic.ForbiddenError}
|
|
55
59
|
* @throws {@link Schematic.NotFoundError}
|
|
56
60
|
* @throws {@link Schematic.InternalServerError}
|
|
61
|
+
* @throws {@link errors.SchematicError}
|
|
62
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
57
63
|
*
|
|
58
64
|
* @example
|
|
59
65
|
* await client.webhooks.countWebhookEvents({
|
|
@@ -75,6 +81,8 @@ export declare class WebhooksClient {
|
|
|
75
81
|
* @throws {@link Schematic.ForbiddenError}
|
|
76
82
|
* @throws {@link Schematic.NotFoundError}
|
|
77
83
|
* @throws {@link Schematic.InternalServerError}
|
|
84
|
+
* @throws {@link errors.SchematicError}
|
|
85
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
78
86
|
*
|
|
79
87
|
* @example
|
|
80
88
|
* await client.webhooks.listWebhooks({
|
|
@@ -94,6 +102,8 @@ export declare class WebhooksClient {
|
|
|
94
102
|
* @throws {@link Schematic.ForbiddenError}
|
|
95
103
|
* @throws {@link Schematic.NotFoundError}
|
|
96
104
|
* @throws {@link Schematic.InternalServerError}
|
|
105
|
+
* @throws {@link errors.SchematicError}
|
|
106
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
97
107
|
*
|
|
98
108
|
* @example
|
|
99
109
|
* await client.webhooks.createWebhook({
|
|
@@ -112,6 +122,8 @@ export declare class WebhooksClient {
|
|
|
112
122
|
* @throws {@link Schematic.ForbiddenError}
|
|
113
123
|
* @throws {@link Schematic.NotFoundError}
|
|
114
124
|
* @throws {@link Schematic.InternalServerError}
|
|
125
|
+
* @throws {@link errors.SchematicError}
|
|
126
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
115
127
|
*
|
|
116
128
|
* @example
|
|
117
129
|
* await client.webhooks.getWebhook("webhook_id")
|
|
@@ -128,6 +140,8 @@ export declare class WebhooksClient {
|
|
|
128
140
|
* @throws {@link Schematic.ForbiddenError}
|
|
129
141
|
* @throws {@link Schematic.NotFoundError}
|
|
130
142
|
* @throws {@link Schematic.InternalServerError}
|
|
143
|
+
* @throws {@link errors.SchematicError}
|
|
144
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
131
145
|
*
|
|
132
146
|
* @example
|
|
133
147
|
* await client.webhooks.updateWebhook("webhook_id")
|
|
@@ -143,6 +157,8 @@ export declare class WebhooksClient {
|
|
|
143
157
|
* @throws {@link Schematic.ForbiddenError}
|
|
144
158
|
* @throws {@link Schematic.NotFoundError}
|
|
145
159
|
* @throws {@link Schematic.InternalServerError}
|
|
160
|
+
* @throws {@link errors.SchematicError}
|
|
161
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
146
162
|
*
|
|
147
163
|
* @example
|
|
148
164
|
* await client.webhooks.deleteWebhook("webhook_id")
|
|
@@ -159,6 +175,8 @@ export declare class WebhooksClient {
|
|
|
159
175
|
* @throws {@link Schematic.ForbiddenError}
|
|
160
176
|
* @throws {@link Schematic.NotFoundError}
|
|
161
177
|
* @throws {@link Schematic.InternalServerError}
|
|
178
|
+
* @throws {@link errors.SchematicError}
|
|
179
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
162
180
|
*
|
|
163
181
|
* @example
|
|
164
182
|
* await client.webhooks.sendTestWebhookAction("webhook_id", {
|
|
@@ -176,6 +194,8 @@ export declare class WebhooksClient {
|
|
|
176
194
|
* @throws {@link Schematic.ForbiddenError}
|
|
177
195
|
* @throws {@link Schematic.NotFoundError}
|
|
178
196
|
* @throws {@link Schematic.InternalServerError}
|
|
197
|
+
* @throws {@link errors.SchematicError}
|
|
198
|
+
* @throws {@link errors.SchematicTimeoutError}
|
|
179
199
|
*
|
|
180
200
|
* @example
|
|
181
201
|
* await client.webhooks.countWebhooks({
|
|
@@ -12,7 +12,7 @@ export interface BillingPlanCreditGrantResponseData {
|
|
|
12
12
|
autoTopupSelfService: boolean;
|
|
13
13
|
autoTopupThresholdCredits?: number;
|
|
14
14
|
autoTopupThresholdPercent?: number;
|
|
15
|
-
/**
|
|
15
|
+
/** Deprecated: bundle availability is a per-bundle plan compatibility set now; use compatible_plan_ids on credit bundles instead. */
|
|
16
16
|
canBuyBundles: boolean;
|
|
17
17
|
/** Credits granted once per company on top of the per-license amount. Always 0 when scaling is fixed. */
|
|
18
18
|
companyCreditAmount: number;
|
|
@@ -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;
|
|
@@ -26,5 +26,5 @@ export interface ComponentHydrateResponseData {
|
|
|
26
26
|
stripeEmbed?: Schematic.StripeEmbedInfo;
|
|
27
27
|
subscription?: Schematic.CompanySubscriptionResponseData;
|
|
28
28
|
trialPaymentMethodRequired?: boolean;
|
|
29
|
-
upcomingInvoice?: Schematic.
|
|
29
|
+
upcomingInvoice?: Schematic.UpcomingInvoiceResponseData;
|
|
30
30
|
}
|
|
@@ -27,5 +27,5 @@ export interface ComponentPreviewResponseData {
|
|
|
27
27
|
stripeEmbed?: Schematic.StripeEmbedInfo;
|
|
28
28
|
subscription?: Schematic.CompanySubscriptionResponseData;
|
|
29
29
|
trialPaymentMethodRequired?: boolean;
|
|
30
|
-
upcomingInvoice?: Schematic.
|
|
30
|
+
upcomingInvoice?: Schematic.UpcomingInvoiceResponseData;
|
|
31
31
|
}
|
|
@@ -11,6 +11,7 @@ export interface CreateBillingPlanCreditGrantRequestBody {
|
|
|
11
11
|
autoTopupSelfService?: boolean;
|
|
12
12
|
autoTopupThresholdCredits?: number;
|
|
13
13
|
autoTopupThresholdPercent?: number;
|
|
14
|
+
/** Deprecated: use compatible_plan_ids on credit bundles instead. Still accepted; writes through to the credit's bundle compatibility. */
|
|
14
15
|
canBuyBundles?: boolean;
|
|
15
16
|
/** Credits granted once per company on top of the per-license amount. Only valid when scaling is per_license. Defaults to 0. */
|
|
16
17
|
companyCreditAmount?: number;
|
|
@@ -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
|
}
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface OnboardingRequirementView {
|
|
3
3
|
blockedBy?: Schematic.OnboardingRequirement[];
|
|
4
4
|
id: Schematic.OnboardingRequirement;
|
|
5
|
+
reachedAt?: Date;
|
|
5
6
|
satisfiedBy?: string;
|
|
6
7
|
status: Schematic.OnboardingRequirementStatus;
|
|
7
8
|
}
|
|
@@ -28,6 +28,12 @@ export interface PlanChangeResponseData {
|
|
|
28
28
|
subscriptionChangeAction?: Schematic.PlanChangeSubscriptionAction;
|
|
29
29
|
/** Any traits were updated as part of this plan change (via pay-in-advance entitlements). */
|
|
30
30
|
traitsUpdated: Schematic.SubscriptionTraitUpdate[];
|
|
31
|
+
/** When the company's trial had converted to a paid subscription as of this change. Null when the trial had not converted, or for changes recorded before trial status was tracked. */
|
|
32
|
+
trialConvertedAt?: Date;
|
|
33
|
+
/** When the company's trial was set to end as of this change. Null when the company had never trialed, or for changes recorded before trial status was tracked. */
|
|
34
|
+
trialExpiresAt?: Date;
|
|
35
|
+
/** The company's trial status. Null when the company had never trialed, or for changes recorded before trial status was tracked. */
|
|
36
|
+
trialStatus?: Schematic.TrialStatus;
|
|
31
37
|
updatedAt: Date;
|
|
32
38
|
userId?: string;
|
|
33
39
|
userName?: string;
|
|
@@ -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;
|