@schematichq/schematic-typescript-node 1.5.8 → 1.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +1 -1
  2. package/dist/BaseClient.d.ts +12 -0
  3. package/dist/Client.d.ts +3 -0
  4. package/dist/api/errors/BadRequestError.d.ts +1 -0
  5. package/dist/api/errors/ForbiddenError.d.ts +1 -0
  6. package/dist/api/errors/InternalServerError.d.ts +1 -0
  7. package/dist/api/errors/NotFoundError.d.ts +1 -0
  8. package/dist/api/errors/UnauthorizedError.d.ts +1 -0
  9. package/dist/api/resources/accesstokens/client/Client.d.ts +2 -0
  10. package/dist/api/resources/accounts/client/Client.d.ts +70 -0
  11. package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +11 -0
  12. package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
  13. package/dist/api/resources/accounts/types/GetOnboardingStateResponse.d.ts +6 -0
  14. package/dist/api/resources/accounts/types/UpdateOnboardingStateResponse.d.ts +6 -0
  15. package/dist/api/resources/accounts/types/index.d.ts +2 -0
  16. package/dist/api/resources/billing/client/Client.d.ts +48 -0
  17. package/dist/api/resources/catalogs/client/Client.d.ts +28 -0
  18. package/dist/api/resources/checkout/client/Client.d.ts +18 -0
  19. package/dist/api/resources/companies/client/Client.d.ts +139 -3
  20. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +3 -0
  21. package/dist/api/resources/companies/client/requests/CountEntityTraitsRequest.d.ts +18 -0
  22. package/dist/api/resources/companies/client/requests/GetBillingEntityChildSubscriptionsRequest.d.ts +1 -1
  23. package/dist/api/resources/companies/client/requests/GetCompanyBillingEntityRequest.d.ts +1 -1
  24. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +3 -0
  25. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +0 -2
  26. package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
  27. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  28. package/dist/api/resources/companies/types/CountEntityTraitsParams.d.ts +12 -0
  29. package/dist/api/resources/companies/types/CountEntityTraitsResponse.d.ts +6 -0
  30. package/dist/api/resources/companies/types/DeleteEntityTraitDefinitionResponse.d.ts +6 -0
  31. package/dist/api/resources/companies/types/GetEntityTraitDefinitionUsageResponse.d.ts +6 -0
  32. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  33. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +0 -1
  34. package/dist/api/resources/companies/types/index.d.ts +4 -0
  35. package/dist/api/resources/components/client/Client.d.ts +16 -0
  36. package/dist/api/resources/componentspublic/client/Client.d.ts +2 -0
  37. package/dist/api/resources/credits/client/Client.d.ts +62 -2
  38. package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +1 -1
  39. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -0
  40. package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +1 -1
  41. package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
  42. package/dist/api/resources/dataexports/client/Client.d.ts +8 -0
  43. package/dist/api/resources/entitlements/client/Client.d.ts +73 -0
  44. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageHistoryRequest.d.ts +29 -0
  45. package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
  46. package/dist/api/resources/entitlements/types/ListFeatureUsageHistoryParams.d.ts +20 -0
  47. package/dist/api/resources/entitlements/types/ListFeatureUsageHistoryResponse.d.ts +6 -0
  48. package/dist/api/resources/entitlements/types/index.d.ts +2 -0
  49. package/dist/api/resources/events/client/Client.d.ts +12 -0
  50. package/dist/api/resources/features/client/Client.d.ts +34 -0
  51. package/dist/api/resources/insights/client/Client.d.ts +12 -0
  52. package/dist/api/resources/integrationsapi/client/Client.d.ts +18 -0
  53. package/dist/api/resources/licenses/client/Client.d.ts +6 -0
  54. package/dist/api/resources/planbundle/client/Client.d.ts +27 -6
  55. package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +11 -3
  56. package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +6 -2
  57. package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +5 -2
  58. package/dist/api/resources/plangroups/client/Client.d.ts +8 -0
  59. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +3 -0
  60. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +3 -0
  61. package/dist/api/resources/planmigrations/client/Client.d.ts +22 -8
  62. package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
  63. package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
  64. package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +4 -6
  65. package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
  66. package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
  67. package/dist/api/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +2 -2
  68. package/dist/api/resources/plans/client/Client.d.ts +46 -12
  69. package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -2
  70. package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +2 -2
  71. package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +3 -0
  72. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +3 -0
  73. package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +2 -0
  74. package/dist/api/resources/scheduledcheckout/client/Client.d.ts +8 -0
  75. package/dist/api/resources/webhooks/client/Client.d.ts +20 -0
  76. package/dist/api/types/AuditLogResponseData.d.ts +1 -0
  77. package/dist/api/types/BillingCollectionMethod.d.ts +5 -0
  78. package/dist/api/types/BillingCreditBundleResponseData.d.ts +2 -0
  79. package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
  80. package/dist/api/types/BillingCreditGrantResponseData.d.ts +4 -0
  81. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +3 -1
  82. package/dist/api/types/CheckFlagRequestBody.d.ts +3 -0
  83. package/dist/api/types/CheckoutBundlePurchaseBehavior.d.ts +5 -0
  84. package/dist/api/types/CheckoutSettingsResponseData.d.ts +3 -0
  85. package/dist/api/types/CompanyBillingCheckoutSettings.d.ts +1 -0
  86. package/dist/api/types/CompanyFeatureUsageExportMetadata.d.ts +6 -0
  87. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +1 -0
  88. package/dist/api/types/ComponentCheckoutSettings.d.ts +2 -0
  89. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -1
  90. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -1
  91. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  92. package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
  93. package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
  94. package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
  95. package/dist/api/types/CustomPlanBillingResponseData.d.ts +4 -0
  96. package/dist/api/types/EntityTraitDefinitionUsage.d.ts +8 -0
  97. package/dist/api/types/EventBodyFlagCheck.d.ts +2 -0
  98. package/dist/api/types/FeatureUsageHistoryResponseData.d.ts +12 -0
  99. package/dist/api/types/GetOnboardingStateResp.d.ts +9 -0
  100. package/dist/api/types/ManagePlanRequest.d.ts +14 -0
  101. package/dist/api/types/MigrationProrationBehavior.d.ts +6 -0
  102. package/dist/api/types/OnboardingMilestone.d.ts +5 -0
  103. package/dist/api/types/OnboardingMilestoneView.d.ts +7 -0
  104. package/dist/api/types/OnboardingPath.d.ts +5 -0
  105. package/dist/api/types/OnboardingRequirement.d.ts +9 -0
  106. package/dist/api/types/OnboardingRequirementStatus.d.ts +6 -0
  107. package/dist/api/types/OnboardingRequirementView.d.ts +8 -0
  108. package/dist/api/types/OnboardingTrack.d.ts +5 -0
  109. package/dist/api/types/PlanBillingSource.d.ts +5 -0
  110. package/dist/api/types/PlanBundleResponseData.d.ts +1 -0
  111. package/dist/api/types/PlanChangeResponseData.d.ts +6 -0
  112. package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
  113. package/dist/api/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +1 -0
  114. package/dist/api/types/PlanVersionMigrationPreviewResponseData.d.ts +1 -0
  115. package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
  116. package/dist/api/types/PreflightEventUsageRequestBody.d.ts +6 -0
  117. package/dist/api/types/PreflightRequestBody.d.ts +9 -0
  118. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  119. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  120. package/dist/api/types/StripeIntegrationConfig.d.ts +2 -0
  121. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +23 -0
  122. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +5 -2
  123. package/dist/api/types/UpsertCompanyRequestBody.d.ts +2 -0
  124. package/dist/api/types/UpsertUserRequestBody.d.ts +2 -0
  125. package/dist/api/types/UpsertUserSubRequestBody.d.ts +2 -0
  126. package/dist/api/types/WhoAmIResponseData.d.ts +1 -0
  127. package/dist/api/types/index.d.ts +17 -0
  128. package/dist/core/fetcher/redactUrl.d.ts +2 -0
  129. package/dist/core/requestBody.d.ts +12 -0
  130. package/dist/core/runtime/index.d.ts +1 -1
  131. package/dist/core/runtime/runtime.d.ts +19 -0
  132. package/dist/errors/SchematicError.d.ts +1 -0
  133. package/dist/errors/SchematicTimeoutError.d.ts +2 -2
  134. package/dist/events.d.ts +6 -0
  135. package/dist/index.js +9 -9
  136. package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +14 -0
  137. package/dist/serialization/resources/accounts/client/requests/index.d.ts +1 -0
  138. package/dist/serialization/resources/accounts/types/GetOnboardingStateResponse.d.ts +11 -0
  139. package/dist/serialization/resources/accounts/types/UpdateOnboardingStateResponse.d.ts +11 -0
  140. package/dist/serialization/resources/accounts/types/index.d.ts +2 -0
  141. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  142. package/dist/serialization/resources/companies/types/CountEntityTraitsParams.d.ts +13 -0
  143. package/dist/serialization/resources/companies/types/CountEntityTraitsResponse.d.ts +12 -0
  144. package/dist/serialization/resources/companies/types/DeleteEntityTraitDefinitionResponse.d.ts +11 -0
  145. package/dist/serialization/resources/companies/types/GetEntityTraitDefinitionUsageResponse.d.ts +11 -0
  146. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  147. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +0 -1
  148. package/dist/serialization/resources/companies/types/index.d.ts +4 -0
  149. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -0
  150. package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -0
  151. package/dist/serialization/resources/entitlements/types/ListFeatureUsageHistoryParams.d.ts +16 -0
  152. package/dist/serialization/resources/entitlements/types/ListFeatureUsageHistoryResponse.d.ts +12 -0
  153. package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
  154. package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +2 -2
  155. package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +1 -1
  156. package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +1 -1
  157. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +3 -0
  158. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +3 -0
  159. package/dist/serialization/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +5 -3
  160. package/dist/serialization/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +2 -1
  161. package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -1
  162. package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +2 -1
  163. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +3 -0
  164. package/dist/serialization/resources/plans/types/ListCustomPlanBillingsParams.d.ts +2 -0
  165. package/dist/serialization/types/AuditLogResponseData.d.ts +1 -0
  166. package/dist/serialization/types/BillingCollectionMethod.d.ts +7 -0
  167. package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +1 -0
  168. package/dist/serialization/types/BillingCreditBundleView.d.ts +1 -0
  169. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +2 -0
  170. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  171. package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -0
  172. package/dist/serialization/types/CheckoutBundlePurchaseBehavior.d.ts +7 -0
  173. package/dist/serialization/types/CheckoutSettingsResponseData.d.ts +3 -0
  174. package/dist/serialization/types/CompanyBillingCheckoutSettings.d.ts +1 -0
  175. package/dist/serialization/types/CompanyFeatureUsageExportMetadata.d.ts +3 -0
  176. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +1 -0
  177. package/dist/serialization/types/ComponentCheckoutSettings.d.ts +3 -0
  178. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -2
  179. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -1
  180. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  181. package/dist/serialization/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
  182. package/dist/serialization/types/CreatePlanRequestBody.d.ts +1 -1
  183. package/dist/serialization/types/CreditCompanyGrantView.d.ts +2 -0
  184. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +3 -0
  185. package/dist/serialization/types/EntityTraitDefinitionUsage.d.ts +14 -0
  186. package/dist/serialization/types/EventBodyFlagCheck.d.ts +1 -0
  187. package/dist/serialization/types/FeatureUsageHistoryResponseData.d.ts +14 -0
  188. package/dist/serialization/types/GetOnboardingStateResp.d.ts +19 -0
  189. package/dist/serialization/types/ManagePlanRequest.d.ts +8 -0
  190. package/dist/serialization/types/MigrationProrationBehavior.d.ts +7 -0
  191. package/dist/serialization/types/OnboardingMilestone.d.ts +7 -0
  192. package/dist/serialization/types/OnboardingMilestoneView.d.ts +14 -0
  193. package/dist/serialization/types/OnboardingPath.d.ts +7 -0
  194. package/dist/serialization/types/OnboardingRequirement.d.ts +7 -0
  195. package/dist/serialization/types/OnboardingRequirementStatus.d.ts +7 -0
  196. package/dist/serialization/types/OnboardingRequirementView.d.ts +15 -0
  197. package/dist/serialization/types/OnboardingTrack.d.ts +7 -0
  198. package/dist/serialization/types/PlanBillingSource.d.ts +7 -0
  199. package/dist/serialization/types/PlanBundleResponseData.d.ts +2 -0
  200. package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -0
  201. package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
  202. package/dist/serialization/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +1 -0
  203. package/dist/serialization/types/PlanVersionMigrationPreviewResponseData.d.ts +1 -0
  204. package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +2 -0
  205. package/dist/serialization/types/PreflightEventUsageRequestBody.d.ts +10 -0
  206. package/dist/serialization/types/PreflightRequestBody.d.ts +12 -0
  207. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  208. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  209. package/dist/serialization/types/StripeIntegrationConfig.d.ts +1 -0
  210. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +30 -0
  211. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  212. package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +1 -0
  213. package/dist/serialization/types/UpsertUserRequestBody.d.ts +1 -0
  214. package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
  215. package/dist/serialization/types/WhoAmIResponseData.d.ts +1 -0
  216. package/dist/serialization/types/index.d.ts +17 -0
  217. package/dist/wasm/rulesengine.js +4 -4
  218. package/package.json +4 -1
@@ -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: string;
13
+ description?: string;
15
14
  externalResourceId: string;
16
15
  externalResourceVersion?: string;
17
16
  icon?: Schematic.PlanIcon;
@@ -3,14 +3,14 @@ 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
  */
10
9
  export interface CreateCustomPlanRequestBody {
11
10
  companyId: string;
12
11
  copiedFromPlanId?: string;
13
- description: string;
12
+ copiedPriceId?: string;
13
+ description?: string;
14
14
  icon?: Schematic.PlanIcon;
15
15
  name: string;
16
16
  }
@@ -4,6 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * companyId: "company_id",
6
6
  * planId: "plan_id",
7
+ * planBillingSource: "custom_plan",
7
8
  * status: "active",
8
9
  * statuses: ["active"],
9
10
  * limit: 1000000,
@@ -15,6 +16,8 @@ export interface ListCustomPlanBillingsRequest {
15
16
  companyId?: string;
16
17
  /** Filter by plan ID */
17
18
  planId?: string;
19
+ /** Filter by the flow that created the billing record. Defaults to custom_plan. */
20
+ planBillingSource?: Schematic.PlanBillingSource;
18
21
  /** Filter by billing status */
19
22
  status?: Schematic.CustomPlanBillingStatus;
20
23
  /** Filter by multiple billing statuses */
@@ -16,6 +16,9 @@ export interface PublishPlanVersionRequestBody {
16
16
  excludedCompanyIds: string[];
17
17
  migrationStrategy: Schematic.PlanVersionMigrationStrategy;
18
18
  phone?: string;
19
+ prorationBehavior?: Schematic.MigrationProrationBehavior;
20
+ /** Refuse the publish if any company would be migrated onto the new version */
21
+ requireNoMigration?: boolean;
19
22
  /** Whether Stripe emails the invoice when it is finalized. Defaults to true. */
20
23
  sendInvoice?: boolean;
21
24
  taxId?: Schematic.TaxIdInput;
@@ -9,6 +9,8 @@ export interface ListCustomPlanBillingsParams {
9
9
  limit?: number;
10
10
  /** Page offset (default 0) */
11
11
  offset?: number;
12
+ /** Filter by the flow that created the billing record. Defaults to custom_plan. */
13
+ planBillingSource?: Schematic.PlanBillingSource;
12
14
  /** Filter by plan ID */
13
15
  planId?: string;
14
16
  /** Filter by billing status */
@@ -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({
@@ -1,5 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface AuditLogResponseData {
3
+ accountMemberId?: string;
3
4
  actorType: Schematic.ActorType;
4
5
  apiKey?: Schematic.ApiKeyResponseData;
5
6
  apiKeyId?: string;
@@ -0,0 +1,5 @@
1
+ export declare const BillingCollectionMethod: {
2
+ readonly ChargeAutomatically: "charge_automatically";
3
+ readonly SendInvoice: "send_invoice";
4
+ };
5
+ export type BillingCollectionMethod = (typeof BillingCollectionMethod)[keyof typeof BillingCollectionMethod];
@@ -2,6 +2,8 @@ import type * as Schematic from "../index";
2
2
  export interface BillingCreditBundleResponseData {
3
3
  billingInvoiceId?: string;
4
4
  bundleType: Schematic.BillingCreditBundleType;
5
+ /** Plans whose companies may purchase this bundle. Empty means the bundle is purchasable on every plan. */
6
+ compatiblePlanIds: string[];
5
7
  createdAt: Date;
6
8
  creditDescription?: string;
7
9
  creditIcon?: string;
@@ -1,6 +1,7 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface BillingCreditBundleView {
3
3
  bundleType: Schematic.BillingCreditBundleType;
4
+ compatiblePlanIds: string[];
4
5
  createdAt: Date;
5
6
  creditDescription?: string;
6
7
  creditIcon?: string;
@@ -1,6 +1,8 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface BillingCreditGrantResponseData {
3
3
  companyId: string;
4
+ /** The license instance this grant was issued for. Set only when a per-license plan grant issued it; null on a plan's own grant. */
5
+ companyLicenseId?: string;
4
6
  companyName: string;
5
7
  createdAt: Date;
6
8
  creditIcon?: string;
@@ -10,6 +12,8 @@ export interface BillingCreditGrantResponseData {
10
12
  expiresAt?: Date;
11
13
  grantReason: Schematic.BillingCreditGrantReason;
12
14
  id: string;
15
+ /** Name of the license this grant was issued for, when it came from a per-license plan grant. */
16
+ licenseName?: string;
13
17
  planId?: string;
14
18
  planName?: string;
15
19
  price?: Schematic.BillingPriceResponseData;
@@ -12,8 +12,10 @@ export interface BillingPlanCreditGrantResponseData {
12
12
  autoTopupSelfService: boolean;
13
13
  autoTopupThresholdCredits?: number;
14
14
  autoTopupThresholdPercent?: number;
15
- /** Whether buyers can purchase one-time credit bundles on this grant, independent of auto top-up availability. */
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
+ /** Credits granted once per company on top of the per-license amount. Always 0 when scaling is fixed. */
18
+ companyCreditAmount: number;
17
19
  createdAt: Date;
18
20
  credit?: Schematic.BillingCreditResponseData;
19
21
  creditAmount: number;
@@ -1,4 +1,7 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface CheckFlagRequestBody {
2
3
  company?: Record<string, string>;
4
+ /** Hypothetical usage to evaluate the flag against, for answering "would this action be allowed?" before performing it. Only supported when checking a single flag. Values are caller-asserted and can widen a verdict as well as narrow it, so do not forward untrusted input here when the result gates access. Only the flag value reflects the preflight; the entitlement and usage figures in the response are the company's current, unsimulated ones */
5
+ preflight?: Schematic.PreflightRequestBody;
3
6
  user?: Record<string, string>;
4
7
  }
@@ -0,0 +1,5 @@
1
+ export declare const CheckoutBundlePurchaseBehavior: {
2
+ readonly Individual: "individual";
3
+ readonly Quantity: "quantity";
4
+ };
5
+ export type CheckoutBundlePurchaseBehavior = (typeof CheckoutBundlePurchaseBehavior)[keyof typeof CheckoutBundlePurchaseBehavior];
@@ -1,7 +1,10 @@
1
+ import type * as Schematic from "../index";
1
2
  export interface CheckoutSettingsResponseData {
3
+ bundlePurchaseBehavior: Schematic.CheckoutBundlePurchaseBehavior;
2
4
  collectAddress: boolean;
3
5
  collectEmail: boolean;
4
6
  collectPhone: boolean;
7
+ collectTaxId: boolean;
5
8
  optInEnabled: boolean;
6
9
  optInText?: string;
7
10
  optInTitle?: string;
@@ -2,4 +2,5 @@ export interface CompanyBillingCheckoutSettings {
2
2
  collectAddress: boolean;
3
3
  collectEmail: boolean;
4
4
  collectPhone: boolean;
5
+ collectTaxId: boolean;
5
6
  }
@@ -4,6 +4,10 @@ export interface CompanyFeatureUsageExportMetadata {
4
4
  companyIds?: string[];
5
5
  /** Restrict the export to companies with these billing credit type IDs */
6
6
  creditTypeIds?: string[];
7
+ /** Company key definition IDs to include as columns, one column per definition, mirroring the companies list */
8
+ entityKeyDefinitionIds?: string[];
9
+ /** Company trait definition IDs to include as columns, one column per definition, mirroring the companies list */
10
+ entityTraitDefinitionIds?: string[];
7
11
  /** Schematic feature IDs (starting with 'feat_') to include as usage columns; empty means no usage columns */
8
12
  featureIds?: string[];
9
13
  /** Restrict the export to companies that do (or do not) have a scheduled downgrade */
@@ -18,6 +22,8 @@ export interface CompanyFeatureUsageExportMetadata {
18
22
  planIds?: string[];
19
23
  /** Restrict the export to companies on this plan version ID */
20
24
  planVersionId?: string;
25
+ /** Restrict the export to companies on a plan version that is no longer published */
26
+ planVersionUnpublished?: boolean;
21
27
  /** Free-text search over company name and keys */
22
28
  q?: string;
23
29
  /** Column to sort the exported rows by (e.g. name, created_at, plan); defaults to name */
@@ -14,6 +14,7 @@ export interface CompanyPlanCreditGrantView {
14
14
  companyAutoTopupAmount?: number;
15
15
  companyAutoTopupEnabled?: boolean;
16
16
  companyAutoTopupThresholdCredits?: number;
17
+ companyCreditAmount: number;
17
18
  createdAt: Date;
18
19
  credit?: Schematic.BillingCreditView;
19
20
  creditAmount: number;
@@ -1,8 +1,10 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface ComponentCheckoutSettings {
3
+ bundlePurchaseBehavior: Schematic.CheckoutBundlePurchaseBehavior;
3
4
  collectAddress: boolean;
4
5
  collectEmail: boolean;
5
6
  collectPhone: boolean;
7
+ collectTaxId: boolean;
6
8
  prorationBehavior: Schematic.ProrationBehavior;
7
9
  taxCollectionEnabled: boolean;
8
10
  }
@@ -26,5 +26,5 @@ export interface ComponentHydrateResponseData {
26
26
  stripeEmbed?: Schematic.StripeEmbedInfo;
27
27
  subscription?: Schematic.CompanySubscriptionResponseData;
28
28
  trialPaymentMethodRequired?: boolean;
29
- upcomingInvoice?: Schematic.InvoiceResponseData;
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.InvoiceResponseData;
30
+ upcomingInvoice?: Schematic.UpcomingInvoiceResponseData;
31
31
  }
@@ -11,7 +11,10 @@ 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;
16
+ /** Credits granted once per company on top of the per-license amount. Only valid when scaling is per_license. Defaults to 0. */
17
+ companyCreditAmount?: number;
15
18
  creditAmount: number;
16
19
  creditId: string;
17
20
  expiryType?: Schematic.BillingCreditExpiryType;
@@ -1,7 +1,7 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface CreateCustomPlanBundlePlanRequestBody {
3
3
  companyId: string;
4
- description: string;
4
+ description?: string;
5
5
  icon?: Schematic.PlanIcon;
6
6
  name: string;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface CreatePlanRequestBody {
3
- description: string;
3
+ description?: string;
4
4
  icon?: Schematic.PlanIcon;
5
5
  name: string;
6
6
  planType: Schematic.PlanType;
@@ -3,6 +3,7 @@ export interface CreditCompanyGrantView {
3
3
  billingCreditBundleId?: string;
4
4
  billingCreditId: string;
5
5
  companyId: string;
6
+ companyLicenseId?: string;
6
7
  companyName: string;
7
8
  createdAt: Date;
8
9
  creditDescription: string;
@@ -16,6 +17,7 @@ export interface CreditCompanyGrantView {
16
17
  expiryUnitCount?: number;
17
18
  grantReason: Schematic.BillingCreditGrantReason;
18
19
  id: string;
20
+ licenseName?: string;
19
21
  planId?: string;
20
22
  planName?: string;
21
23
  pluralName?: string;
@@ -1,12 +1,16 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface CustomPlanBillingResponseData {
3
3
  activationStrategy: Schematic.CustomPlanActivationStrategy;
4
+ /** The billing period renewal date pinned when the subscription started, when one was set. When no invoice exists yet, the first invoice is raised on this date. */
5
+ billingCycleAnchor?: Date;
4
6
  companyId: string;
5
7
  createdAt: Date;
6
8
  daysUntilDue: number;
7
9
  externalInvoiceId?: string;
8
10
  id: string;
9
11
  paidAt?: Date;
12
+ /** The flow that created this billing record: a custom plan, or a standard plan assigned by invoice through Manage Plan. */
13
+ planBillingSource: Schematic.PlanBillingSource;
10
14
  planId: string;
11
15
  publishedAt?: Date;
12
16
  sendInvoice: boolean;
@@ -0,0 +1,8 @@
1
+ export interface EntityTraitDefinitionUsage {
2
+ checkoutFieldConfigCount: number;
3
+ companyOverrideCount: number;
4
+ featureCount: number;
5
+ planEntitlementCount: number;
6
+ planTraitCount: number;
7
+ ruleConditionCount: number;
8
+ }
@@ -7,6 +7,8 @@ export interface EventBodyFlagCheck {
7
7
  flagId?: string;
8
8
  /** The key of the flag being checked */
9
9
  flagKey: string;
10
+ /** Whether the check was a preflight, asking whether an action would be allowed rather than reporting one that happened. Absent on ordinary checks */
11
+ preflight?: boolean;
10
12
  /** The reason why the value was returned */
11
13
  reason: string;
12
14
  /** Key-value pairs used to to identify company for which the flag was checked */
@@ -0,0 +1,12 @@
1
+ export interface FeatureUsageHistoryResponseData {
2
+ /** Companies are identified by ID only. To report against your own identifiers, resolve them once via the companies API and cache the mapping; keys are not repeated on every row. */
3
+ companyId: string;
4
+ eventSubtype: string;
5
+ featureId: string;
6
+ /** Exclusive end of the period this usage covers */
7
+ periodEnd: Date;
8
+ /** Inclusive start of the period this usage covers */
9
+ periodStart: Date;
10
+ /** Usage recorded within this period; an incremental total, not a running one */
11
+ usage: number;
12
+ }
@@ -0,0 +1,9 @@
1
+ import type * as Schematic from "../index";
2
+ export interface GetOnboardingStateResp {
3
+ environmentId?: string;
4
+ milestones: Schematic.OnboardingMilestoneView[];
5
+ path?: Schematic.OnboardingPath;
6
+ requirements: Schematic.OnboardingRequirementView[];
7
+ suggestedNext: Schematic.OnboardingRequirement[];
8
+ track?: Schematic.OnboardingTrack;
9
+ }
@@ -1,21 +1,35 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface ManagePlanRequest {
3
+ /** If true, the company gets the plan only once the first invoice is paid. Only applies to an invoiced subscription. Defaults to false. */
4
+ activateOnPayment?: boolean;
3
5
  addOnSelections: Schematic.PlanSelection[];
4
6
  basePlanId?: string;
5
7
  basePlanPriceId?: string;
6
8
  basePlanVersionId?: string;
9
+ /** The date the subscription's billing period renews on. Only honored when starting a new subscription; changing the anchor on an existing subscription is not supported. */
10
+ billingCycleAnchor?: Date;
11
+ /** Address the invoice is sent to. Required when collection_method is send_invoice. */
12
+ billingEmail?: string;
7
13
  /** The company that pays for this subscription. Must already have a Stripe customer. Only honored when starting a new subscription. */
8
14
  billingEntityId?: string;
9
15
  /** If false, subscription cancels at period end. Only applies when removing all plans. Defaults to true. */
10
16
  cancelImmediately?: boolean;
17
+ /** How the subscription is paid: charged to a payment method on file, or invoiced with payment terms. Invoicing is only available when starting a new subscription. Defaults to charge_automatically. */
18
+ collectionMethod?: Schematic.BillingCollectionMethod;
11
19
  companyId: string;
12
20
  couponExternalId?: string;
13
21
  creditBundles: Schematic.UpdateCreditBundleRequestBody[];
14
22
  customFieldValues: Schematic.CheckoutFieldValue[];
23
+ /** Payment terms in days for an invoiced subscription. Defaults to 30. */
24
+ daysUntilDue?: number;
15
25
  payInAdvanceEntitlements: Schematic.UpdatePayInAdvanceRequestBody[];
16
26
  paymentMethodExternalId?: string;
17
27
  promoCode?: string;
18
28
  /** If true and cancel_immediately is true, issue prorated credit. Only applies when removing all plans. Defaults to true. */
19
29
  prorate?: boolean;
30
+ /** 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. */
31
+ prorateFirstPeriod?: boolean;
32
+ /** Whether Stripe emails the invoice when it is finalized. Only applies to an invoiced subscription. Defaults to true. */
33
+ sendInvoice?: boolean;
20
34
  trialEnd?: Date;
21
35
  }
@@ -0,0 +1,6 @@
1
+ export declare const MigrationProrationBehavior: {
2
+ readonly AlwaysInvoice: "always_invoice";
3
+ readonly CreateProrations: "create_prorations";
4
+ readonly None: "none";
5
+ };
6
+ export type MigrationProrationBehavior = (typeof MigrationProrationBehavior)[keyof typeof MigrationProrationBehavior];
@@ -0,0 +1,5 @@
1
+ export declare const OnboardingMilestone: {
2
+ readonly Evaluated: "evaluated";
3
+ readonly Implemented: "implemented";
4
+ };
5
+ export type OnboardingMilestone = (typeof OnboardingMilestone)[keyof typeof OnboardingMilestone];
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../index";
2
+ export interface OnboardingMilestoneView {
3
+ id: Schematic.OnboardingMilestone;
4
+ missing: Schematic.OnboardingRequirement[];
5
+ progress: number;
6
+ reachedAt?: Date;
7
+ }
@@ -0,0 +1,5 @@
1
+ export declare const OnboardingPath: {
2
+ readonly Agent: "agent";
3
+ readonly App: "app";
4
+ };
5
+ export type OnboardingPath = (typeof OnboardingPath)[keyof typeof OnboardingPath];
@@ -0,0 +1,9 @@
1
+ export declare const OnboardingRequirement: {
2
+ readonly ConnectBilling: "connect_billing";
3
+ readonly CreateApiKey: "create_api_key";
4
+ readonly FirstFlagCheck: "first_flag_check";
5
+ readonly ImportCompanies: "import_companies";
6
+ readonly ModelPackaging: "model_packaging";
7
+ readonly SendEvents: "send_events";
8
+ };
9
+ export type OnboardingRequirement = (typeof OnboardingRequirement)[keyof typeof OnboardingRequirement];
@@ -0,0 +1,6 @@
1
+ export declare const OnboardingRequirementStatus: {
2
+ readonly Available: "available";
3
+ readonly Blocked: "blocked";
4
+ readonly Complete: "complete";
5
+ };
6
+ export type OnboardingRequirementStatus = (typeof OnboardingRequirementStatus)[keyof typeof OnboardingRequirementStatus];
@@ -0,0 +1,8 @@
1
+ import type * as Schematic from "../index";
2
+ export interface OnboardingRequirementView {
3
+ blockedBy?: Schematic.OnboardingRequirement[];
4
+ id: Schematic.OnboardingRequirement;
5
+ reachedAt?: Date;
6
+ satisfiedBy?: string;
7
+ status: Schematic.OnboardingRequirementStatus;
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare const OnboardingTrack: {
2
+ readonly Catalog: "catalog";
3
+ readonly SinglePlan: "single_plan";
4
+ };
5
+ export type OnboardingTrack = (typeof OnboardingTrack)[keyof typeof OnboardingTrack];
@@ -0,0 +1,5 @@
1
+ export declare const PlanBillingSource: {
2
+ readonly CustomPlan: "custom_plan";
3
+ readonly ManagePlan: "manage_plan";
4
+ };
5
+ export type PlanBillingSource = (typeof PlanBillingSource)[keyof typeof PlanBillingSource];
@@ -4,4 +4,5 @@ export interface PlanBundleResponseData {
4
4
  creditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
5
5
  entitlements?: Schematic.PlanEntitlementResponseData[];
6
6
  plan?: Schematic.PlanResponseData;
7
+ planVersion?: Schematic.PlanVersionResponseData;
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;
@@ -11,6 +11,7 @@ export interface PlanCreditGrantView {
11
11
  billingCreditAutoTopupThresholdCredits?: number;
12
12
  billingCreditAutoTopupThresholdPercent?: number;
13
13
  billingCreditCanBuyBundles: boolean;
14
+ companyCreditAmount: number;
14
15
  createdAt: Date;
15
16
  credit?: Schematic.BillingCreditView;
16
17
  creditAmount: number;
@@ -5,4 +5,5 @@ export interface PlanVersionMigrationPreviewCompanyResponseData {
5
5
  note?: string;
6
6
  planVersionIdFrom?: string;
7
7
  willUpdateSubscription: boolean;
8
+ wouldFail: boolean;
8
9
  }
@@ -1,4 +1,5 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface PlanVersionMigrationPreviewResponseData {
3
3
  companies: Schematic.PlanVersionMigrationPreviewCompanyResponseData[];
4
+ hasBillingChanges: boolean;
4
5
  }
@@ -10,6 +10,7 @@ export interface PlanVersionMigrationResponseData {
10
10
  planVersionIdFrom?: string;
11
11
  planVersionIdTo: string;
12
12
  planVersionIdsFrom: string[];
13
+ prorationBehavior?: Schematic.MigrationProrationBehavior;
13
14
  skippedCompanies: number;
14
15
  startedAt?: Date;
15
16
  status: Schematic.PlanVersionMigrationStatus;