@schematichq/schematic-typescript-node 1.1.10 → 1.1.11

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 (661) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +13 -8
  3. package/README.md +2 -0
  4. package/api/errors/BadRequestError.d.ts +2 -1
  5. package/api/errors/BadRequestError.js +2 -1
  6. package/api/errors/ForbiddenError.d.ts +2 -1
  7. package/api/errors/ForbiddenError.js +2 -1
  8. package/api/errors/InternalServerError.d.ts +2 -1
  9. package/api/errors/InternalServerError.js +2 -1
  10. package/api/errors/NotFoundError.d.ts +2 -1
  11. package/api/errors/NotFoundError.js +2 -1
  12. package/api/errors/UnauthorizedError.d.ts +2 -1
  13. package/api/errors/UnauthorizedError.js +2 -1
  14. package/api/errors/index.d.ts +1 -1
  15. package/api/errors/index.js +1 -1
  16. package/api/resources/accesstokens/client/Client.d.ts +3 -1
  17. package/api/resources/accesstokens/client/Client.js +30 -12
  18. package/api/resources/accounts/client/Client.d.ts +51 -14
  19. package/api/resources/accounts/client/Client.js +489 -175
  20. package/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
  21. package/api/resources/accounts/types/index.d.ts +1 -0
  22. package/api/resources/accounts/types/index.js +1 -0
  23. package/api/resources/billing/client/Client.d.ts +64 -26
  24. package/api/resources/billing/client/Client.js +651 -259
  25. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
  26. package/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
  27. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
  28. package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
  29. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
  30. package/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
  31. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
  32. package/api/resources/billing/client/requests/index.d.ts +1 -1
  33. package/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
  34. package/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
  35. package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
  36. package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
  37. package/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  38. package/{dist/api/resources/billing/types/ListCustomersParams.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
  39. package/{dist/api/resources/billing/types/ListCustomersResponse.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
  40. package/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  41. package/api/resources/billing/types/index.d.ts +3 -2
  42. package/api/resources/billing/types/index.js +3 -2
  43. package/api/resources/checkout/client/Client.d.ts +11 -4
  44. package/api/resources/checkout/client/Client.js +113 -50
  45. package/api/resources/companies/client/Client.d.ts +95 -37
  46. package/api/resources/companies/client/Client.js +903 -391
  47. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
  48. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
  49. package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
  50. package/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
  51. package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  52. package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  53. package/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  54. package/api/resources/companies/types/LookupUserParams.d.ts +1 -1
  55. package/api/resources/components/client/Client.d.ts +18 -7
  56. package/api/resources/components/client/Client.js +188 -89
  57. package/api/resources/crm/client/Client.d.ts +15 -5
  58. package/api/resources/crm/client/Client.js +151 -61
  59. package/api/resources/dataexports/client/Client.d.ts +58 -0
  60. package/api/resources/dataexports/client/Client.js +265 -0
  61. package/api/resources/dataexports/client/index.d.ts +1 -0
  62. package/api/resources/dataexports/client/index.js +17 -0
  63. package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  64. package/api/resources/dataexports/client/requests/index.d.ts +1 -0
  65. package/api/resources/dataexports/client/requests/index.js +2 -0
  66. package/api/resources/dataexports/index.d.ts +2 -0
  67. package/api/resources/dataexports/index.js +18 -0
  68. package/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
  69. package/api/resources/dataexports/types/index.d.ts +1 -0
  70. package/api/resources/dataexports/types/index.js +17 -0
  71. package/api/resources/entitlements/client/Client.d.ts +53 -22
  72. package/api/resources/entitlements/client/Client.js +534 -239
  73. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
  74. package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
  75. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
  76. package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  77. package/api/resources/events/client/Client.d.ts +16 -6
  78. package/api/resources/events/client/Client.js +164 -74
  79. package/api/resources/features/client/Client.d.ts +52 -19
  80. package/api/resources/features/client/Client.js +533 -236
  81. package/api/resources/index.d.ts +3 -0
  82. package/api/resources/index.js +4 -1
  83. package/api/resources/plangroups/client/Client.d.ts +7 -3
  84. package/api/resources/plangroups/client/Client.js +73 -37
  85. package/api/resources/plans/client/Client.d.ts +124 -11
  86. package/api/resources/plans/client/Client.js +1010 -171
  87. package/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
  88. package/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
  89. package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
  90. package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
  91. package/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
  92. package/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
  93. package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
  94. package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
  95. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
  96. package/api/resources/plans/client/requests/index.d.ts +4 -0
  97. package/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
  98. package/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
  99. package/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
  100. package/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
  101. package/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
  102. package/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
  103. package/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
  104. package/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
  105. package/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
  106. package/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
  107. package/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
  108. package/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
  109. package/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
  110. package/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
  111. package/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
  112. package/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
  113. package/api/resources/plans/types/index.d.ts +8 -0
  114. package/api/resources/plans/types/index.js +8 -0
  115. package/api/resources/webhooks/client/Client.d.ts +24 -9
  116. package/api/resources/webhooks/client/Client.js +249 -114
  117. package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
  118. package/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
  119. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  120. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  121. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  122. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  123. package/api/types/BillingPriceResponseData.d.ts +2 -0
  124. package/api/types/BillingPriceView.d.ts +7 -0
  125. package/api/types/BillingProductDetailResponseData.d.ts +2 -0
  126. package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  127. package/api/types/BillingProductPlanResponseData.d.ts +2 -0
  128. package/api/types/BillingProductPriceResponseData.d.ts +3 -0
  129. package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
  130. package/api/types/BillingProductPriceTierResponseData.js +5 -0
  131. package/api/types/BillingProductPricing.d.ts +2 -0
  132. package/api/types/BillingProductResponseData.d.ts +2 -0
  133. package/api/types/CheckFlagResponseData.d.ts +2 -0
  134. package/api/types/CompanyDetailResponseData.d.ts +1 -0
  135. package/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
  136. package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  137. package/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  138. package/api/types/DataExportResponseData.d.ts +17 -0
  139. package/api/types/DataExportResponseData.js +5 -0
  140. package/api/types/EntitlementTriggerConfig.d.ts +6 -0
  141. package/api/types/EntitlementTriggerConfig.js +5 -0
  142. package/api/types/EventSummaryResponseData.d.ts +2 -2
  143. package/api/types/PlanDetailResponseData.d.ts +2 -0
  144. package/api/types/PlanEntitlementResponseData.d.ts +1 -0
  145. package/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  146. package/api/types/PlanTraitResponseData.d.ts +16 -0
  147. package/api/types/PlanTraitResponseData.js +5 -0
  148. package/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
  149. package/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
  150. package/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
  151. package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
  152. package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
  153. package/api/types/QuickstartResp.d.ts +6 -0
  154. package/api/types/QuickstartResp.js +5 -0
  155. package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
  156. package/api/types/UpsertTraitRequestBody.d.ts +1 -1
  157. package/api/types/UpsertUserRequestBody.d.ts +7 -2
  158. package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
  159. package/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
  160. package/api/types/WebhookResponseData.d.ts +2 -0
  161. package/api/types/index.d.ts +7 -0
  162. package/api/types/index.js +7 -0
  163. package/core/fetcher/APIResponse.d.ts +10 -0
  164. package/core/fetcher/Fetcher.js +7 -0
  165. package/core/fetcher/Headers.d.ts +2 -0
  166. package/core/fetcher/Headers.js +84 -0
  167. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  168. package/core/fetcher/HttpResponsePromise.js +103 -0
  169. package/core/fetcher/RawResponse.d.ts +29 -0
  170. package/core/fetcher/RawResponse.js +44 -0
  171. package/core/fetcher/custom.js +17 -0
  172. package/core/fetcher/index.d.ts +3 -0
  173. package/core/fetcher/index.js +7 -1
  174. package/dist/Client.d.ts +3 -0
  175. package/dist/Client.js +13 -8
  176. package/dist/api/errors/BadRequestError.d.ts +2 -1
  177. package/dist/api/errors/BadRequestError.js +2 -1
  178. package/dist/api/errors/ForbiddenError.d.ts +2 -1
  179. package/dist/api/errors/ForbiddenError.js +2 -1
  180. package/dist/api/errors/InternalServerError.d.ts +2 -1
  181. package/dist/api/errors/InternalServerError.js +2 -1
  182. package/dist/api/errors/NotFoundError.d.ts +2 -1
  183. package/dist/api/errors/NotFoundError.js +2 -1
  184. package/dist/api/errors/UnauthorizedError.d.ts +2 -1
  185. package/dist/api/errors/UnauthorizedError.js +2 -1
  186. package/dist/api/errors/index.d.ts +1 -1
  187. package/dist/api/errors/index.js +1 -1
  188. package/dist/api/resources/accesstokens/client/Client.d.ts +3 -1
  189. package/dist/api/resources/accesstokens/client/Client.js +30 -12
  190. package/dist/api/resources/accounts/client/Client.d.ts +51 -14
  191. package/dist/api/resources/accounts/client/Client.js +489 -175
  192. package/dist/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
  193. package/dist/api/resources/accounts/types/QuickstartResponse.js +5 -0
  194. package/dist/api/resources/accounts/types/index.d.ts +1 -0
  195. package/dist/api/resources/accounts/types/index.js +1 -0
  196. package/dist/api/resources/billing/client/Client.d.ts +64 -26
  197. package/dist/api/resources/billing/client/Client.js +651 -259
  198. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
  199. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
  200. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
  201. package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
  202. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
  203. package/dist/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
  204. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +5 -0
  205. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
  206. package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
  207. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
  208. package/dist/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
  209. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
  210. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
  211. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  212. package/{api/resources/billing/types/ListCustomersParams.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
  213. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
  214. package/{api/resources/billing/types/ListCustomersResponse.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
  215. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
  216. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  217. package/dist/api/resources/billing/types/index.d.ts +3 -2
  218. package/dist/api/resources/billing/types/index.js +3 -2
  219. package/dist/api/resources/checkout/client/Client.d.ts +11 -4
  220. package/dist/api/resources/checkout/client/Client.js +113 -50
  221. package/dist/api/resources/companies/client/Client.d.ts +95 -37
  222. package/dist/api/resources/companies/client/Client.js +903 -391
  223. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
  224. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
  225. package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
  226. package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
  227. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  228. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  229. package/dist/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  230. package/dist/api/resources/companies/types/LookupUserParams.d.ts +1 -1
  231. package/dist/api/resources/components/client/Client.d.ts +18 -7
  232. package/dist/api/resources/components/client/Client.js +188 -89
  233. package/dist/api/resources/crm/client/Client.d.ts +15 -5
  234. package/dist/api/resources/crm/client/Client.js +151 -61
  235. package/dist/api/resources/dataexports/client/Client.d.ts +58 -0
  236. package/dist/api/resources/dataexports/client/Client.js +265 -0
  237. package/dist/api/resources/dataexports/client/index.d.ts +1 -0
  238. package/dist/api/resources/dataexports/client/index.js +17 -0
  239. package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  240. package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
  241. package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
  242. package/dist/api/resources/dataexports/client/requests/index.js +2 -0
  243. package/dist/api/resources/dataexports/index.d.ts +2 -0
  244. package/dist/api/resources/dataexports/index.js +18 -0
  245. package/dist/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
  246. package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
  247. package/dist/api/resources/dataexports/types/index.d.ts +1 -0
  248. package/dist/api/resources/dataexports/types/index.js +17 -0
  249. package/dist/api/resources/entitlements/client/Client.d.ts +53 -22
  250. package/dist/api/resources/entitlements/client/Client.js +534 -239
  251. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
  252. package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
  253. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
  254. package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  255. package/dist/api/resources/events/client/Client.d.ts +16 -6
  256. package/dist/api/resources/events/client/Client.js +164 -74
  257. package/dist/api/resources/features/client/Client.d.ts +52 -19
  258. package/dist/api/resources/features/client/Client.js +533 -236
  259. package/dist/api/resources/index.d.ts +3 -0
  260. package/dist/api/resources/index.js +4 -1
  261. package/dist/api/resources/plangroups/client/Client.d.ts +7 -3
  262. package/dist/api/resources/plangroups/client/Client.js +73 -37
  263. package/dist/api/resources/plans/client/Client.d.ts +124 -11
  264. package/dist/api/resources/plans/client/Client.js +1010 -171
  265. package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
  266. package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
  267. package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
  268. package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
  269. package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
  270. package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
  271. package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
  272. package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
  273. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
  274. package/dist/api/resources/plans/client/requests/index.d.ts +4 -0
  275. package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
  276. package/dist/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
  277. package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
  278. package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
  279. package/dist/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
  280. package/dist/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
  281. package/dist/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
  282. package/dist/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
  283. package/dist/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
  284. package/dist/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
  285. package/dist/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
  286. package/dist/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
  287. package/dist/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
  288. package/dist/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
  289. package/dist/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
  290. package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
  291. package/dist/api/resources/plans/types/index.d.ts +8 -0
  292. package/dist/api/resources/plans/types/index.js +8 -0
  293. package/dist/api/resources/webhooks/client/Client.d.ts +24 -9
  294. package/dist/api/resources/webhooks/client/Client.js +249 -114
  295. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
  296. package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
  297. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  298. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  299. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  300. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  301. package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
  302. package/dist/api/types/BillingPriceView.d.ts +7 -0
  303. package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -0
  304. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  305. package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
  306. package/dist/api/types/BillingProductPriceResponseData.d.ts +3 -0
  307. package/dist/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
  308. package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
  309. package/dist/api/types/BillingProductPricing.d.ts +2 -0
  310. package/dist/api/types/BillingProductResponseData.d.ts +2 -0
  311. package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
  312. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  313. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
  314. package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  315. package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  316. package/dist/api/types/DataExportResponseData.d.ts +17 -0
  317. package/dist/api/types/DataExportResponseData.js +5 -0
  318. package/dist/api/types/EntitlementTriggerConfig.d.ts +6 -0
  319. package/dist/api/types/EntitlementTriggerConfig.js +5 -0
  320. package/dist/api/types/EventSummaryResponseData.d.ts +2 -2
  321. package/dist/api/types/PlanDetailResponseData.d.ts +2 -0
  322. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
  323. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  324. package/dist/api/types/PlanTraitResponseData.d.ts +16 -0
  325. package/dist/api/types/PlanTraitResponseData.js +5 -0
  326. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
  327. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
  328. package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
  329. package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
  330. package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
  331. package/dist/api/types/QuickstartResp.d.ts +6 -0
  332. package/dist/api/types/QuickstartResp.js +5 -0
  333. package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
  334. package/dist/api/types/UpsertTraitRequestBody.d.ts +1 -1
  335. package/dist/api/types/UpsertUserRequestBody.d.ts +7 -2
  336. package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
  337. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
  338. package/dist/api/types/WebhookResponseData.d.ts +2 -0
  339. package/dist/api/types/index.d.ts +7 -0
  340. package/dist/api/types/index.js +7 -0
  341. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  342. package/dist/core/fetcher/Fetcher.js +7 -0
  343. package/dist/core/fetcher/Headers.d.ts +2 -0
  344. package/dist/core/fetcher/Headers.js +84 -0
  345. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  346. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  347. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  348. package/dist/core/fetcher/RawResponse.js +44 -0
  349. package/dist/core/fetcher/custom.js +17 -0
  350. package/dist/core/fetcher/index.d.ts +3 -0
  351. package/dist/core/fetcher/index.js +7 -1
  352. package/dist/errors/SchematicError.d.ts +4 -1
  353. package/dist/errors/SchematicError.js +4 -7
  354. package/dist/events.d.ts +4 -0
  355. package/dist/events.js +41 -5
  356. package/dist/events.test.js +50 -3
  357. package/dist/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
  358. package/dist/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
  359. package/dist/serialization/resources/accounts/types/index.d.ts +1 -0
  360. package/dist/serialization/resources/accounts/types/index.js +1 -0
  361. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
  362. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
  363. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
  364. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
  365. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
  366. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
  367. package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
  368. package/dist/serialization/resources/billing/types/CountCustomersParams.js +1 -0
  369. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
  370. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
  371. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
  372. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
  373. package/dist/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
  374. package/dist/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +3 -2
  375. package/dist/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
  376. package/dist/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
  377. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  378. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
  379. package/dist/serialization/resources/billing/types/index.d.ts +3 -2
  380. package/dist/serialization/resources/billing/types/index.js +3 -2
  381. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  382. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  383. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  384. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  385. package/dist/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  386. package/dist/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
  387. package/dist/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
  388. package/dist/serialization/resources/companies/types/LookupUserParams.js +1 -1
  389. package/dist/serialization/resources/dataexports/client/index.d.ts +1 -0
  390. package/dist/serialization/resources/dataexports/client/index.js +17 -0
  391. package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  392. package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
  393. package/dist/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
  394. package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
  395. package/dist/serialization/resources/dataexports/index.d.ts +2 -0
  396. package/dist/serialization/resources/dataexports/index.js +18 -0
  397. package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
  398. package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
  399. package/dist/serialization/resources/dataexports/types/index.d.ts +1 -0
  400. package/dist/serialization/resources/dataexports/types/index.js +17 -0
  401. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
  402. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
  403. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
  404. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
  405. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  406. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
  407. package/dist/serialization/resources/index.d.ts +3 -0
  408. package/dist/serialization/resources/index.js +4 -1
  409. package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
  410. package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
  411. package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
  412. package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
  413. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
  414. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
  415. package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
  416. package/dist/serialization/resources/plans/client/requests/index.js +5 -1
  417. package/dist/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
  418. package/dist/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
  419. package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
  420. package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
  421. package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
  422. package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
  423. package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
  424. package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
  425. package/dist/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
  426. package/dist/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
  427. package/dist/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
  428. package/dist/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
  429. package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
  430. package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
  431. package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
  432. package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
  433. package/dist/serialization/resources/plans/types/index.d.ts +8 -0
  434. package/dist/serialization/resources/plans/types/index.js +8 -0
  435. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
  436. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
  437. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
  438. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
  439. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  440. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  441. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  442. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  443. package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
  444. package/dist/serialization/types/BillingPriceResponseData.js +2 -0
  445. package/dist/serialization/types/BillingPriceView.d.ts +7 -0
  446. package/dist/serialization/types/BillingPriceView.js +7 -0
  447. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
  448. package/dist/serialization/types/BillingProductDetailResponseData.js +2 -0
  449. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  450. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
  451. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  452. package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
  453. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
  454. package/dist/serialization/types/BillingProductPriceResponseData.js +3 -0
  455. package/dist/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
  456. package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
  457. package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
  458. package/dist/serialization/types/BillingProductPricing.js +2 -0
  459. package/dist/serialization/types/BillingProductResponseData.d.ts +2 -0
  460. package/dist/serialization/types/BillingProductResponseData.js +2 -0
  461. package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
  462. package/dist/serialization/types/CheckFlagResponseData.js +1 -0
  463. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
  464. package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
  465. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  466. package/dist/serialization/types/CompanyPlanDetailResponseData.js +2 -0
  467. package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  468. package/dist/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
  469. package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  470. package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
  471. package/dist/serialization/types/DataExportResponseData.d.ts +20 -0
  472. package/dist/serialization/types/DataExportResponseData.js +51 -0
  473. package/dist/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
  474. package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
  475. package/dist/serialization/types/EventSummaryResponseData.d.ts +2 -2
  476. package/dist/serialization/types/EventSummaryResponseData.js +2 -2
  477. package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
  478. package/dist/serialization/types/PlanDetailResponseData.js +2 -0
  479. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
  480. package/dist/serialization/types/PlanEntitlementResponseData.js +2 -0
  481. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  482. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +2 -0
  483. package/dist/serialization/types/PlanTraitResponseData.d.ts +19 -0
  484. package/dist/serialization/types/PlanTraitResponseData.js +50 -0
  485. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
  486. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -0
  487. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
  488. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
  489. package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
  490. package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
  491. package/dist/serialization/types/QuickstartResp.d.ts +12 -0
  492. package/dist/serialization/types/QuickstartResp.js +43 -0
  493. package/dist/serialization/types/UpsertUserRequestBody.d.ts +2 -0
  494. package/dist/serialization/types/UpsertUserRequestBody.js +2 -0
  495. package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
  496. package/dist/serialization/types/UpsertUserSubRequestBody.js +1 -0
  497. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
  498. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +6 -0
  499. package/dist/serialization/types/WebhookResponseData.d.ts +2 -0
  500. package/dist/serialization/types/WebhookResponseData.js +2 -0
  501. package/dist/serialization/types/index.d.ts +7 -0
  502. package/dist/serialization/types/index.js +7 -0
  503. package/errors/SchematicError.d.ts +4 -1
  504. package/errors/SchematicError.js +4 -7
  505. package/events.d.ts +4 -0
  506. package/events.js +41 -5
  507. package/events.test.js +50 -3
  508. package/package.json +3 -2
  509. package/reference.md +412 -15
  510. package/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
  511. package/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
  512. package/serialization/resources/accounts/types/index.d.ts +1 -0
  513. package/serialization/resources/accounts/types/index.js +1 -0
  514. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
  515. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
  516. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
  517. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
  518. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
  519. package/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
  520. package/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
  521. package/serialization/resources/billing/types/CountCustomersParams.js +1 -0
  522. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
  523. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
  524. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
  525. package/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
  526. package/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
  527. package/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +3 -2
  528. package/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
  529. package/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
  530. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  531. package/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
  532. package/serialization/resources/billing/types/index.d.ts +3 -2
  533. package/serialization/resources/billing/types/index.js +3 -2
  534. package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  535. package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  536. package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  537. package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  538. package/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  539. package/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
  540. package/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
  541. package/serialization/resources/companies/types/LookupUserParams.js +1 -1
  542. package/serialization/resources/dataexports/client/index.d.ts +1 -0
  543. package/serialization/resources/dataexports/client/index.js +17 -0
  544. package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  545. package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
  546. package/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
  547. package/serialization/resources/dataexports/client/requests/index.js +5 -0
  548. package/serialization/resources/dataexports/index.d.ts +2 -0
  549. package/serialization/resources/dataexports/index.js +18 -0
  550. package/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
  551. package/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
  552. package/serialization/resources/dataexports/types/index.d.ts +1 -0
  553. package/serialization/resources/dataexports/types/index.js +17 -0
  554. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
  555. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
  556. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
  557. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
  558. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  559. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
  560. package/serialization/resources/index.d.ts +3 -0
  561. package/serialization/resources/index.js +4 -1
  562. package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
  563. package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
  564. package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
  565. package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
  566. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
  567. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
  568. package/serialization/resources/plans/client/requests/index.d.ts +2 -0
  569. package/serialization/resources/plans/client/requests/index.js +5 -1
  570. package/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
  571. package/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
  572. package/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
  573. package/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
  574. package/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
  575. package/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
  576. package/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
  577. package/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
  578. package/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
  579. package/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
  580. package/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
  581. package/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
  582. package/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
  583. package/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
  584. package/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
  585. package/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
  586. package/serialization/resources/plans/types/index.d.ts +8 -0
  587. package/serialization/resources/plans/types/index.js +8 -0
  588. package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
  589. package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
  590. package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
  591. package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
  592. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  593. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  594. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  595. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  596. package/serialization/types/BillingPriceResponseData.d.ts +2 -0
  597. package/serialization/types/BillingPriceResponseData.js +2 -0
  598. package/serialization/types/BillingPriceView.d.ts +7 -0
  599. package/serialization/types/BillingPriceView.js +7 -0
  600. package/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
  601. package/serialization/types/BillingProductDetailResponseData.js +2 -0
  602. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  603. package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
  604. package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
  605. package/serialization/types/BillingProductPlanResponseData.js +2 -0
  606. package/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
  607. package/serialization/types/BillingProductPriceResponseData.js +3 -0
  608. package/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
  609. package/serialization/types/BillingProductPriceTierResponseData.js +46 -0
  610. package/serialization/types/BillingProductPricing.d.ts +2 -0
  611. package/serialization/types/BillingProductPricing.js +2 -0
  612. package/serialization/types/BillingProductResponseData.d.ts +2 -0
  613. package/serialization/types/BillingProductResponseData.js +2 -0
  614. package/serialization/types/CheckFlagResponseData.d.ts +1 -0
  615. package/serialization/types/CheckFlagResponseData.js +1 -0
  616. package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
  617. package/serialization/types/CompanyDetailResponseData.js +2 -1
  618. package/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  619. package/serialization/types/CompanyPlanDetailResponseData.js +2 -0
  620. package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  621. package/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
  622. package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  623. package/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
  624. package/serialization/types/DataExportResponseData.d.ts +20 -0
  625. package/serialization/types/DataExportResponseData.js +51 -0
  626. package/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
  627. package/serialization/types/EntitlementTriggerConfig.js +43 -0
  628. package/serialization/types/EventSummaryResponseData.d.ts +2 -2
  629. package/serialization/types/EventSummaryResponseData.js +2 -2
  630. package/serialization/types/PlanDetailResponseData.d.ts +2 -0
  631. package/serialization/types/PlanDetailResponseData.js +2 -0
  632. package/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
  633. package/serialization/types/PlanEntitlementResponseData.js +2 -0
  634. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  635. package/serialization/types/PlanGroupPlanDetailResponseData.js +2 -0
  636. package/serialization/types/PlanTraitResponseData.d.ts +19 -0
  637. package/serialization/types/PlanTraitResponseData.js +50 -0
  638. package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
  639. package/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -0
  640. package/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
  641. package/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
  642. package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
  643. package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
  644. package/serialization/types/QuickstartResp.d.ts +12 -0
  645. package/serialization/types/QuickstartResp.js +43 -0
  646. package/serialization/types/UpsertUserRequestBody.d.ts +2 -0
  647. package/serialization/types/UpsertUserRequestBody.js +2 -0
  648. package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
  649. package/serialization/types/UpsertUserSubRequestBody.js +1 -0
  650. package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
  651. package/serialization/types/UsageBasedEntitlementRequestBody.js +6 -0
  652. package/serialization/types/WebhookResponseData.d.ts +2 -0
  653. package/serialization/types/WebhookResponseData.js +2 -0
  654. package/serialization/types/index.d.ts +7 -0
  655. package/serialization/types/index.js +7 -0
  656. /package/api/resources/{billing/client/requests/ListCustomersRequest.js → accounts/types/QuickstartResponse.js} +0 -0
  657. /package/api/resources/billing/{types/ListCustomersParams.js → client/requests/ListCustomersWithSubscriptionsRequest.js} +0 -0
  658. /package/api/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsParams.js} +0 -0
  659. /package/{dist/api/resources/billing/client/requests/ListCustomersRequest.js → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js} +0 -0
  660. /package/{dist/api/resources/billing/types/ListCustomersParams.js → api/resources/dataexports/client/requests/CreateDataExportRequestBody.js} +0 -0
  661. /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/dataexports/types/CreateDataExportResponse.js} +0 -0
@@ -33,12 +33,14 @@ export declare class Companies {
33
33
  * @throws {@link Schematic.BadRequestError}
34
34
  * @throws {@link Schematic.UnauthorizedError}
35
35
  * @throws {@link Schematic.ForbiddenError}
36
+ * @throws {@link Schematic.NotFoundError}
36
37
  * @throws {@link Schematic.InternalServerError}
37
38
  *
38
39
  * @example
39
40
  * await client.companies.listCompanies()
40
41
  */
41
- listCompanies(request?: Schematic.ListCompaniesRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.ListCompaniesResponse>;
42
+ listCompanies(request?: Schematic.ListCompaniesRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.ListCompaniesResponse>;
43
+ private __listCompanies;
42
44
  /**
43
45
  * @param {Schematic.UpsertCompanyRequestBody} request
44
46
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -46,6 +48,7 @@ export declare class Companies {
46
48
  * @throws {@link Schematic.BadRequestError}
47
49
  * @throws {@link Schematic.UnauthorizedError}
48
50
  * @throws {@link Schematic.ForbiddenError}
51
+ * @throws {@link Schematic.NotFoundError}
49
52
  * @throws {@link Schematic.InternalServerError}
50
53
  *
51
54
  * @example
@@ -55,7 +58,8 @@ export declare class Companies {
55
58
  * }
56
59
  * })
57
60
  */
58
- upsertCompany(request: Schematic.UpsertCompanyRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.UpsertCompanyResponse>;
61
+ upsertCompany(request: Schematic.UpsertCompanyRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.UpsertCompanyResponse>;
62
+ private __upsertCompany;
59
63
  /**
60
64
  * @param {string} companyId - company_id
61
65
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -68,7 +72,8 @@ export declare class Companies {
68
72
  * @example
69
73
  * await client.companies.getCompany("company_id")
70
74
  */
71
- getCompany(companyId: string, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetCompanyResponse>;
75
+ getCompany(companyId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetCompanyResponse>;
76
+ private __getCompany;
72
77
  /**
73
78
  * @param {string} companyId - company_id
74
79
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -76,12 +81,14 @@ export declare class Companies {
76
81
  * @throws {@link Schematic.BadRequestError}
77
82
  * @throws {@link Schematic.UnauthorizedError}
78
83
  * @throws {@link Schematic.ForbiddenError}
84
+ * @throws {@link Schematic.NotFoundError}
79
85
  * @throws {@link Schematic.InternalServerError}
80
86
  *
81
87
  * @example
82
88
  * await client.companies.deleteCompany("company_id")
83
89
  */
84
- deleteCompany(companyId: string, requestOptions?: Companies.RequestOptions): Promise<Schematic.DeleteCompanyResponse>;
90
+ deleteCompany(companyId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCompanyResponse>;
91
+ private __deleteCompany;
85
92
  /**
86
93
  * @param {Schematic.CountCompaniesRequest} request
87
94
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -89,12 +96,14 @@ export declare class Companies {
89
96
  * @throws {@link Schematic.BadRequestError}
90
97
  * @throws {@link Schematic.UnauthorizedError}
91
98
  * @throws {@link Schematic.ForbiddenError}
99
+ * @throws {@link Schematic.NotFoundError}
92
100
  * @throws {@link Schematic.InternalServerError}
93
101
  *
94
102
  * @example
95
103
  * await client.companies.countCompanies()
96
104
  */
97
- countCompanies(request?: Schematic.CountCompaniesRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.CountCompaniesResponse>;
105
+ countCompanies(request?: Schematic.CountCompaniesRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.CountCompaniesResponse>;
106
+ private __countCompanies;
98
107
  /**
99
108
  * @param {Schematic.UpsertCompanyRequestBody} request
100
109
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -102,6 +111,7 @@ export declare class Companies {
102
111
  * @throws {@link Schematic.BadRequestError}
103
112
  * @throws {@link Schematic.UnauthorizedError}
104
113
  * @throws {@link Schematic.ForbiddenError}
114
+ * @throws {@link Schematic.NotFoundError}
105
115
  * @throws {@link Schematic.InternalServerError}
106
116
  *
107
117
  * @example
@@ -111,7 +121,8 @@ export declare class Companies {
111
121
  * }
112
122
  * })
113
123
  */
114
- createCompany(request: Schematic.UpsertCompanyRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.CreateCompanyResponse>;
124
+ createCompany(request: Schematic.UpsertCompanyRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.CreateCompanyResponse>;
125
+ private __createCompany;
115
126
  /**
116
127
  * @param {Schematic.KeysRequestBody} request
117
128
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -119,6 +130,7 @@ export declare class Companies {
119
130
  * @throws {@link Schematic.BadRequestError}
120
131
  * @throws {@link Schematic.UnauthorizedError}
121
132
  * @throws {@link Schematic.ForbiddenError}
133
+ * @throws {@link Schematic.NotFoundError}
122
134
  * @throws {@link Schematic.InternalServerError}
123
135
  *
124
136
  * @example
@@ -128,7 +140,8 @@ export declare class Companies {
128
140
  * }
129
141
  * })
130
142
  */
131
- deleteCompanyByKeys(request: Schematic.KeysRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.DeleteCompanyByKeysResponse>;
143
+ deleteCompanyByKeys(request: Schematic.KeysRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCompanyByKeysResponse>;
144
+ private __deleteCompanyByKeys;
132
145
  /**
133
146
  * @param {Schematic.LookupCompanyRequest} request
134
147
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -141,13 +154,12 @@ export declare class Companies {
141
154
  * @example
142
155
  * await client.companies.lookupCompany({
143
156
  * keys: {
144
- * "keys": {
145
- * "key": "value"
146
- * }
157
+ * "keys": "keys"
147
158
  * }
148
159
  * })
149
160
  */
150
- lookupCompany(request: Schematic.LookupCompanyRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.LookupCompanyResponse>;
161
+ lookupCompany(request: Schematic.LookupCompanyRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.LookupCompanyResponse>;
162
+ private __lookupCompany;
151
163
  /**
152
164
  * @param {Schematic.GetActiveDealsRequest} request
153
165
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -155,6 +167,7 @@ export declare class Companies {
155
167
  * @throws {@link Schematic.BadRequestError}
156
168
  * @throws {@link Schematic.UnauthorizedError}
157
169
  * @throws {@link Schematic.ForbiddenError}
170
+ * @throws {@link Schematic.NotFoundError}
158
171
  * @throws {@link Schematic.InternalServerError}
159
172
  *
160
173
  * @example
@@ -163,7 +176,8 @@ export declare class Companies {
163
176
  * dealStage: "deal_stage"
164
177
  * })
165
178
  */
166
- getActiveDeals(request: Schematic.GetActiveDealsRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetActiveDealsResponse>;
179
+ getActiveDeals(request: Schematic.GetActiveDealsRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetActiveDealsResponse>;
180
+ private __getActiveDeals;
167
181
  /**
168
182
  * @param {Schematic.ListCompanyMembershipsRequest} request
169
183
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -171,12 +185,14 @@ export declare class Companies {
171
185
  * @throws {@link Schematic.BadRequestError}
172
186
  * @throws {@link Schematic.UnauthorizedError}
173
187
  * @throws {@link Schematic.ForbiddenError}
188
+ * @throws {@link Schematic.NotFoundError}
174
189
  * @throws {@link Schematic.InternalServerError}
175
190
  *
176
191
  * @example
177
192
  * await client.companies.listCompanyMemberships()
178
193
  */
179
- listCompanyMemberships(request?: Schematic.ListCompanyMembershipsRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.ListCompanyMembershipsResponse>;
194
+ listCompanyMemberships(request?: Schematic.ListCompanyMembershipsRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.ListCompanyMembershipsResponse>;
195
+ private __listCompanyMemberships;
180
196
  /**
181
197
  * @param {Schematic.GetOrCreateCompanyMembershipRequestBody} request
182
198
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -184,6 +200,7 @@ export declare class Companies {
184
200
  * @throws {@link Schematic.BadRequestError}
185
201
  * @throws {@link Schematic.UnauthorizedError}
186
202
  * @throws {@link Schematic.ForbiddenError}
203
+ * @throws {@link Schematic.NotFoundError}
187
204
  * @throws {@link Schematic.InternalServerError}
188
205
  *
189
206
  * @example
@@ -192,7 +209,8 @@ export declare class Companies {
192
209
  * userId: "user_id"
193
210
  * })
194
211
  */
195
- getOrCreateCompanyMembership(request: Schematic.GetOrCreateCompanyMembershipRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetOrCreateCompanyMembershipResponse>;
212
+ getOrCreateCompanyMembership(request: Schematic.GetOrCreateCompanyMembershipRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetOrCreateCompanyMembershipResponse>;
213
+ private __getOrCreateCompanyMembership;
196
214
  /**
197
215
  * @param {string} companyMembershipId - company_membership_id
198
216
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -200,12 +218,14 @@ export declare class Companies {
200
218
  * @throws {@link Schematic.BadRequestError}
201
219
  * @throws {@link Schematic.UnauthorizedError}
202
220
  * @throws {@link Schematic.ForbiddenError}
221
+ * @throws {@link Schematic.NotFoundError}
203
222
  * @throws {@link Schematic.InternalServerError}
204
223
  *
205
224
  * @example
206
225
  * await client.companies.deleteCompanyMembership("company_membership_id")
207
226
  */
208
- deleteCompanyMembership(companyMembershipId: string, requestOptions?: Companies.RequestOptions): Promise<Schematic.DeleteCompanyMembershipResponse>;
227
+ deleteCompanyMembership(companyMembershipId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCompanyMembershipResponse>;
228
+ private __deleteCompanyMembership;
209
229
  /**
210
230
  * @param {Schematic.GetActiveCompanySubscriptionRequest} request
211
231
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -213,12 +233,14 @@ export declare class Companies {
213
233
  * @throws {@link Schematic.BadRequestError}
214
234
  * @throws {@link Schematic.UnauthorizedError}
215
235
  * @throws {@link Schematic.ForbiddenError}
236
+ * @throws {@link Schematic.NotFoundError}
216
237
  * @throws {@link Schematic.InternalServerError}
217
238
  *
218
239
  * @example
219
240
  * await client.companies.getActiveCompanySubscription()
220
241
  */
221
- getActiveCompanySubscription(request?: Schematic.GetActiveCompanySubscriptionRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetActiveCompanySubscriptionResponse>;
242
+ getActiveCompanySubscription(request?: Schematic.GetActiveCompanySubscriptionRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetActiveCompanySubscriptionResponse>;
243
+ private __getActiveCompanySubscription;
222
244
  /**
223
245
  * @param {Schematic.UpsertTraitRequestBody} request
224
246
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -226,6 +248,7 @@ export declare class Companies {
226
248
  * @throws {@link Schematic.BadRequestError}
227
249
  * @throws {@link Schematic.UnauthorizedError}
228
250
  * @throws {@link Schematic.ForbiddenError}
251
+ * @throws {@link Schematic.NotFoundError}
229
252
  * @throws {@link Schematic.InternalServerError}
230
253
  *
231
254
  * @example
@@ -236,7 +259,8 @@ export declare class Companies {
236
259
  * trait: "trait"
237
260
  * })
238
261
  */
239
- upsertCompanyTrait(request: Schematic.UpsertTraitRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.UpsertCompanyTraitResponse>;
262
+ upsertCompanyTrait(request: Schematic.UpsertTraitRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.UpsertCompanyTraitResponse>;
263
+ private __upsertCompanyTrait;
240
264
  /**
241
265
  * @param {Schematic.ListEntityKeyDefinitionsRequest} request
242
266
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -244,12 +268,14 @@ export declare class Companies {
244
268
  * @throws {@link Schematic.BadRequestError}
245
269
  * @throws {@link Schematic.UnauthorizedError}
246
270
  * @throws {@link Schematic.ForbiddenError}
271
+ * @throws {@link Schematic.NotFoundError}
247
272
  * @throws {@link Schematic.InternalServerError}
248
273
  *
249
274
  * @example
250
275
  * await client.companies.listEntityKeyDefinitions()
251
276
  */
252
- listEntityKeyDefinitions(request?: Schematic.ListEntityKeyDefinitionsRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.ListEntityKeyDefinitionsResponse>;
277
+ listEntityKeyDefinitions(request?: Schematic.ListEntityKeyDefinitionsRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.ListEntityKeyDefinitionsResponse>;
278
+ private __listEntityKeyDefinitions;
253
279
  /**
254
280
  * @param {Schematic.CountEntityKeyDefinitionsRequest} request
255
281
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -257,12 +283,14 @@ export declare class Companies {
257
283
  * @throws {@link Schematic.BadRequestError}
258
284
  * @throws {@link Schematic.UnauthorizedError}
259
285
  * @throws {@link Schematic.ForbiddenError}
286
+ * @throws {@link Schematic.NotFoundError}
260
287
  * @throws {@link Schematic.InternalServerError}
261
288
  *
262
289
  * @example
263
290
  * await client.companies.countEntityKeyDefinitions()
264
291
  */
265
- countEntityKeyDefinitions(request?: Schematic.CountEntityKeyDefinitionsRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.CountEntityKeyDefinitionsResponse>;
292
+ countEntityKeyDefinitions(request?: Schematic.CountEntityKeyDefinitionsRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.CountEntityKeyDefinitionsResponse>;
293
+ private __countEntityKeyDefinitions;
266
294
  /**
267
295
  * @param {Schematic.ListEntityTraitDefinitionsRequest} request
268
296
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -270,12 +298,14 @@ export declare class Companies {
270
298
  * @throws {@link Schematic.BadRequestError}
271
299
  * @throws {@link Schematic.UnauthorizedError}
272
300
  * @throws {@link Schematic.ForbiddenError}
301
+ * @throws {@link Schematic.NotFoundError}
273
302
  * @throws {@link Schematic.InternalServerError}
274
303
  *
275
304
  * @example
276
305
  * await client.companies.listEntityTraitDefinitions()
277
306
  */
278
- listEntityTraitDefinitions(request?: Schematic.ListEntityTraitDefinitionsRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.ListEntityTraitDefinitionsResponse>;
307
+ listEntityTraitDefinitions(request?: Schematic.ListEntityTraitDefinitionsRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.ListEntityTraitDefinitionsResponse>;
308
+ private __listEntityTraitDefinitions;
279
309
  /**
280
310
  * @param {Schematic.CreateEntityTraitDefinitionRequestBody} request
281
311
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -283,6 +313,7 @@ export declare class Companies {
283
313
  * @throws {@link Schematic.BadRequestError}
284
314
  * @throws {@link Schematic.UnauthorizedError}
285
315
  * @throws {@link Schematic.ForbiddenError}
316
+ * @throws {@link Schematic.NotFoundError}
286
317
  * @throws {@link Schematic.InternalServerError}
287
318
  *
288
319
  * @example
@@ -292,7 +323,8 @@ export declare class Companies {
292
323
  * traitType: "boolean"
293
324
  * })
294
325
  */
295
- getOrCreateEntityTraitDefinition(request: Schematic.CreateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetOrCreateEntityTraitDefinitionResponse>;
326
+ getOrCreateEntityTraitDefinition(request: Schematic.CreateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetOrCreateEntityTraitDefinitionResponse>;
327
+ private __getOrCreateEntityTraitDefinition;
296
328
  /**
297
329
  * @param {string} entityTraitDefinitionId - entity_trait_definition_id
298
330
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -305,7 +337,8 @@ export declare class Companies {
305
337
  * @example
306
338
  * await client.companies.getEntityTraitDefinition("entity_trait_definition_id")
307
339
  */
308
- getEntityTraitDefinition(entityTraitDefinitionId: string, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetEntityTraitDefinitionResponse>;
340
+ getEntityTraitDefinition(entityTraitDefinitionId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetEntityTraitDefinitionResponse>;
341
+ private __getEntityTraitDefinition;
309
342
  /**
310
343
  * @param {string} entityTraitDefinitionId - entity_trait_definition_id
311
344
  * @param {Schematic.UpdateEntityTraitDefinitionRequestBody} request
@@ -322,7 +355,8 @@ export declare class Companies {
322
355
  * traitType: "boolean"
323
356
  * })
324
357
  */
325
- updateEntityTraitDefinition(entityTraitDefinitionId: string, request: Schematic.UpdateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.UpdateEntityTraitDefinitionResponse>;
358
+ updateEntityTraitDefinition(entityTraitDefinitionId: string, request: Schematic.UpdateEntityTraitDefinitionRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.UpdateEntityTraitDefinitionResponse>;
359
+ private __updateEntityTraitDefinition;
326
360
  /**
327
361
  * @param {Schematic.CountEntityTraitDefinitionsRequest} request
328
362
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -330,12 +364,14 @@ export declare class Companies {
330
364
  * @throws {@link Schematic.BadRequestError}
331
365
  * @throws {@link Schematic.UnauthorizedError}
332
366
  * @throws {@link Schematic.ForbiddenError}
367
+ * @throws {@link Schematic.NotFoundError}
333
368
  * @throws {@link Schematic.InternalServerError}
334
369
  *
335
370
  * @example
336
371
  * await client.companies.countEntityTraitDefinitions()
337
372
  */
338
- countEntityTraitDefinitions(request?: Schematic.CountEntityTraitDefinitionsRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.CountEntityTraitDefinitionsResponse>;
373
+ countEntityTraitDefinitions(request?: Schematic.CountEntityTraitDefinitionsRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.CountEntityTraitDefinitionsResponse>;
374
+ private __countEntityTraitDefinitions;
339
375
  /**
340
376
  * @param {Schematic.GetEntityTraitValuesRequest} request
341
377
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -343,6 +379,7 @@ export declare class Companies {
343
379
  * @throws {@link Schematic.BadRequestError}
344
380
  * @throws {@link Schematic.UnauthorizedError}
345
381
  * @throws {@link Schematic.ForbiddenError}
382
+ * @throws {@link Schematic.NotFoundError}
346
383
  * @throws {@link Schematic.InternalServerError}
347
384
  *
348
385
  * @example
@@ -350,7 +387,8 @@ export declare class Companies {
350
387
  * definitionId: "definition_id"
351
388
  * })
352
389
  */
353
- getEntityTraitValues(request: Schematic.GetEntityTraitValuesRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetEntityTraitValuesResponse>;
390
+ getEntityTraitValues(request: Schematic.GetEntityTraitValuesRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetEntityTraitValuesResponse>;
391
+ private __getEntityTraitValues;
354
392
  /**
355
393
  * @param {Schematic.UpsertTraitRequestBody} request
356
394
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -358,6 +396,7 @@ export declare class Companies {
358
396
  * @throws {@link Schematic.BadRequestError}
359
397
  * @throws {@link Schematic.UnauthorizedError}
360
398
  * @throws {@link Schematic.ForbiddenError}
399
+ * @throws {@link Schematic.NotFoundError}
361
400
  * @throws {@link Schematic.InternalServerError}
362
401
  *
363
402
  * @example
@@ -368,7 +407,8 @@ export declare class Companies {
368
407
  * trait: "trait"
369
408
  * })
370
409
  */
371
- upsertUserTrait(request: Schematic.UpsertTraitRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.UpsertUserTraitResponse>;
410
+ upsertUserTrait(request: Schematic.UpsertTraitRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.UpsertUserTraitResponse>;
411
+ private __upsertUserTrait;
372
412
  /**
373
413
  * @param {Schematic.ListUsersRequest} request
374
414
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -376,12 +416,14 @@ export declare class Companies {
376
416
  * @throws {@link Schematic.BadRequestError}
377
417
  * @throws {@link Schematic.UnauthorizedError}
378
418
  * @throws {@link Schematic.ForbiddenError}
419
+ * @throws {@link Schematic.NotFoundError}
379
420
  * @throws {@link Schematic.InternalServerError}
380
421
  *
381
422
  * @example
382
423
  * await client.companies.listUsers()
383
424
  */
384
- listUsers(request?: Schematic.ListUsersRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.ListUsersResponse>;
425
+ listUsers(request?: Schematic.ListUsersRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.ListUsersResponse>;
426
+ private __listUsers;
385
427
  /**
386
428
  * @param {Schematic.UpsertUserRequestBody} request
387
429
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -389,10 +431,14 @@ export declare class Companies {
389
431
  * @throws {@link Schematic.BadRequestError}
390
432
  * @throws {@link Schematic.UnauthorizedError}
391
433
  * @throws {@link Schematic.ForbiddenError}
434
+ * @throws {@link Schematic.NotFoundError}
392
435
  * @throws {@link Schematic.InternalServerError}
393
436
  *
394
437
  * @example
395
438
  * await client.companies.upsertUser({
439
+ * companies: [{
440
+ * "key": "value"
441
+ * }],
396
442
  * company: {
397
443
  * "key": "value"
398
444
  * },
@@ -401,7 +447,8 @@ export declare class Companies {
401
447
  * }
402
448
  * })
403
449
  */
404
- upsertUser(request: Schematic.UpsertUserRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.UpsertUserResponse>;
450
+ upsertUser(request: Schematic.UpsertUserRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.UpsertUserResponse>;
451
+ private __upsertUser;
405
452
  /**
406
453
  * @param {string} userId - user_id
407
454
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -414,7 +461,8 @@ export declare class Companies {
414
461
  * @example
415
462
  * await client.companies.getUser("user_id")
416
463
  */
417
- getUser(userId: string, requestOptions?: Companies.RequestOptions): Promise<Schematic.GetUserResponse>;
464
+ getUser(userId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetUserResponse>;
465
+ private __getUser;
418
466
  /**
419
467
  * @param {string} userId - user_id
420
468
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -422,12 +470,14 @@ export declare class Companies {
422
470
  * @throws {@link Schematic.BadRequestError}
423
471
  * @throws {@link Schematic.UnauthorizedError}
424
472
  * @throws {@link Schematic.ForbiddenError}
473
+ * @throws {@link Schematic.NotFoundError}
425
474
  * @throws {@link Schematic.InternalServerError}
426
475
  *
427
476
  * @example
428
477
  * await client.companies.deleteUser("user_id")
429
478
  */
430
- deleteUser(userId: string, requestOptions?: Companies.RequestOptions): Promise<Schematic.DeleteUserResponse>;
479
+ deleteUser(userId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.DeleteUserResponse>;
480
+ private __deleteUser;
431
481
  /**
432
482
  * @param {Schematic.CountUsersRequest} request
433
483
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -435,12 +485,14 @@ export declare class Companies {
435
485
  * @throws {@link Schematic.BadRequestError}
436
486
  * @throws {@link Schematic.UnauthorizedError}
437
487
  * @throws {@link Schematic.ForbiddenError}
488
+ * @throws {@link Schematic.NotFoundError}
438
489
  * @throws {@link Schematic.InternalServerError}
439
490
  *
440
491
  * @example
441
492
  * await client.companies.countUsers()
442
493
  */
443
- countUsers(request?: Schematic.CountUsersRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.CountUsersResponse>;
494
+ countUsers(request?: Schematic.CountUsersRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.CountUsersResponse>;
495
+ private __countUsers;
444
496
  /**
445
497
  * @param {Schematic.UpsertUserRequestBody} request
446
498
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -448,10 +500,14 @@ export declare class Companies {
448
500
  * @throws {@link Schematic.BadRequestError}
449
501
  * @throws {@link Schematic.UnauthorizedError}
450
502
  * @throws {@link Schematic.ForbiddenError}
503
+ * @throws {@link Schematic.NotFoundError}
451
504
  * @throws {@link Schematic.InternalServerError}
452
505
  *
453
506
  * @example
454
507
  * await client.companies.createUser({
508
+ * companies: [{
509
+ * "key": "value"
510
+ * }],
455
511
  * company: {
456
512
  * "key": "value"
457
513
  * },
@@ -460,7 +516,8 @@ export declare class Companies {
460
516
  * }
461
517
  * })
462
518
  */
463
- createUser(request: Schematic.UpsertUserRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.CreateUserResponse>;
519
+ createUser(request: Schematic.UpsertUserRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.CreateUserResponse>;
520
+ private __createUser;
464
521
  /**
465
522
  * @param {Schematic.KeysRequestBody} request
466
523
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -468,6 +525,7 @@ export declare class Companies {
468
525
  * @throws {@link Schematic.BadRequestError}
469
526
  * @throws {@link Schematic.UnauthorizedError}
470
527
  * @throws {@link Schematic.ForbiddenError}
528
+ * @throws {@link Schematic.NotFoundError}
471
529
  * @throws {@link Schematic.InternalServerError}
472
530
  *
473
531
  * @example
@@ -477,7 +535,8 @@ export declare class Companies {
477
535
  * }
478
536
  * })
479
537
  */
480
- deleteUserByKeys(request: Schematic.KeysRequestBody, requestOptions?: Companies.RequestOptions): Promise<Schematic.DeleteUserByKeysResponse>;
538
+ deleteUserByKeys(request: Schematic.KeysRequestBody, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.DeleteUserByKeysResponse>;
539
+ private __deleteUserByKeys;
481
540
  /**
482
541
  * @param {Schematic.LookupUserRequest} request
483
542
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -490,13 +549,12 @@ export declare class Companies {
490
549
  * @example
491
550
  * await client.companies.lookupUser({
492
551
  * keys: {
493
- * "keys": {
494
- * "key": "value"
495
- * }
552
+ * "keys": "keys"
496
553
  * }
497
554
  * })
498
555
  */
499
- lookupUser(request: Schematic.LookupUserRequest, requestOptions?: Companies.RequestOptions): Promise<Schematic.LookupUserResponse>;
556
+ lookupUser(request: Schematic.LookupUserRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.LookupUserResponse>;
557
+ private __lookupUser;
500
558
  protected _getCustomAuthorizationHeaders(): Promise<{
501
559
  "X-Schematic-Api-Key": string;
502
560
  }>;