@schematichq/schematic-typescript-node 1.1.10 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1611) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +30 -20
  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 +4 -3
  17. package/api/resources/accesstokens/client/Client.js +33 -16
  18. package/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
  19. package/api/resources/accounts/client/Client.d.ts +51 -14
  20. package/api/resources/accounts/client/Client.js +489 -175
  21. package/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
  22. package/api/resources/accounts/types/index.d.ts +1 -0
  23. package/api/resources/accounts/types/index.js +1 -0
  24. package/api/resources/billing/client/Client.d.ts +64 -26
  25. package/api/resources/billing/client/Client.js +657 -260
  26. package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
  27. package/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
  28. package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +5 -1
  29. package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
  30. package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
  31. package/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
  32. package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
  33. package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
  34. package/api/resources/billing/client/requests/index.d.ts +1 -1
  35. package/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
  36. package/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
  37. package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
  38. package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
  39. package/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.d.ts +8 -0
  40. package/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +10 -0
  41. package/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  42. package/api/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +2 -1
  43. package/{dist/api/resources/billing/types/ListCustomersResponse.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
  44. package/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  45. package/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  46. package/{dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts → api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts} +2 -2
  47. package/{dist/api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → api/resources/billing/types/SearchBillingPricesRequestTiersMode.js} +2 -2
  48. package/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +8 -0
  49. package/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +10 -0
  50. package/api/resources/billing/types/index.d.ts +6 -3
  51. package/api/resources/billing/types/index.js +6 -3
  52. package/api/resources/checkout/client/Client.d.ts +23 -6
  53. package/api/resources/checkout/client/Client.js +125 -52
  54. package/api/resources/companies/client/Client.d.ts +119 -43
  55. package/api/resources/companies/client/Client.js +1306 -434
  56. package/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +66 -0
  57. package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
  58. package/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +66 -0
  59. package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
  60. package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
  61. package/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
  62. package/api/resources/companies/client/requests/index.d.ts +2 -0
  63. package/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +37 -0
  64. package/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +5 -0
  65. package/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
  66. package/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
  67. package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +9 -0
  68. package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +5 -0
  69. package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
  70. package/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
  71. package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  72. package/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +37 -0
  73. package/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +5 -0
  74. package/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
  75. package/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
  76. package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +10 -0
  77. package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +5 -0
  78. package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
  79. package/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
  80. package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  81. package/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  82. package/api/resources/companies/types/LookupUserParams.d.ts +1 -1
  83. package/api/resources/companies/types/index.d.ts +8 -0
  84. package/api/resources/companies/types/index.js +8 -0
  85. package/api/resources/components/client/Client.d.ts +18 -7
  86. package/api/resources/components/client/Client.js +188 -89
  87. package/api/resources/credits/client/Client.d.ts +338 -0
  88. package/api/resources/credits/client/Client.js +2338 -0
  89. package/api/resources/credits/client/index.d.ts +1 -0
  90. package/api/resources/credits/client/index.js +17 -0
  91. package/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +19 -0
  92. package/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +5 -0
  93. package/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +19 -0
  94. package/api/resources/credits/client/requests/CountBillingCreditsRequest.js +5 -0
  95. package/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +20 -0
  96. package/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +5 -0
  97. package/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +22 -0
  98. package/api/resources/credits/client/requests/CountCreditBundlesRequest.js +5 -0
  99. package/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +26 -0
  100. package/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +5 -0
  101. package/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +21 -0
  102. package/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +5 -0
  103. package/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +24 -0
  104. package/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +5 -0
  105. package/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +19 -0
  106. package/api/resources/credits/client/requests/ListBillingCreditsRequest.js +5 -0
  107. package/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +20 -0
  108. package/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +5 -0
  109. package/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +21 -0
  110. package/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +5 -0
  111. package/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +22 -0
  112. package/api/resources/credits/client/requests/ListCreditBundlesRequest.js +5 -0
  113. package/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +19 -0
  114. package/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +5 -0
  115. package/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
  116. package/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +5 -0
  117. package/api/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +11 -0
  118. package/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +5 -0
  119. package/api/resources/credits/client/requests/index.d.ts +14 -0
  120. package/api/resources/credits/client/requests/index.js +2 -0
  121. package/api/resources/credits/index.d.ts +2 -0
  122. package/api/resources/credits/index.js +18 -0
  123. package/api/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +14 -0
  124. package/api/resources/credits/types/CountBillingCreditsGrantsParams.js +5 -0
  125. package/api/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +9 -0
  126. package/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +5 -0
  127. package/api/resources/credits/types/CountBillingCreditsParams.d.ts +14 -0
  128. package/api/resources/credits/types/CountBillingCreditsParams.js +5 -0
  129. package/api/resources/credits/types/CountBillingCreditsResponse.d.ts +9 -0
  130. package/api/resources/credits/types/CountBillingCreditsResponse.js +5 -0
  131. package/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +15 -0
  132. package/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +5 -0
  133. package/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +9 -0
  134. package/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +5 -0
  135. package/api/resources/credits/types/CountCreditBundlesParams.d.ts +17 -0
  136. package/api/resources/credits/types/CountCreditBundlesParams.js +5 -0
  137. package/api/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +8 -0
  138. package/api/resources/credits/types/CountCreditBundlesRequestStatus.js +10 -0
  139. package/api/resources/credits/types/CountCreditBundlesResponse.d.ts +9 -0
  140. package/api/resources/credits/types/CountCreditBundlesResponse.js +5 -0
  141. package/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +8 -0
  142. package/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +10 -0
  143. package/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  144. package/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +12 -0
  145. package/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
  146. package/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
  147. package/api/resources/credits/types/CreateBillingCreditResponse.d.ts +9 -0
  148. package/api/resources/credits/types/CreateBillingCreditResponse.js +5 -0
  149. package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  150. package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +12 -0
  151. package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
  152. package/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +10 -0
  153. package/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +9 -0
  154. package/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +5 -0
  155. package/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +8 -0
  156. package/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +10 -0
  157. package/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +8 -0
  158. package/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +10 -0
  159. package/api/resources/credits/types/CreateCreditBundleResponse.d.ts +9 -0
  160. package/api/resources/credits/types/CreateCreditBundleResponse.js +5 -0
  161. package/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +9 -0
  162. package/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +5 -0
  163. package/api/resources/credits/types/DeleteCreditBundleResponse.d.ts +9 -0
  164. package/api/resources/credits/types/DeleteCreditBundleResponse.js +5 -0
  165. package/api/resources/credits/types/GetCreditBundleResponse.d.ts +9 -0
  166. package/api/resources/credits/types/GetCreditBundleResponse.js +5 -0
  167. package/api/resources/credits/types/GetSingleBillingCreditResponse.d.ts +9 -0
  168. package/api/resources/credits/types/GetSingleBillingCreditResponse.js +5 -0
  169. package/api/resources/credits/types/ListBillingCreditsParams.d.ts +14 -0
  170. package/api/resources/credits/types/ListBillingCreditsParams.js +5 -0
  171. package/api/resources/credits/types/ListBillingCreditsResponse.d.ts +10 -0
  172. package/api/resources/credits/types/ListBillingCreditsResponse.js +5 -0
  173. package/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +15 -0
  174. package/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +5 -0
  175. package/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +10 -0
  176. package/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +5 -0
  177. package/api/resources/credits/types/ListCompanyGrantsParams.d.ts +16 -0
  178. package/api/resources/credits/types/ListCompanyGrantsParams.js +5 -0
  179. package/api/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +8 -0
  180. package/api/resources/credits/types/ListCompanyGrantsRequestDir.js +10 -0
  181. package/api/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
  182. package/api/resources/credits/types/ListCompanyGrantsRequestOrder.js +12 -0
  183. package/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +10 -0
  184. package/api/resources/credits/types/ListCompanyGrantsResponse.js +5 -0
  185. package/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +8 -0
  186. package/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +10 -0
  187. package/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
  188. package/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +12 -0
  189. package/api/resources/credits/types/ListCreditBundlesParams.d.ts +17 -0
  190. package/api/resources/credits/types/ListCreditBundlesParams.js +5 -0
  191. package/api/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +8 -0
  192. package/api/resources/credits/types/ListCreditBundlesRequestStatus.js +10 -0
  193. package/api/resources/credits/types/ListCreditBundlesResponse.d.ts +10 -0
  194. package/api/resources/credits/types/ListCreditBundlesResponse.js +5 -0
  195. package/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +8 -0
  196. package/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +10 -0
  197. package/api/resources/credits/types/ListGrantsForCreditParams.d.ts +14 -0
  198. package/api/resources/credits/types/ListGrantsForCreditParams.js +5 -0
  199. package/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +10 -0
  200. package/api/resources/credits/types/ListGrantsForCreditResponse.js +5 -0
  201. package/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  202. package/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +12 -0
  203. package/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
  204. package/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
  205. package/api/resources/credits/types/UpdateBillingCreditResponse.d.ts +9 -0
  206. package/api/resources/credits/types/UpdateBillingCreditResponse.js +5 -0
  207. package/api/resources/credits/types/UpdateCreditBundleResponse.d.ts +9 -0
  208. package/api/resources/credits/types/UpdateCreditBundleResponse.js +5 -0
  209. package/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +8 -0
  210. package/api/resources/credits/types/ZeroOutGrantRequestBodyReason.js +10 -0
  211. package/api/resources/credits/types/ZeroOutGrantResponse.d.ts +9 -0
  212. package/api/resources/credits/types/ZeroOutGrantResponse.js +5 -0
  213. package/api/resources/credits/types/index.d.ts +45 -0
  214. package/api/resources/credits/types/index.js +61 -0
  215. package/api/resources/crm/client/Client.d.ts +15 -5
  216. package/api/resources/crm/client/Client.js +151 -61
  217. package/api/resources/dataexports/client/Client.d.ts +58 -0
  218. package/api/resources/dataexports/client/Client.js +265 -0
  219. package/api/resources/dataexports/client/index.d.ts +1 -0
  220. package/api/resources/dataexports/client/index.js +17 -0
  221. package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  222. package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
  223. package/api/resources/dataexports/client/requests/index.d.ts +1 -0
  224. package/api/resources/dataexports/client/requests/index.js +2 -0
  225. package/api/resources/dataexports/index.d.ts +2 -0
  226. package/api/resources/dataexports/index.js +18 -0
  227. package/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
  228. package/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
  229. package/api/resources/dataexports/types/index.d.ts +1 -0
  230. package/api/resources/dataexports/types/index.js +17 -0
  231. package/api/resources/entitlements/client/Client.d.ts +57 -22
  232. package/api/resources/entitlements/client/Client.js +538 -239
  233. package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  234. package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
  235. package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
  236. package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  237. package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
  238. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +2 -1
  239. package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -0
  240. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
  241. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
  242. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +2 -1
  243. package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -0
  244. package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  245. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +2 -1
  246. package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -0
  247. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
  248. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
  249. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +2 -1
  250. package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -0
  251. package/api/resources/entitlements/types/index.d.ts +2 -0
  252. package/api/resources/entitlements/types/index.js +2 -0
  253. package/api/resources/events/client/Client.d.ts +16 -6
  254. package/api/resources/events/client/Client.js +168 -76
  255. package/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -1
  256. package/api/resources/events/types/ListEventsParams.d.ts +2 -1
  257. package/api/resources/events/types/ListEventsRequestEventTypesItem.d.ts +9 -0
  258. package/api/resources/events/types/ListEventsRequestEventTypesItem.js +11 -0
  259. package/api/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +9 -0
  260. package/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +11 -0
  261. package/api/resources/events/types/index.d.ts +2 -0
  262. package/api/resources/events/types/index.js +2 -0
  263. package/api/resources/features/client/Client.d.ts +54 -21
  264. package/api/resources/features/client/Client.js +559 -240
  265. package/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -0
  266. package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  267. package/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -0
  268. package/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
  269. package/api/resources/features/types/CountFeaturesParams.d.ts +4 -0
  270. package/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
  271. package/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +17 -0
  272. package/api/resources/features/types/ListFeaturesParams.d.ts +4 -0
  273. package/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
  274. package/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +17 -0
  275. package/api/resources/features/types/index.d.ts +2 -0
  276. package/api/resources/features/types/index.js +2 -0
  277. package/api/resources/index.d.ts +6 -0
  278. package/api/resources/index.js +7 -1
  279. package/api/resources/plangroups/client/Client.d.ts +7 -3
  280. package/api/resources/plangroups/client/Client.js +73 -37
  281. package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  282. package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  283. package/api/resources/plans/client/Client.d.ts +125 -12
  284. package/api/resources/plans/client/Client.js +1011 -172
  285. package/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
  286. package/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
  287. package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
  288. package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
  289. package/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
  290. package/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
  291. package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
  292. package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
  293. package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +8 -2
  294. package/api/resources/plans/client/requests/index.d.ts +4 -0
  295. package/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
  296. package/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
  297. package/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
  298. package/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
  299. package/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
  300. package/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
  301. package/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
  302. package/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
  303. package/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
  304. package/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
  305. package/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
  306. package/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
  307. package/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
  308. package/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
  309. package/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
  310. package/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
  311. package/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +9 -0
  312. package/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +11 -0
  313. package/api/resources/plans/types/index.d.ts +9 -0
  314. package/api/resources/plans/types/index.js +9 -0
  315. package/api/resources/webhooks/client/Client.d.ts +24 -9
  316. package/api/resources/webhooks/client/Client.js +249 -114
  317. package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
  318. package/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
  319. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  320. package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  321. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  322. package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  323. package/api/types/BillingCreditBundleResponseData.d.ts +18 -0
  324. package/api/types/BillingCreditBundleResponseData.js +5 -0
  325. package/api/types/BillingCreditGrantResponseData.d.ts +23 -0
  326. package/api/types/BillingCreditGrantResponseData.js +5 -0
  327. package/api/types/BillingCreditResponseData.d.ts +21 -0
  328. package/api/types/BillingCreditResponseData.js +5 -0
  329. package/api/types/BillingPlanCreditGrantResponseData.d.ts +14 -0
  330. package/api/types/BillingPlanCreditGrantResponseData.js +5 -0
  331. package/api/types/BillingPriceResponseData.d.ts +2 -0
  332. package/api/types/BillingPriceView.d.ts +8 -0
  333. package/api/types/BillingProductDetailResponseData.d.ts +2 -0
  334. package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  335. package/api/types/BillingProductPlanResponseData.d.ts +3 -0
  336. package/api/types/BillingProductPriceResponseData.d.ts +4 -0
  337. package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
  338. package/api/types/BillingProductPriceTierResponseData.js +5 -0
  339. package/api/types/BillingProductPricing.d.ts +2 -0
  340. package/api/types/BillingProductResponseData.d.ts +2 -0
  341. package/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
  342. package/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
  343. package/api/types/CheckFlagResponseData.d.ts +2 -0
  344. package/api/types/CheckoutDataResponseData.d.ts +2 -0
  345. package/api/types/CompanyDetailResponseData.d.ts +1 -0
  346. package/api/types/CompanyOverrideResponseData.d.ts +1 -0
  347. package/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
  348. package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  349. package/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +27 -0
  350. package/api/types/CompanyViewWithFeatureUsageResponseData.js +5 -0
  351. package/api/types/CompatiblePlans.d.ts +7 -0
  352. package/api/types/CompatiblePlans.js +5 -0
  353. package/api/types/CompatiblePlansResponseData.d.ts +7 -0
  354. package/api/types/CompatiblePlansResponseData.js +5 -0
  355. package/api/types/ComponentHydrateResponseData.d.ts +1 -0
  356. package/api/types/ComponentPreviewResponseData.d.ts +1 -0
  357. package/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  358. package/api/types/CreateEntitlementReqCommon.d.ts +1 -0
  359. package/api/types/CreateEntitlementReqCommonValueType.d.ts +2 -1
  360. package/api/types/CreateEntitlementReqCommonValueType.js +1 -0
  361. package/api/types/CreateFlagRequestBody.d.ts +1 -1
  362. package/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
  363. package/api/types/CreatePriceTierRequestBody.d.ts +9 -0
  364. package/api/types/CreatePriceTierRequestBody.js +5 -0
  365. package/api/types/CreditBundlePurchaseResponseData.d.ts +9 -0
  366. package/api/types/CreditBundlePurchaseResponseData.js +5 -0
  367. package/api/types/DataExportResponseData.d.ts +17 -0
  368. package/api/types/DataExportResponseData.js +5 -0
  369. package/api/types/EntitlementTriggerConfig.d.ts +6 -0
  370. package/api/types/EntitlementTriggerConfig.js +5 -0
  371. package/api/types/EventSummaryResponseData.d.ts +2 -2
  372. package/api/types/FeatureUsageDataResponseData.d.ts +14 -0
  373. package/api/types/FeatureUsageDataResponseData.js +5 -0
  374. package/api/types/PlanDetailResponseData.d.ts +3 -0
  375. package/api/types/PlanEntitlementResponseData.d.ts +3 -0
  376. package/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
  377. package/api/types/PlanGroupResponseData.d.ts +1 -0
  378. package/api/types/PlanTraitResponseData.d.ts +16 -0
  379. package/api/types/PlanTraitResponseData.js +5 -0
  380. package/api/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
  381. package/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
  382. package/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
  383. package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
  384. package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
  385. package/api/types/QuickstartResp.d.ts +6 -0
  386. package/api/types/QuickstartResp.js +5 -0
  387. package/api/types/UpdateCreditBundleRequestBody.d.ts +7 -0
  388. package/api/types/UpdateCreditBundleRequestBody.js +5 -0
  389. package/api/types/UpdateEntitlementReqCommon.d.ts +1 -0
  390. package/api/types/UpdateEntitlementReqCommonValueType.d.ts +2 -1
  391. package/api/types/UpdateEntitlementReqCommonValueType.js +1 -0
  392. package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
  393. package/api/types/UpsertTraitRequestBody.d.ts +1 -1
  394. package/api/types/UpsertUserRequestBody.d.ts +8 -3
  395. package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
  396. package/api/types/UsageBasedEntitlementRequestBody.d.ts +11 -1
  397. package/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +11 -0
  398. package/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +13 -0
  399. package/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
  400. package/api/types/WebhookResponseData.d.ts +2 -0
  401. package/api/types/index.d.ts +19 -0
  402. package/api/types/index.js +19 -0
  403. package/core/fetcher/APIResponse.d.ts +10 -0
  404. package/core/fetcher/Fetcher.js +7 -0
  405. package/core/fetcher/Headers.d.ts +2 -0
  406. package/core/fetcher/Headers.js +84 -0
  407. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  408. package/core/fetcher/HttpResponsePromise.js +103 -0
  409. package/core/fetcher/RawResponse.d.ts +29 -0
  410. package/core/fetcher/RawResponse.js +44 -0
  411. package/core/fetcher/custom.js +17 -0
  412. package/core/fetcher/index.d.ts +3 -0
  413. package/core/fetcher/index.js +7 -1
  414. package/dist/Client.d.ts +6 -0
  415. package/dist/Client.js +30 -20
  416. package/dist/api/errors/BadRequestError.d.ts +2 -1
  417. package/dist/api/errors/BadRequestError.js +2 -1
  418. package/dist/api/errors/ForbiddenError.d.ts +2 -1
  419. package/dist/api/errors/ForbiddenError.js +2 -1
  420. package/dist/api/errors/InternalServerError.d.ts +2 -1
  421. package/dist/api/errors/InternalServerError.js +2 -1
  422. package/dist/api/errors/NotFoundError.d.ts +2 -1
  423. package/dist/api/errors/NotFoundError.js +2 -1
  424. package/dist/api/errors/UnauthorizedError.d.ts +2 -1
  425. package/dist/api/errors/UnauthorizedError.js +2 -1
  426. package/dist/api/errors/index.d.ts +1 -1
  427. package/dist/api/errors/index.js +1 -1
  428. package/dist/api/resources/accesstokens/client/Client.d.ts +4 -3
  429. package/dist/api/resources/accesstokens/client/Client.js +33 -16
  430. package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
  431. package/dist/api/resources/accounts/client/Client.d.ts +51 -14
  432. package/dist/api/resources/accounts/client/Client.js +489 -175
  433. package/dist/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
  434. package/dist/api/resources/accounts/types/QuickstartResponse.js +5 -0
  435. package/dist/api/resources/accounts/types/index.d.ts +1 -0
  436. package/dist/api/resources/accounts/types/index.js +1 -0
  437. package/dist/api/resources/billing/client/Client.d.ts +64 -26
  438. package/dist/api/resources/billing/client/Client.js +657 -260
  439. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
  440. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
  441. package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +5 -1
  442. package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
  443. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
  444. package/dist/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
  445. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +5 -0
  446. package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
  447. package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +1 -0
  448. package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
  449. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
  450. package/dist/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
  451. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
  452. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
  453. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.d.ts +8 -0
  454. package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +10 -0
  455. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
  456. package/dist/api/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +2 -1
  457. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
  458. package/{api/resources/billing/types/ListCustomersResponse.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
  459. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
  460. package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
  461. package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +1 -0
  462. package/{api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts → dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts} +2 -2
  463. package/{api/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → dist/api/resources/billing/types/SearchBillingPricesRequestTiersMode.js} +2 -2
  464. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +8 -0
  465. package/dist/api/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +10 -0
  466. package/dist/api/resources/billing/types/index.d.ts +6 -3
  467. package/dist/api/resources/billing/types/index.js +6 -3
  468. package/dist/api/resources/checkout/client/Client.d.ts +23 -6
  469. package/dist/api/resources/checkout/client/Client.js +125 -52
  470. package/dist/api/resources/companies/client/Client.d.ts +119 -43
  471. package/dist/api/resources/companies/client/Client.js +1306 -434
  472. package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +66 -0
  473. package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js +5 -0
  474. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
  475. package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +66 -0
  476. package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js +5 -0
  477. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
  478. package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
  479. package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
  480. package/dist/api/resources/companies/client/requests/index.d.ts +2 -0
  481. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +37 -0
  482. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +5 -0
  483. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
  484. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
  485. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +9 -0
  486. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +5 -0
  487. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
  488. package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
  489. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  490. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +37 -0
  491. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +5 -0
  492. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +11 -0
  493. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +10 -0
  494. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +10 -0
  495. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +5 -0
  496. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +11 -0
  497. package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +10 -0
  498. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  499. package/dist/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  500. package/dist/api/resources/companies/types/LookupUserParams.d.ts +1 -1
  501. package/dist/api/resources/companies/types/index.d.ts +8 -0
  502. package/dist/api/resources/companies/types/index.js +8 -0
  503. package/dist/api/resources/components/client/Client.d.ts +18 -7
  504. package/dist/api/resources/components/client/Client.js +188 -89
  505. package/dist/api/resources/credits/client/Client.d.ts +338 -0
  506. package/dist/api/resources/credits/client/Client.js +2338 -0
  507. package/dist/api/resources/credits/client/index.d.ts +1 -0
  508. package/dist/api/resources/credits/client/index.js +17 -0
  509. package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +19 -0
  510. package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.js +5 -0
  511. package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +19 -0
  512. package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.js +5 -0
  513. package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +20 -0
  514. package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.js +5 -0
  515. package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +22 -0
  516. package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.js +5 -0
  517. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +26 -0
  518. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.js +5 -0
  519. package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +21 -0
  520. package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +5 -0
  521. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +24 -0
  522. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.js +5 -0
  523. package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +19 -0
  524. package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.js +5 -0
  525. package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +20 -0
  526. package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.js +5 -0
  527. package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +21 -0
  528. package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.js +5 -0
  529. package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +22 -0
  530. package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.js +5 -0
  531. package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +19 -0
  532. package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.js +5 -0
  533. package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
  534. package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +5 -0
  535. package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +11 -0
  536. package/dist/api/resources/credits/client/requests/ZeroOutGrantRequestBody.js +5 -0
  537. package/dist/api/resources/credits/client/requests/index.d.ts +14 -0
  538. package/dist/api/resources/credits/client/requests/index.js +2 -0
  539. package/dist/api/resources/credits/index.d.ts +2 -0
  540. package/dist/api/resources/credits/index.js +18 -0
  541. package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +14 -0
  542. package/dist/api/resources/credits/types/CountBillingCreditsGrantsParams.js +5 -0
  543. package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +9 -0
  544. package/dist/api/resources/credits/types/CountBillingCreditsGrantsResponse.js +5 -0
  545. package/dist/api/resources/credits/types/CountBillingCreditsParams.d.ts +14 -0
  546. package/dist/api/resources/credits/types/CountBillingCreditsParams.js +5 -0
  547. package/dist/api/resources/credits/types/CountBillingCreditsResponse.d.ts +9 -0
  548. package/dist/api/resources/credits/types/CountBillingCreditsResponse.js +5 -0
  549. package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +15 -0
  550. package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.js +5 -0
  551. package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +9 -0
  552. package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +5 -0
  553. package/dist/api/resources/credits/types/CountCreditBundlesParams.d.ts +17 -0
  554. package/dist/api/resources/credits/types/CountCreditBundlesParams.js +5 -0
  555. package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +8 -0
  556. package/dist/api/resources/credits/types/CountCreditBundlesRequestStatus.js +10 -0
  557. package/dist/api/resources/credits/types/CountCreditBundlesResponse.d.ts +9 -0
  558. package/dist/api/resources/credits/types/CountCreditBundlesResponse.js +5 -0
  559. package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +8 -0
  560. package/dist/api/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +10 -0
  561. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  562. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +12 -0
  563. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
  564. package/dist/api/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
  565. package/dist/api/resources/credits/types/CreateBillingCreditResponse.d.ts +9 -0
  566. package/dist/api/resources/credits/types/CreateBillingCreditResponse.js +5 -0
  567. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  568. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +12 -0
  569. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
  570. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +10 -0
  571. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +9 -0
  572. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +5 -0
  573. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +8 -0
  574. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +10 -0
  575. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +8 -0
  576. package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +10 -0
  577. package/dist/api/resources/credits/types/CreateCreditBundleResponse.d.ts +9 -0
  578. package/dist/api/resources/credits/types/CreateCreditBundleResponse.js +5 -0
  579. package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +9 -0
  580. package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +5 -0
  581. package/dist/api/resources/credits/types/DeleteCreditBundleResponse.d.ts +9 -0
  582. package/dist/api/resources/credits/types/DeleteCreditBundleResponse.js +5 -0
  583. package/dist/api/resources/credits/types/GetCreditBundleResponse.d.ts +9 -0
  584. package/dist/api/resources/credits/types/GetCreditBundleResponse.js +5 -0
  585. package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.d.ts +9 -0
  586. package/dist/api/resources/credits/types/GetSingleBillingCreditResponse.js +5 -0
  587. package/dist/api/resources/credits/types/ListBillingCreditsParams.d.ts +14 -0
  588. package/dist/api/resources/credits/types/ListBillingCreditsParams.js +5 -0
  589. package/dist/api/resources/credits/types/ListBillingCreditsResponse.d.ts +10 -0
  590. package/dist/api/resources/credits/types/ListBillingCreditsResponse.js +5 -0
  591. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +15 -0
  592. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.js +5 -0
  593. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +10 -0
  594. package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +5 -0
  595. package/dist/api/resources/credits/types/ListCompanyGrantsParams.d.ts +16 -0
  596. package/dist/api/resources/credits/types/ListCompanyGrantsParams.js +5 -0
  597. package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +8 -0
  598. package/dist/api/resources/credits/types/ListCompanyGrantsRequestDir.js +10 -0
  599. package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
  600. package/dist/api/resources/credits/types/ListCompanyGrantsRequestOrder.js +12 -0
  601. package/dist/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +10 -0
  602. package/dist/api/resources/credits/types/ListCompanyGrantsResponse.js +5 -0
  603. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +8 -0
  604. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +10 -0
  605. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
  606. package/dist/api/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +12 -0
  607. package/dist/api/resources/credits/types/ListCreditBundlesParams.d.ts +17 -0
  608. package/dist/api/resources/credits/types/ListCreditBundlesParams.js +5 -0
  609. package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +8 -0
  610. package/dist/api/resources/credits/types/ListCreditBundlesRequestStatus.js +10 -0
  611. package/dist/api/resources/credits/types/ListCreditBundlesResponse.d.ts +10 -0
  612. package/dist/api/resources/credits/types/ListCreditBundlesResponse.js +5 -0
  613. package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +8 -0
  614. package/dist/api/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +10 -0
  615. package/dist/api/resources/credits/types/ListGrantsForCreditParams.d.ts +14 -0
  616. package/dist/api/resources/credits/types/ListGrantsForCreditParams.js +5 -0
  617. package/dist/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +10 -0
  618. package/dist/api/resources/credits/types/ListGrantsForCreditResponse.js +5 -0
  619. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  620. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +12 -0
  621. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +9 -0
  622. package/dist/api/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +11 -0
  623. package/dist/api/resources/credits/types/UpdateBillingCreditResponse.d.ts +9 -0
  624. package/dist/api/resources/credits/types/UpdateBillingCreditResponse.js +5 -0
  625. package/dist/api/resources/credits/types/UpdateCreditBundleResponse.d.ts +9 -0
  626. package/dist/api/resources/credits/types/UpdateCreditBundleResponse.js +5 -0
  627. package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +8 -0
  628. package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.js +10 -0
  629. package/dist/api/resources/credits/types/ZeroOutGrantResponse.d.ts +9 -0
  630. package/dist/api/resources/credits/types/ZeroOutGrantResponse.js +5 -0
  631. package/dist/api/resources/credits/types/index.d.ts +45 -0
  632. package/dist/api/resources/credits/types/index.js +61 -0
  633. package/dist/api/resources/crm/client/Client.d.ts +15 -5
  634. package/dist/api/resources/crm/client/Client.js +151 -61
  635. package/dist/api/resources/dataexports/client/Client.d.ts +58 -0
  636. package/dist/api/resources/dataexports/client/Client.js +265 -0
  637. package/dist/api/resources/dataexports/client/index.d.ts +1 -0
  638. package/dist/api/resources/dataexports/client/index.js +17 -0
  639. package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  640. package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
  641. package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
  642. package/dist/api/resources/dataexports/client/requests/index.js +2 -0
  643. package/dist/api/resources/dataexports/index.d.ts +2 -0
  644. package/dist/api/resources/dataexports/index.js +18 -0
  645. package/dist/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
  646. package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
  647. package/dist/api/resources/dataexports/types/index.d.ts +1 -0
  648. package/dist/api/resources/dataexports/types/index.js +17 -0
  649. package/dist/api/resources/entitlements/client/Client.d.ts +57 -22
  650. package/dist/api/resources/entitlements/client/Client.js +538 -239
  651. package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  652. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
  653. package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
  654. package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  655. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
  656. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +2 -1
  657. package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -0
  658. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
  659. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
  660. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +2 -1
  661. package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -0
  662. package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  663. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +2 -1
  664. package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -0
  665. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +11 -0
  666. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +13 -0
  667. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +2 -1
  668. package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -0
  669. package/dist/api/resources/entitlements/types/index.d.ts +2 -0
  670. package/dist/api/resources/entitlements/types/index.js +2 -0
  671. package/dist/api/resources/events/client/Client.d.ts +16 -6
  672. package/dist/api/resources/events/client/Client.js +168 -76
  673. package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -1
  674. package/dist/api/resources/events/types/ListEventsParams.d.ts +2 -1
  675. package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.d.ts +9 -0
  676. package/dist/api/resources/events/types/ListEventsRequestEventTypesItem.js +11 -0
  677. package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +9 -0
  678. package/dist/api/resources/events/types/ListEventsResponseParamsEventTypesItem.js +11 -0
  679. package/dist/api/resources/events/types/index.d.ts +2 -0
  680. package/dist/api/resources/events/types/index.js +2 -0
  681. package/dist/api/resources/features/client/Client.d.ts +54 -21
  682. package/dist/api/resources/features/client/Client.js +559 -240
  683. package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -0
  684. package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
  685. package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -0
  686. package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +1 -1
  687. package/dist/api/resources/features/types/CountFeaturesParams.d.ts +4 -0
  688. package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
  689. package/dist/api/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +17 -0
  690. package/dist/api/resources/features/types/ListFeaturesParams.d.ts +4 -0
  691. package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +15 -0
  692. package/dist/api/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +17 -0
  693. package/dist/api/resources/features/types/index.d.ts +2 -0
  694. package/dist/api/resources/features/types/index.js +2 -0
  695. package/dist/api/resources/index.d.ts +6 -0
  696. package/dist/api/resources/index.js +7 -1
  697. package/dist/api/resources/plangroups/client/Client.d.ts +7 -3
  698. package/dist/api/resources/plangroups/client/Client.js +73 -37
  699. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  700. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  701. package/dist/api/resources/plans/client/Client.d.ts +125 -12
  702. package/dist/api/resources/plans/client/Client.js +1011 -172
  703. package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
  704. package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
  705. package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
  706. package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
  707. package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
  708. package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
  709. package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
  710. package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
  711. package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +8 -2
  712. package/dist/api/resources/plans/client/requests/index.d.ts +4 -0
  713. package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
  714. package/dist/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
  715. package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
  716. package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
  717. package/dist/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
  718. package/dist/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
  719. package/dist/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
  720. package/dist/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
  721. package/dist/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
  722. package/dist/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
  723. package/dist/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
  724. package/dist/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
  725. package/dist/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
  726. package/dist/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
  727. package/dist/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
  728. package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
  729. package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +9 -0
  730. package/dist/api/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +11 -0
  731. package/dist/api/resources/plans/types/index.d.ts +9 -0
  732. package/dist/api/resources/plans/types/index.js +9 -0
  733. package/dist/api/resources/webhooks/client/Client.d.ts +24 -9
  734. package/dist/api/resources/webhooks/client/Client.js +249 -114
  735. package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
  736. package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
  737. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  738. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  739. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
  740. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  741. package/dist/api/types/BillingCreditBundleResponseData.d.ts +18 -0
  742. package/dist/api/types/BillingCreditBundleResponseData.js +5 -0
  743. package/dist/api/types/BillingCreditGrantResponseData.d.ts +23 -0
  744. package/dist/api/types/BillingCreditGrantResponseData.js +5 -0
  745. package/dist/api/types/BillingCreditResponseData.d.ts +21 -0
  746. package/dist/api/types/BillingCreditResponseData.js +5 -0
  747. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +14 -0
  748. package/dist/api/types/BillingPlanCreditGrantResponseData.js +5 -0
  749. package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
  750. package/dist/api/types/BillingPriceView.d.ts +8 -0
  751. package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -0
  752. package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  753. package/dist/api/types/BillingProductPlanResponseData.d.ts +3 -0
  754. package/dist/api/types/BillingProductPriceResponseData.d.ts +4 -0
  755. package/dist/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
  756. package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
  757. package/dist/api/types/BillingProductPricing.d.ts +2 -0
  758. package/dist/api/types/BillingProductResponseData.d.ts +2 -0
  759. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
  760. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
  761. package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
  762. package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
  763. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  764. package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
  765. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +4 -0
  766. package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  767. package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +27 -0
  768. package/dist/api/types/CompanyViewWithFeatureUsageResponseData.js +5 -0
  769. package/dist/api/types/CompatiblePlans.d.ts +7 -0
  770. package/dist/api/types/CompatiblePlans.js +5 -0
  771. package/dist/api/types/CompatiblePlansResponseData.d.ts +7 -0
  772. package/dist/api/types/CompatiblePlansResponseData.js +5 -0
  773. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
  774. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
  775. package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  776. package/dist/api/types/CreateEntitlementReqCommon.d.ts +1 -0
  777. package/dist/api/types/CreateEntitlementReqCommonValueType.d.ts +2 -1
  778. package/dist/api/types/CreateEntitlementReqCommonValueType.js +1 -0
  779. package/dist/api/types/CreateFlagRequestBody.d.ts +1 -1
  780. package/dist/api/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
  781. package/dist/api/types/CreatePriceTierRequestBody.d.ts +9 -0
  782. package/dist/api/types/CreatePriceTierRequestBody.js +5 -0
  783. package/dist/api/types/CreditBundlePurchaseResponseData.d.ts +9 -0
  784. package/dist/api/types/CreditBundlePurchaseResponseData.js +5 -0
  785. package/dist/api/types/DataExportResponseData.d.ts +17 -0
  786. package/dist/api/types/DataExportResponseData.js +5 -0
  787. package/dist/api/types/EntitlementTriggerConfig.d.ts +6 -0
  788. package/dist/api/types/EntitlementTriggerConfig.js +5 -0
  789. package/dist/api/types/EventSummaryResponseData.d.ts +2 -2
  790. package/dist/api/types/FeatureUsageDataResponseData.d.ts +14 -0
  791. package/dist/api/types/FeatureUsageDataResponseData.js +5 -0
  792. package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
  793. package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -0
  794. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
  795. package/dist/api/types/PlanGroupResponseData.d.ts +1 -0
  796. package/dist/api/types/PlanTraitResponseData.d.ts +16 -0
  797. package/dist/api/types/PlanTraitResponseData.js +5 -0
  798. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
  799. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
  800. package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
  801. package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
  802. package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
  803. package/dist/api/types/QuickstartResp.d.ts +6 -0
  804. package/dist/api/types/QuickstartResp.js +5 -0
  805. package/dist/api/types/UpdateCreditBundleRequestBody.d.ts +7 -0
  806. package/dist/api/types/UpdateCreditBundleRequestBody.js +5 -0
  807. package/dist/api/types/UpdateEntitlementReqCommon.d.ts +1 -0
  808. package/dist/api/types/UpdateEntitlementReqCommonValueType.d.ts +2 -1
  809. package/dist/api/types/UpdateEntitlementReqCommonValueType.js +1 -0
  810. package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
  811. package/dist/api/types/UpsertTraitRequestBody.d.ts +1 -1
  812. package/dist/api/types/UpsertUserRequestBody.d.ts +8 -3
  813. package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
  814. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +11 -1
  815. package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +11 -0
  816. package/dist/api/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +13 -0
  817. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
  818. package/dist/api/types/WebhookResponseData.d.ts +2 -0
  819. package/dist/api/types/index.d.ts +19 -0
  820. package/dist/api/types/index.js +19 -0
  821. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  822. package/dist/core/fetcher/Fetcher.js +7 -0
  823. package/dist/core/fetcher/Headers.d.ts +2 -0
  824. package/dist/core/fetcher/Headers.js +84 -0
  825. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  826. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  827. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  828. package/dist/core/fetcher/RawResponse.js +44 -0
  829. package/dist/core/fetcher/custom.js +17 -0
  830. package/dist/core/fetcher/index.d.ts +3 -0
  831. package/dist/core/fetcher/index.js +7 -1
  832. package/dist/errors/SchematicError.d.ts +4 -1
  833. package/dist/errors/SchematicError.js +4 -7
  834. package/dist/events.d.ts +4 -0
  835. package/dist/events.js +41 -5
  836. package/dist/events.test.js +50 -3
  837. package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
  838. package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -1
  839. package/dist/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
  840. package/dist/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
  841. package/dist/serialization/resources/accounts/types/index.d.ts +1 -0
  842. package/dist/serialization/resources/accounts/types/index.js +1 -0
  843. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -2
  844. package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +6 -2
  845. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
  846. package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
  847. package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
  848. package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
  849. package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
  850. package/dist/serialization/resources/billing/types/CountCustomersParams.js +1 -0
  851. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
  852. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
  853. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.d.ts +10 -0
  854. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +41 -0
  855. package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
  856. package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
  857. package/{serialization/resources/billing/types/ListCustomersParams.d.ts → dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +3 -2
  858. package/{serialization/resources/billing/types/ListCustomersParams.js → dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.js} +3 -2
  859. package/dist/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
  860. package/dist/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
  861. package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  862. package/dist/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
  863. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +2 -0
  864. package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +2 -0
  865. package/dist/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +10 -0
  866. package/dist/serialization/resources/billing/types/{CreateBillingPriceRequestBodyTierMode.js → SearchBillingPricesRequestTiersMode.js} +2 -2
  867. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +10 -0
  868. package/dist/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +41 -0
  869. package/dist/serialization/resources/billing/types/index.d.ts +6 -3
  870. package/dist/serialization/resources/billing/types/index.js +6 -3
  871. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +26 -0
  872. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +57 -0
  873. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
  874. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
  875. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +15 -0
  876. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +46 -0
  877. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
  878. package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
  879. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  880. package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  881. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +26 -0
  882. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +57 -0
  883. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
  884. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
  885. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +15 -0
  886. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +46 -0
  887. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
  888. package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
  889. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  890. package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  891. package/dist/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  892. package/dist/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
  893. package/dist/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
  894. package/dist/serialization/resources/companies/types/LookupUserParams.js +1 -1
  895. package/dist/serialization/resources/companies/types/index.d.ts +8 -0
  896. package/dist/serialization/resources/companies/types/index.js +8 -0
  897. package/dist/serialization/resources/credits/client/index.d.ts +1 -0
  898. package/dist/serialization/resources/credits/client/index.js +17 -0
  899. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +25 -0
  900. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +56 -0
  901. package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +18 -0
  902. package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +49 -0
  903. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +23 -0
  904. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +54 -0
  905. package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
  906. package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +55 -0
  907. package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +13 -0
  908. package/dist/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +44 -0
  909. package/dist/serialization/resources/credits/client/requests/index.d.ts +5 -0
  910. package/dist/serialization/resources/credits/client/requests/index.js +13 -0
  911. package/dist/serialization/resources/credits/index.d.ts +2 -0
  912. package/dist/serialization/resources/credits/index.js +18 -0
  913. package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +15 -0
  914. package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +46 -0
  915. package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +15 -0
  916. package/dist/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +46 -0
  917. package/dist/serialization/resources/credits/types/CountBillingCreditsParams.d.ts +15 -0
  918. package/dist/serialization/resources/credits/types/CountBillingCreditsParams.js +46 -0
  919. package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.d.ts +15 -0
  920. package/dist/serialization/resources/credits/types/CountBillingCreditsResponse.js +46 -0
  921. package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +16 -0
  922. package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +47 -0
  923. package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +15 -0
  924. package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +46 -0
  925. package/dist/serialization/resources/credits/types/CountCreditBundlesParams.d.ts +18 -0
  926. package/dist/serialization/resources/credits/types/CountCreditBundlesParams.js +49 -0
  927. package/dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +10 -0
  928. package/{serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.js → dist/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js} +2 -2
  929. package/dist/serialization/resources/credits/types/CountCreditBundlesResponse.d.ts +15 -0
  930. package/dist/serialization/resources/credits/types/CountCreditBundlesResponse.js +46 -0
  931. package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +10 -0
  932. package/dist/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +41 -0
  933. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  934. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +46 -0
  935. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
  936. package/dist/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
  937. package/dist/serialization/resources/credits/types/CreateBillingCreditResponse.d.ts +14 -0
  938. package/dist/serialization/resources/credits/types/CreateBillingCreditResponse.js +45 -0
  939. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  940. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +41 -0
  941. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
  942. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +41 -0
  943. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +14 -0
  944. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +45 -0
  945. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +10 -0
  946. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +41 -0
  947. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +10 -0
  948. package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +41 -0
  949. package/dist/serialization/resources/credits/types/CreateCreditBundleResponse.d.ts +14 -0
  950. package/dist/serialization/resources/credits/types/CreateCreditBundleResponse.js +45 -0
  951. package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +14 -0
  952. package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +45 -0
  953. package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.d.ts +14 -0
  954. package/dist/serialization/resources/credits/types/DeleteCreditBundleResponse.js +45 -0
  955. package/dist/serialization/resources/credits/types/GetCreditBundleResponse.d.ts +14 -0
  956. package/dist/serialization/resources/credits/types/GetCreditBundleResponse.js +45 -0
  957. package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.d.ts +14 -0
  958. package/dist/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +45 -0
  959. package/dist/serialization/resources/credits/types/ListBillingCreditsParams.d.ts +15 -0
  960. package/dist/serialization/resources/credits/types/ListBillingCreditsParams.js +46 -0
  961. package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.d.ts +15 -0
  962. package/dist/serialization/resources/credits/types/ListBillingCreditsResponse.js +46 -0
  963. package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +16 -0
  964. package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +47 -0
  965. package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +15 -0
  966. package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +46 -0
  967. package/dist/serialization/resources/credits/types/ListCompanyGrantsParams.d.ts +18 -0
  968. package/dist/serialization/resources/credits/types/ListCompanyGrantsParams.js +49 -0
  969. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +10 -0
  970. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestDir.js +41 -0
  971. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
  972. package/dist/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.js +41 -0
  973. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponse.d.ts +15 -0
  974. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponse.js +46 -0
  975. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +10 -0
  976. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +41 -0
  977. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
  978. package/dist/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +41 -0
  979. package/dist/serialization/resources/credits/types/ListCreditBundlesParams.d.ts +18 -0
  980. package/dist/serialization/resources/credits/types/ListCreditBundlesParams.js +49 -0
  981. package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +10 -0
  982. package/dist/serialization/resources/credits/types/ListCreditBundlesRequestStatus.js +41 -0
  983. package/dist/serialization/resources/credits/types/ListCreditBundlesResponse.d.ts +15 -0
  984. package/dist/serialization/resources/credits/types/ListCreditBundlesResponse.js +46 -0
  985. package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +10 -0
  986. package/dist/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +41 -0
  987. package/dist/serialization/resources/credits/types/ListGrantsForCreditParams.d.ts +15 -0
  988. package/dist/serialization/resources/credits/types/ListGrantsForCreditParams.js +46 -0
  989. package/dist/serialization/resources/credits/types/ListGrantsForCreditResponse.d.ts +15 -0
  990. package/dist/serialization/resources/credits/types/ListGrantsForCreditResponse.js +46 -0
  991. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  992. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +46 -0
  993. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
  994. package/dist/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
  995. package/dist/serialization/resources/credits/types/UpdateBillingCreditResponse.d.ts +14 -0
  996. package/dist/serialization/resources/credits/types/UpdateBillingCreditResponse.js +45 -0
  997. package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.d.ts +14 -0
  998. package/dist/serialization/resources/credits/types/UpdateCreditBundleResponse.js +45 -0
  999. package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +10 -0
  1000. package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.js +41 -0
  1001. package/dist/serialization/resources/credits/types/ZeroOutGrantResponse.d.ts +14 -0
  1002. package/dist/serialization/resources/credits/types/ZeroOutGrantResponse.js +45 -0
  1003. package/dist/serialization/resources/credits/types/index.d.ts +45 -0
  1004. package/dist/serialization/resources/credits/types/index.js +61 -0
  1005. package/dist/serialization/resources/dataexports/client/index.d.ts +1 -0
  1006. package/dist/serialization/resources/dataexports/client/index.js +17 -0
  1007. package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  1008. package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
  1009. package/dist/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
  1010. package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
  1011. package/dist/serialization/resources/dataexports/index.d.ts +2 -0
  1012. package/dist/serialization/resources/dataexports/index.js +18 -0
  1013. package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
  1014. package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
  1015. package/dist/serialization/resources/dataexports/types/index.d.ts +1 -0
  1016. package/dist/serialization/resources/dataexports/types/index.js +17 -0
  1017. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  1018. package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +1 -0
  1019. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
  1020. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +13 -1
  1021. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  1022. package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +1 -0
  1023. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
  1024. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +13 -1
  1025. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  1026. package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -1
  1027. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
  1028. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
  1029. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  1030. package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -1
  1031. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  1032. package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
  1033. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  1034. package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -1
  1035. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
  1036. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
  1037. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  1038. package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -1
  1039. package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
  1040. package/dist/serialization/resources/entitlements/types/index.js +2 -0
  1041. package/dist/serialization/resources/events/types/ListEventsParams.d.ts +2 -1
  1042. package/dist/serialization/resources/events/types/ListEventsParams.js +2 -1
  1043. package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.d.ts +10 -0
  1044. package/dist/serialization/resources/events/types/ListEventsRequestEventTypesItem.js +41 -0
  1045. package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +10 -0
  1046. package/dist/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +41 -0
  1047. package/dist/serialization/resources/events/types/index.d.ts +2 -0
  1048. package/dist/serialization/resources/events/types/index.js +2 -0
  1049. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -1
  1050. package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +2 -1
  1051. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -1
  1052. package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +2 -1
  1053. package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
  1054. package/dist/serialization/resources/features/types/CountFeaturesParams.js +2 -0
  1055. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
  1056. package/dist/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +51 -0
  1057. package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +2 -0
  1058. package/dist/serialization/resources/features/types/ListFeaturesParams.js +2 -0
  1059. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
  1060. package/dist/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +51 -0
  1061. package/dist/serialization/resources/features/types/index.d.ts +2 -0
  1062. package/dist/serialization/resources/features/types/index.js +2 -0
  1063. package/dist/serialization/resources/index.d.ts +6 -0
  1064. package/dist/serialization/resources/index.js +7 -1
  1065. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  1066. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  1067. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  1068. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  1069. package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
  1070. package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
  1071. package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
  1072. package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
  1073. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +7 -1
  1074. package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +7 -1
  1075. package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
  1076. package/dist/serialization/resources/plans/client/requests/index.js +5 -1
  1077. package/dist/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
  1078. package/dist/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
  1079. package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
  1080. package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
  1081. package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
  1082. package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
  1083. package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
  1084. package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
  1085. package/dist/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
  1086. package/dist/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
  1087. package/dist/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
  1088. package/dist/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
  1089. package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
  1090. package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
  1091. package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
  1092. package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
  1093. package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +10 -0
  1094. package/dist/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +41 -0
  1095. package/dist/serialization/resources/plans/types/index.d.ts +9 -0
  1096. package/dist/serialization/resources/plans/types/index.js +9 -0
  1097. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
  1098. package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
  1099. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
  1100. package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
  1101. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  1102. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  1103. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  1104. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  1105. package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +24 -0
  1106. package/dist/serialization/types/BillingCreditBundleResponseData.js +55 -0
  1107. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +29 -0
  1108. package/dist/serialization/types/BillingCreditGrantResponseData.js +60 -0
  1109. package/dist/serialization/types/BillingCreditResponseData.d.ts +28 -0
  1110. package/dist/serialization/types/BillingCreditResponseData.js +59 -0
  1111. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +20 -0
  1112. package/dist/serialization/types/BillingPlanCreditGrantResponseData.js +51 -0
  1113. package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
  1114. package/dist/serialization/types/BillingPriceResponseData.js +2 -0
  1115. package/dist/serialization/types/BillingPriceView.d.ts +8 -0
  1116. package/dist/serialization/types/BillingPriceView.js +8 -0
  1117. package/dist/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
  1118. package/dist/serialization/types/BillingProductDetailResponseData.js +2 -0
  1119. package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  1120. package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
  1121. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +3 -0
  1122. package/dist/serialization/types/BillingProductPlanResponseData.js +3 -0
  1123. package/dist/serialization/types/BillingProductPriceResponseData.d.ts +4 -0
  1124. package/dist/serialization/types/BillingProductPriceResponseData.js +4 -0
  1125. package/dist/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
  1126. package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
  1127. package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
  1128. package/dist/serialization/types/BillingProductPricing.js +2 -0
  1129. package/dist/serialization/types/BillingProductResponseData.d.ts +2 -0
  1130. package/dist/serialization/types/BillingProductResponseData.js +2 -0
  1131. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +3 -0
  1132. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.js +3 -0
  1133. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +3 -0
  1134. package/dist/serialization/types/ChangeSubscriptionRequestBody.js +3 -0
  1135. package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
  1136. package/dist/serialization/types/CheckFlagResponseData.js +1 -0
  1137. package/dist/serialization/types/CheckoutDataResponseData.d.ts +4 -0
  1138. package/dist/serialization/types/CheckoutDataResponseData.js +4 -0
  1139. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
  1140. package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
  1141. package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  1142. package/dist/serialization/types/CompanyOverrideResponseData.js +1 -0
  1143. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  1144. package/dist/serialization/types/CompanyPlanDetailResponseData.js +4 -0
  1145. package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  1146. package/dist/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
  1147. package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +39 -0
  1148. package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.js +70 -0
  1149. package/dist/serialization/types/CompatiblePlans.d.ts +13 -0
  1150. package/dist/serialization/types/CompatiblePlans.js +44 -0
  1151. package/dist/serialization/types/CompatiblePlansResponseData.d.ts +13 -0
  1152. package/dist/serialization/types/CompatiblePlansResponseData.js +44 -0
  1153. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
  1154. package/dist/serialization/types/ComponentHydrateResponseData.js +2 -0
  1155. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
  1156. package/dist/serialization/types/ComponentPreviewResponseData.js +2 -0
  1157. package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  1158. package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
  1159. package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
  1160. package/dist/serialization/types/CreateEntitlementReqCommon.js +1 -0
  1161. package/dist/serialization/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  1162. package/dist/serialization/types/CreateEntitlementReqCommonValueType.js +1 -1
  1163. package/dist/serialization/types/CreateFlagRequestBody.d.ts +1 -1
  1164. package/dist/serialization/types/CreateFlagRequestBody.js +1 -1
  1165. package/dist/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
  1166. package/dist/serialization/types/CreateOrUpdateFlagRequestBody.js +1 -1
  1167. package/dist/serialization/types/CreatePriceTierRequestBody.d.ts +15 -0
  1168. package/dist/serialization/types/CreatePriceTierRequestBody.js +46 -0
  1169. package/dist/serialization/types/CreditBundlePurchaseResponseData.d.ts +15 -0
  1170. package/dist/serialization/types/CreditBundlePurchaseResponseData.js +46 -0
  1171. package/dist/serialization/types/DataExportResponseData.d.ts +20 -0
  1172. package/dist/serialization/types/DataExportResponseData.js +51 -0
  1173. package/dist/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
  1174. package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
  1175. package/dist/serialization/types/EventSummaryResponseData.d.ts +2 -2
  1176. package/dist/serialization/types/EventSummaryResponseData.js +2 -2
  1177. package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +20 -0
  1178. package/dist/serialization/types/FeatureUsageDataResponseData.js +51 -0
  1179. package/dist/serialization/types/PlanDetailResponseData.d.ts +3 -0
  1180. package/dist/serialization/types/PlanDetailResponseData.js +3 -0
  1181. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
  1182. package/dist/serialization/types/PlanEntitlementResponseData.js +5 -0
  1183. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
  1184. package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +4 -0
  1185. package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
  1186. package/dist/serialization/types/PlanGroupResponseData.js +2 -0
  1187. package/dist/serialization/types/PlanTraitResponseData.d.ts +19 -0
  1188. package/dist/serialization/types/PlanTraitResponseData.js +50 -0
  1189. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +5 -0
  1190. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +5 -0
  1191. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
  1192. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
  1193. package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
  1194. package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
  1195. package/dist/serialization/types/QuickstartResp.d.ts +12 -0
  1196. package/dist/serialization/types/QuickstartResp.js +43 -0
  1197. package/dist/serialization/types/UpdateCreditBundleRequestBody.d.ts +13 -0
  1198. package/dist/serialization/types/UpdateCreditBundleRequestBody.js +44 -0
  1199. package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
  1200. package/dist/serialization/types/UpdateEntitlementReqCommon.js +1 -0
  1201. package/dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  1202. package/dist/serialization/types/UpdateEntitlementReqCommonValueType.js +1 -1
  1203. package/dist/serialization/types/UpsertUserRequestBody.d.ts +3 -1
  1204. package/dist/serialization/types/UpsertUserRequestBody.js +5 -1
  1205. package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
  1206. package/dist/serialization/types/UpsertUserSubRequestBody.js +1 -0
  1207. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +12 -1
  1208. package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +12 -1
  1209. package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +10 -0
  1210. package/dist/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +41 -0
  1211. package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
  1212. package/dist/serialization/types/UsageBasedEntitlementResponseData.js +1 -0
  1213. package/dist/serialization/types/WebhookResponseData.d.ts +2 -0
  1214. package/dist/serialization/types/WebhookResponseData.js +2 -0
  1215. package/dist/serialization/types/index.d.ts +19 -0
  1216. package/dist/serialization/types/index.js +19 -0
  1217. package/errors/SchematicError.d.ts +4 -1
  1218. package/errors/SchematicError.js +4 -7
  1219. package/events.d.ts +4 -0
  1220. package/events.js +41 -5
  1221. package/events.test.js +50 -3
  1222. package/package.json +4 -3
  1223. package/reference.md +1830 -378
  1224. package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
  1225. package/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.js +0 -1
  1226. package/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
  1227. package/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
  1228. package/serialization/resources/accounts/types/index.d.ts +1 -0
  1229. package/serialization/resources/accounts/types/index.js +1 -0
  1230. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -2
  1231. package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +6 -2
  1232. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
  1233. package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
  1234. package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
  1235. package/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
  1236. package/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
  1237. package/serialization/resources/billing/types/CountCustomersParams.js +1 -0
  1238. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
  1239. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
  1240. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.d.ts +10 -0
  1241. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTiersMode.js +41 -0
  1242. package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
  1243. package/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
  1244. package/{dist/serialization/resources/billing/types/ListCustomersParams.d.ts → serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +3 -2
  1245. package/{dist/serialization/resources/billing/types/ListCustomersParams.js → serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.js} +3 -2
  1246. package/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
  1247. package/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
  1248. package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
  1249. package/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
  1250. package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +2 -0
  1251. package/serialization/resources/billing/types/SearchBillingPricesParams.js +2 -0
  1252. package/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.d.ts +10 -0
  1253. package/serialization/resources/billing/types/SearchBillingPricesRequestTiersMode.js +41 -0
  1254. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.d.ts +10 -0
  1255. package/serialization/resources/billing/types/SearchBillingPricesResponseParamsTiersMode.js +41 -0
  1256. package/serialization/resources/billing/types/index.d.ts +6 -3
  1257. package/serialization/resources/billing/types/index.js +6 -3
  1258. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +26 -0
  1259. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.js +57 -0
  1260. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
  1261. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
  1262. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +15 -0
  1263. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.js +46 -0
  1264. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
  1265. package/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
  1266. package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  1267. package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
  1268. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +26 -0
  1269. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.js +57 -0
  1270. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.d.ts +10 -0
  1271. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterRequestSortOrderDirection.js +41 -0
  1272. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +15 -0
  1273. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.js +46 -0
  1274. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.d.ts +10 -0
  1275. package/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponseParamsSortOrderDirection.js +41 -0
  1276. package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  1277. package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
  1278. package/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
  1279. package/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
  1280. package/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
  1281. package/serialization/resources/companies/types/LookupUserParams.js +1 -1
  1282. package/serialization/resources/companies/types/index.d.ts +8 -0
  1283. package/serialization/resources/companies/types/index.js +8 -0
  1284. package/serialization/resources/credits/client/index.d.ts +1 -0
  1285. package/serialization/resources/credits/client/index.js +17 -0
  1286. package/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +25 -0
  1287. package/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.js +56 -0
  1288. package/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +18 -0
  1289. package/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.js +49 -0
  1290. package/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +23 -0
  1291. package/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.js +54 -0
  1292. package/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +24 -0
  1293. package/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.js +55 -0
  1294. package/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.d.ts +13 -0
  1295. package/serialization/resources/credits/client/requests/ZeroOutGrantRequestBody.js +44 -0
  1296. package/serialization/resources/credits/client/requests/index.d.ts +5 -0
  1297. package/serialization/resources/credits/client/requests/index.js +13 -0
  1298. package/serialization/resources/credits/index.d.ts +2 -0
  1299. package/serialization/resources/credits/index.js +18 -0
  1300. package/serialization/resources/credits/types/CountBillingCreditsGrantsParams.d.ts +15 -0
  1301. package/serialization/resources/credits/types/CountBillingCreditsGrantsParams.js +46 -0
  1302. package/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.d.ts +15 -0
  1303. package/serialization/resources/credits/types/CountBillingCreditsGrantsResponse.js +46 -0
  1304. package/serialization/resources/credits/types/CountBillingCreditsParams.d.ts +15 -0
  1305. package/serialization/resources/credits/types/CountBillingCreditsParams.js +46 -0
  1306. package/serialization/resources/credits/types/CountBillingCreditsResponse.d.ts +15 -0
  1307. package/serialization/resources/credits/types/CountBillingCreditsResponse.js +46 -0
  1308. package/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +16 -0
  1309. package/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.js +47 -0
  1310. package/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.d.ts +15 -0
  1311. package/serialization/resources/credits/types/CountBillingPlanCreditGrantsResponse.js +46 -0
  1312. package/serialization/resources/credits/types/CountCreditBundlesParams.d.ts +18 -0
  1313. package/serialization/resources/credits/types/CountCreditBundlesParams.js +49 -0
  1314. package/serialization/resources/credits/types/CountCreditBundlesRequestStatus.d.ts +10 -0
  1315. package/serialization/resources/credits/types/CountCreditBundlesRequestStatus.js +41 -0
  1316. package/serialization/resources/credits/types/CountCreditBundlesResponse.d.ts +15 -0
  1317. package/serialization/resources/credits/types/CountCreditBundlesResponse.js +46 -0
  1318. package/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.d.ts +10 -0
  1319. package/serialization/resources/credits/types/CountCreditBundlesResponseParamsStatus.js +41 -0
  1320. package/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  1321. package/serialization/resources/credits/types/CreateBillingCreditRequestBodyBurnStrategy.js +46 -0
  1322. package/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
  1323. package/serialization/resources/credits/types/CreateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
  1324. package/serialization/resources/credits/types/CreateBillingCreditResponse.d.ts +14 -0
  1325. package/serialization/resources/credits/types/CreateBillingCreditResponse.js +45 -0
  1326. package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  1327. package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetCadence.js +41 -0
  1328. package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
  1329. package/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetStart.js +41 -0
  1330. package/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.d.ts +14 -0
  1331. package/serialization/resources/credits/types/CreateBillingPlanCreditGrantResponse.js +45 -0
  1332. package/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +10 -0
  1333. package/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.js +41 -0
  1334. package/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.d.ts +10 -0
  1335. package/serialization/resources/credits/types/CreateCreditBundleRequestBodyStatus.js +41 -0
  1336. package/serialization/resources/credits/types/CreateCreditBundleResponse.d.ts +14 -0
  1337. package/serialization/resources/credits/types/CreateCreditBundleResponse.js +45 -0
  1338. package/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +14 -0
  1339. package/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.js +45 -0
  1340. package/serialization/resources/credits/types/DeleteCreditBundleResponse.d.ts +14 -0
  1341. package/serialization/resources/credits/types/DeleteCreditBundleResponse.js +45 -0
  1342. package/serialization/resources/credits/types/GetCreditBundleResponse.d.ts +14 -0
  1343. package/serialization/resources/credits/types/GetCreditBundleResponse.js +45 -0
  1344. package/serialization/resources/credits/types/GetSingleBillingCreditResponse.d.ts +14 -0
  1345. package/serialization/resources/credits/types/GetSingleBillingCreditResponse.js +45 -0
  1346. package/serialization/resources/credits/types/ListBillingCreditsParams.d.ts +15 -0
  1347. package/serialization/resources/credits/types/ListBillingCreditsParams.js +46 -0
  1348. package/serialization/resources/credits/types/ListBillingCreditsResponse.d.ts +15 -0
  1349. package/serialization/resources/credits/types/ListBillingCreditsResponse.js +46 -0
  1350. package/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +16 -0
  1351. package/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.js +47 -0
  1352. package/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +15 -0
  1353. package/serialization/resources/credits/types/ListBillingPlanCreditGrantsResponse.js +46 -0
  1354. package/serialization/resources/credits/types/ListCompanyGrantsParams.d.ts +18 -0
  1355. package/serialization/resources/credits/types/ListCompanyGrantsParams.js +49 -0
  1356. package/serialization/resources/credits/types/ListCompanyGrantsRequestDir.d.ts +10 -0
  1357. package/serialization/resources/credits/types/ListCompanyGrantsRequestDir.js +41 -0
  1358. package/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.d.ts +10 -0
  1359. package/serialization/resources/credits/types/ListCompanyGrantsRequestOrder.js +41 -0
  1360. package/serialization/resources/credits/types/ListCompanyGrantsResponse.d.ts +15 -0
  1361. package/serialization/resources/credits/types/ListCompanyGrantsResponse.js +46 -0
  1362. package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.d.ts +10 -0
  1363. package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsDir.js +41 -0
  1364. package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.d.ts +10 -0
  1365. package/serialization/resources/credits/types/ListCompanyGrantsResponseParamsOrder.js +41 -0
  1366. package/serialization/resources/credits/types/ListCreditBundlesParams.d.ts +18 -0
  1367. package/serialization/resources/credits/types/ListCreditBundlesParams.js +49 -0
  1368. package/serialization/resources/credits/types/ListCreditBundlesRequestStatus.d.ts +10 -0
  1369. package/serialization/resources/credits/types/ListCreditBundlesRequestStatus.js +41 -0
  1370. package/serialization/resources/credits/types/ListCreditBundlesResponse.d.ts +15 -0
  1371. package/serialization/resources/credits/types/ListCreditBundlesResponse.js +46 -0
  1372. package/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.d.ts +10 -0
  1373. package/serialization/resources/credits/types/ListCreditBundlesResponseParamsStatus.js +41 -0
  1374. package/serialization/resources/credits/types/ListGrantsForCreditParams.d.ts +15 -0
  1375. package/serialization/resources/credits/types/ListGrantsForCreditParams.js +46 -0
  1376. package/serialization/resources/credits/types/ListGrantsForCreditResponse.d.ts +15 -0
  1377. package/serialization/resources/credits/types/ListGrantsForCreditResponse.js +46 -0
  1378. package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.d.ts +10 -0
  1379. package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyBurnStrategy.js +46 -0
  1380. package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.d.ts +10 -0
  1381. package/serialization/resources/credits/types/UpdateBillingCreditRequestBodyDefaultRolloverPolicy.js +41 -0
  1382. package/serialization/resources/credits/types/UpdateBillingCreditResponse.d.ts +14 -0
  1383. package/serialization/resources/credits/types/UpdateBillingCreditResponse.js +45 -0
  1384. package/serialization/resources/credits/types/UpdateCreditBundleResponse.d.ts +14 -0
  1385. package/serialization/resources/credits/types/UpdateCreditBundleResponse.js +45 -0
  1386. package/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +10 -0
  1387. package/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.js +41 -0
  1388. package/serialization/resources/credits/types/ZeroOutGrantResponse.d.ts +14 -0
  1389. package/serialization/resources/credits/types/ZeroOutGrantResponse.js +45 -0
  1390. package/serialization/resources/credits/types/index.d.ts +45 -0
  1391. package/serialization/resources/credits/types/index.js +61 -0
  1392. package/serialization/resources/dataexports/client/index.d.ts +1 -0
  1393. package/serialization/resources/dataexports/client/index.js +17 -0
  1394. package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
  1395. package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
  1396. package/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
  1397. package/serialization/resources/dataexports/client/requests/index.js +5 -0
  1398. package/serialization/resources/dataexports/index.d.ts +2 -0
  1399. package/serialization/resources/dataexports/index.js +18 -0
  1400. package/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
  1401. package/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
  1402. package/serialization/resources/dataexports/types/index.d.ts +1 -0
  1403. package/serialization/resources/dataexports/types/index.js +17 -0
  1404. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
  1405. package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +1 -0
  1406. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +13 -1
  1407. package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +13 -1
  1408. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
  1409. package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +1 -0
  1410. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +13 -1
  1411. package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +13 -1
  1412. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  1413. package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyValueType.js +1 -1
  1414. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
  1415. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
  1416. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  1417. package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyValueType.js +1 -1
  1418. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
  1419. package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
  1420. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.d.ts +1 -1
  1421. package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyValueType.js +1 -1
  1422. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.d.ts +10 -0
  1423. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyPriceBehavior.js +41 -0
  1424. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.d.ts +1 -1
  1425. package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyValueType.js +1 -1
  1426. package/serialization/resources/entitlements/types/index.d.ts +2 -0
  1427. package/serialization/resources/entitlements/types/index.js +2 -0
  1428. package/serialization/resources/events/types/ListEventsParams.d.ts +2 -1
  1429. package/serialization/resources/events/types/ListEventsParams.js +2 -1
  1430. package/serialization/resources/events/types/ListEventsRequestEventTypesItem.d.ts +10 -0
  1431. package/serialization/resources/events/types/ListEventsRequestEventTypesItem.js +41 -0
  1432. package/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.d.ts +10 -0
  1433. package/serialization/resources/events/types/ListEventsResponseParamsEventTypesItem.js +41 -0
  1434. package/serialization/resources/events/types/index.d.ts +2 -0
  1435. package/serialization/resources/events/types/index.js +2 -0
  1436. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -1
  1437. package/serialization/resources/features/client/requests/CreateFeatureRequestBody.js +2 -1
  1438. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -1
  1439. package/serialization/resources/features/client/requests/UpdateFeatureRequestBody.js +2 -1
  1440. package/serialization/resources/features/types/CountFeaturesParams.d.ts +2 -0
  1441. package/serialization/resources/features/types/CountFeaturesParams.js +2 -0
  1442. package/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
  1443. package/serialization/resources/features/types/CreateFeatureRequestBodyLifecyclePhase.js +51 -0
  1444. package/serialization/resources/features/types/ListFeaturesParams.d.ts +2 -0
  1445. package/serialization/resources/features/types/ListFeaturesParams.js +2 -0
  1446. package/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.d.ts +10 -0
  1447. package/serialization/resources/features/types/UpdateFeatureRequestBodyLifecyclePhase.js +51 -0
  1448. package/serialization/resources/features/types/index.d.ts +2 -0
  1449. package/serialization/resources/features/types/index.js +2 -0
  1450. package/serialization/resources/index.d.ts +6 -0
  1451. package/serialization/resources/index.js +7 -1
  1452. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  1453. package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +2 -0
  1454. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  1455. package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +2 -0
  1456. package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
  1457. package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
  1458. package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
  1459. package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
  1460. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +7 -1
  1461. package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +7 -1
  1462. package/serialization/resources/plans/client/requests/index.d.ts +2 -0
  1463. package/serialization/resources/plans/client/requests/index.js +5 -1
  1464. package/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
  1465. package/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
  1466. package/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
  1467. package/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
  1468. package/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
  1469. package/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
  1470. package/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
  1471. package/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
  1472. package/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
  1473. package/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
  1474. package/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
  1475. package/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
  1476. package/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
  1477. package/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
  1478. package/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
  1479. package/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
  1480. package/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.d.ts +10 -0
  1481. package/serialization/resources/plans/types/UpsertBillingProductRequestBodyChargeType.js +41 -0
  1482. package/serialization/resources/plans/types/index.d.ts +9 -0
  1483. package/serialization/resources/plans/types/index.js +9 -0
  1484. package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
  1485. package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
  1486. package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
  1487. package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
  1488. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  1489. package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
  1490. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  1491. package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
  1492. package/serialization/types/BillingCreditBundleResponseData.d.ts +24 -0
  1493. package/serialization/types/BillingCreditBundleResponseData.js +55 -0
  1494. package/serialization/types/BillingCreditGrantResponseData.d.ts +29 -0
  1495. package/serialization/types/BillingCreditGrantResponseData.js +60 -0
  1496. package/serialization/types/BillingCreditResponseData.d.ts +28 -0
  1497. package/serialization/types/BillingCreditResponseData.js +59 -0
  1498. package/serialization/types/BillingPlanCreditGrantResponseData.d.ts +20 -0
  1499. package/serialization/types/BillingPlanCreditGrantResponseData.js +51 -0
  1500. package/serialization/types/BillingPriceResponseData.d.ts +2 -0
  1501. package/serialization/types/BillingPriceResponseData.js +2 -0
  1502. package/serialization/types/BillingPriceView.d.ts +8 -0
  1503. package/serialization/types/BillingPriceView.js +8 -0
  1504. package/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
  1505. package/serialization/types/BillingProductDetailResponseData.js +2 -0
  1506. package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
  1507. package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
  1508. package/serialization/types/BillingProductPlanResponseData.d.ts +3 -0
  1509. package/serialization/types/BillingProductPlanResponseData.js +3 -0
  1510. package/serialization/types/BillingProductPriceResponseData.d.ts +4 -0
  1511. package/serialization/types/BillingProductPriceResponseData.js +4 -0
  1512. package/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
  1513. package/serialization/types/BillingProductPriceTierResponseData.js +46 -0
  1514. package/serialization/types/BillingProductPricing.d.ts +2 -0
  1515. package/serialization/types/BillingProductPricing.js +2 -0
  1516. package/serialization/types/BillingProductResponseData.d.ts +2 -0
  1517. package/serialization/types/BillingProductResponseData.js +2 -0
  1518. package/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +3 -0
  1519. package/serialization/types/ChangeSubscriptionInternalRequestBody.js +3 -0
  1520. package/serialization/types/ChangeSubscriptionRequestBody.d.ts +3 -0
  1521. package/serialization/types/ChangeSubscriptionRequestBody.js +3 -0
  1522. package/serialization/types/CheckFlagResponseData.d.ts +1 -0
  1523. package/serialization/types/CheckFlagResponseData.js +1 -0
  1524. package/serialization/types/CheckoutDataResponseData.d.ts +4 -0
  1525. package/serialization/types/CheckoutDataResponseData.js +4 -0
  1526. package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
  1527. package/serialization/types/CompanyDetailResponseData.js +2 -1
  1528. package/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
  1529. package/serialization/types/CompanyOverrideResponseData.js +1 -0
  1530. package/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
  1531. package/serialization/types/CompanyPlanDetailResponseData.js +4 -0
  1532. package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
  1533. package/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
  1534. package/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +39 -0
  1535. package/serialization/types/CompanyViewWithFeatureUsageResponseData.js +70 -0
  1536. package/serialization/types/CompatiblePlans.d.ts +13 -0
  1537. package/serialization/types/CompatiblePlans.js +44 -0
  1538. package/serialization/types/CompatiblePlansResponseData.d.ts +13 -0
  1539. package/serialization/types/CompatiblePlansResponseData.js +44 -0
  1540. package/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
  1541. package/serialization/types/ComponentHydrateResponseData.js +2 -0
  1542. package/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
  1543. package/serialization/types/ComponentPreviewResponseData.js +2 -0
  1544. package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
  1545. package/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
  1546. package/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
  1547. package/serialization/types/CreateEntitlementReqCommon.js +1 -0
  1548. package/serialization/types/CreateEntitlementReqCommonValueType.d.ts +1 -1
  1549. package/serialization/types/CreateEntitlementReqCommonValueType.js +1 -1
  1550. package/serialization/types/CreateFlagRequestBody.d.ts +1 -1
  1551. package/serialization/types/CreateFlagRequestBody.js +1 -1
  1552. package/serialization/types/CreateOrUpdateFlagRequestBody.d.ts +1 -1
  1553. package/serialization/types/CreateOrUpdateFlagRequestBody.js +1 -1
  1554. package/serialization/types/CreatePriceTierRequestBody.d.ts +15 -0
  1555. package/serialization/types/CreatePriceTierRequestBody.js +46 -0
  1556. package/serialization/types/CreditBundlePurchaseResponseData.d.ts +15 -0
  1557. package/serialization/types/CreditBundlePurchaseResponseData.js +46 -0
  1558. package/serialization/types/DataExportResponseData.d.ts +20 -0
  1559. package/serialization/types/DataExportResponseData.js +51 -0
  1560. package/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
  1561. package/serialization/types/EntitlementTriggerConfig.js +43 -0
  1562. package/serialization/types/EventSummaryResponseData.d.ts +2 -2
  1563. package/serialization/types/EventSummaryResponseData.js +2 -2
  1564. package/serialization/types/FeatureUsageDataResponseData.d.ts +20 -0
  1565. package/serialization/types/FeatureUsageDataResponseData.js +51 -0
  1566. package/serialization/types/PlanDetailResponseData.d.ts +3 -0
  1567. package/serialization/types/PlanDetailResponseData.js +3 -0
  1568. package/serialization/types/PlanEntitlementResponseData.d.ts +5 -0
  1569. package/serialization/types/PlanEntitlementResponseData.js +5 -0
  1570. package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
  1571. package/serialization/types/PlanGroupPlanDetailResponseData.js +4 -0
  1572. package/serialization/types/PlanGroupResponseData.d.ts +2 -0
  1573. package/serialization/types/PlanGroupResponseData.js +2 -0
  1574. package/serialization/types/PlanTraitResponseData.d.ts +19 -0
  1575. package/serialization/types/PlanTraitResponseData.js +50 -0
  1576. package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +5 -0
  1577. package/serialization/types/PreviewSubscriptionChangeResponseData.js +5 -0
  1578. package/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
  1579. package/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
  1580. package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
  1581. package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
  1582. package/serialization/types/QuickstartResp.d.ts +12 -0
  1583. package/serialization/types/QuickstartResp.js +43 -0
  1584. package/serialization/types/UpdateCreditBundleRequestBody.d.ts +13 -0
  1585. package/serialization/types/UpdateCreditBundleRequestBody.js +44 -0
  1586. package/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
  1587. package/serialization/types/UpdateEntitlementReqCommon.js +1 -0
  1588. package/serialization/types/UpdateEntitlementReqCommonValueType.d.ts +1 -1
  1589. package/serialization/types/UpdateEntitlementReqCommonValueType.js +1 -1
  1590. package/serialization/types/UpsertUserRequestBody.d.ts +3 -1
  1591. package/serialization/types/UpsertUserRequestBody.js +5 -1
  1592. package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
  1593. package/serialization/types/UpsertUserSubRequestBody.js +1 -0
  1594. package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +12 -1
  1595. package/serialization/types/UsageBasedEntitlementRequestBody.js +12 -1
  1596. package/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.d.ts +10 -0
  1597. package/serialization/types/UsageBasedEntitlementRequestBodyPriceBehavior.js +41 -0
  1598. package/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
  1599. package/serialization/types/UsageBasedEntitlementResponseData.js +1 -0
  1600. package/serialization/types/WebhookResponseData.d.ts +2 -0
  1601. package/serialization/types/WebhookResponseData.js +2 -0
  1602. package/serialization/types/index.d.ts +19 -0
  1603. package/serialization/types/index.js +19 -0
  1604. package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +0 -10
  1605. package/serialization/resources/billing/types/CreateBillingPriceRequestBodyTierMode.d.ts +0 -10
  1606. /package/api/resources/{billing/client/requests/ListCustomersRequest.js → accounts/types/QuickstartResponse.js} +0 -0
  1607. /package/api/resources/billing/{types/ListCustomersParams.js → client/requests/ListCustomersWithSubscriptionsRequest.js} +0 -0
  1608. /package/api/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsParams.js} +0 -0
  1609. /package/{dist/api/resources/billing/client/requests/ListCustomersRequest.js → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js} +0 -0
  1610. /package/{dist/api/resources/billing/types/ListCustomersParams.js → api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.js} +0 -0
  1611. /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.js} +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EntitlementTriggerConfig {
5
+ featureId: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,10 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface EventSummaryResponseData {
5
- companyCount: number;
5
+ companyCount?: number;
6
6
  environmentId: string;
7
7
  eventCount: number;
8
8
  eventSubtype: string;
9
9
  lastSeenAt?: Date;
10
- userCount: number;
10
+ userCount?: number;
11
11
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface FeatureUsageDataResponseData {
5
+ entitlementSource: string;
6
+ entitlementValueType: string;
7
+ featureId: string;
8
+ featureName: string;
9
+ featureType: string;
10
+ hardLimit: string;
11
+ hasAccess: boolean;
12
+ softLimit: string;
13
+ usage: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,7 +5,9 @@ import * as Schematic from "../index";
5
5
  export interface PlanDetailResponseData {
6
6
  audienceType?: string;
7
7
  billingProduct?: Schematic.BillingProductDetailResponseData;
8
+ chargeType: string;
8
9
  companyCount: number;
10
+ controlledBy: string;
9
11
  createdAt: Date;
10
12
  description: string;
11
13
  features: Schematic.FeatureDetailResponseData[];
@@ -16,6 +18,7 @@ export interface PlanDetailResponseData {
16
18
  isTrialable: boolean;
17
19
  monthlyPrice?: Schematic.BillingPriceResponseData;
18
20
  name: string;
21
+ oneTimePrice?: Schematic.BillingPriceResponseData;
19
22
  planType: string;
20
23
  trialDays?: number;
21
24
  updatedAt: Date;
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Schematic from "../index";
5
5
  export interface PlanEntitlementResponseData {
6
+ consumptionRate?: number;
6
7
  createdAt: Date;
7
8
  environmentId: string;
8
9
  feature?: Schematic.FeatureResponseData;
@@ -19,7 +20,9 @@ export interface PlanEntitlementResponseData {
19
20
  ruleIdUsageExceeded?: string;
20
21
  softLimit?: number;
21
22
  updatedAt: Date;
23
+ usageBasedProduct?: Schematic.BillingProductResponseData;
22
24
  valueBool?: boolean;
25
+ valueCredit?: Schematic.BillingCreditResponseData;
23
26
  valueNumeric?: number;
24
27
  valueTrait?: Schematic.EntityTraitDefinitionResponseData;
25
28
  valueTraitId?: string;
@@ -5,7 +5,10 @@ import * as Schematic from "../index";
5
5
  export interface PlanGroupPlanDetailResponseData {
6
6
  audienceType?: string;
7
7
  billingProduct?: Schematic.BillingProductDetailResponseData;
8
+ chargeType: string;
8
9
  companyCount: number;
10
+ compatiblePlanIds: string[];
11
+ controlledBy: string;
9
12
  createdAt: Date;
10
13
  customPlanConfig?: Schematic.CustomPlanViewConfigResponseData;
11
14
  description: string;
@@ -19,6 +22,7 @@ export interface PlanGroupPlanDetailResponseData {
19
22
  isTrialable: boolean;
20
23
  monthlyPrice?: Schematic.BillingPriceResponseData;
21
24
  name: string;
25
+ oneTimePrice?: Schematic.BillingPriceResponseData;
22
26
  planType: string;
23
27
  trialDays?: number;
24
28
  updatedAt: Date;
@@ -6,6 +6,7 @@ import * as Schematic from "../index";
6
6
  * The updated resource
7
7
  */
8
8
  export interface PlanGroupResponseData {
9
+ addOnCompatibilities: Schematic.CompatiblePlansResponseData[];
9
10
  addOnIds: string[];
10
11
  defaultPlanId?: string;
11
12
  id: string;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The updated resource
6
+ */
7
+ export interface PlanTraitResponseData {
8
+ accountId: string;
9
+ createdAt: Date;
10
+ environmentId: string;
11
+ id: string;
12
+ planId: string;
13
+ traitId: string;
14
+ traitValue: string;
15
+ updatedAt: Date;
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +1,20 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Schematic from "../index";
4
5
  /**
5
6
  * The requested resource
6
7
  */
7
8
  export interface PreviewSubscriptionChangeResponseData {
8
9
  amountOff: number;
9
10
  dueNow: number;
11
+ finance?: Schematic.PreviewSubscriptionFinanceResponseData;
10
12
  newCharges: number;
13
+ paymentMethodRequired: boolean;
11
14
  percentOff: number;
12
15
  periodStart: Date;
13
16
  promoCodeApplied: boolean;
14
17
  proration: number;
15
18
  trialEnd?: Date;
19
+ usageViolations: Schematic.FeatureUsageResponseData[];
16
20
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../index";
5
+ export interface PreviewSubscriptionFinanceResponseData {
6
+ amountOff: number;
7
+ dueNow: number;
8
+ newCharges: number;
9
+ percentOff: number;
10
+ periodStart: Date;
11
+ promoCodeApplied: boolean;
12
+ proration: number;
13
+ trialEnd?: Date;
14
+ upcomingInvoiceLineItems: Schematic.PreviewSubscriptionUpcomingInvoiceLineItems[];
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PreviewSubscriptionUpcomingInvoiceLineItems {
5
+ amount: number;
6
+ description: string;
7
+ priceId: string;
8
+ proration: boolean;
9
+ quantity: number;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface QuickstartResp {
5
+ ok: boolean;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UpdateCreditBundleRequestBody {
5
+ bundleId: string;
6
+ quantity: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,6 +6,7 @@ export interface UpdateEntitlementReqCommon {
6
6
  metricPeriod?: Schematic.UpdateEntitlementReqCommonMetricPeriod;
7
7
  metricPeriodMonthReset?: Schematic.UpdateEntitlementReqCommonMetricPeriodMonthReset;
8
8
  valueBool?: boolean;
9
+ valueCreditId?: string;
9
10
  valueNumeric?: number;
10
11
  valueTraitId?: string;
11
12
  valueType: Schematic.UpdateEntitlementReqCommonValueType;
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type UpdateEntitlementReqCommonValueType = "boolean" | "numeric" | "trait" | "unlimited";
4
+ export type UpdateEntitlementReqCommonValueType = "boolean" | "credit" | "numeric" | "trait" | "unlimited";
5
5
  export declare const UpdateEntitlementReqCommonValueType: {
6
6
  readonly Boolean: "boolean";
7
+ readonly Credit: "credit";
7
8
  readonly Numeric: "numeric";
8
9
  readonly Trait: "trait";
9
10
  readonly Unlimited: "unlimited";
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UpdateEntitlementReqCommonValueType = void 0;
7
7
  exports.UpdateEntitlementReqCommonValueType = {
8
8
  Boolean: "boolean",
9
+ Credit: "credit",
9
10
  Numeric: "numeric",
10
11
  Trait: "trait",
11
12
  Unlimited: "unlimited",
@@ -4,6 +4,7 @@
4
4
  export interface UpsertCompanyRequestBody {
5
5
  /** If you know the Schematic ID, you can use that here instead of keys */
6
6
  id?: string;
7
+ /** See [Key Management](https://docs.schematichq.com/developer_resources/key_management) for more information */
7
8
  keys: Record<string, string>;
8
9
  lastSeenAt?: Date;
9
10
  name?: string;
@@ -4,7 +4,7 @@
4
4
  export interface UpsertTraitRequestBody {
5
5
  /** Amount to increment the trait by (positive or negative) */
6
6
  incr?: number;
7
- /** Key/value pairs too identify a company or user */
7
+ /** Key/value pairs to identify a company or user */
8
8
  keys: Record<string, string>;
9
9
  /** Value to set the trait to */
10
10
  set?: string;
@@ -2,12 +2,17 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface UpsertUserRequestBody {
5
- /** Optionally specify company using key/value pairs */
6
- company: Record<string, string>;
7
- /** Optionally specify company using Schematic company ID */
5
+ /** Optionally specify companies using array of key/value pairs */
6
+ companies?: Record<string, string>[];
7
+ /** Add user to this company. Takes priority over companies. For exhaustive list of companies, use companies */
8
+ company?: Record<string, string>;
9
+ /** Add user to this company. Takes priority over company_ids. For exhaustive list of companies, use company_ids */
8
10
  companyId?: string;
11
+ /** Optionally specify companies using Schematic company ID */
12
+ companyIds?: string[];
9
13
  /** If you know the Schematic ID, you can use that here instead of keys */
10
14
  id?: string;
15
+ /** See [Key Management](https://docs.schematichq.com/developer_resources/key_management) for more information */
11
16
  keys: Record<string, string>;
12
17
  lastSeenAt?: Date;
13
18
  name?: string;
@@ -2,10 +2,13 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface UpsertUserSubRequestBody {
5
- /** Optionally specify company using Schematic company ID */
5
+ /** Add user to this company. Takes priority over company_ids. For exhaustive list of companies, use company_ids */
6
6
  companyId?: string;
7
+ /** Optionally specify companies using Schematic company ID */
8
+ companyIds?: string[];
7
9
  /** If you know the Schematic ID, you can use that here instead of keys */
8
10
  id?: string;
11
+ /** See [Key Management](https://docs.schematichq.com/developer_resources/key_management) for more information */
9
12
  keys: Record<string, string>;
10
13
  lastSeenAt?: Date;
11
14
  name?: string;
@@ -1,9 +1,19 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Schematic from "../index";
4
5
  export interface UsageBasedEntitlementRequestBody {
6
+ creditConsumptionRate?: number;
7
+ currency?: string;
5
8
  monthlyMeteredPriceId?: string;
6
- priceBehavior?: string;
9
+ monthlyUnitPrice?: number;
10
+ monthlyUnitPriceDecimal?: string;
11
+ overageBillingProductId?: string;
12
+ priceBehavior?: Schematic.UsageBasedEntitlementRequestBodyPriceBehavior;
13
+ priceTiers: Schematic.CreatePriceTierRequestBody[];
7
14
  softLimit?: number;
15
+ tierMode: string;
8
16
  yearlyMeteredPriceId?: string;
17
+ yearlyUnitPrice?: number;
18
+ yearlyUnitPriceDecimal?: string;
9
19
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type UsageBasedEntitlementRequestBodyPriceBehavior = "pay_as_you_go" | "pay_in_advance" | "overage" | "credit_burndown" | "tier";
5
+ export declare const UsageBasedEntitlementRequestBodyPriceBehavior: {
6
+ readonly PayAsYouGo: "pay_as_you_go";
7
+ readonly PayInAdvance: "pay_in_advance";
8
+ readonly Overage: "overage";
9
+ readonly CreditBurndown: "credit_burndown";
10
+ readonly Tier: "tier";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.UsageBasedEntitlementRequestBodyPriceBehavior = void 0;
7
+ exports.UsageBasedEntitlementRequestBodyPriceBehavior = {
8
+ PayAsYouGo: "pay_as_you_go",
9
+ PayInAdvance: "pay_in_advance",
10
+ Overage: "overage",
11
+ CreditBurndown: "credit_burndown",
12
+ Tier: "tier",
13
+ };
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Schematic from "../index";
5
5
  export interface UsageBasedEntitlementResponseData {
6
+ consumptionRate?: number;
6
7
  featureId: string;
7
8
  meteredPrice?: Schematic.BillingPriceView;
8
9
  metricPeriod?: string;
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Schematic from "../index";
4
5
  export interface WebhookResponseData {
5
6
  createdAt: Date;
7
+ entitlementTriggerConfigs?: Schematic.EntitlementTriggerConfig[];
6
8
  id: string;
7
9
  name: string;
8
10
  requestTypes: string[];
@@ -5,16 +5,21 @@ export * from "./ApiKeyRequestResponseData";
5
5
  export * from "./ApiKeyResponseData";
6
6
  export * from "./AudienceRequestBody";
7
7
  export * from "./BillingCouponResponseData";
8
+ export * from "./BillingCreditBundleResponseData";
9
+ export * from "./BillingCreditGrantResponseData";
10
+ export * from "./BillingCreditResponseData";
8
11
  export * from "./BillingCustomerResponseData";
9
12
  export * from "./BillingCustomerSubscription";
10
13
  export * from "./BillingCustomerWithSubscriptionsResponseData";
11
14
  export * from "./BillingMeterResponseData";
15
+ export * from "./BillingPlanCreditGrantResponseData";
12
16
  export * from "./BillingPriceResponseData";
13
17
  export * from "./BillingPriceView";
14
18
  export * from "./BillingProductDetailResponseData";
15
19
  export * from "./BillingProductForSubscriptionResponseData";
16
20
  export * from "./BillingProductPlanResponseData";
17
21
  export * from "./BillingProductPriceResponseData";
22
+ export * from "./BillingProductPriceTierResponseData";
18
23
  export * from "./BillingProductPricingUsageType";
19
24
  export * from "./BillingProductPricing";
20
25
  export * from "./BillingProductResponseData";
@@ -38,6 +43,9 @@ export * from "./CompanyPlanDetailResponseData";
38
43
  export * from "./CompanyPlanWithBillingSubView";
39
44
  export * from "./CompanyResponseData";
40
45
  export * from "./CompanySubscriptionResponseData";
46
+ export * from "./CompanyViewWithFeatureUsageResponseData";
47
+ export * from "./CompatiblePlans";
48
+ export * from "./CompatiblePlansResponseData";
41
49
  export * from "./ComponentCapabilities";
42
50
  export * from "./ComponentHydrateResponseData";
43
51
  export * from "./ComponentPreviewResponseData";
@@ -66,14 +74,18 @@ export * from "./CreateOrUpdateConditionRequestBody";
66
74
  export * from "./CreateOrUpdateFlagRequestBody";
67
75
  export * from "./CreateOrUpdateRuleRequestBodyRuleType";
68
76
  export * from "./CreateOrUpdateRuleRequestBody";
77
+ export * from "./CreatePriceTierRequestBody";
78
+ export * from "./CreditBundlePurchaseResponseData";
69
79
  export * from "./CrmDealLineItem";
70
80
  export * from "./CrmDealResponseData";
71
81
  export * from "./CrmLineItemResponseData";
72
82
  export * from "./CrmProductResponseData";
73
83
  export * from "./CustomPlanConfig";
74
84
  export * from "./CustomPlanViewConfigResponseData";
85
+ export * from "./DataExportResponseData";
75
86
  export * from "./Decimal";
76
87
  export * from "./DeleteResponse";
88
+ export * from "./EntitlementTriggerConfig";
77
89
  export * from "./EntitlementsInPlan";
78
90
  export * from "./EntityKeyDefinitionResponseData";
79
91
  export * from "./EntityKeyDetailResponseData";
@@ -93,6 +105,7 @@ export * from "./FeatureCompanyUserResponseDataAllocationType";
93
105
  export * from "./FeatureCompanyUserResponseData";
94
106
  export * from "./FeatureDetailResponseData";
95
107
  export * from "./FeatureResponseData";
108
+ export * from "./FeatureUsageDataResponseData";
96
109
  export * from "./FeatureUsageDetailResponseData";
97
110
  export * from "./FeatureUsageResponseDataAllocationType";
98
111
  export * from "./FeatureUsageResponseData";
@@ -118,9 +131,13 @@ export * from "./PlanGroupPlanDetailResponseData";
118
131
  export * from "./PlanGroupPlanEntitlementsOrder";
119
132
  export * from "./PlanGroupResponseData";
120
133
  export * from "./PlanResponseData";
134
+ export * from "./PlanTraitResponseData";
121
135
  export * from "./PreviewObject";
122
136
  export * from "./PreviewObjectResponseData";
123
137
  export * from "./PreviewSubscriptionChangeResponseData";
138
+ export * from "./PreviewSubscriptionFinanceResponseData";
139
+ export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
140
+ export * from "./QuickstartResp";
124
141
  export * from "./RawEventBatchResponseData";
125
142
  export * from "./RawEventResponseData";
126
143
  export * from "./RuleConditionDetailResponseData";
@@ -134,6 +151,7 @@ export * from "./SegmentStatusResp";
134
151
  export * from "./StripeEmbedInfo";
135
152
  export * from "./TemporaryAccessTokenResponseData";
136
153
  export * from "./UpdateAddOnRequestBody";
154
+ export * from "./UpdateCreditBundleRequestBody";
137
155
  export * from "./UpdateEntitlementReqCommonMetricPeriod";
138
156
  export * from "./UpdateEntitlementReqCommonMetricPeriodMonthReset";
139
157
  export * from "./UpdateEntitlementReqCommonValueType";
@@ -144,6 +162,7 @@ export * from "./UpsertCompanyRequestBody";
144
162
  export * from "./UpsertTraitRequestBody";
145
163
  export * from "./UpsertUserRequestBody";
146
164
  export * from "./UpsertUserSubRequestBody";
165
+ export * from "./UsageBasedEntitlementRequestBodyPriceBehavior";
147
166
  export * from "./UsageBasedEntitlementRequestBody";
148
167
  export * from "./UsageBasedEntitlementResponseData";
149
168
  export * from "./UserDetailResponseData";
@@ -21,16 +21,21 @@ __exportStar(require("./ApiKeyRequestResponseData"), exports);
21
21
  __exportStar(require("./ApiKeyResponseData"), exports);
22
22
  __exportStar(require("./AudienceRequestBody"), exports);
23
23
  __exportStar(require("./BillingCouponResponseData"), exports);
24
+ __exportStar(require("./BillingCreditBundleResponseData"), exports);
25
+ __exportStar(require("./BillingCreditGrantResponseData"), exports);
26
+ __exportStar(require("./BillingCreditResponseData"), exports);
24
27
  __exportStar(require("./BillingCustomerResponseData"), exports);
25
28
  __exportStar(require("./BillingCustomerSubscription"), exports);
26
29
  __exportStar(require("./BillingCustomerWithSubscriptionsResponseData"), exports);
27
30
  __exportStar(require("./BillingMeterResponseData"), exports);
31
+ __exportStar(require("./BillingPlanCreditGrantResponseData"), exports);
28
32
  __exportStar(require("./BillingPriceResponseData"), exports);
29
33
  __exportStar(require("./BillingPriceView"), exports);
30
34
  __exportStar(require("./BillingProductDetailResponseData"), exports);
31
35
  __exportStar(require("./BillingProductForSubscriptionResponseData"), exports);
32
36
  __exportStar(require("./BillingProductPlanResponseData"), exports);
33
37
  __exportStar(require("./BillingProductPriceResponseData"), exports);
38
+ __exportStar(require("./BillingProductPriceTierResponseData"), exports);
34
39
  __exportStar(require("./BillingProductPricingUsageType"), exports);
35
40
  __exportStar(require("./BillingProductPricing"), exports);
36
41
  __exportStar(require("./BillingProductResponseData"), exports);
@@ -54,6 +59,9 @@ __exportStar(require("./CompanyPlanDetailResponseData"), exports);
54
59
  __exportStar(require("./CompanyPlanWithBillingSubView"), exports);
55
60
  __exportStar(require("./CompanyResponseData"), exports);
56
61
  __exportStar(require("./CompanySubscriptionResponseData"), exports);
62
+ __exportStar(require("./CompanyViewWithFeatureUsageResponseData"), exports);
63
+ __exportStar(require("./CompatiblePlans"), exports);
64
+ __exportStar(require("./CompatiblePlansResponseData"), exports);
57
65
  __exportStar(require("./ComponentCapabilities"), exports);
58
66
  __exportStar(require("./ComponentHydrateResponseData"), exports);
59
67
  __exportStar(require("./ComponentPreviewResponseData"), exports);
@@ -82,14 +90,18 @@ __exportStar(require("./CreateOrUpdateConditionRequestBody"), exports);
82
90
  __exportStar(require("./CreateOrUpdateFlagRequestBody"), exports);
83
91
  __exportStar(require("./CreateOrUpdateRuleRequestBodyRuleType"), exports);
84
92
  __exportStar(require("./CreateOrUpdateRuleRequestBody"), exports);
93
+ __exportStar(require("./CreatePriceTierRequestBody"), exports);
94
+ __exportStar(require("./CreditBundlePurchaseResponseData"), exports);
85
95
  __exportStar(require("./CrmDealLineItem"), exports);
86
96
  __exportStar(require("./CrmDealResponseData"), exports);
87
97
  __exportStar(require("./CrmLineItemResponseData"), exports);
88
98
  __exportStar(require("./CrmProductResponseData"), exports);
89
99
  __exportStar(require("./CustomPlanConfig"), exports);
90
100
  __exportStar(require("./CustomPlanViewConfigResponseData"), exports);
101
+ __exportStar(require("./DataExportResponseData"), exports);
91
102
  __exportStar(require("./Decimal"), exports);
92
103
  __exportStar(require("./DeleteResponse"), exports);
104
+ __exportStar(require("./EntitlementTriggerConfig"), exports);
93
105
  __exportStar(require("./EntitlementsInPlan"), exports);
94
106
  __exportStar(require("./EntityKeyDefinitionResponseData"), exports);
95
107
  __exportStar(require("./EntityKeyDetailResponseData"), exports);
@@ -109,6 +121,7 @@ __exportStar(require("./FeatureCompanyUserResponseDataAllocationType"), exports)
109
121
  __exportStar(require("./FeatureCompanyUserResponseData"), exports);
110
122
  __exportStar(require("./FeatureDetailResponseData"), exports);
111
123
  __exportStar(require("./FeatureResponseData"), exports);
124
+ __exportStar(require("./FeatureUsageDataResponseData"), exports);
112
125
  __exportStar(require("./FeatureUsageDetailResponseData"), exports);
113
126
  __exportStar(require("./FeatureUsageResponseDataAllocationType"), exports);
114
127
  __exportStar(require("./FeatureUsageResponseData"), exports);
@@ -134,9 +147,13 @@ __exportStar(require("./PlanGroupPlanDetailResponseData"), exports);
134
147
  __exportStar(require("./PlanGroupPlanEntitlementsOrder"), exports);
135
148
  __exportStar(require("./PlanGroupResponseData"), exports);
136
149
  __exportStar(require("./PlanResponseData"), exports);
150
+ __exportStar(require("./PlanTraitResponseData"), exports);
137
151
  __exportStar(require("./PreviewObject"), exports);
138
152
  __exportStar(require("./PreviewObjectResponseData"), exports);
139
153
  __exportStar(require("./PreviewSubscriptionChangeResponseData"), exports);
154
+ __exportStar(require("./PreviewSubscriptionFinanceResponseData"), exports);
155
+ __exportStar(require("./PreviewSubscriptionUpcomingInvoiceLineItems"), exports);
156
+ __exportStar(require("./QuickstartResp"), exports);
140
157
  __exportStar(require("./RawEventBatchResponseData"), exports);
141
158
  __exportStar(require("./RawEventResponseData"), exports);
142
159
  __exportStar(require("./RuleConditionDetailResponseData"), exports);
@@ -150,6 +167,7 @@ __exportStar(require("./SegmentStatusResp"), exports);
150
167
  __exportStar(require("./StripeEmbedInfo"), exports);
151
168
  __exportStar(require("./TemporaryAccessTokenResponseData"), exports);
152
169
  __exportStar(require("./UpdateAddOnRequestBody"), exports);
170
+ __exportStar(require("./UpdateCreditBundleRequestBody"), exports);
153
171
  __exportStar(require("./UpdateEntitlementReqCommonMetricPeriod"), exports);
154
172
  __exportStar(require("./UpdateEntitlementReqCommonMetricPeriodMonthReset"), exports);
155
173
  __exportStar(require("./UpdateEntitlementReqCommonValueType"), exports);
@@ -160,6 +178,7 @@ __exportStar(require("./UpsertCompanyRequestBody"), exports);
160
178
  __exportStar(require("./UpsertTraitRequestBody"), exports);
161
179
  __exportStar(require("./UpsertUserRequestBody"), exports);
162
180
  __exportStar(require("./UpsertUserSubRequestBody"), exports);
181
+ __exportStar(require("./UsageBasedEntitlementRequestBodyPriceBehavior"), exports);
163
182
  __exportStar(require("./UsageBasedEntitlementRequestBody"), exports);
164
183
  __exportStar(require("./UsageBasedEntitlementResponseData"), exports);
165
184
  __exportStar(require("./UserDetailResponseData"), exports);
@@ -1,10 +1,20 @@
1
+ import { RawResponse } from "./RawResponse";
2
+ /**
3
+ * The response of an API call.
4
+ * It is a successful response or a failed response.
5
+ */
1
6
  export type APIResponse<Success, Failure> = SuccessfulResponse<Success> | FailedResponse<Failure>;
2
7
  export interface SuccessfulResponse<T> {
3
8
  ok: true;
4
9
  body: T;
10
+ /**
11
+ * @deprecated Use `rawResponse` instead
12
+ */
5
13
  headers?: Record<string, any>;
14
+ rawResponse: RawResponse;
6
15
  }
7
16
  export interface FailedResponse<T> {
8
17
  ok: false;
9
18
  error: T;
19
+ rawResponse: RawResponse;
10
20
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.fetcher = void 0;
13
13
  exports.fetcherImpl = fetcherImpl;
14
14
  const json_1 = require("../json");
15
+ const RawResponse_1 = require("./RawResponse");
15
16
  const createRequestUrl_1 = require("./createRequestUrl");
16
17
  const getFetchFn_1 = require("./getFetchFn");
17
18
  const getRequestBody_1 = require("./getRequestBody");
@@ -47,6 +48,7 @@ function fetcherImpl(args) {
47
48
  ok: true,
48
49
  body: responseBody,
49
50
  headers: response.headers,
51
+ rawResponse: (0, RawResponse_1.toRawResponse)(response),
50
52
  };
51
53
  }
52
54
  else {
@@ -57,6 +59,7 @@ function fetcherImpl(args) {
57
59
  statusCode: response.status,
58
60
  body: responseBody,
59
61
  },
62
+ rawResponse: (0, RawResponse_1.toRawResponse)(response),
60
63
  };
61
64
  }
62
65
  }
@@ -68,6 +71,7 @@ function fetcherImpl(args) {
68
71
  reason: "unknown",
69
72
  errorMessage: "The user aborted a request",
70
73
  },
74
+ rawResponse: RawResponse_1.abortRawResponse,
71
75
  };
72
76
  }
73
77
  else if (error instanceof Error && error.name === "AbortError") {
@@ -76,6 +80,7 @@ function fetcherImpl(args) {
76
80
  error: {
77
81
  reason: "timeout",
78
82
  },
83
+ rawResponse: RawResponse_1.abortRawResponse,
79
84
  };
80
85
  }
81
86
  else if (error instanceof Error) {
@@ -85,6 +90,7 @@ function fetcherImpl(args) {
85
90
  reason: "unknown",
86
91
  errorMessage: error.message,
87
92
  },
93
+ rawResponse: RawResponse_1.unknownRawResponse,
88
94
  };
89
95
  }
90
96
  return {
@@ -93,6 +99,7 @@ function fetcherImpl(args) {
93
99
  reason: "unknown",
94
100
  errorMessage: (0, json_1.toJson)(error),
95
101
  },
102
+ rawResponse: RawResponse_1.unknownRawResponse,
96
103
  };
97
104
  }
98
105
  });