@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
@@ -19,6 +19,8 @@ export declare class CatalogsClient {
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.catalogs.listCatalogs({
@@ -39,6 +41,8 @@ export declare class CatalogsClient {
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.catalogs.createCatalog({
@@ -55,6 +59,8 @@ export declare class CatalogsClient {
55
59
  * @throws {@link Schematic.ForbiddenError}
56
60
  * @throws {@link Schematic.NotFoundError}
57
61
  * @throws {@link Schematic.InternalServerError}
62
+ * @throws {@link errors.SchematicError}
63
+ * @throws {@link errors.SchematicTimeoutError}
58
64
  *
59
65
  * @example
60
66
  * await client.catalogs.getCatalog("catalog_id")
@@ -71,6 +77,8 @@ export declare class CatalogsClient {
71
77
  * @throws {@link Schematic.ForbiddenError}
72
78
  * @throws {@link Schematic.NotFoundError}
73
79
  * @throws {@link Schematic.InternalServerError}
80
+ * @throws {@link errors.SchematicError}
81
+ * @throws {@link errors.SchematicTimeoutError}
74
82
  *
75
83
  * @example
76
84
  * await client.catalogs.updateCatalog("catalog_id")
@@ -86,6 +94,8 @@ export declare class CatalogsClient {
86
94
  * @throws {@link Schematic.ForbiddenError}
87
95
  * @throws {@link Schematic.NotFoundError}
88
96
  * @throws {@link Schematic.InternalServerError}
97
+ * @throws {@link errors.SchematicError}
98
+ * @throws {@link errors.SchematicTimeoutError}
89
99
  *
90
100
  * @example
91
101
  * await client.catalogs.deleteCatalog("catalog_id")
@@ -100,6 +110,8 @@ export declare class CatalogsClient {
100
110
  * @throws {@link Schematic.ForbiddenError}
101
111
  * @throws {@link Schematic.NotFoundError}
102
112
  * @throws {@link Schematic.InternalServerError}
113
+ * @throws {@link errors.SchematicError}
114
+ * @throws {@link errors.SchematicTimeoutError}
103
115
  *
104
116
  * @example
105
117
  * await client.catalogs.getConfiguration("catalog_id")
@@ -116,6 +128,8 @@ export declare class CatalogsClient {
116
128
  * @throws {@link Schematic.ForbiddenError}
117
129
  * @throws {@link Schematic.NotFoundError}
118
130
  * @throws {@link Schematic.InternalServerError}
131
+ * @throws {@link errors.SchematicError}
132
+ * @throws {@link errors.SchematicTimeoutError}
119
133
  *
120
134
  * @example
121
135
  * await client.catalogs.updateConfiguration("catalog_id")
@@ -130,6 +144,8 @@ export declare class CatalogsClient {
130
144
  * @throws {@link Schematic.ForbiddenError}
131
145
  * @throws {@link Schematic.NotFoundError}
132
146
  * @throws {@link Schematic.InternalServerError}
147
+ * @throws {@link errors.SchematicError}
148
+ * @throws {@link errors.SchematicTimeoutError}
133
149
  *
134
150
  * @example
135
151
  * await client.catalogs.getCreditBundlesInCatalog("catalog_id")
@@ -146,6 +162,8 @@ export declare class CatalogsClient {
146
162
  * @throws {@link Schematic.ForbiddenError}
147
163
  * @throws {@link Schematic.NotFoundError}
148
164
  * @throws {@link Schematic.InternalServerError}
165
+ * @throws {@link errors.SchematicError}
166
+ * @throws {@link errors.SchematicTimeoutError}
149
167
  *
150
168
  * @example
151
169
  * await client.catalogs.addCreditBundle("catalog_id", "credit_bundle_id")
@@ -162,6 +180,8 @@ export declare class CatalogsClient {
162
180
  * @throws {@link Schematic.ForbiddenError}
163
181
  * @throws {@link Schematic.NotFoundError}
164
182
  * @throws {@link Schematic.InternalServerError}
183
+ * @throws {@link errors.SchematicError}
184
+ * @throws {@link errors.SchematicTimeoutError}
165
185
  *
166
186
  * @example
167
187
  * await client.catalogs.removeCreditBundle("catalog_id", "credit_bundle_id")
@@ -176,6 +196,8 @@ export declare class CatalogsClient {
176
196
  * @throws {@link Schematic.ForbiddenError}
177
197
  * @throws {@link Schematic.NotFoundError}
178
198
  * @throws {@link Schematic.InternalServerError}
199
+ * @throws {@link errors.SchematicError}
200
+ * @throws {@link errors.SchematicTimeoutError}
179
201
  *
180
202
  * @example
181
203
  * await client.catalogs.getDerivedFeatures("catalog_id")
@@ -190,6 +212,8 @@ export declare class CatalogsClient {
190
212
  * @throws {@link Schematic.ForbiddenError}
191
213
  * @throws {@link Schematic.NotFoundError}
192
214
  * @throws {@link Schematic.InternalServerError}
215
+ * @throws {@link errors.SchematicError}
216
+ * @throws {@link errors.SchematicTimeoutError}
193
217
  *
194
218
  * @example
195
219
  * await client.catalogs.getPlansInCatalog("catalog_id")
@@ -206,6 +230,8 @@ export declare class CatalogsClient {
206
230
  * @throws {@link Schematic.ForbiddenError}
207
231
  * @throws {@link Schematic.NotFoundError}
208
232
  * @throws {@link Schematic.InternalServerError}
233
+ * @throws {@link errors.SchematicError}
234
+ * @throws {@link errors.SchematicTimeoutError}
209
235
  *
210
236
  * @example
211
237
  * await client.catalogs.addPlan("catalog_id", "plan_id")
@@ -222,6 +248,8 @@ export declare class CatalogsClient {
222
248
  * @throws {@link Schematic.ForbiddenError}
223
249
  * @throws {@link Schematic.NotFoundError}
224
250
  * @throws {@link Schematic.InternalServerError}
251
+ * @throws {@link errors.SchematicError}
252
+ * @throws {@link errors.SchematicTimeoutError}
225
253
  *
226
254
  * @example
227
255
  * await client.catalogs.removePlan("catalog_id", "plan_id")
@@ -19,6 +19,8 @@ export declare class CheckoutClient {
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.checkout.internal({
@@ -58,6 +60,8 @@ export declare class CheckoutClient {
58
60
  * @throws {@link Schematic.ForbiddenError}
59
61
  * @throws {@link Schematic.NotFoundError}
60
62
  * @throws {@link Schematic.InternalServerError}
63
+ * @throws {@link errors.SchematicError}
64
+ * @throws {@link errors.SchematicTimeoutError}
61
65
  *
62
66
  * @example
63
67
  * await client.checkout.getCheckoutData({
@@ -75,6 +79,8 @@ export declare class CheckoutClient {
75
79
  * @throws {@link Schematic.ForbiddenError}
76
80
  * @throws {@link Schematic.NotFoundError}
77
81
  * @throws {@link Schematic.InternalServerError}
82
+ * @throws {@link errors.SchematicError}
83
+ * @throws {@link errors.SchematicTimeoutError}
78
84
  *
79
85
  * @example
80
86
  * await client.checkout.previewCheckoutInternal({
@@ -113,6 +119,8 @@ export declare class CheckoutClient {
113
119
  * @throws {@link Schematic.ForbiddenError}
114
120
  * @throws {@link Schematic.NotFoundError}
115
121
  * @throws {@link Schematic.InternalServerError}
122
+ * @throws {@link errors.SchematicError}
123
+ * @throws {@link errors.SchematicTimeoutError}
116
124
  *
117
125
  * @example
118
126
  * await client.checkout.getCompanyBillingDetails("company_id")
@@ -129,6 +137,8 @@ export declare class CheckoutClient {
129
137
  * @throws {@link Schematic.ForbiddenError}
130
138
  * @throws {@link Schematic.NotFoundError}
131
139
  * @throws {@link Schematic.InternalServerError}
140
+ * @throws {@link errors.SchematicError}
141
+ * @throws {@link errors.SchematicTimeoutError}
132
142
  *
133
143
  * @example
134
144
  * await client.checkout.updateCompanyBillingDetails("company_id", {
@@ -149,6 +159,8 @@ export declare class CheckoutClient {
149
159
  * @throws {@link Schematic.ForbiddenError}
150
160
  * @throws {@link Schematic.NotFoundError}
151
161
  * @throws {@link Schematic.InternalServerError}
162
+ * @throws {@link errors.SchematicError}
163
+ * @throws {@link errors.SchematicTimeoutError}
152
164
  *
153
165
  * @example
154
166
  * await client.checkout.managePlan({
@@ -181,6 +193,8 @@ export declare class CheckoutClient {
181
193
  * @throws {@link Schematic.ForbiddenError}
182
194
  * @throws {@link Schematic.NotFoundError}
183
195
  * @throws {@link Schematic.InternalServerError}
196
+ * @throws {@link errors.SchematicError}
197
+ * @throws {@link errors.SchematicTimeoutError}
184
198
  *
185
199
  * @example
186
200
  * await client.checkout.previewManagePlan({
@@ -213,6 +227,8 @@ export declare class CheckoutClient {
213
227
  * @throws {@link Schematic.ForbiddenError}
214
228
  * @throws {@link Schematic.NotFoundError}
215
229
  * @throws {@link Schematic.InternalServerError}
230
+ * @throws {@link errors.SchematicError}
231
+ * @throws {@link errors.SchematicTimeoutError}
216
232
  *
217
233
  * @example
218
234
  * await client.checkout.cancelSubscription({
@@ -231,6 +247,8 @@ export declare class CheckoutClient {
231
247
  * @throws {@link Schematic.ForbiddenError}
232
248
  * @throws {@link Schematic.NotFoundError}
233
249
  * @throws {@link Schematic.InternalServerError}
250
+ * @throws {@link errors.SchematicError}
251
+ * @throws {@link errors.SchematicTimeoutError}
234
252
  *
235
253
  * @example
236
254
  * await client.checkout.updateCustomerSubscriptionTrialEnd("subscription_id")
@@ -19,6 +19,8 @@ export declare class CompaniesClient {
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.companies.listCompanies({
@@ -30,6 +32,7 @@ export declare class CompaniesClient {
30
32
  * planIds: ["plan_ids"],
31
33
  * planVersionId: "plan_version_id",
32
34
  * planVersionIds: ["plan_version_ids"],
35
+ * planVersionUnpublished: true,
33
36
  * q: "q",
34
37
  * sortOrderColumn: "sort_order_column",
35
38
  * sortOrderDirection: "asc",
@@ -55,6 +58,8 @@ export declare class CompaniesClient {
55
58
  * @throws {@link Schematic.ForbiddenError}
56
59
  * @throws {@link Schematic.NotFoundError}
57
60
  * @throws {@link Schematic.InternalServerError}
61
+ * @throws {@link errors.SchematicError}
62
+ * @throws {@link errors.SchematicTimeoutError}
58
63
  *
59
64
  * @example
60
65
  * await client.companies.upsertCompany({
@@ -73,6 +78,8 @@ export declare class CompaniesClient {
73
78
  * @throws {@link Schematic.ForbiddenError}
74
79
  * @throws {@link Schematic.NotFoundError}
75
80
  * @throws {@link Schematic.InternalServerError}
81
+ * @throws {@link errors.SchematicError}
82
+ * @throws {@link errors.SchematicTimeoutError}
76
83
  *
77
84
  * @example
78
85
  * await client.companies.getCompany("company_id")
@@ -89,6 +96,8 @@ export declare class CompaniesClient {
89
96
  * @throws {@link Schematic.ForbiddenError}
90
97
  * @throws {@link Schematic.NotFoundError}
91
98
  * @throws {@link Schematic.InternalServerError}
99
+ * @throws {@link errors.SchematicError}
100
+ * @throws {@link errors.SchematicTimeoutError}
92
101
  *
93
102
  * @example
94
103
  * await client.companies.deleteCompany("company_id", {
@@ -107,6 +116,8 @@ export declare class CompaniesClient {
107
116
  * @throws {@link Schematic.ForbiddenError}
108
117
  * @throws {@link Schematic.NotFoundError}
109
118
  * @throws {@link Schematic.InternalServerError}
119
+ * @throws {@link errors.SchematicError}
120
+ * @throws {@link errors.SchematicTimeoutError}
110
121
  *
111
122
  * @example
112
123
  * await client.companies.countCompanies({
@@ -118,6 +129,7 @@ export declare class CompaniesClient {
118
129
  * planIds: ["plan_ids"],
119
130
  * planVersionId: "plan_version_id",
120
131
  * planVersionIds: ["plan_version_ids"],
132
+ * planVersionUnpublished: true,
121
133
  * q: "q",
122
134
  * sortOrderColumn: "sort_order_column",
123
135
  * sortOrderDirection: "asc",
@@ -143,6 +155,8 @@ export declare class CompaniesClient {
143
155
  * @throws {@link Schematic.ForbiddenError}
144
156
  * @throws {@link Schematic.NotFoundError}
145
157
  * @throws {@link Schematic.InternalServerError}
158
+ * @throws {@link errors.SchematicError}
159
+ * @throws {@link errors.SchematicTimeoutError}
146
160
  *
147
161
  * @example
148
162
  * await client.companies.createCompany({
@@ -162,6 +176,8 @@ export declare class CompaniesClient {
162
176
  * @throws {@link Schematic.ForbiddenError}
163
177
  * @throws {@link Schematic.NotFoundError}
164
178
  * @throws {@link Schematic.InternalServerError}
179
+ * @throws {@link errors.SchematicError}
180
+ * @throws {@link errors.SchematicTimeoutError}
165
181
  *
166
182
  * @example
167
183
  * await client.companies.deleteCompanyByKeys({
@@ -186,6 +202,8 @@ export declare class CompaniesClient {
186
202
  * @throws {@link Schematic.ForbiddenError}
187
203
  * @throws {@link Schematic.NotFoundError}
188
204
  * @throws {@link Schematic.InternalServerError}
205
+ * @throws {@link errors.SchematicError}
206
+ * @throws {@link errors.SchematicTimeoutError}
189
207
  *
190
208
  * @example
191
209
  * await client.companies.lookupCompany({
@@ -205,13 +223,15 @@ export declare class CompaniesClient {
205
223
  * @throws {@link Schematic.ForbiddenError}
206
224
  * @throws {@link Schematic.NotFoundError}
207
225
  * @throws {@link Schematic.InternalServerError}
226
+ * @throws {@link errors.SchematicError}
227
+ * @throws {@link errors.SchematicTimeoutError}
208
228
  *
209
229
  * @example
210
230
  * await client.companies.getCompanyBillingEntity({
211
231
  * companyId: "company_id"
212
232
  * })
213
233
  */
214
- getCompanyBillingEntity(request?: Schematic.GetCompanyBillingEntityRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.GetCompanyBillingEntityResponse>;
234
+ getCompanyBillingEntity(request: Schematic.GetCompanyBillingEntityRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.GetCompanyBillingEntityResponse>;
215
235
  private __getCompanyBillingEntity;
216
236
  /**
217
237
  * @param {Schematic.GetBillingEntityChildSubscriptionsRequest} request
@@ -222,13 +242,15 @@ export declare class CompaniesClient {
222
242
  * @throws {@link Schematic.ForbiddenError}
223
243
  * @throws {@link Schematic.NotFoundError}
224
244
  * @throws {@link Schematic.InternalServerError}
245
+ * @throws {@link errors.SchematicError}
246
+ * @throws {@link errors.SchematicTimeoutError}
225
247
  *
226
248
  * @example
227
249
  * await client.companies.getBillingEntityChildSubscriptions({
228
250
  * companyId: "company_id"
229
251
  * })
230
252
  */
231
- getBillingEntityChildSubscriptions(request?: Schematic.GetBillingEntityChildSubscriptionsRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.GetBillingEntityChildSubscriptionsResponse>;
253
+ getBillingEntityChildSubscriptions(request: Schematic.GetBillingEntityChildSubscriptionsRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.GetBillingEntityChildSubscriptionsResponse>;
232
254
  private __getBillingEntityChildSubscriptions;
233
255
  /**
234
256
  * @param {Schematic.ListCompanyMembershipsRequest} request
@@ -239,6 +261,8 @@ export declare class CompaniesClient {
239
261
  * @throws {@link Schematic.ForbiddenError}
240
262
  * @throws {@link Schematic.NotFoundError}
241
263
  * @throws {@link Schematic.InternalServerError}
264
+ * @throws {@link errors.SchematicError}
265
+ * @throws {@link errors.SchematicTimeoutError}
242
266
  *
243
267
  * @example
244
268
  * await client.companies.listCompanyMemberships({
@@ -259,6 +283,8 @@ export declare class CompaniesClient {
259
283
  * @throws {@link Schematic.ForbiddenError}
260
284
  * @throws {@link Schematic.NotFoundError}
261
285
  * @throws {@link Schematic.InternalServerError}
286
+ * @throws {@link errors.SchematicError}
287
+ * @throws {@link errors.SchematicTimeoutError}
262
288
  *
263
289
  * @example
264
290
  * await client.companies.getOrCreateCompanyMembership({
@@ -277,6 +303,8 @@ export declare class CompaniesClient {
277
303
  * @throws {@link Schematic.ForbiddenError}
278
304
  * @throws {@link Schematic.NotFoundError}
279
305
  * @throws {@link Schematic.InternalServerError}
306
+ * @throws {@link errors.SchematicError}
307
+ * @throws {@link errors.SchematicTimeoutError}
280
308
  *
281
309
  * @example
282
310
  * await client.companies.deleteCompanyMembership("company_membership_id")
@@ -292,6 +320,8 @@ export declare class CompaniesClient {
292
320
  * @throws {@link Schematic.ForbiddenError}
293
321
  * @throws {@link Schematic.NotFoundError}
294
322
  * @throws {@link Schematic.InternalServerError}
323
+ * @throws {@link errors.SchematicError}
324
+ * @throws {@link errors.SchematicTimeoutError}
295
325
  *
296
326
  * @example
297
327
  * await client.companies.getActiveCompanySubscription({
@@ -312,6 +342,8 @@ export declare class CompaniesClient {
312
342
  * @throws {@link Schematic.ForbiddenError}
313
343
  * @throws {@link Schematic.NotFoundError}
314
344
  * @throws {@link Schematic.InternalServerError}
345
+ * @throws {@link errors.SchematicError}
346
+ * @throws {@link errors.SchematicTimeoutError}
315
347
  *
316
348
  * @example
317
349
  * await client.companies.upsertCompanyTrait({
@@ -332,6 +364,8 @@ export declare class CompaniesClient {
332
364
  * @throws {@link Schematic.ForbiddenError}
333
365
  * @throws {@link Schematic.NotFoundError}
334
366
  * @throws {@link Schematic.InternalServerError}
367
+ * @throws {@link errors.SchematicError}
368
+ * @throws {@link errors.SchematicTimeoutError}
335
369
  *
336
370
  * @example
337
371
  * await client.companies.listEntityKeyDefinitions({
@@ -353,6 +387,8 @@ export declare class CompaniesClient {
353
387
  * @throws {@link Schematic.ForbiddenError}
354
388
  * @throws {@link Schematic.NotFoundError}
355
389
  * @throws {@link Schematic.InternalServerError}
390
+ * @throws {@link errors.SchematicError}
391
+ * @throws {@link errors.SchematicTimeoutError}
356
392
  *
357
393
  * @example
358
394
  * await client.companies.deleteEntityKeyDefinition("entity_key_definition_id")
@@ -368,6 +404,8 @@ export declare class CompaniesClient {
368
404
  * @throws {@link Schematic.ForbiddenError}
369
405
  * @throws {@link Schematic.NotFoundError}
370
406
  * @throws {@link Schematic.InternalServerError}
407
+ * @throws {@link errors.SchematicError}
408
+ * @throws {@link errors.SchematicTimeoutError}
371
409
  *
372
410
  * @example
373
411
  * await client.companies.countEntityKeyDefinitions({
@@ -389,6 +427,8 @@ export declare class CompaniesClient {
389
427
  * @throws {@link Schematic.ForbiddenError}
390
428
  * @throws {@link Schematic.NotFoundError}
391
429
  * @throws {@link Schematic.InternalServerError}
430
+ * @throws {@link errors.SchematicError}
431
+ * @throws {@link errors.SchematicTimeoutError}
392
432
  *
393
433
  * @example
394
434
  * await client.companies.countEntityKeys({
@@ -409,6 +449,8 @@ export declare class CompaniesClient {
409
449
  * @throws {@link Schematic.ForbiddenError}
410
450
  * @throws {@link Schematic.NotFoundError}
411
451
  * @throws {@link Schematic.InternalServerError}
452
+ * @throws {@link errors.SchematicError}
453
+ * @throws {@link errors.SchematicTimeoutError}
412
454
  *
413
455
  * @example
414
456
  * await client.companies.listEntityTraitDefinitions({
@@ -432,6 +474,8 @@ export declare class CompaniesClient {
432
474
  * @throws {@link Schematic.ForbiddenError}
433
475
  * @throws {@link Schematic.NotFoundError}
434
476
  * @throws {@link Schematic.InternalServerError}
477
+ * @throws {@link errors.SchematicError}
478
+ * @throws {@link errors.SchematicTimeoutError}
435
479
  *
436
480
  * @example
437
481
  * await client.companies.getOrCreateEntityTraitDefinition({
@@ -450,6 +494,8 @@ export declare class CompaniesClient {
450
494
  * @throws {@link Schematic.ForbiddenError}
451
495
  * @throws {@link Schematic.NotFoundError}
452
496
  * @throws {@link Schematic.InternalServerError}
497
+ * @throws {@link errors.SchematicError}
498
+ * @throws {@link errors.SchematicTimeoutError}
453
499
  *
454
500
  * @example
455
501
  * await client.companies.getEntityTraitDefinition("entity_trait_definition_id")
@@ -466,6 +512,8 @@ export declare class CompaniesClient {
466
512
  * @throws {@link Schematic.ForbiddenError}
467
513
  * @throws {@link Schematic.NotFoundError}
468
514
  * @throws {@link Schematic.InternalServerError}
515
+ * @throws {@link errors.SchematicError}
516
+ * @throws {@link errors.SchematicTimeoutError}
469
517
  *
470
518
  * @example
471
519
  * await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
@@ -474,6 +522,39 @@ export declare class CompaniesClient {
474
522
  */
475
523
  updateEntityTraitDefinition(entity_trait_definition_id: string, request: Schematic.UpdateEntityTraitDefinitionRequestBody, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.UpdateEntityTraitDefinitionResponse>;
476
524
  private __updateEntityTraitDefinition;
525
+ /**
526
+ * @param {string} entity_trait_definition_id - entity_trait_definition_id
527
+ * @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
528
+ *
529
+ * @throws {@link Schematic.BadRequestError}
530
+ * @throws {@link Schematic.UnauthorizedError}
531
+ * @throws {@link Schematic.ForbiddenError}
532
+ * @throws {@link Schematic.NotFoundError}
533
+ * @throws {@link Schematic.InternalServerError}
534
+ * @throws {@link errors.SchematicError}
535
+ * @throws {@link errors.SchematicTimeoutError}
536
+ *
537
+ * @example
538
+ * await client.companies.deleteEntityTraitDefinition("entity_trait_definition_id")
539
+ */
540
+ deleteEntityTraitDefinition(entity_trait_definition_id: string, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.DeleteEntityTraitDefinitionResponse>;
541
+ private __deleteEntityTraitDefinition;
542
+ /**
543
+ * @param {string} entity_trait_definition_id - entity_trait_definition_id
544
+ * @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
545
+ *
546
+ * @throws {@link Schematic.UnauthorizedError}
547
+ * @throws {@link Schematic.ForbiddenError}
548
+ * @throws {@link Schematic.NotFoundError}
549
+ * @throws {@link Schematic.InternalServerError}
550
+ * @throws {@link errors.SchematicError}
551
+ * @throws {@link errors.SchematicTimeoutError}
552
+ *
553
+ * @example
554
+ * await client.companies.getEntityTraitDefinitionUsage("entity_trait_definition_id")
555
+ */
556
+ getEntityTraitDefinitionUsage(entity_trait_definition_id: string, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.GetEntityTraitDefinitionUsageResponse>;
557
+ private __getEntityTraitDefinitionUsage;
477
558
  /**
478
559
  * @param {Schematic.CountEntityTraitDefinitionsRequest} request
479
560
  * @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -483,6 +564,8 @@ export declare class CompaniesClient {
483
564
  * @throws {@link Schematic.ForbiddenError}
484
565
  * @throws {@link Schematic.NotFoundError}
485
566
  * @throws {@link Schematic.InternalServerError}
567
+ * @throws {@link errors.SchematicError}
568
+ * @throws {@link errors.SchematicTimeoutError}
486
569
  *
487
570
  * @example
488
571
  * await client.companies.countEntityTraitDefinitions({
@@ -506,6 +589,8 @@ export declare class CompaniesClient {
506
589
  * @throws {@link Schematic.ForbiddenError}
507
590
  * @throws {@link Schematic.NotFoundError}
508
591
  * @throws {@link Schematic.InternalServerError}
592
+ * @throws {@link errors.SchematicError}
593
+ * @throws {@link errors.SchematicTimeoutError}
509
594
  *
510
595
  * @example
511
596
  * await client.companies.getEntityTraitValues({
@@ -517,6 +602,28 @@ export declare class CompaniesClient {
517
602
  */
518
603
  getEntityTraitValues(request: Schematic.GetEntityTraitValuesRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.GetEntityTraitValuesResponse>;
519
604
  private __getEntityTraitValues;
605
+ /**
606
+ * @param {Schematic.CountEntityTraitsRequest} request
607
+ * @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
608
+ *
609
+ * @throws {@link Schematic.BadRequestError}
610
+ * @throws {@link Schematic.UnauthorizedError}
611
+ * @throws {@link Schematic.ForbiddenError}
612
+ * @throws {@link Schematic.NotFoundError}
613
+ * @throws {@link Schematic.InternalServerError}
614
+ * @throws {@link errors.SchematicError}
615
+ * @throws {@link errors.SchematicTimeoutError}
616
+ *
617
+ * @example
618
+ * await client.companies.countEntityTraits({
619
+ * definitionId: "definition_id",
620
+ * entityType: "company",
621
+ * limit: 1000000,
622
+ * offset: 1000000
623
+ * })
624
+ */
625
+ countEntityTraits(request?: Schematic.CountEntityTraitsRequest, requestOptions?: CompaniesClient.RequestOptions): core.HttpResponsePromise<Schematic.CountEntityTraitsResponse>;
626
+ private __countEntityTraits;
520
627
  /**
521
628
  * @param {Schematic.ListPlanChangesRequest} request
522
629
  * @param {CompaniesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -526,6 +633,8 @@ export declare class CompaniesClient {
526
633
  * @throws {@link Schematic.ForbiddenError}
527
634
  * @throws {@link Schematic.NotFoundError}
528
635
  * @throws {@link Schematic.InternalServerError}
636
+ * @throws {@link errors.SchematicError}
637
+ * @throws {@link errors.SchematicTimeoutError}
529
638
  *
530
639
  * @example
531
640
  * await client.companies.listPlanChanges({
@@ -533,7 +642,6 @@ export declare class CompaniesClient {
533
642
  * basePlanAction: "fallback",
534
643
  * companyId: "company_id",
535
644
  * companyIds: ["company_ids"],
536
- * planIds: ["plan_ids"],
537
645
  * limit: 1000000,
538
646
  * offset: 1000000
539
647
  * })
@@ -548,6 +656,8 @@ export declare class CompaniesClient {
548
656
  * @throws {@link Schematic.ForbiddenError}
549
657
  * @throws {@link Schematic.NotFoundError}
550
658
  * @throws {@link Schematic.InternalServerError}
659
+ * @throws {@link errors.SchematicError}
660
+ * @throws {@link errors.SchematicTimeoutError}
551
661
  *
552
662
  * @example
553
663
  * await client.companies.getPlanChange("plan_change_id")
@@ -563,6 +673,8 @@ export declare class CompaniesClient {
563
673
  * @throws {@link Schematic.ForbiddenError}
564
674
  * @throws {@link Schematic.NotFoundError}
565
675
  * @throws {@link Schematic.InternalServerError}
676
+ * @throws {@link errors.SchematicError}
677
+ * @throws {@link errors.SchematicTimeoutError}
566
678
  *
567
679
  * @example
568
680
  * await client.companies.listPlanTraits({
@@ -584,6 +696,8 @@ export declare class CompaniesClient {
584
696
  * @throws {@link Schematic.ForbiddenError}
585
697
  * @throws {@link Schematic.NotFoundError}
586
698
  * @throws {@link Schematic.InternalServerError}
699
+ * @throws {@link errors.SchematicError}
700
+ * @throws {@link errors.SchematicTimeoutError}
587
701
  *
588
702
  * @example
589
703
  * await client.companies.getPlanTrait("plan_trait_id")
@@ -599,6 +713,8 @@ export declare class CompaniesClient {
599
713
  * @throws {@link Schematic.ForbiddenError}
600
714
  * @throws {@link Schematic.NotFoundError}
601
715
  * @throws {@link Schematic.InternalServerError}
716
+ * @throws {@link errors.SchematicError}
717
+ * @throws {@link errors.SchematicTimeoutError}
602
718
  *
603
719
  * @example
604
720
  * await client.companies.updatePlanTraitsBulk({
@@ -621,6 +737,8 @@ export declare class CompaniesClient {
621
737
  * @throws {@link Schematic.ForbiddenError}
622
738
  * @throws {@link Schematic.NotFoundError}
623
739
  * @throws {@link Schematic.InternalServerError}
740
+ * @throws {@link errors.SchematicError}
741
+ * @throws {@link errors.SchematicTimeoutError}
624
742
  *
625
743
  * @example
626
744
  * await client.companies.countPlanTraits({
@@ -643,6 +761,8 @@ export declare class CompaniesClient {
643
761
  * @throws {@link Schematic.ForbiddenError}
644
762
  * @throws {@link Schematic.NotFoundError}
645
763
  * @throws {@link Schematic.InternalServerError}
764
+ * @throws {@link errors.SchematicError}
765
+ * @throws {@link errors.SchematicTimeoutError}
646
766
  *
647
767
  * @example
648
768
  * await client.companies.upsertUserTrait({
@@ -663,6 +783,8 @@ export declare class CompaniesClient {
663
783
  * @throws {@link Schematic.ForbiddenError}
664
784
  * @throws {@link Schematic.NotFoundError}
665
785
  * @throws {@link Schematic.InternalServerError}
786
+ * @throws {@link errors.SchematicError}
787
+ * @throws {@link errors.SchematicTimeoutError}
666
788
  *
667
789
  * @example
668
790
  * await client.companies.listUsers({
@@ -685,6 +807,8 @@ export declare class CompaniesClient {
685
807
  * @throws {@link Schematic.ForbiddenError}
686
808
  * @throws {@link Schematic.NotFoundError}
687
809
  * @throws {@link Schematic.InternalServerError}
810
+ * @throws {@link errors.SchematicError}
811
+ * @throws {@link errors.SchematicTimeoutError}
688
812
  *
689
813
  * @example
690
814
  * await client.companies.upsertUser({
@@ -703,6 +827,8 @@ export declare class CompaniesClient {
703
827
  * @throws {@link Schematic.ForbiddenError}
704
828
  * @throws {@link Schematic.NotFoundError}
705
829
  * @throws {@link Schematic.InternalServerError}
830
+ * @throws {@link errors.SchematicError}
831
+ * @throws {@link errors.SchematicTimeoutError}
706
832
  *
707
833
  * @example
708
834
  * await client.companies.getUser("user_id")
@@ -718,6 +844,8 @@ export declare class CompaniesClient {
718
844
  * @throws {@link Schematic.ForbiddenError}
719
845
  * @throws {@link Schematic.NotFoundError}
720
846
  * @throws {@link Schematic.InternalServerError}
847
+ * @throws {@link errors.SchematicError}
848
+ * @throws {@link errors.SchematicTimeoutError}
721
849
  *
722
850
  * @example
723
851
  * await client.companies.deleteUser("user_id")
@@ -733,6 +861,8 @@ export declare class CompaniesClient {
733
861
  * @throws {@link Schematic.ForbiddenError}
734
862
  * @throws {@link Schematic.NotFoundError}
735
863
  * @throws {@link Schematic.InternalServerError}
864
+ * @throws {@link errors.SchematicError}
865
+ * @throws {@link errors.SchematicTimeoutError}
736
866
  *
737
867
  * @example
738
868
  * await client.companies.countUsers({
@@ -755,6 +885,8 @@ export declare class CompaniesClient {
755
885
  * @throws {@link Schematic.ForbiddenError}
756
886
  * @throws {@link Schematic.NotFoundError}
757
887
  * @throws {@link Schematic.InternalServerError}
888
+ * @throws {@link errors.SchematicError}
889
+ * @throws {@link errors.SchematicTimeoutError}
758
890
  *
759
891
  * @example
760
892
  * await client.companies.createUser({
@@ -774,6 +906,8 @@ export declare class CompaniesClient {
774
906
  * @throws {@link Schematic.ForbiddenError}
775
907
  * @throws {@link Schematic.NotFoundError}
776
908
  * @throws {@link Schematic.InternalServerError}
909
+ * @throws {@link errors.SchematicError}
910
+ * @throws {@link errors.SchematicTimeoutError}
777
911
  *
778
912
  * @example
779
913
  * await client.companies.deleteUserByKeys({
@@ -792,6 +926,8 @@ export declare class CompaniesClient {
792
926
  * @throws {@link Schematic.ForbiddenError}
793
927
  * @throws {@link Schematic.NotFoundError}
794
928
  * @throws {@link Schematic.InternalServerError}
929
+ * @throws {@link errors.SchematicError}
930
+ * @throws {@link errors.SchematicTimeoutError}
795
931
  *
796
932
  * @example
797
933
  * await client.companies.lookupUser({
@@ -10,6 +10,7 @@ import type * as Schematic from "../../../../index";
10
10
  * planIds: ["plan_ids"],
11
11
  * planVersionId: "plan_version_id",
12
12
  * planVersionIds: ["plan_version_ids"],
13
+ * planVersionUnpublished: true,
13
14
  * q: "q",
14
15
  * sortOrderColumn: "sort_order_column",
15
16
  * sortOrderDirection: "asc",
@@ -41,6 +42,8 @@ export interface CountCompaniesRequest {
41
42
  planVersionId?: string;
42
43
  /** Filter companies by one or more plan version IDs (each ID starts with plvr_). Takes precedence over plan_version_id when set. */
43
44
  planVersionIds?: string | string[];
45
+ /** Filter companies assigned to a plan version that is no longer published, meaning the plan has since moved on to a newer version */
46
+ planVersionUnpublished?: boolean;
44
47
  /** Search for companies by name, keys or string traits */
45
48
  q?: string;
46
49
  /** Column to sort by (e.g. name, created_at, last_seen_at) */
@@ -0,0 +1,18 @@
1
+ import type * as Schematic from "../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * definitionId: "definition_id",
6
+ * entityType: "company",
7
+ * limit: 1000000,
8
+ * offset: 1000000
9
+ * }
10
+ */
11
+ export interface CountEntityTraitsRequest {
12
+ definitionId?: string;
13
+ entityType?: Schematic.EntityType;
14
+ /** Page limit (default 100) */
15
+ limit?: number;
16
+ /** Page offset (default 0) */
17
+ offset?: number;
18
+ }