@paid-ai/paid-node 1.7.0 → 1.8.0

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 (1646) hide show
  1. package/dist/cjs/Client.d.ts +33 -0
  2. package/dist/cjs/Client.js +83 -28
  3. package/dist/cjs/api/errors/BadRequestError.d.ts +1 -2
  4. package/dist/cjs/api/errors/ConflictError.d.ts +1 -2
  5. package/dist/cjs/api/errors/ForbiddenError.d.ts +1 -2
  6. package/dist/cjs/api/errors/InternalServerError.d.ts +1 -2
  7. package/dist/cjs/api/errors/NotFoundError.d.ts +1 -2
  8. package/dist/cjs/api/errors/RequestTimeoutError.d.ts +6 -0
  9. package/dist/cjs/api/errors/RequestTimeoutError.js +50 -0
  10. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +6 -0
  11. package/dist/cjs/api/errors/TooManyRequestsError.js +50 -0
  12. package/dist/cjs/api/errors/index.d.ts +2 -0
  13. package/dist/cjs/api/errors/index.js +2 -0
  14. package/dist/cjs/api/resources/amendments/client/Client.d.ts +83 -0
  15. package/dist/cjs/api/resources/amendments/client/Client.js +313 -0
  16. package/dist/cjs/api/resources/amendments/client/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/amendments/client/index.js +17 -0
  18. package/dist/cjs/api/resources/amendments/client/requests/GetOrderAmendmentOptionsRequest.d.ts +10 -0
  19. package/dist/cjs/api/resources/amendments/client/requests/UnifiedAmendmentExecuteRequest.d.ts +35 -0
  20. package/dist/cjs/api/resources/amendments/client/requests/UnifiedAmendmentExecuteRequest.js +14 -0
  21. package/dist/cjs/api/resources/amendments/client/requests/UnifiedAmendmentPreviewRequest.d.ts +33 -0
  22. package/dist/cjs/api/resources/amendments/client/requests/UnifiedAmendmentPreviewRequest.js +14 -0
  23. package/dist/cjs/api/resources/amendments/client/requests/index.d.ts +3 -0
  24. package/dist/cjs/api/resources/amendments/client/requests/index.js +2 -0
  25. package/dist/cjs/api/resources/amendments/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/amendments/index.js +17 -0
  27. package/dist/cjs/api/resources/analytics/client/Client.d.ts +63 -0
  28. package/dist/cjs/api/resources/analytics/client/Client.js +273 -0
  29. package/dist/cjs/api/resources/analytics/client/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/analytics/client/index.js +17 -0
  31. package/dist/cjs/api/resources/analytics/client/requests/GetSignalsMetadataRequest.d.ts +12 -0
  32. package/dist/cjs/api/resources/analytics/client/requests/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/analytics/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/analytics/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/analytics/index.js +17 -0
  36. package/dist/cjs/api/resources/analyticsExperimental/client/Client.d.ts +69 -0
  37. package/dist/cjs/api/resources/analyticsExperimental/client/Client.js +279 -0
  38. package/dist/cjs/api/resources/analyticsExperimental/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/analyticsExperimental/client/index.js +17 -0
  40. package/dist/cjs/api/resources/analyticsExperimental/client/requests/GetExperimentalSignalsMetadataRequest.d.ts +12 -0
  41. package/dist/cjs/api/resources/analyticsExperimental/client/requests/GetExperimentalSignalsMetadataRequest.js +3 -0
  42. package/dist/cjs/api/resources/analyticsExperimental/client/requests/index.d.ts +1 -0
  43. package/dist/cjs/api/resources/analyticsExperimental/client/requests/index.js +2 -0
  44. package/dist/cjs/api/resources/analyticsExperimental/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/analyticsExperimental/index.js +17 -0
  46. package/dist/cjs/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.ts +3 -1
  47. package/dist/cjs/api/resources/credits/client/Client.d.ts +57 -2
  48. package/dist/cjs/api/resources/credits/client/Client.js +267 -5
  49. package/dist/cjs/api/resources/credits/client/index.d.ts +1 -1
  50. package/dist/cjs/api/resources/credits/client/index.js +15 -0
  51. package/dist/cjs/api/resources/credits/client/requests/CreateCreditCurrencyRequest.d.ts +16 -0
  52. package/dist/cjs/api/resources/credits/client/requests/CreateCreditCurrencyRequest.js +3 -0
  53. package/dist/cjs/api/resources/credits/client/requests/ListCreditCurrenciesRequest.d.ts +9 -0
  54. package/dist/cjs/api/resources/credits/client/requests/ListCreditCurrenciesRequest.js +3 -0
  55. package/dist/cjs/api/resources/credits/client/requests/ListCreditTransactionsRequest.d.ts +25 -0
  56. package/dist/cjs/api/resources/credits/client/requests/ListCreditTransactionsRequest.js +3 -0
  57. package/dist/cjs/api/resources/credits/client/requests/UpdateCreditCurrencyRequest.d.ts +24 -0
  58. package/dist/cjs/api/resources/credits/client/requests/UpdateCreditCurrencyRequest.js +12 -0
  59. package/dist/cjs/api/resources/credits/client/requests/index.d.ts +4 -0
  60. package/dist/cjs/api/resources/credits/client/requests/index.js +2 -0
  61. package/dist/cjs/api/resources/credits/index.d.ts +1 -0
  62. package/dist/cjs/api/resources/credits/index.js +1 -0
  63. package/dist/cjs/api/resources/credits/types/ListCreditCurrenciesRequestStatus.d.ts +6 -0
  64. package/dist/cjs/api/resources/credits/types/ListCreditCurrenciesRequestStatus.js +9 -0
  65. package/dist/cjs/api/resources/credits/types/ListCreditTransactionsRequestType.d.ts +6 -0
  66. package/dist/cjs/api/resources/credits/types/ListCreditTransactionsRequestType.js +9 -0
  67. package/dist/cjs/api/resources/credits/types/index.d.ts +2 -0
  68. package/dist/cjs/api/resources/credits/types/index.js +18 -0
  69. package/dist/cjs/api/resources/customViewsExperimental/client/Client.d.ts +177 -0
  70. package/dist/cjs/api/resources/customViewsExperimental/client/Client.js +688 -0
  71. package/dist/cjs/api/resources/customViewsExperimental/client/index.d.ts +1 -0
  72. package/dist/cjs/api/resources/customViewsExperimental/client/index.js +17 -0
  73. package/dist/cjs/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.d.ts +66 -0
  74. package/dist/cjs/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.js +26 -0
  75. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.d.ts +22 -0
  76. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.js +3 -0
  77. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewEmbedTokenRequest.d.ts +14 -0
  78. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewEmbedTokenRequest.js +3 -0
  79. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewRequest.d.ts +9 -0
  80. package/dist/cjs/api/resources/customViewsExperimental/client/requests/GetCustomViewRequest.js +3 -0
  81. package/dist/cjs/api/resources/customViewsExperimental/client/requests/PublishCustomViewRequest.d.ts +9 -0
  82. package/dist/cjs/api/resources/customViewsExperimental/client/requests/PublishCustomViewRequest.js +3 -0
  83. package/dist/cjs/api/resources/customViewsExperimental/client/requests/UpdateCustomViewPeriodRequest.d.ts +46 -0
  84. package/dist/cjs/api/resources/customViewsExperimental/client/requests/UpdateCustomViewPeriodRequest.js +21 -0
  85. package/dist/cjs/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.d.ts +26 -0
  86. package/dist/cjs/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.js +3 -0
  87. package/dist/cjs/api/resources/customViewsExperimental/client/requests/index.d.ts +7 -0
  88. package/dist/cjs/api/resources/customViewsExperimental/client/requests/index.js +2 -0
  89. package/dist/cjs/api/resources/customViewsExperimental/index.d.ts +2 -0
  90. package/dist/cjs/api/resources/customViewsExperimental/index.js +18 -0
  91. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodKind.d.ts +5 -0
  92. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodKind.js +8 -0
  93. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodUnit.d.ts +6 -0
  94. package/dist/cjs/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodUnit.js +9 -0
  95. package/dist/cjs/api/resources/customViewsExperimental/types/index.d.ts +2 -0
  96. package/dist/cjs/api/resources/customViewsExperimental/types/index.js +18 -0
  97. package/dist/cjs/api/resources/customerGroups/client/Client.d.ts +153 -0
  98. package/dist/cjs/api/resources/customerGroups/client/Client.js +636 -0
  99. package/dist/cjs/api/resources/customerGroups/client/index.d.ts +1 -0
  100. package/dist/cjs/api/resources/customerGroups/client/index.js +17 -0
  101. package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.d.ts +14 -0
  102. package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.js +3 -0
  103. package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.d.ts +10 -0
  104. package/dist/cjs/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.js +3 -0
  105. package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.d.ts +14 -0
  106. package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.js +3 -0
  107. package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.d.ts +9 -0
  108. package/dist/cjs/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.js +3 -0
  109. package/dist/cjs/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.d.ts +9 -0
  110. package/dist/cjs/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.js +3 -0
  111. package/dist/cjs/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.d.ts +8 -0
  112. package/dist/cjs/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.js +3 -0
  113. package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.d.ts +14 -0
  114. package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.js +3 -0
  115. package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.d.ts +11 -0
  116. package/dist/cjs/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.js +3 -0
  117. package/dist/cjs/api/resources/customerGroups/client/requests/index.d.ts +8 -0
  118. package/dist/cjs/api/resources/customerGroups/client/requests/index.js +2 -0
  119. package/dist/cjs/api/resources/customerGroups/index.d.ts +1 -0
  120. package/dist/cjs/api/resources/customerGroups/index.js +17 -0
  121. package/dist/cjs/api/resources/customers/client/Client.d.ts +576 -12
  122. package/dist/cjs/api/resources/customers/client/Client.js +2292 -98
  123. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerAliasByExternalIdRequest.d.ts +15 -0
  124. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerAliasByExternalIdRequest.js +3 -0
  125. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerAliasRequest.d.ts +15 -0
  126. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerAliasRequest.js +3 -0
  127. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerRequest.d.ts +1 -1
  128. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitByExternalIdRequest.d.ts +15 -0
  129. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitByExternalIdRequest.js +3 -0
  130. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitRequest.d.ts +15 -0
  131. package/dist/cjs/api/resources/customers/client/requests/CreateCustomerUnitRequest.js +3 -0
  132. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerAliasByExternalIdRequest.d.ts +13 -0
  133. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerAliasByExternalIdRequest.js +3 -0
  134. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerAliasRequest.d.ts +13 -0
  135. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerAliasRequest.js +3 -0
  136. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerByExternalIdRequest.d.ts +2 -1
  137. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerByIdRequest.d.ts +2 -1
  138. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitByExternalIdRequest.d.ts +13 -0
  139. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitByExternalIdRequest.js +3 -0
  140. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitRequest.d.ts +13 -0
  141. package/dist/cjs/api/resources/customers/client/requests/DeleteCustomerUnitRequest.js +3 -0
  142. package/dist/cjs/api/resources/customers/client/requests/EndCustomerUnitCapByExternalIdRequest.d.ts +16 -0
  143. package/dist/cjs/api/resources/customers/client/requests/EndCustomerUnitCapByExternalIdRequest.js +3 -0
  144. package/dist/cjs/api/resources/customers/client/requests/EndCustomerUnitCapRequest.d.ts +16 -0
  145. package/dist/cjs/api/resources/customers/client/requests/EndCustomerUnitCapRequest.js +3 -0
  146. package/dist/cjs/api/resources/customers/client/requests/GetCustomerByExternalIdRequest.d.ts +2 -1
  147. package/dist/cjs/api/resources/customers/client/requests/GetCustomerByIdRequest.d.ts +2 -1
  148. package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.d.ts +2 -1
  149. package/dist/cjs/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.d.ts +2 -1
  150. package/dist/cjs/api/resources/customers/client/requests/GetCustomerStateByExternalIdRequest.d.ts +10 -0
  151. package/dist/cjs/api/resources/customers/client/requests/GetCustomerStateByExternalIdRequest.js +3 -0
  152. package/dist/cjs/api/resources/customers/client/requests/GetCustomerStateByIdRequest.d.ts +10 -0
  153. package/dist/cjs/api/resources/customers/client/requests/GetCustomerStateByIdRequest.js +3 -0
  154. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitByExternalIdRequest.d.ts +13 -0
  155. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitByExternalIdRequest.js +3 -0
  156. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitCapByExternalIdRequest.d.ts +16 -0
  157. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitCapByExternalIdRequest.js +3 -0
  158. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitCapRequest.d.ts +16 -0
  159. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitCapRequest.js +3 -0
  160. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitRequest.d.ts +13 -0
  161. package/dist/cjs/api/resources/customers/client/requests/GetCustomerUnitRequest.js +3 -0
  162. package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.d.ts +18 -0
  163. package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.js +3 -0
  164. package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsRequest.d.ts +18 -0
  165. package/dist/cjs/api/resources/customers/client/requests/GrantCustomerCreditsRequest.js +3 -0
  166. package/dist/cjs/api/resources/customers/client/requests/ListCustomerAliasesByExternalIdRequest.d.ts +12 -0
  167. package/dist/cjs/api/resources/customers/client/requests/ListCustomerAliasesByExternalIdRequest.js +3 -0
  168. package/dist/cjs/api/resources/customers/client/requests/ListCustomerAliasesRequest.d.ts +12 -0
  169. package/dist/cjs/api/resources/customers/client/requests/ListCustomerAliasesRequest.js +3 -0
  170. package/dist/cjs/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionByExternalIdRequest.d.ts +12 -0
  171. package/dist/cjs/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionByExternalIdRequest.js +3 -0
  172. package/dist/cjs/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionRequest.d.ts +12 -0
  173. package/dist/cjs/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionRequest.js +3 -0
  174. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.d.ts +20 -0
  175. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.js +3 -0
  176. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsRequest.d.ts +20 -0
  177. package/dist/cjs/api/resources/customers/client/requests/ListCustomerUnitsRequest.js +3 -0
  178. package/dist/cjs/api/resources/customers/client/requests/ListCustomersRequest.d.ts +13 -0
  179. package/dist/cjs/api/resources/customers/client/requests/SetCustomerUnitCapByExternalIdRequest.d.ts +18 -0
  180. package/dist/cjs/api/resources/customers/client/requests/SetCustomerUnitCapByExternalIdRequest.js +3 -0
  181. package/dist/cjs/api/resources/customers/client/requests/SetCustomerUnitCapRequest.d.ts +18 -0
  182. package/dist/cjs/api/resources/customers/client/requests/SetCustomerUnitCapRequest.js +3 -0
  183. package/dist/cjs/api/resources/customers/client/requests/UpdateCustomerByExternalIdRequest.d.ts +2 -1
  184. package/dist/cjs/api/resources/customers/client/requests/UpdateCustomerByIdRequest.d.ts +2 -1
  185. package/dist/cjs/api/resources/customers/client/requests/UpdateCustomerUnitByExternalIdRequest.d.ts +16 -0
  186. package/dist/cjs/api/resources/customers/client/requests/UpdateCustomerUnitByExternalIdRequest.js +3 -0
  187. package/dist/cjs/api/resources/customers/client/requests/UpdateCustomerUnitRequest.d.ts +16 -0
  188. package/dist/cjs/api/resources/customers/client/requests/UpdateCustomerUnitRequest.js +3 -0
  189. package/dist/cjs/api/resources/customers/client/requests/index.d.ts +28 -0
  190. package/dist/cjs/api/resources/customers/index.d.ts +1 -0
  191. package/dist/cjs/api/resources/customers/index.js +1 -0
  192. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.d.ts +5 -0
  193. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.js +8 -0
  194. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsRequestStatus.d.ts +5 -0
  195. package/dist/cjs/api/resources/customers/types/ListCustomerUnitsRequestStatus.js +8 -0
  196. package/dist/cjs/api/resources/customers/types/ListCustomersRequestCreationState.d.ts +5 -0
  197. package/dist/cjs/api/resources/customers/types/ListCustomersRequestCreationState.js +8 -0
  198. package/dist/cjs/api/resources/customers/types/ListCustomersRequestStatus.d.ts +5 -0
  199. package/dist/cjs/api/resources/customers/types/ListCustomersRequestStatus.js +8 -0
  200. package/dist/cjs/api/resources/customers/types/index.d.ts +4 -0
  201. package/dist/cjs/api/resources/customers/types/index.js +20 -0
  202. package/dist/cjs/api/resources/index.d.ts +28 -0
  203. package/dist/cjs/api/resources/index.js +29 -1
  204. package/dist/cjs/api/resources/invoices/client/Client.js +37 -1
  205. package/dist/cjs/api/resources/invoices/client/requests/ListInvoicesRequest.d.ts +25 -0
  206. package/dist/cjs/api/resources/invoices/index.d.ts +1 -0
  207. package/dist/cjs/api/resources/invoices/index.js +1 -0
  208. package/dist/cjs/api/resources/invoices/types/ListInvoicesRequestPaymentStatus.d.ts +8 -0
  209. package/dist/cjs/api/resources/invoices/types/ListInvoicesRequestPaymentStatus.js +11 -0
  210. package/dist/cjs/api/resources/invoices/types/ListInvoicesRequestStatus.d.ts +10 -0
  211. package/dist/cjs/api/resources/invoices/types/ListInvoicesRequestStatus.js +13 -0
  212. package/dist/cjs/api/resources/invoices/types/index.d.ts +2 -0
  213. package/dist/cjs/api/resources/invoices/types/index.js +18 -0
  214. package/dist/cjs/api/resources/orders/client/Client.d.ts +18 -0
  215. package/dist/cjs/api/resources/orders/client/Client.js +99 -1
  216. package/dist/cjs/api/resources/orders/client/requests/ActivateOrderByIdRequest.d.ts +9 -0
  217. package/dist/cjs/api/resources/orders/client/requests/ActivateOrderByIdRequest.js +3 -0
  218. package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +2 -0
  219. package/dist/cjs/api/resources/orders/client/requests/ListOrdersRequest.d.ts +19 -0
  220. package/dist/cjs/api/resources/orders/client/requests/UpdateOrderRequest.d.ts +2 -0
  221. package/dist/cjs/api/resources/orders/client/requests/index.d.ts +1 -0
  222. package/dist/cjs/api/resources/orders/types/ListOrdersRequestCreationState.d.ts +5 -0
  223. package/dist/cjs/api/resources/orders/types/ListOrdersRequestCreationState.js +8 -0
  224. package/dist/cjs/api/resources/orders/types/OrderStatusFilter.d.ts +7 -0
  225. package/dist/cjs/api/resources/orders/types/OrderStatusFilter.js +10 -0
  226. package/dist/cjs/api/resources/orders/types/index.d.ts +2 -0
  227. package/dist/cjs/api/resources/orders/types/index.js +2 -0
  228. package/dist/cjs/api/resources/paymentAllocations/client/Client.d.ts +55 -0
  229. package/dist/cjs/api/resources/paymentAllocations/client/Client.js +224 -0
  230. package/dist/cjs/api/resources/paymentAllocations/client/index.d.ts +1 -0
  231. package/dist/cjs/api/resources/paymentAllocations/client/index.js +17 -0
  232. package/dist/cjs/api/resources/paymentAllocations/client/requests/CreatePaymentAllocationRequest.d.ts +17 -0
  233. package/dist/cjs/api/resources/paymentAllocations/client/requests/CreatePaymentAllocationRequest.js +3 -0
  234. package/dist/cjs/api/resources/paymentAllocations/client/requests/ListPaymentAllocationsRequest.d.ts +15 -0
  235. package/dist/cjs/api/resources/paymentAllocations/client/requests/ListPaymentAllocationsRequest.js +3 -0
  236. package/dist/cjs/api/resources/paymentAllocations/client/requests/index.d.ts +2 -0
  237. package/dist/cjs/api/resources/paymentAllocations/client/requests/index.js +2 -0
  238. package/dist/cjs/api/resources/paymentAllocations/index.d.ts +1 -0
  239. package/dist/cjs/api/resources/paymentAllocations/index.js +17 -0
  240. package/dist/cjs/api/resources/paymentMethods/client/Client.d.ts +104 -0
  241. package/dist/cjs/api/resources/paymentMethods/client/Client.js +446 -0
  242. package/dist/cjs/api/resources/paymentMethods/client/index.d.ts +1 -0
  243. package/dist/cjs/api/resources/paymentMethods/client/index.js +17 -0
  244. package/dist/cjs/api/resources/paymentMethods/client/requests/CreatePaymentMethodRequest.d.ts +18 -0
  245. package/dist/cjs/api/resources/paymentMethods/client/requests/CreatePaymentMethodRequest.js +3 -0
  246. package/dist/cjs/api/resources/paymentMethods/client/requests/DeletePaymentMethodRequest.d.ts +9 -0
  247. package/dist/cjs/api/resources/paymentMethods/client/requests/DeletePaymentMethodRequest.js +3 -0
  248. package/dist/cjs/api/resources/paymentMethods/client/requests/GetPaymentMethodRequest.d.ts +9 -0
  249. package/dist/cjs/api/resources/paymentMethods/client/requests/GetPaymentMethodRequest.js +3 -0
  250. package/dist/cjs/api/resources/paymentMethods/client/requests/ListPaymentMethodsRequest.d.ts +14 -0
  251. package/dist/cjs/api/resources/paymentMethods/client/requests/ListPaymentMethodsRequest.js +3 -0
  252. package/dist/cjs/api/resources/paymentMethods/client/requests/UpdateDefaultPaymentMethodRequest.d.ts +9 -0
  253. package/dist/cjs/api/resources/paymentMethods/client/requests/UpdateDefaultPaymentMethodRequest.js +3 -0
  254. package/dist/cjs/api/resources/paymentMethods/client/requests/index.d.ts +5 -0
  255. package/dist/cjs/api/resources/paymentMethods/client/requests/index.js +2 -0
  256. package/dist/cjs/api/resources/paymentMethods/index.d.ts +1 -0
  257. package/dist/cjs/api/resources/paymentMethods/index.js +17 -0
  258. package/dist/cjs/api/resources/payments/client/Client.d.ts +68 -0
  259. package/dist/cjs/api/resources/payments/client/Client.js +293 -0
  260. package/dist/cjs/api/resources/payments/client/index.d.ts +1 -0
  261. package/dist/cjs/api/resources/payments/client/index.js +17 -0
  262. package/dist/cjs/api/resources/payments/client/requests/CreatePaymentRequest.d.ts +25 -0
  263. package/dist/cjs/api/resources/payments/client/requests/CreatePaymentRequest.js +3 -0
  264. package/dist/cjs/api/resources/payments/client/requests/GetPaymentRequest.d.ts +9 -0
  265. package/dist/cjs/api/resources/payments/client/requests/GetPaymentRequest.js +3 -0
  266. package/dist/cjs/api/resources/payments/client/requests/ListPaymentsRequest.d.ts +15 -0
  267. package/dist/cjs/api/resources/payments/client/requests/ListPaymentsRequest.js +3 -0
  268. package/dist/cjs/api/resources/payments/client/requests/index.d.ts +3 -0
  269. package/dist/cjs/api/resources/payments/client/requests/index.js +2 -0
  270. package/dist/cjs/api/resources/payments/index.d.ts +2 -0
  271. package/dist/cjs/api/resources/payments/index.js +18 -0
  272. package/dist/cjs/api/resources/payments/types/ListPaymentsRequestStatus.d.ts +9 -0
  273. package/dist/cjs/api/resources/payments/types/ListPaymentsRequestStatus.js +12 -0
  274. package/dist/cjs/api/resources/payments/types/index.d.ts +1 -0
  275. package/dist/cjs/api/resources/payments/types/index.js +17 -0
  276. package/dist/cjs/api/resources/plans/client/Client.d.ts +152 -0
  277. package/dist/cjs/api/resources/plans/client/Client.js +593 -0
  278. package/dist/cjs/api/resources/plans/client/index.d.ts +1 -0
  279. package/dist/cjs/api/resources/plans/client/index.js +17 -0
  280. package/dist/cjs/api/resources/plans/client/requests/CreatePlanRequest.d.ts +28 -0
  281. package/dist/cjs/api/resources/plans/client/requests/CreatePlanRequest.js +3 -0
  282. package/dist/cjs/api/resources/plans/client/requests/GetPlanByExternalIdRequest.d.ts +9 -0
  283. package/dist/cjs/api/resources/plans/client/requests/GetPlanByExternalIdRequest.js +3 -0
  284. package/dist/cjs/api/resources/plans/client/requests/GetPlanByIdRequest.d.ts +9 -0
  285. package/dist/cjs/api/resources/plans/client/requests/GetPlanByIdRequest.js +3 -0
  286. package/dist/cjs/api/resources/plans/client/requests/ListPlansRequest.d.ts +12 -0
  287. package/dist/cjs/api/resources/plans/client/requests/ListPlansRequest.js +3 -0
  288. package/dist/cjs/api/resources/plans/client/requests/UpdatePlanByExternalIdRequest.d.ts +12 -0
  289. package/dist/cjs/api/resources/plans/client/requests/UpdatePlanByExternalIdRequest.js +3 -0
  290. package/dist/cjs/api/resources/plans/client/requests/UpdatePlanByIdRequest.d.ts +12 -0
  291. package/dist/cjs/api/resources/plans/client/requests/UpdatePlanByIdRequest.js +3 -0
  292. package/dist/cjs/api/resources/plans/client/requests/UpdatePlanUpgradePathRequest.d.ts +15 -0
  293. package/dist/cjs/api/resources/plans/client/requests/UpdatePlanUpgradePathRequest.js +3 -0
  294. package/dist/cjs/api/resources/plans/client/requests/index.d.ts +7 -0
  295. package/dist/cjs/api/resources/plans/client/requests/index.js +2 -0
  296. package/dist/cjs/api/resources/plans/index.d.ts +1 -0
  297. package/dist/cjs/api/resources/plans/index.js +17 -0
  298. package/dist/cjs/api/resources/pricing/client/Client.d.ts +2 -2
  299. package/dist/cjs/api/resources/pricing/client/Client.js +2 -2
  300. package/dist/cjs/api/resources/pricing/client/requests/UpdatePricingRequest.d.ts +1 -1
  301. package/dist/cjs/api/resources/products/client/Client.d.ts +9 -9
  302. package/dist/cjs/api/resources/products/client/Client.js +15 -6
  303. package/dist/cjs/api/resources/products/client/requests/ListProductsRequest.d.ts +6 -0
  304. package/dist/cjs/api/resources/signals/client/Client.d.ts +38 -0
  305. package/dist/cjs/api/resources/signals/client/Client.js +180 -0
  306. package/dist/cjs/api/resources/signals/client/requests/GetSignalByIdRequest.d.ts +10 -0
  307. package/dist/cjs/api/resources/signals/client/requests/GetSignalByIdRequest.js +3 -0
  308. package/dist/cjs/api/resources/signals/client/requests/ListSignalsRequest.d.ts +22 -0
  309. package/dist/cjs/api/resources/signals/client/requests/ListSignalsRequest.js +3 -0
  310. package/dist/cjs/api/resources/signals/client/requests/index.d.ts +2 -0
  311. package/dist/cjs/api/resources/valueMetrics/client/Client.d.ts +111 -0
  312. package/dist/cjs/api/resources/valueMetrics/client/Client.js +446 -0
  313. package/dist/cjs/api/resources/valueMetrics/client/index.d.ts +1 -0
  314. package/dist/cjs/api/resources/valueMetrics/client/index.js +17 -0
  315. package/dist/cjs/api/resources/valueMetrics/client/requests/ArchiveValueMetricRequest.d.ts +10 -0
  316. package/dist/cjs/api/resources/valueMetrics/client/requests/ArchiveValueMetricRequest.js +3 -0
  317. package/dist/cjs/api/resources/valueMetrics/client/requests/CreateValueMetricRequest.d.ts +57 -0
  318. package/dist/cjs/api/resources/valueMetrics/client/requests/CreateValueMetricRequest.js +15 -0
  319. package/dist/cjs/api/resources/valueMetrics/client/requests/GetValueMetricRequest.d.ts +9 -0
  320. package/dist/cjs/api/resources/valueMetrics/client/requests/GetValueMetricRequest.js +3 -0
  321. package/dist/cjs/api/resources/valueMetrics/client/requests/ListValueMetricsRequest.d.ts +10 -0
  322. package/dist/cjs/api/resources/valueMetrics/client/requests/ListValueMetricsRequest.js +3 -0
  323. package/dist/cjs/api/resources/valueMetrics/client/requests/UpdateValueMetricRequest.d.ts +43 -0
  324. package/dist/cjs/api/resources/valueMetrics/client/requests/UpdateValueMetricRequest.js +15 -0
  325. package/dist/cjs/api/resources/valueMetrics/client/requests/index.d.ts +5 -0
  326. package/dist/cjs/api/resources/valueMetrics/client/requests/index.js +2 -0
  327. package/dist/cjs/api/resources/valueMetrics/index.d.ts +1 -0
  328. package/dist/cjs/api/resources/valueMetrics/index.js +17 -0
  329. package/dist/cjs/api/resources/valueModels/client/Client.d.ts +118 -0
  330. package/dist/cjs/api/resources/valueModels/client/Client.js +419 -0
  331. package/dist/cjs/api/resources/valueModels/client/index.d.ts +1 -0
  332. package/dist/cjs/api/resources/valueModels/client/index.js +17 -0
  333. package/dist/cjs/api/resources/valueModels/client/requests/GetValueModelVersionRequest.d.ts +9 -0
  334. package/dist/cjs/api/resources/valueModels/client/requests/GetValueModelVersionRequest.js +3 -0
  335. package/dist/cjs/api/resources/valueModels/client/requests/ListValueModelVersionsRequest.d.ts +8 -0
  336. package/dist/cjs/api/resources/valueModels/client/requests/ListValueModelVersionsRequest.js +3 -0
  337. package/dist/cjs/api/resources/valueModels/client/requests/RefreshValueModelBackfillRequest.d.ts +5 -0
  338. package/dist/cjs/api/resources/valueModels/client/requests/RefreshValueModelBackfillRequest.js +3 -0
  339. package/dist/cjs/api/resources/valueModels/client/requests/ValueModelUploadRequest.d.ts +44 -0
  340. package/dist/cjs/api/resources/valueModels/client/requests/ValueModelUploadRequest.js +3 -0
  341. package/dist/cjs/api/resources/valueModels/client/requests/index.d.ts +4 -0
  342. package/dist/cjs/api/resources/valueModels/client/requests/index.js +2 -0
  343. package/dist/cjs/api/resources/valueModels/index.d.ts +1 -0
  344. package/dist/cjs/api/resources/valueModels/index.js +17 -0
  345. package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +42 -11
  346. package/dist/cjs/api/resources/valueReceipts/client/Client.js +153 -43
  347. package/dist/cjs/api/resources/valueReceipts/client/requests/index.d.ts +0 -1
  348. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +17 -2
  349. package/dist/cjs/api/resources/webhooks/client/Client.js +69 -1
  350. package/dist/cjs/api/resources/webhooks/client/requests/RotateWebhookSecretRequest.d.ts +5 -0
  351. package/dist/cjs/api/resources/webhooks/client/requests/RotateWebhookSecretRequest.js +3 -0
  352. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -0
  353. package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.ts +2 -0
  354. package/dist/cjs/api/resources/webhooks/types/TestWebhookRequestWebhookName.js +2 -0
  355. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.ts +2 -0
  356. package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.js +2 -0
  357. package/dist/cjs/api/types/AddAttributeIntent.d.ts +45 -0
  358. package/dist/cjs/api/types/AddAttributeIntent.js +24 -0
  359. package/dist/cjs/api/types/AddFromCatalogIntent.d.ts +22 -0
  360. package/dist/cjs/api/types/AddFromCatalogIntent.js +13 -0
  361. package/dist/cjs/api/types/AddMembersResponse.d.ts +5 -0
  362. package/dist/cjs/api/types/AddMembersResponse.js +3 -0
  363. package/dist/cjs/api/types/AmendmentAddAttributeOptions.d.ts +9 -0
  364. package/dist/cjs/api/types/AmendmentAddAttributeOptions.js +3 -0
  365. package/dist/cjs/api/types/AmendmentAddAxisOptions.d.ts +10 -0
  366. package/dist/cjs/api/types/AmendmentAddAxisOptions.js +3 -0
  367. package/dist/cjs/api/types/AmendmentAttributeOptions.d.ts +14 -0
  368. package/dist/cjs/api/types/AmendmentAttributeOptions.js +3 -0
  369. package/dist/cjs/api/types/AmendmentAttributeState.d.ts +24 -0
  370. package/dist/cjs/api/types/AmendmentAttributeState.js +3 -0
  371. package/dist/cjs/api/types/AmendmentAxisChoiceValue.d.ts +10 -0
  372. package/dist/cjs/api/types/AmendmentAxisChoiceValue.js +13 -0
  373. package/dist/cjs/api/types/AmendmentAxisId.d.ts +8 -0
  374. package/dist/cjs/api/types/AmendmentAxisId.js +11 -0
  375. package/dist/cjs/api/types/AmendmentAxisOptions.d.ts +16 -0
  376. package/dist/cjs/api/types/AmendmentAxisOptions.js +3 -0
  377. package/dist/cjs/api/types/AmendmentAxisRelevance.d.ts +6 -0
  378. package/dist/cjs/api/types/AmendmentAxisRelevance.js +9 -0
  379. package/dist/cjs/api/types/AmendmentBillingType.d.ts +6 -0
  380. package/dist/cjs/api/types/AmendmentBillingType.js +9 -0
  381. package/dist/cjs/api/types/AmendmentChargeType.d.ts +8 -0
  382. package/dist/cjs/api/types/AmendmentChargeType.js +11 -0
  383. package/dist/cjs/api/types/AmendmentCreditEffectKind.d.ts +6 -0
  384. package/dist/cjs/api/types/AmendmentCreditEffectKind.js +9 -0
  385. package/dist/cjs/api/types/AmendmentErrorResponse.d.ts +7 -0
  386. package/dist/cjs/api/types/AmendmentErrorResponse.js +3 -0
  387. package/dist/cjs/api/types/AmendmentIntentKind.d.ts +10 -0
  388. package/dist/cjs/api/types/AmendmentIntentKind.js +13 -0
  389. package/dist/cjs/api/types/AmendmentIntentOptions.d.ts +7 -0
  390. package/dist/cjs/api/types/AmendmentIntentOptions.js +3 -0
  391. package/dist/cjs/api/types/AmendmentLineOptions.d.ts +12 -0
  392. package/dist/cjs/api/types/AmendmentLineOptions.js +3 -0
  393. package/dist/cjs/api/types/AmendmentMoneyBilling.d.ts +6 -0
  394. package/dist/cjs/api/types/AmendmentMoneyBilling.js +9 -0
  395. package/dist/cjs/api/types/AmendmentOptions.d.ts +26 -0
  396. package/dist/cjs/api/types/AmendmentOptions.js +3 -0
  397. package/dist/cjs/api/types/AmendmentPlan.d.ts +24 -0
  398. package/dist/cjs/api/types/AmendmentPlan.js +3 -0
  399. package/dist/cjs/api/types/AmendmentPlanAttributeDiff.d.ts +18 -0
  400. package/dist/cjs/api/types/AmendmentPlanAttributeDiff.js +3 -0
  401. package/dist/cjs/api/types/AmendmentPlanChange.d.ts +9 -0
  402. package/dist/cjs/api/types/AmendmentPlanChange.js +12 -0
  403. package/dist/cjs/api/types/AmendmentPlanCreditEffect.d.ts +15 -0
  404. package/dist/cjs/api/types/AmendmentPlanCreditEffect.js +3 -0
  405. package/dist/cjs/api/types/AmendmentPlanLineType.d.ts +8 -0
  406. package/dist/cjs/api/types/AmendmentPlanLineType.js +11 -0
  407. package/dist/cjs/api/types/AmendmentPlanMoneyEffect.d.ts +31 -0
  408. package/dist/cjs/api/types/AmendmentPlanMoneyEffect.js +13 -0
  409. package/dist/cjs/api/types/AmendmentPlanTreatmentResolution.d.ts +12 -0
  410. package/dist/cjs/api/types/AmendmentPlanTreatmentResolution.js +3 -0
  411. package/dist/cjs/api/types/AmendmentPlanUsageEffect.d.ts +17 -0
  412. package/dist/cjs/api/types/AmendmentPlanUsageEffect.js +12 -0
  413. package/dist/cjs/api/types/AmendmentPricingClause.d.ts +14 -0
  414. package/dist/cjs/api/types/AmendmentPricingClause.js +3 -0
  415. package/dist/cjs/api/types/AmendmentPricingModel.d.ts +11 -0
  416. package/dist/cjs/api/types/AmendmentPricingModel.js +14 -0
  417. package/dist/cjs/api/types/AmendmentTreatmentSource.d.ts +7 -0
  418. package/dist/cjs/api/types/AmendmentTreatmentSource.js +10 -0
  419. package/dist/cjs/api/types/AnalyticsColumn.d.ts +5 -0
  420. package/dist/cjs/api/types/AnalyticsColumn.js +3 -0
  421. package/dist/cjs/api/types/AnalyticsQueryRequest.d.ts +4 -0
  422. package/dist/cjs/api/types/AnalyticsQueryRequest.js +3 -0
  423. package/dist/cjs/api/types/AnalyticsQueryResponse.d.ts +15 -0
  424. package/dist/cjs/api/types/AnalyticsQueryResponse.js +3 -0
  425. package/dist/cjs/api/types/AnalyticsSchemaColumn.d.ts +6 -0
  426. package/dist/cjs/api/types/AnalyticsSchemaColumn.js +3 -0
  427. package/dist/cjs/api/types/AnalyticsSchemaResponse.d.ts +4 -0
  428. package/dist/cjs/api/types/AnalyticsSchemaResponse.js +3 -0
  429. package/dist/cjs/api/types/AnalyticsSchemaView.d.ts +6 -0
  430. package/dist/cjs/api/types/AnalyticsSchemaView.js +3 -0
  431. package/dist/cjs/api/types/BackfillResponse.d.ts +4 -0
  432. package/dist/cjs/api/types/BackfillResponse.js +3 -0
  433. package/dist/cjs/api/types/ChargeStubAddAxisOptions.d.ts +34 -0
  434. package/dist/cjs/api/types/ChargeStubAddAxisOptions.js +19 -0
  435. package/dist/cjs/api/types/ChargeStubAxisOptions.d.ts +33 -0
  436. package/dist/cjs/api/types/ChargeStubAxisOptions.js +19 -0
  437. package/dist/cjs/api/types/Checkout.d.ts +2 -0
  438. package/dist/cjs/api/types/CheckoutCustomCard.d.ts +10 -0
  439. package/dist/cjs/api/types/CheckoutCustomCard.js +3 -0
  440. package/dist/cjs/api/types/CheckoutCustomCardInput.d.ts +10 -0
  441. package/dist/cjs/api/types/CheckoutCustomCardInput.js +3 -0
  442. package/dist/cjs/api/types/CheckoutDetails.d.ts +3 -0
  443. package/dist/cjs/api/types/CheckoutPlan.d.ts +4 -0
  444. package/dist/cjs/api/types/CheckoutPlan.js +3 -0
  445. package/dist/cjs/api/types/CheckoutPlanInput.d.ts +6 -0
  446. package/dist/cjs/api/types/CheckoutPlanInput.js +3 -0
  447. package/dist/cjs/api/types/CheckoutProduct.d.ts +3 -0
  448. package/dist/cjs/api/types/CheckoutProductInput.d.ts +3 -0
  449. package/dist/cjs/api/types/CheckoutSelectedProduct.d.ts +8 -0
  450. package/dist/cjs/api/types/CheckoutSelectedProduct.js +3 -0
  451. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +38 -5
  452. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.js +8 -0
  453. package/dist/cjs/api/types/CreateOrderLineRequest.d.ts +4 -0
  454. package/dist/cjs/api/types/CreditBalance.d.ts +3 -1
  455. package/dist/cjs/api/types/CreditBenefitInput.d.ts +7 -5
  456. package/dist/cjs/api/types/CreditBenefitOutput.d.ts +6 -6
  457. package/dist/cjs/api/types/CreditCurrency.d.ts +17 -0
  458. package/dist/cjs/api/types/CreditCurrency.js +9 -0
  459. package/dist/cjs/api/types/CreditGrant.d.ts +3 -0
  460. package/dist/cjs/api/types/CreditGrantAddAxisOptions.d.ts +24 -0
  461. package/dist/cjs/api/types/CreditGrantAddAxisOptions.js +3 -0
  462. package/dist/cjs/api/types/CreditGrantAxisOptions.d.ts +23 -0
  463. package/dist/cjs/api/types/CreditGrantAxisOptions.js +3 -0
  464. package/dist/cjs/api/types/CreditGrantCreateRequest.d.ts +10 -0
  465. package/dist/cjs/api/types/CreditGrantCreateRequest.js +3 -0
  466. package/dist/cjs/api/types/CreditGrantCurrency.d.ts +6 -0
  467. package/dist/cjs/api/types/CreditGrantCurrency.js +3 -0
  468. package/dist/cjs/api/types/CreditGrantCustomer.d.ts +6 -0
  469. package/dist/cjs/api/types/CreditGrantCustomer.js +3 -0
  470. package/dist/cjs/api/types/CreditGrantResult.d.ts +19 -0
  471. package/dist/cjs/api/types/CreditGrantResult.js +11 -0
  472. package/dist/cjs/api/types/CreditGrantValue.d.ts +7 -0
  473. package/dist/cjs/api/types/CreditGrantValue.js +10 -0
  474. package/dist/cjs/api/types/CreditTransaction.d.ts +31 -0
  475. package/dist/cjs/api/types/CreditTransaction.js +13 -0
  476. package/dist/cjs/api/types/CreditTransactionCurrency.d.ts +6 -0
  477. package/dist/cjs/api/types/CreditTransactionCurrency.js +3 -0
  478. package/dist/cjs/api/types/CreditTransactionCustomer.d.ts +6 -0
  479. package/dist/cjs/api/types/CreditTransactionCustomer.js +3 -0
  480. package/dist/cjs/api/types/CreditTransactionListResponse.d.ts +6 -0
  481. package/dist/cjs/api/types/CreditTransactionListResponse.js +3 -0
  482. package/dist/cjs/api/types/CreditTransactionProduct.d.ts +11 -0
  483. package/dist/cjs/api/types/CreditTransactionProduct.js +3 -0
  484. package/dist/cjs/api/types/CurrencyCode.d.ts +4 -0
  485. package/dist/cjs/api/types/CurrencyCode.js +3 -0
  486. package/dist/cjs/api/types/CustomView.d.ts +25 -0
  487. package/dist/cjs/api/types/CustomView.js +17 -0
  488. package/dist/cjs/api/types/CustomViewAuthoringDetail.d.ts +69 -0
  489. package/dist/cjs/api/types/CustomViewAuthoringDetail.js +30 -0
  490. package/dist/cjs/api/types/CustomViewAuthoringGuide.d.ts +6 -0
  491. package/dist/cjs/api/types/CustomViewAuthoringGuide.js +3 -0
  492. package/dist/cjs/api/types/CustomViewDetail.d.ts +60 -0
  493. package/dist/cjs/api/types/CustomViewDetail.js +30 -0
  494. package/dist/cjs/api/types/CustomViewEmbedTokenResponse.d.ts +6 -0
  495. package/dist/cjs/api/types/CustomViewEmbedTokenResponse.js +3 -0
  496. package/dist/cjs/api/types/CustomViewFilter.d.ts +6 -0
  497. package/dist/cjs/api/types/CustomViewFilter.js +3 -0
  498. package/dist/cjs/api/types/CustomViewListResponse.d.ts +4 -0
  499. package/dist/cjs/api/types/CustomViewListResponse.js +3 -0
  500. package/dist/cjs/api/types/CustomViewPreviewHarness.d.ts +4 -0
  501. package/dist/cjs/api/types/CustomViewPreviewHarness.js +3 -0
  502. package/dist/cjs/api/types/CustomViewPreviewHarnessColumn.d.ts +16 -0
  503. package/dist/cjs/api/types/CustomViewPreviewHarnessColumn.js +14 -0
  504. package/dist/cjs/api/types/CustomViewPreviewHarnessRequest.d.ts +11 -0
  505. package/dist/cjs/api/types/CustomViewPreviewHarnessRequest.js +3 -0
  506. package/dist/cjs/api/types/CustomViewQuery.d.ts +6 -0
  507. package/dist/cjs/api/types/CustomViewQuery.js +3 -0
  508. package/dist/cjs/api/types/CustomViewSummary.d.ts +57 -0
  509. package/dist/cjs/api/types/CustomViewSummary.js +30 -0
  510. package/dist/cjs/api/types/CustomViewValidationFinding.d.ts +8 -0
  511. package/dist/cjs/api/types/CustomViewValidationFinding.js +3 -0
  512. package/dist/cjs/api/types/Customer.d.ts +14 -2
  513. package/dist/cjs/api/types/Customer.js +9 -0
  514. package/dist/cjs/api/types/CustomerAlias.d.ts +10 -0
  515. package/dist/cjs/api/types/CustomerAlias.js +3 -0
  516. package/dist/cjs/api/types/CustomerAliasCreateRequest.d.ts +8 -0
  517. package/dist/cjs/api/types/CustomerAliasCreateRequest.js +3 -0
  518. package/dist/cjs/api/types/CustomerAliasListResponse.d.ts +5 -0
  519. package/dist/cjs/api/types/CustomerAliasListResponse.js +3 -0
  520. package/dist/{esm/api/types/CustomerBillingAddress.d.mts → cjs/api/types/CustomerBillingAddressInput.d.ts} +1 -1
  521. package/dist/cjs/api/types/CustomerBillingAddressInput.js +3 -0
  522. package/dist/cjs/api/types/CustomerBillingAddressResponse.d.ts +11 -0
  523. package/dist/cjs/api/types/CustomerBillingAddressResponse.js +3 -0
  524. package/dist/cjs/api/types/CustomerConnections.d.ts +7 -0
  525. package/dist/cjs/api/types/CustomerConnections.js +3 -0
  526. package/dist/cjs/api/types/CustomerGroupDeleteResponse.d.ts +4 -0
  527. package/dist/cjs/api/types/CustomerGroupDeleteResponse.js +3 -0
  528. package/dist/cjs/api/types/CustomerGroupDetail.d.ts +10 -0
  529. package/dist/cjs/api/types/CustomerGroupDetail.js +3 -0
  530. package/dist/cjs/api/types/CustomerGroupListResponse.d.ts +5 -0
  531. package/dist/cjs/api/types/CustomerGroupListResponse.js +3 -0
  532. package/dist/cjs/api/types/CustomerGroupMember.d.ts +5 -0
  533. package/dist/cjs/api/types/CustomerGroupMember.js +3 -0
  534. package/dist/cjs/api/types/CustomerGroupSummary.d.ts +8 -0
  535. package/dist/cjs/api/types/CustomerGroupSummary.js +3 -0
  536. package/dist/cjs/api/types/CustomerState.d.ts +10 -0
  537. package/dist/cjs/api/types/CustomerState.js +3 -0
  538. package/dist/cjs/api/types/CustomerStateCheckoutLink.d.ts +18 -0
  539. package/dist/cjs/api/types/CustomerStateCheckoutLink.js +13 -0
  540. package/dist/cjs/api/types/CustomerStateCreditBalance.d.ts +6 -0
  541. package/dist/cjs/api/types/CustomerStateCreditBalance.js +3 -0
  542. package/dist/cjs/api/types/CustomerStateCreditSummary.d.ts +4 -0
  543. package/dist/cjs/api/types/CustomerStateCreditSummary.js +3 -0
  544. package/dist/cjs/api/types/CustomerStateCustomer.d.ts +8 -0
  545. package/dist/cjs/api/types/CustomerStateCustomer.js +3 -0
  546. package/dist/cjs/api/types/CustomerStateOrder.d.ts +21 -0
  547. package/dist/cjs/api/types/CustomerStateOrder.js +13 -0
  548. package/dist/cjs/api/types/CustomerStateProductRef.d.ts +5 -0
  549. package/dist/cjs/api/types/CustomerStateProductRef.js +3 -0
  550. package/dist/cjs/api/types/CustomerStateSeat.d.ts +17 -0
  551. package/dist/cjs/api/types/CustomerStateSeat.js +11 -0
  552. package/dist/cjs/api/types/CustomerStateSeatAssignee.d.ts +6 -0
  553. package/dist/cjs/api/types/CustomerStateSeatAssignee.js +3 -0
  554. package/dist/cjs/api/types/CustomerStateSeats.d.ts +7 -0
  555. package/dist/cjs/api/types/CustomerStateSeats.js +3 -0
  556. package/dist/cjs/api/types/CustomerUnit.d.ts +25 -0
  557. package/dist/cjs/api/types/CustomerUnit.js +12 -0
  558. package/dist/cjs/api/types/CustomerUnitAttribution.d.ts +7 -0
  559. package/dist/cjs/api/types/CustomerUnitAttribution.js +3 -0
  560. package/dist/cjs/api/types/CustomerUnitCapCurrentPeriod.d.ts +11 -0
  561. package/dist/cjs/api/types/CustomerUnitCapCurrentPeriod.js +3 -0
  562. package/dist/cjs/api/types/CustomerUnitCapEndResponse.d.ts +12 -0
  563. package/dist/cjs/api/types/CustomerUnitCapEndResponse.js +3 -0
  564. package/dist/cjs/api/types/CustomerUnitCapEndedPolicy.d.ts +24 -0
  565. package/dist/cjs/api/types/CustomerUnitCapEndedPolicy.js +11 -0
  566. package/dist/cjs/api/types/CustomerUnitCapOpenPolicy.d.ts +29 -0
  567. package/dist/cjs/api/types/CustomerUnitCapOpenPolicy.js +15 -0
  568. package/dist/cjs/api/types/CustomerUnitCapPeriod.d.ts +6 -0
  569. package/dist/cjs/api/types/CustomerUnitCapPeriod.js +3 -0
  570. package/dist/cjs/api/types/CustomerUnitCapPolicy.d.ts +24 -0
  571. package/dist/cjs/api/types/CustomerUnitCapPolicy.js +11 -0
  572. package/dist/cjs/api/types/CustomerUnitCapResponse.d.ts +11 -0
  573. package/dist/cjs/api/types/CustomerUnitCapResponse.js +3 -0
  574. package/dist/cjs/api/types/CustomerUnitCapSet.d.ts +17 -0
  575. package/dist/cjs/api/types/CustomerUnitCapSet.js +11 -0
  576. package/dist/cjs/api/types/CustomerUnitCapSetResponse.d.ts +11 -0
  577. package/dist/cjs/api/types/CustomerUnitCapSetResponse.js +3 -0
  578. package/dist/cjs/api/types/CustomerUnitCreate.d.ts +12 -0
  579. package/dist/cjs/api/types/CustomerUnitCreate.js +3 -0
  580. package/dist/cjs/api/types/CustomerUnitListResponse.d.ts +6 -0
  581. package/dist/cjs/api/types/CustomerUnitListResponse.js +3 -0
  582. package/dist/cjs/api/types/CustomerUnitUpdate.d.ts +10 -0
  583. package/dist/cjs/api/types/CustomerUnitUpdate.js +3 -0
  584. package/dist/cjs/api/types/EndAttributeIntent.d.ts +16 -0
  585. package/dist/cjs/api/types/EndAttributeIntent.js +14 -0
  586. package/dist/cjs/api/types/GrantCustomerCreditsResponse.d.ts +9 -0
  587. package/dist/cjs/api/types/GrantCustomerCreditsResponse.js +3 -0
  588. package/dist/cjs/api/types/Invoice.d.ts +3 -0
  589. package/dist/cjs/api/types/MemberRequest.d.ts +4 -0
  590. package/dist/cjs/api/types/MemberRequest.js +3 -0
  591. package/dist/cjs/api/types/MoneyAxisOptions.d.ts +23 -0
  592. package/dist/cjs/api/types/MoneyAxisOptions.js +3 -0
  593. package/dist/cjs/api/types/MoneyAxisValue.d.ts +6 -0
  594. package/dist/cjs/api/types/MoneyAxisValue.js +9 -0
  595. package/dist/cjs/api/types/Order.d.ts +1 -0
  596. package/dist/cjs/api/types/OrderLine.d.ts +2 -0
  597. package/dist/cjs/api/types/OrderLineType.d.ts +7 -0
  598. package/dist/cjs/api/types/OrderLineType.js +10 -0
  599. package/dist/cjs/api/types/Payment.d.ts +30 -0
  600. package/dist/cjs/api/types/Payment.js +3 -0
  601. package/dist/cjs/api/types/PaymentAllocation.d.ts +21 -0
  602. package/dist/cjs/api/types/PaymentAllocation.js +3 -0
  603. package/dist/cjs/api/types/PaymentAllocationCreateResponse.d.ts +4 -0
  604. package/dist/cjs/api/types/PaymentAllocationCreateResponse.js +3 -0
  605. package/dist/cjs/api/types/PaymentAllocationInput.d.ts +8 -0
  606. package/dist/cjs/api/types/PaymentAllocationInput.js +3 -0
  607. package/dist/cjs/api/types/PaymentAllocationListResponse.d.ts +5 -0
  608. package/dist/cjs/api/types/PaymentAllocationListResponse.js +3 -0
  609. package/dist/cjs/api/types/PaymentCreateStatus.d.ts +6 -0
  610. package/dist/cjs/api/types/PaymentCreateStatus.js +9 -0
  611. package/dist/cjs/api/types/PaymentListResponse.d.ts +5 -0
  612. package/dist/cjs/api/types/PaymentListResponse.js +3 -0
  613. package/dist/cjs/api/types/PaymentMethod.d.ts +15 -0
  614. package/dist/cjs/api/types/PaymentMethod.js +3 -0
  615. package/dist/cjs/api/types/PaymentMethodCard.d.ts +13 -0
  616. package/dist/cjs/api/types/PaymentMethodCard.js +3 -0
  617. package/dist/cjs/api/types/PaymentMethodListResponse.d.ts +5 -0
  618. package/dist/cjs/api/types/PaymentMethodListResponse.js +3 -0
  619. package/dist/cjs/api/types/PaymentMethodSetup.d.ts +21 -0
  620. package/dist/cjs/api/types/PaymentMethodSetup.js +3 -0
  621. package/dist/cjs/api/types/PaymentType.d.ts +9 -0
  622. package/dist/cjs/api/types/PaymentType.js +12 -0
  623. package/dist/cjs/api/types/PendingCreditConsumption.d.ts +16 -0
  624. package/dist/cjs/api/types/PendingCreditConsumption.js +3 -0
  625. package/dist/cjs/api/types/PendingCreditConsumptionCurrency.d.ts +9 -0
  626. package/dist/cjs/api/types/PendingCreditConsumptionCurrency.js +3 -0
  627. package/dist/cjs/api/types/PendingCreditConsumptionListResponse.d.ts +6 -0
  628. package/dist/cjs/api/types/PendingCreditConsumptionListResponse.js +3 -0
  629. package/dist/cjs/api/types/Plan.d.ts +22 -0
  630. package/dist/cjs/api/types/Plan.js +11 -0
  631. package/dist/cjs/api/types/PlanAttribute.d.ts +8 -0
  632. package/dist/cjs/api/types/PlanAttribute.js +3 -0
  633. package/dist/cjs/api/types/PlanAttributeInput.d.ts +7 -0
  634. package/dist/cjs/api/types/PlanAttributeInput.js +3 -0
  635. package/dist/cjs/api/types/PlanCreditBenefit.d.ts +37 -0
  636. package/dist/cjs/api/types/PlanCreditBenefit.js +24 -0
  637. package/dist/cjs/api/types/PlanListResponse.d.ts +5 -0
  638. package/dist/cjs/api/types/PlanListResponse.js +3 -0
  639. package/dist/cjs/api/types/PlanPricing.d.ts +31 -0
  640. package/dist/cjs/api/types/PlanPricing.js +24 -0
  641. package/dist/cjs/api/types/PlanRef.d.ts +5 -0
  642. package/dist/cjs/api/types/PlanRef.js +3 -0
  643. package/dist/cjs/api/types/PlanUpgradePathGroup.d.ts +4 -0
  644. package/dist/cjs/api/types/PlanUpgradePathGroup.js +3 -0
  645. package/dist/cjs/api/types/PlanUpgradePathResponse.d.ts +4 -0
  646. package/dist/cjs/api/types/PlanUpgradePathResponse.js +3 -0
  647. package/dist/cjs/api/types/PlannedAdd.d.ts +28 -0
  648. package/dist/cjs/api/types/PlannedAdd.js +13 -0
  649. package/dist/cjs/api/types/PlannedCopy.d.ts +10 -0
  650. package/dist/cjs/api/types/PlannedCopy.js +3 -0
  651. package/dist/cjs/api/types/PlannedEnd.d.ts +10 -0
  652. package/dist/cjs/api/types/PlannedEnd.js +3 -0
  653. package/dist/cjs/api/types/PlannedOperations.d.ts +13 -0
  654. package/dist/cjs/api/types/PlannedOperations.js +3 -0
  655. package/dist/cjs/api/types/PlannedOrderTerm.d.ts +10 -0
  656. package/dist/cjs/api/types/PlannedOrderTerm.js +3 -0
  657. package/dist/cjs/api/types/PlannedReplace.d.ts +15 -0
  658. package/dist/cjs/api/types/PlannedReplace.js +3 -0
  659. package/dist/cjs/api/types/PricingInput.d.ts +4 -1
  660. package/dist/cjs/api/types/PricingOutput.d.ts +7 -0
  661. package/dist/cjs/api/types/PricingOutput.js +5 -0
  662. package/dist/cjs/api/types/PricingPricePointOutput.d.ts +2 -22
  663. package/dist/cjs/api/types/PricingPricePointOutput.js +0 -14
  664. package/dist/cjs/api/types/PricingTierOutput.d.ts +16 -0
  665. package/dist/cjs/api/types/PricingTierOutput.js +11 -0
  666. package/dist/cjs/api/types/ProductAttributeOutput.d.ts +8 -0
  667. package/dist/cjs/api/types/ProductAttributeOutput.js +3 -0
  668. package/dist/cjs/api/types/ProductAttributeUpsert.d.ts +9 -0
  669. package/dist/cjs/api/types/ProductAttributeUpsert.js +3 -0
  670. package/dist/cjs/api/types/ProductCreditBenefitInput.d.ts +32 -0
  671. package/dist/cjs/api/types/ProductCreditBenefitInput.js +20 -0
  672. package/dist/cjs/api/types/ProductCreditBenefitOutput.d.ts +13 -0
  673. package/dist/cjs/api/types/ProductCreditBenefitOutput.js +3 -0
  674. package/dist/cjs/api/types/ProductDetail.d.ts +14 -0
  675. package/dist/cjs/api/types/ProductDetail.js +3 -0
  676. package/dist/cjs/api/types/ProductOneTimePerUnitInput.d.ts +21 -0
  677. package/dist/cjs/api/types/ProductOneTimePerUnitInput.js +18 -0
  678. package/dist/cjs/api/types/ProductPricePointOutput.d.ts +9 -0
  679. package/dist/cjs/api/types/ProductPricePointOutput.js +3 -0
  680. package/dist/cjs/api/types/ProductPricingInput.d.ts +49 -0
  681. package/dist/cjs/api/types/ProductPricingInput.js +3 -0
  682. package/dist/cjs/api/types/ProductPricingOutput.d.ts +43 -0
  683. package/dist/cjs/api/types/ProductPricingOutput.js +28 -0
  684. package/dist/cjs/api/types/ProductPricingTierOutput.d.ts +16 -0
  685. package/dist/cjs/api/types/ProductPricingTierOutput.js +11 -0
  686. package/dist/cjs/api/types/ProductRecurringGraduatedInput.d.ts +22 -0
  687. package/dist/cjs/api/types/ProductRecurringGraduatedInput.js +18 -0
  688. package/dist/cjs/api/types/ProductRecurringPerUnitInput.d.ts +22 -0
  689. package/dist/cjs/api/types/ProductRecurringPerUnitInput.js +18 -0
  690. package/dist/cjs/api/types/ProductRecurringPercentOfTotalInput.d.ts +23 -0
  691. package/dist/cjs/api/types/ProductRecurringPercentOfTotalInput.js +18 -0
  692. package/dist/cjs/api/types/ProductRecurringVolumeInput.d.ts +22 -0
  693. package/dist/cjs/api/types/ProductRecurringVolumeInput.js +18 -0
  694. package/dist/cjs/api/types/ProductSeatBasedGraduatedInput.d.ts +22 -0
  695. package/dist/cjs/api/types/ProductSeatBasedGraduatedInput.js +18 -0
  696. package/dist/cjs/api/types/ProductSeatBasedPerUnitInput.d.ts +22 -0
  697. package/dist/cjs/api/types/ProductSeatBasedPerUnitInput.js +18 -0
  698. package/dist/cjs/api/types/ProductSeatBasedPrepaidCreditsInput.d.ts +26 -0
  699. package/dist/cjs/api/types/ProductSeatBasedPrepaidCreditsInput.js +18 -0
  700. package/dist/cjs/api/types/ProductSeatBasedVolumeInput.d.ts +22 -0
  701. package/dist/cjs/api/types/ProductSeatBasedVolumeInput.js +18 -0
  702. package/dist/cjs/api/types/ProductSimplePricePoint.d.ts +29 -0
  703. package/dist/cjs/api/types/ProductSimplePricePoint.js +17 -0
  704. package/dist/cjs/api/types/ProductTieredPricePoint.d.ts +29 -0
  705. package/dist/cjs/api/types/ProductTieredPricePoint.js +17 -0
  706. package/dist/cjs/api/types/ProductUsageBracketedPrepaidCreditsInput.d.ts +57 -0
  707. package/dist/cjs/api/types/ProductUsageBracketedPrepaidCreditsInput.js +28 -0
  708. package/dist/cjs/api/types/ProductUsageCostPlusInput.d.ts +29 -0
  709. package/dist/cjs/api/types/ProductUsageCostPlusInput.js +22 -0
  710. package/dist/cjs/api/types/ProductUsageGraduatedInput.d.ts +29 -0
  711. package/dist/cjs/api/types/ProductUsageGraduatedInput.js +22 -0
  712. package/dist/cjs/api/types/ProductUsagePerUnitInput.d.ts +29 -0
  713. package/dist/cjs/api/types/ProductUsagePerUnitInput.js +22 -0
  714. package/dist/cjs/api/types/ProductUsagePrepaidCreditsInput.d.ts +45 -0
  715. package/dist/cjs/api/types/ProductUsagePrepaidCreditsInput.js +28 -0
  716. package/dist/cjs/api/types/ProductUsageVolumeInput.d.ts +29 -0
  717. package/dist/cjs/api/types/ProductUsageVolumeInput.js +22 -0
  718. package/dist/cjs/api/types/RemoveMembersResponse.d.ts +5 -0
  719. package/dist/cjs/api/types/RemoveMembersResponse.js +3 -0
  720. package/dist/cjs/api/types/RenderBundleEdit.d.ts +8 -0
  721. package/dist/cjs/api/types/RenderBundleEdit.js +3 -0
  722. package/dist/cjs/api/types/RotateWebhookSecretResponse.d.ts +4 -0
  723. package/dist/cjs/api/types/RotateWebhookSecretResponse.js +3 -0
  724. package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.d.ts +1 -0
  725. package/dist/cjs/api/types/SetMembersResponse.d.ts +6 -0
  726. package/dist/cjs/api/types/SetMembersResponse.js +3 -0
  727. package/dist/cjs/api/types/Signal.d.ts +1 -0
  728. package/dist/cjs/api/types/SignalListItem.d.ts +20 -0
  729. package/dist/cjs/api/types/SignalListItem.js +3 -0
  730. package/dist/cjs/api/types/SignalListResponse.d.ts +5 -0
  731. package/dist/cjs/api/types/SignalListResponse.js +3 -0
  732. package/dist/cjs/api/types/SignalsMetadataResponse.d.ts +28 -0
  733. package/dist/cjs/api/types/SignalsMetadataResponse.js +3 -0
  734. package/dist/cjs/api/types/StripeConnection.d.ts +7 -0
  735. package/dist/cjs/api/types/StripeConnection.js +3 -0
  736. package/dist/cjs/api/{resources/valueReceipts/client/requests → types}/SyncValueReceiptRequest.d.ts +0 -7
  737. package/dist/cjs/api/types/SyncValueReceiptRequest.js +3 -0
  738. package/dist/cjs/api/types/UnifiedAmendmentIntent.d.ts +25 -0
  739. package/dist/cjs/api/types/UnifiedAmendmentIntent.js +3 -0
  740. package/dist/cjs/api/types/UnifiedAmendmentResponse.d.ts +19 -0
  741. package/dist/cjs/api/types/UnifiedAmendmentResponse.js +3 -0
  742. package/dist/cjs/api/types/UpdateCustomerRequest.d.ts +1 -1
  743. package/dist/cjs/api/types/UpdateLineTermIntent.d.ts +18 -0
  744. package/dist/cjs/api/types/UpdateLineTermIntent.js +14 -0
  745. package/dist/cjs/api/types/UpdateOrderTermIntent.d.ts +18 -0
  746. package/dist/cjs/api/types/UpdateOrderTermIntent.js +14 -0
  747. package/dist/cjs/api/types/UpdatePlanRequest.d.ts +18 -0
  748. package/dist/cjs/api/types/UpdatePlanRequest.js +12 -0
  749. package/dist/cjs/api/types/UpdatePricingIntent.d.ts +22 -0
  750. package/dist/cjs/api/types/UpdatePricingIntent.js +14 -0
  751. package/dist/cjs/api/types/UpdateProductRequest.d.ts +2 -0
  752. package/dist/cjs/api/types/UpdateQuantityIntent.d.ts +18 -0
  753. package/dist/cjs/api/types/UpdateQuantityIntent.js +14 -0
  754. package/dist/cjs/api/types/UsageAttributionAxisOptions.d.ts +23 -0
  755. package/dist/cjs/api/types/UsageAttributionAxisOptions.js +3 -0
  756. package/dist/cjs/api/types/UsageAttributionAxisValue.d.ts +6 -0
  757. package/dist/cjs/api/types/UsageAttributionAxisValue.js +9 -0
  758. package/dist/cjs/api/types/UsageBracketedPrepaidCreditsInput.d.ts +57 -0
  759. package/dist/cjs/api/types/UsageBracketedPrepaidCreditsInput.js +28 -0
  760. package/dist/cjs/api/types/UsageCostPlusInput.d.ts +6 -0
  761. package/dist/cjs/api/types/UsageCostPlusInput.js +4 -0
  762. package/dist/cjs/api/types/UsageGraduatedInput.d.ts +6 -0
  763. package/dist/cjs/api/types/UsageGraduatedInput.js +4 -0
  764. package/dist/cjs/api/types/UsagePerUnitInput.d.ts +6 -0
  765. package/dist/cjs/api/types/UsagePerUnitInput.js +4 -0
  766. package/dist/cjs/api/types/UsagePrepaidCreditsInput.d.ts +19 -0
  767. package/dist/cjs/api/types/UsagePrepaidCreditsInput.js +10 -0
  768. package/dist/cjs/api/types/UsageVolumeInput.d.ts +6 -0
  769. package/dist/cjs/api/types/UsageVolumeInput.js +4 -0
  770. package/dist/cjs/api/types/ValidateCustomViewRequest.d.ts +51 -0
  771. package/dist/cjs/api/types/ValidateCustomViewRequest.js +26 -0
  772. package/dist/cjs/api/types/ValidateCustomViewResponse.d.ts +7 -0
  773. package/dist/cjs/api/types/ValidateCustomViewResponse.js +3 -0
  774. package/dist/cjs/api/types/ValueMetricDetail.d.ts +47 -0
  775. package/dist/cjs/api/types/ValueMetricDetail.js +3 -0
  776. package/dist/cjs/api/types/ValueMetricFormula.d.ts +9 -0
  777. package/dist/cjs/api/types/ValueMetricFormula.js +3 -0
  778. package/dist/cjs/api/types/ValueMetricFormulaVariable.d.ts +31 -0
  779. package/dist/cjs/api/types/ValueMetricFormulaVariable.js +24 -0
  780. package/dist/cjs/api/types/ValueMetricListResponse.d.ts +5 -0
  781. package/dist/cjs/api/types/ValueMetricListResponse.js +3 -0
  782. package/dist/cjs/api/types/ValueMetricMonetaryConversion.d.ts +6 -0
  783. package/dist/cjs/api/types/ValueMetricMonetaryConversion.js +3 -0
  784. package/dist/cjs/api/types/ValueMetricSignalBinding.d.ts +14 -0
  785. package/dist/cjs/api/types/ValueMetricSignalBinding.js +3 -0
  786. package/dist/cjs/api/types/ValueMetricSummary.d.ts +30 -0
  787. package/dist/cjs/api/types/ValueMetricSummary.js +3 -0
  788. package/dist/cjs/api/types/ValueMetricUnit.d.ts +27 -0
  789. package/dist/cjs/api/types/ValueMetricUnit.js +20 -0
  790. package/dist/cjs/api/types/ValueMetricValidationResponse.d.ts +13 -0
  791. package/dist/cjs/api/types/ValueMetricValidationResponse.js +3 -0
  792. package/dist/cjs/api/types/ValueMetricVariableEdit.d.ts +26 -0
  793. package/dist/cjs/api/types/ValueMetricVariableEdit.js +19 -0
  794. package/dist/cjs/api/types/ValueMetricWriteAck.d.ts +6 -0
  795. package/dist/cjs/api/types/ValueMetricWriteAck.js +3 -0
  796. package/dist/cjs/api/types/ValueModelAuthoringGuide.d.ts +22 -0
  797. package/dist/cjs/api/types/ValueModelAuthoringGuide.js +3 -0
  798. package/dist/cjs/api/types/ValueModelContent.d.ts +357 -0
  799. package/dist/cjs/api/types/ValueModelContent.js +141 -0
  800. package/dist/cjs/api/types/ValueModelDetail.d.ts +12 -0
  801. package/dist/cjs/api/types/ValueModelDetail.js +3 -0
  802. package/dist/cjs/api/types/ValueModelSummary.d.ts +18 -0
  803. package/dist/cjs/api/types/ValueModelSummary.js +12 -0
  804. package/dist/cjs/api/types/ValueModelVersionListResponse.d.ts +5 -0
  805. package/dist/cjs/api/types/ValueModelVersionListResponse.js +3 -0
  806. package/dist/cjs/api/types/ValueReceiptSyncResponse.d.ts +1 -0
  807. package/dist/cjs/api/types/ViewDataResponse.d.ts +4 -0
  808. package/dist/cjs/api/types/ViewDataResponse.js +3 -0
  809. package/dist/cjs/api/types/Webhook.d.ts +2 -0
  810. package/dist/cjs/api/types/Webhook.js +2 -0
  811. package/dist/cjs/api/types/WebhookListResponse.d.ts +2 -0
  812. package/dist/cjs/api/types/WebhookUpdateResponse.d.ts +28 -0
  813. package/dist/cjs/api/types/WebhookUpdateResponse.js +20 -0
  814. package/dist/cjs/api/types/WritableOrderLineType.d.ts +6 -0
  815. package/dist/cjs/api/types/WritableOrderLineType.js +9 -0
  816. package/dist/cjs/api/types/index.d.ts +209 -1
  817. package/dist/cjs/api/types/index.js +209 -1
  818. package/dist/cjs/tracing/aiSdkSpanProcessor.js +17 -0
  819. package/dist/cjs/version.d.ts +1 -1
  820. package/dist/cjs/version.js +1 -1
  821. package/dist/esm/Client.d.mts +33 -0
  822. package/dist/esm/Client.mjs +57 -2
  823. package/dist/esm/api/errors/BadRequestError.d.mts +1 -2
  824. package/dist/esm/api/errors/ConflictError.d.mts +1 -2
  825. package/dist/esm/api/errors/ForbiddenError.d.mts +1 -2
  826. package/dist/esm/api/errors/InternalServerError.d.mts +1 -2
  827. package/dist/esm/api/errors/NotFoundError.d.mts +1 -2
  828. package/dist/esm/api/errors/RequestTimeoutError.d.mts +6 -0
  829. package/dist/esm/api/errors/RequestTimeoutError.mjs +13 -0
  830. package/dist/esm/api/errors/TooManyRequestsError.d.mts +6 -0
  831. package/dist/esm/api/errors/TooManyRequestsError.mjs +13 -0
  832. package/dist/esm/api/errors/index.d.mts +2 -0
  833. package/dist/esm/api/errors/index.mjs +2 -0
  834. package/dist/esm/api/resources/amendments/client/Client.d.mts +83 -0
  835. package/dist/esm/api/resources/amendments/client/Client.mjs +276 -0
  836. package/dist/esm/api/resources/amendments/client/index.d.mts +1 -0
  837. package/dist/esm/api/resources/amendments/client/index.mjs +1 -0
  838. package/dist/esm/api/resources/amendments/client/requests/GetOrderAmendmentOptionsRequest.d.mts +10 -0
  839. package/dist/esm/api/resources/amendments/client/requests/UnifiedAmendmentExecuteRequest.d.mts +35 -0
  840. package/dist/esm/api/resources/amendments/client/requests/UnifiedAmendmentExecuteRequest.mjs +11 -0
  841. package/dist/esm/api/resources/amendments/client/requests/UnifiedAmendmentPreviewRequest.d.mts +33 -0
  842. package/dist/esm/api/resources/amendments/client/requests/UnifiedAmendmentPreviewRequest.mjs +11 -0
  843. package/dist/esm/api/resources/amendments/client/requests/index.d.mts +3 -0
  844. package/dist/esm/api/resources/amendments/client/requests/index.mjs +1 -0
  845. package/dist/esm/api/resources/amendments/index.d.mts +1 -0
  846. package/dist/esm/api/resources/amendments/index.mjs +1 -0
  847. package/dist/esm/api/resources/analytics/client/Client.d.mts +63 -0
  848. package/dist/esm/api/resources/analytics/client/Client.mjs +236 -0
  849. package/dist/esm/api/resources/analytics/client/index.d.mts +1 -0
  850. package/dist/esm/api/resources/analytics/client/index.mjs +1 -0
  851. package/dist/esm/api/resources/analytics/client/requests/GetSignalsMetadataRequest.d.mts +12 -0
  852. package/dist/esm/api/resources/analytics/client/requests/index.d.mts +1 -0
  853. package/dist/esm/api/resources/analytics/client/requests/index.mjs +1 -0
  854. package/dist/esm/api/resources/analytics/index.d.mts +1 -0
  855. package/dist/esm/api/resources/analytics/index.mjs +1 -0
  856. package/dist/esm/api/resources/analyticsExperimental/client/Client.d.mts +69 -0
  857. package/dist/esm/api/resources/analyticsExperimental/client/Client.mjs +242 -0
  858. package/dist/esm/api/resources/analyticsExperimental/client/index.d.mts +1 -0
  859. package/dist/esm/api/resources/analyticsExperimental/client/index.mjs +1 -0
  860. package/dist/esm/api/resources/analyticsExperimental/client/requests/GetExperimentalSignalsMetadataRequest.d.mts +12 -0
  861. package/dist/esm/api/resources/analyticsExperimental/client/requests/GetExperimentalSignalsMetadataRequest.mjs +2 -0
  862. package/dist/esm/api/resources/analyticsExperimental/client/requests/index.d.mts +1 -0
  863. package/dist/esm/api/resources/analyticsExperimental/client/requests/index.mjs +1 -0
  864. package/dist/esm/api/resources/analyticsExperimental/index.d.mts +1 -0
  865. package/dist/esm/api/resources/analyticsExperimental/index.mjs +1 -0
  866. package/dist/esm/api/resources/checkouts/client/requests/CreateCheckoutRequest.d.mts +3 -1
  867. package/dist/esm/api/resources/credits/client/Client.d.mts +57 -2
  868. package/dist/esm/api/resources/credits/client/Client.mjs +267 -5
  869. package/dist/esm/api/resources/credits/client/index.d.mts +1 -1
  870. package/dist/esm/api/resources/credits/client/index.mjs +1 -1
  871. package/dist/esm/api/resources/credits/client/requests/CreateCreditCurrencyRequest.d.mts +16 -0
  872. package/dist/esm/api/resources/credits/client/requests/CreateCreditCurrencyRequest.mjs +2 -0
  873. package/dist/esm/api/resources/credits/client/requests/ListCreditCurrenciesRequest.d.mts +9 -0
  874. package/dist/esm/api/resources/credits/client/requests/ListCreditCurrenciesRequest.mjs +2 -0
  875. package/dist/esm/api/resources/credits/client/requests/ListCreditTransactionsRequest.d.mts +25 -0
  876. package/dist/esm/api/resources/credits/client/requests/ListCreditTransactionsRequest.mjs +2 -0
  877. package/dist/esm/api/resources/credits/client/requests/UpdateCreditCurrencyRequest.d.mts +24 -0
  878. package/dist/esm/api/resources/credits/client/requests/UpdateCreditCurrencyRequest.mjs +9 -0
  879. package/dist/esm/api/resources/credits/client/requests/index.d.mts +4 -0
  880. package/dist/esm/api/resources/credits/client/requests/index.mjs +1 -0
  881. package/dist/esm/api/resources/credits/index.d.mts +1 -0
  882. package/dist/esm/api/resources/credits/index.mjs +1 -0
  883. package/dist/esm/api/resources/credits/types/ListCreditCurrenciesRequestStatus.d.mts +6 -0
  884. package/dist/esm/api/resources/credits/types/ListCreditCurrenciesRequestStatus.mjs +6 -0
  885. package/dist/esm/api/resources/credits/types/ListCreditTransactionsRequestType.d.mts +6 -0
  886. package/dist/esm/api/resources/credits/types/ListCreditTransactionsRequestType.mjs +6 -0
  887. package/dist/esm/api/resources/credits/types/index.d.mts +2 -0
  888. package/dist/esm/api/resources/credits/types/index.mjs +2 -0
  889. package/dist/esm/api/resources/customViewsExperimental/client/Client.d.mts +177 -0
  890. package/dist/esm/api/resources/customViewsExperimental/client/Client.mjs +651 -0
  891. package/dist/esm/api/resources/customViewsExperimental/client/index.d.mts +1 -0
  892. package/dist/esm/api/resources/customViewsExperimental/client/index.mjs +1 -0
  893. package/dist/esm/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.d.mts +66 -0
  894. package/dist/esm/api/resources/customViewsExperimental/client/requests/CreateCustomViewRequest.mjs +23 -0
  895. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.d.mts +22 -0
  896. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewDataRequest.mjs +2 -0
  897. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewEmbedTokenRequest.d.mts +14 -0
  898. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewEmbedTokenRequest.mjs +2 -0
  899. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewRequest.d.mts +9 -0
  900. package/dist/esm/api/resources/customViewsExperimental/client/requests/GetCustomViewRequest.mjs +2 -0
  901. package/dist/esm/api/resources/customViewsExperimental/client/requests/PublishCustomViewRequest.d.mts +9 -0
  902. package/dist/esm/api/resources/customViewsExperimental/client/requests/PublishCustomViewRequest.mjs +2 -0
  903. package/dist/esm/api/resources/customViewsExperimental/client/requests/UpdateCustomViewPeriodRequest.d.mts +46 -0
  904. package/dist/esm/api/resources/customViewsExperimental/client/requests/UpdateCustomViewPeriodRequest.mjs +18 -0
  905. package/dist/esm/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.d.mts +26 -0
  906. package/dist/esm/api/resources/customViewsExperimental/client/requests/UpdateCustomViewRequest.mjs +2 -0
  907. package/dist/esm/api/resources/customViewsExperimental/client/requests/index.d.mts +7 -0
  908. package/dist/esm/api/resources/customViewsExperimental/client/requests/index.mjs +1 -0
  909. package/dist/esm/api/resources/customViewsExperimental/index.d.mts +2 -0
  910. package/dist/esm/api/resources/customViewsExperimental/index.mjs +2 -0
  911. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodKind.d.mts +5 -0
  912. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodKind.mjs +5 -0
  913. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodUnit.d.mts +6 -0
  914. package/dist/esm/api/resources/customViewsExperimental/types/GetCustomViewDataRequestPeriodUnit.mjs +6 -0
  915. package/dist/esm/api/resources/customViewsExperimental/types/index.d.mts +2 -0
  916. package/dist/esm/api/resources/customViewsExperimental/types/index.mjs +2 -0
  917. package/dist/esm/api/resources/customerGroups/client/Client.d.mts +153 -0
  918. package/dist/esm/api/resources/customerGroups/client/Client.mjs +599 -0
  919. package/dist/esm/api/resources/customerGroups/client/index.d.mts +1 -0
  920. package/dist/esm/api/resources/customerGroups/client/index.mjs +1 -0
  921. package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.d.mts +14 -0
  922. package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupMembersRequest.mjs +2 -0
  923. package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.d.mts +10 -0
  924. package/dist/esm/api/resources/customerGroups/client/requests/CreateCustomerGroupRequest.mjs +2 -0
  925. package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.d.mts +14 -0
  926. package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupMembersRequest.mjs +2 -0
  927. package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.d.mts +9 -0
  928. package/dist/esm/api/resources/customerGroups/client/requests/DeleteCustomerGroupRequest.mjs +2 -0
  929. package/dist/esm/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.d.mts +9 -0
  930. package/dist/esm/api/resources/customerGroups/client/requests/GetCustomerGroupRequest.mjs +2 -0
  931. package/dist/esm/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.d.mts +8 -0
  932. package/dist/esm/api/resources/customerGroups/client/requests/ListCustomerGroupsRequest.mjs +2 -0
  933. package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.d.mts +14 -0
  934. package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupMembersRequest.mjs +2 -0
  935. package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.d.mts +11 -0
  936. package/dist/esm/api/resources/customerGroups/client/requests/UpdateCustomerGroupRequest.mjs +2 -0
  937. package/dist/esm/api/resources/customerGroups/client/requests/index.d.mts +8 -0
  938. package/dist/esm/api/resources/customerGroups/client/requests/index.mjs +1 -0
  939. package/dist/esm/api/resources/customerGroups/index.d.mts +1 -0
  940. package/dist/esm/api/resources/customerGroups/index.mjs +1 -0
  941. package/dist/esm/api/resources/customers/client/Client.d.mts +576 -12
  942. package/dist/esm/api/resources/customers/client/Client.mjs +2292 -98
  943. package/dist/esm/api/resources/customers/client/requests/CreateCustomerAliasByExternalIdRequest.d.mts +15 -0
  944. package/dist/esm/api/resources/customers/client/requests/CreateCustomerAliasByExternalIdRequest.mjs +2 -0
  945. package/dist/esm/api/resources/customers/client/requests/CreateCustomerAliasRequest.d.mts +15 -0
  946. package/dist/esm/api/resources/customers/client/requests/CreateCustomerAliasRequest.mjs +2 -0
  947. package/dist/esm/api/resources/customers/client/requests/CreateCustomerRequest.d.mts +1 -1
  948. package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitByExternalIdRequest.d.mts +15 -0
  949. package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitByExternalIdRequest.mjs +2 -0
  950. package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitRequest.d.mts +15 -0
  951. package/dist/esm/api/resources/customers/client/requests/CreateCustomerUnitRequest.mjs +2 -0
  952. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerAliasByExternalIdRequest.d.mts +13 -0
  953. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerAliasByExternalIdRequest.mjs +2 -0
  954. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerAliasRequest.d.mts +13 -0
  955. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerAliasRequest.mjs +2 -0
  956. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerByExternalIdRequest.d.mts +2 -1
  957. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerByIdRequest.d.mts +2 -1
  958. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitByExternalIdRequest.d.mts +13 -0
  959. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitByExternalIdRequest.mjs +2 -0
  960. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitRequest.d.mts +13 -0
  961. package/dist/esm/api/resources/customers/client/requests/DeleteCustomerUnitRequest.mjs +2 -0
  962. package/dist/esm/api/resources/customers/client/requests/EndCustomerUnitCapByExternalIdRequest.d.mts +16 -0
  963. package/dist/esm/api/resources/customers/client/requests/EndCustomerUnitCapByExternalIdRequest.mjs +2 -0
  964. package/dist/esm/api/resources/customers/client/requests/EndCustomerUnitCapRequest.d.mts +16 -0
  965. package/dist/esm/api/resources/customers/client/requests/EndCustomerUnitCapRequest.mjs +2 -0
  966. package/dist/esm/api/resources/customers/client/requests/GetCustomerByExternalIdRequest.d.mts +2 -1
  967. package/dist/esm/api/resources/customers/client/requests/GetCustomerByIdRequest.d.mts +2 -1
  968. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesByExternalIdRequest.d.mts +2 -1
  969. package/dist/esm/api/resources/customers/client/requests/GetCustomerCreditBalancesRequest.d.mts +2 -1
  970. package/dist/esm/api/resources/customers/client/requests/GetCustomerStateByExternalIdRequest.d.mts +10 -0
  971. package/dist/esm/api/resources/customers/client/requests/GetCustomerStateByExternalIdRequest.mjs +2 -0
  972. package/dist/esm/api/resources/customers/client/requests/GetCustomerStateByIdRequest.d.mts +10 -0
  973. package/dist/esm/api/resources/customers/client/requests/GetCustomerStateByIdRequest.mjs +2 -0
  974. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitByExternalIdRequest.d.mts +13 -0
  975. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitByExternalIdRequest.mjs +2 -0
  976. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitCapByExternalIdRequest.d.mts +16 -0
  977. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitCapByExternalIdRequest.mjs +2 -0
  978. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitCapRequest.d.mts +16 -0
  979. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitCapRequest.mjs +2 -0
  980. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitRequest.d.mts +13 -0
  981. package/dist/esm/api/resources/customers/client/requests/GetCustomerUnitRequest.mjs +2 -0
  982. package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.d.mts +18 -0
  983. package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsByExternalIdRequest.mjs +2 -0
  984. package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsRequest.d.mts +18 -0
  985. package/dist/esm/api/resources/customers/client/requests/GrantCustomerCreditsRequest.mjs +2 -0
  986. package/dist/esm/api/resources/customers/client/requests/ListCustomerAliasesByExternalIdRequest.d.mts +12 -0
  987. package/dist/esm/api/resources/customers/client/requests/ListCustomerAliasesByExternalIdRequest.mjs +2 -0
  988. package/dist/esm/api/resources/customers/client/requests/ListCustomerAliasesRequest.d.mts +12 -0
  989. package/dist/esm/api/resources/customers/client/requests/ListCustomerAliasesRequest.mjs +2 -0
  990. package/dist/esm/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionByExternalIdRequest.d.mts +12 -0
  991. package/dist/esm/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionByExternalIdRequest.mjs +2 -0
  992. package/dist/esm/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionRequest.d.mts +12 -0
  993. package/dist/esm/api/resources/customers/client/requests/ListCustomerPendingCreditConsumptionRequest.mjs +2 -0
  994. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.d.mts +20 -0
  995. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsByExternalIdRequest.mjs +2 -0
  996. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsRequest.d.mts +20 -0
  997. package/dist/esm/api/resources/customers/client/requests/ListCustomerUnitsRequest.mjs +2 -0
  998. package/dist/esm/api/resources/customers/client/requests/ListCustomersRequest.d.mts +13 -0
  999. package/dist/esm/api/resources/customers/client/requests/SetCustomerUnitCapByExternalIdRequest.d.mts +18 -0
  1000. package/dist/esm/api/resources/customers/client/requests/SetCustomerUnitCapByExternalIdRequest.mjs +2 -0
  1001. package/dist/esm/api/resources/customers/client/requests/SetCustomerUnitCapRequest.d.mts +18 -0
  1002. package/dist/esm/api/resources/customers/client/requests/SetCustomerUnitCapRequest.mjs +2 -0
  1003. package/dist/esm/api/resources/customers/client/requests/UpdateCustomerByExternalIdRequest.d.mts +2 -1
  1004. package/dist/esm/api/resources/customers/client/requests/UpdateCustomerByIdRequest.d.mts +2 -1
  1005. package/dist/esm/api/resources/customers/client/requests/UpdateCustomerUnitByExternalIdRequest.d.mts +16 -0
  1006. package/dist/esm/api/resources/customers/client/requests/UpdateCustomerUnitByExternalIdRequest.mjs +2 -0
  1007. package/dist/esm/api/resources/customers/client/requests/UpdateCustomerUnitRequest.d.mts +16 -0
  1008. package/dist/esm/api/resources/customers/client/requests/UpdateCustomerUnitRequest.mjs +2 -0
  1009. package/dist/esm/api/resources/customers/client/requests/index.d.mts +28 -0
  1010. package/dist/esm/api/resources/customers/index.d.mts +1 -0
  1011. package/dist/esm/api/resources/customers/index.mjs +1 -0
  1012. package/dist/esm/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.d.mts +5 -0
  1013. package/dist/esm/api/resources/customers/types/ListCustomerUnitsByExternalIdRequestStatus.mjs +5 -0
  1014. package/dist/esm/api/resources/customers/types/ListCustomerUnitsRequestStatus.d.mts +5 -0
  1015. package/dist/esm/api/resources/customers/types/ListCustomerUnitsRequestStatus.mjs +5 -0
  1016. package/dist/esm/api/resources/customers/types/ListCustomersRequestCreationState.d.mts +5 -0
  1017. package/dist/esm/api/resources/customers/types/ListCustomersRequestCreationState.mjs +5 -0
  1018. package/dist/esm/api/resources/customers/types/ListCustomersRequestStatus.d.mts +5 -0
  1019. package/dist/esm/api/resources/customers/types/ListCustomersRequestStatus.mjs +5 -0
  1020. package/dist/esm/api/resources/customers/types/index.d.mts +4 -0
  1021. package/dist/esm/api/resources/customers/types/index.mjs +4 -0
  1022. package/dist/esm/api/resources/index.d.mts +28 -0
  1023. package/dist/esm/api/resources/index.mjs +28 -0
  1024. package/dist/esm/api/resources/invoices/client/Client.mjs +37 -1
  1025. package/dist/esm/api/resources/invoices/client/requests/ListInvoicesRequest.d.mts +25 -0
  1026. package/dist/esm/api/resources/invoices/index.d.mts +1 -0
  1027. package/dist/esm/api/resources/invoices/index.mjs +1 -0
  1028. package/dist/esm/api/resources/invoices/types/ListInvoicesRequestPaymentStatus.d.mts +8 -0
  1029. package/dist/esm/api/resources/invoices/types/ListInvoicesRequestPaymentStatus.mjs +8 -0
  1030. package/dist/esm/api/resources/invoices/types/ListInvoicesRequestStatus.d.mts +10 -0
  1031. package/dist/esm/api/resources/invoices/types/ListInvoicesRequestStatus.mjs +10 -0
  1032. package/dist/esm/api/resources/invoices/types/index.d.mts +2 -0
  1033. package/dist/esm/api/resources/invoices/types/index.mjs +2 -0
  1034. package/dist/esm/api/resources/orders/client/Client.d.mts +18 -0
  1035. package/dist/esm/api/resources/orders/client/Client.mjs +99 -1
  1036. package/dist/esm/api/resources/orders/client/requests/ActivateOrderByIdRequest.d.mts +9 -0
  1037. package/dist/esm/api/resources/orders/client/requests/ActivateOrderByIdRequest.mjs +2 -0
  1038. package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +2 -0
  1039. package/dist/esm/api/resources/orders/client/requests/ListOrdersRequest.d.mts +19 -0
  1040. package/dist/esm/api/resources/orders/client/requests/UpdateOrderRequest.d.mts +2 -0
  1041. package/dist/esm/api/resources/orders/client/requests/index.d.mts +1 -0
  1042. package/dist/esm/api/resources/orders/types/ListOrdersRequestCreationState.d.mts +5 -0
  1043. package/dist/esm/api/resources/orders/types/ListOrdersRequestCreationState.mjs +5 -0
  1044. package/dist/esm/api/resources/orders/types/OrderStatusFilter.d.mts +7 -0
  1045. package/dist/esm/api/resources/orders/types/OrderStatusFilter.mjs +7 -0
  1046. package/dist/esm/api/resources/orders/types/index.d.mts +2 -0
  1047. package/dist/esm/api/resources/orders/types/index.mjs +2 -0
  1048. package/dist/esm/api/resources/paymentAllocations/client/Client.d.mts +55 -0
  1049. package/dist/esm/api/resources/paymentAllocations/client/Client.mjs +187 -0
  1050. package/dist/esm/api/resources/paymentAllocations/client/index.d.mts +1 -0
  1051. package/dist/esm/api/resources/paymentAllocations/client/index.mjs +1 -0
  1052. package/dist/esm/api/resources/paymentAllocations/client/requests/CreatePaymentAllocationRequest.d.mts +17 -0
  1053. package/dist/esm/api/resources/paymentAllocations/client/requests/CreatePaymentAllocationRequest.mjs +2 -0
  1054. package/dist/esm/api/resources/paymentAllocations/client/requests/ListPaymentAllocationsRequest.d.mts +15 -0
  1055. package/dist/esm/api/resources/paymentAllocations/client/requests/ListPaymentAllocationsRequest.mjs +2 -0
  1056. package/dist/esm/api/resources/paymentAllocations/client/requests/index.d.mts +2 -0
  1057. package/dist/esm/api/resources/paymentAllocations/client/requests/index.mjs +1 -0
  1058. package/dist/esm/api/resources/paymentAllocations/index.d.mts +1 -0
  1059. package/dist/esm/api/resources/paymentAllocations/index.mjs +1 -0
  1060. package/dist/esm/api/resources/paymentMethods/client/Client.d.mts +104 -0
  1061. package/dist/esm/api/resources/paymentMethods/client/Client.mjs +409 -0
  1062. package/dist/esm/api/resources/paymentMethods/client/index.d.mts +1 -0
  1063. package/dist/esm/api/resources/paymentMethods/client/index.mjs +1 -0
  1064. package/dist/esm/api/resources/paymentMethods/client/requests/CreatePaymentMethodRequest.d.mts +18 -0
  1065. package/dist/esm/api/resources/paymentMethods/client/requests/CreatePaymentMethodRequest.mjs +2 -0
  1066. package/dist/esm/api/resources/paymentMethods/client/requests/DeletePaymentMethodRequest.d.mts +9 -0
  1067. package/dist/esm/api/resources/paymentMethods/client/requests/DeletePaymentMethodRequest.mjs +2 -0
  1068. package/dist/esm/api/resources/paymentMethods/client/requests/GetPaymentMethodRequest.d.mts +9 -0
  1069. package/dist/esm/api/resources/paymentMethods/client/requests/GetPaymentMethodRequest.mjs +2 -0
  1070. package/dist/esm/api/resources/paymentMethods/client/requests/ListPaymentMethodsRequest.d.mts +14 -0
  1071. package/dist/esm/api/resources/paymentMethods/client/requests/ListPaymentMethodsRequest.mjs +2 -0
  1072. package/dist/esm/api/resources/paymentMethods/client/requests/UpdateDefaultPaymentMethodRequest.d.mts +9 -0
  1073. package/dist/esm/api/resources/paymentMethods/client/requests/UpdateDefaultPaymentMethodRequest.mjs +2 -0
  1074. package/dist/esm/api/resources/paymentMethods/client/requests/index.d.mts +5 -0
  1075. package/dist/esm/api/resources/paymentMethods/client/requests/index.mjs +1 -0
  1076. package/dist/esm/api/resources/paymentMethods/index.d.mts +1 -0
  1077. package/dist/esm/api/resources/paymentMethods/index.mjs +1 -0
  1078. package/dist/esm/api/resources/payments/client/Client.d.mts +68 -0
  1079. package/dist/esm/api/resources/payments/client/Client.mjs +256 -0
  1080. package/dist/esm/api/resources/payments/client/index.d.mts +1 -0
  1081. package/dist/esm/api/resources/payments/client/index.mjs +1 -0
  1082. package/dist/esm/api/resources/payments/client/requests/CreatePaymentRequest.d.mts +25 -0
  1083. package/dist/esm/api/resources/payments/client/requests/CreatePaymentRequest.mjs +2 -0
  1084. package/dist/esm/api/resources/payments/client/requests/GetPaymentRequest.d.mts +9 -0
  1085. package/dist/esm/api/resources/payments/client/requests/GetPaymentRequest.mjs +2 -0
  1086. package/dist/esm/api/resources/payments/client/requests/ListPaymentsRequest.d.mts +15 -0
  1087. package/dist/esm/api/resources/payments/client/requests/ListPaymentsRequest.mjs +2 -0
  1088. package/dist/esm/api/resources/payments/client/requests/index.d.mts +3 -0
  1089. package/dist/esm/api/resources/payments/client/requests/index.mjs +1 -0
  1090. package/dist/esm/api/resources/payments/index.d.mts +2 -0
  1091. package/dist/esm/api/resources/payments/index.mjs +2 -0
  1092. package/dist/esm/api/resources/payments/types/ListPaymentsRequestStatus.d.mts +9 -0
  1093. package/dist/esm/api/resources/payments/types/ListPaymentsRequestStatus.mjs +9 -0
  1094. package/dist/esm/api/resources/payments/types/index.d.mts +1 -0
  1095. package/dist/esm/api/resources/payments/types/index.mjs +1 -0
  1096. package/dist/esm/api/resources/plans/client/Client.d.mts +152 -0
  1097. package/dist/esm/api/resources/plans/client/Client.mjs +556 -0
  1098. package/dist/esm/api/resources/plans/client/index.d.mts +1 -0
  1099. package/dist/esm/api/resources/plans/client/index.mjs +1 -0
  1100. package/dist/esm/api/resources/plans/client/requests/CreatePlanRequest.d.mts +28 -0
  1101. package/dist/esm/api/resources/plans/client/requests/CreatePlanRequest.mjs +2 -0
  1102. package/dist/esm/api/resources/plans/client/requests/GetPlanByExternalIdRequest.d.mts +9 -0
  1103. package/dist/esm/api/resources/plans/client/requests/GetPlanByExternalIdRequest.mjs +2 -0
  1104. package/dist/esm/api/resources/plans/client/requests/GetPlanByIdRequest.d.mts +9 -0
  1105. package/dist/esm/api/resources/plans/client/requests/GetPlanByIdRequest.mjs +2 -0
  1106. package/dist/esm/api/resources/plans/client/requests/ListPlansRequest.d.mts +12 -0
  1107. package/dist/esm/api/resources/plans/client/requests/ListPlansRequest.mjs +2 -0
  1108. package/dist/esm/api/resources/plans/client/requests/UpdatePlanByExternalIdRequest.d.mts +12 -0
  1109. package/dist/esm/api/resources/plans/client/requests/UpdatePlanByExternalIdRequest.mjs +2 -0
  1110. package/dist/esm/api/resources/plans/client/requests/UpdatePlanByIdRequest.d.mts +12 -0
  1111. package/dist/esm/api/resources/plans/client/requests/UpdatePlanByIdRequest.mjs +2 -0
  1112. package/dist/esm/api/resources/plans/client/requests/UpdatePlanUpgradePathRequest.d.mts +15 -0
  1113. package/dist/esm/api/resources/plans/client/requests/UpdatePlanUpgradePathRequest.mjs +2 -0
  1114. package/dist/esm/api/resources/plans/client/requests/index.d.mts +7 -0
  1115. package/dist/esm/api/resources/plans/client/requests/index.mjs +1 -0
  1116. package/dist/esm/api/resources/plans/index.d.mts +1 -0
  1117. package/dist/esm/api/resources/plans/index.mjs +1 -0
  1118. package/dist/esm/api/resources/pricing/client/Client.d.mts +2 -2
  1119. package/dist/esm/api/resources/pricing/client/Client.mjs +2 -2
  1120. package/dist/esm/api/resources/pricing/client/requests/UpdatePricingRequest.d.mts +1 -1
  1121. package/dist/esm/api/resources/products/client/Client.d.mts +9 -9
  1122. package/dist/esm/api/resources/products/client/Client.mjs +15 -6
  1123. package/dist/esm/api/resources/products/client/requests/ListProductsRequest.d.mts +6 -0
  1124. package/dist/esm/api/resources/signals/client/Client.d.mts +38 -0
  1125. package/dist/esm/api/resources/signals/client/Client.mjs +180 -0
  1126. package/dist/esm/api/resources/signals/client/requests/GetSignalByIdRequest.d.mts +10 -0
  1127. package/dist/esm/api/resources/signals/client/requests/GetSignalByIdRequest.mjs +2 -0
  1128. package/dist/esm/api/resources/signals/client/requests/ListSignalsRequest.d.mts +22 -0
  1129. package/dist/esm/api/resources/signals/client/requests/ListSignalsRequest.mjs +2 -0
  1130. package/dist/esm/api/resources/signals/client/requests/index.d.mts +2 -0
  1131. package/dist/esm/api/resources/valueMetrics/client/Client.d.mts +111 -0
  1132. package/dist/esm/api/resources/valueMetrics/client/Client.mjs +409 -0
  1133. package/dist/esm/api/resources/valueMetrics/client/index.d.mts +1 -0
  1134. package/dist/esm/api/resources/valueMetrics/client/index.mjs +1 -0
  1135. package/dist/esm/api/resources/valueMetrics/client/requests/ArchiveValueMetricRequest.d.mts +10 -0
  1136. package/dist/esm/api/resources/valueMetrics/client/requests/ArchiveValueMetricRequest.mjs +2 -0
  1137. package/dist/esm/api/resources/valueMetrics/client/requests/CreateValueMetricRequest.d.mts +57 -0
  1138. package/dist/esm/api/resources/valueMetrics/client/requests/CreateValueMetricRequest.mjs +12 -0
  1139. package/dist/esm/api/resources/valueMetrics/client/requests/GetValueMetricRequest.d.mts +9 -0
  1140. package/dist/esm/api/resources/valueMetrics/client/requests/GetValueMetricRequest.mjs +2 -0
  1141. package/dist/esm/api/resources/valueMetrics/client/requests/ListValueMetricsRequest.d.mts +10 -0
  1142. package/dist/esm/api/resources/valueMetrics/client/requests/ListValueMetricsRequest.mjs +2 -0
  1143. package/dist/esm/api/resources/valueMetrics/client/requests/UpdateValueMetricRequest.d.mts +43 -0
  1144. package/dist/esm/api/resources/valueMetrics/client/requests/UpdateValueMetricRequest.mjs +12 -0
  1145. package/dist/esm/api/resources/valueMetrics/client/requests/index.d.mts +5 -0
  1146. package/dist/esm/api/resources/valueMetrics/client/requests/index.mjs +1 -0
  1147. package/dist/esm/api/resources/valueMetrics/index.d.mts +1 -0
  1148. package/dist/esm/api/resources/valueMetrics/index.mjs +1 -0
  1149. package/dist/esm/api/resources/valueModels/client/Client.d.mts +118 -0
  1150. package/dist/esm/api/resources/valueModels/client/Client.mjs +382 -0
  1151. package/dist/esm/api/resources/valueModels/client/index.d.mts +1 -0
  1152. package/dist/esm/api/resources/valueModels/client/index.mjs +1 -0
  1153. package/dist/esm/api/resources/valueModels/client/requests/GetValueModelVersionRequest.d.mts +9 -0
  1154. package/dist/esm/api/resources/valueModels/client/requests/GetValueModelVersionRequest.mjs +2 -0
  1155. package/dist/esm/api/resources/valueModels/client/requests/ListValueModelVersionsRequest.d.mts +8 -0
  1156. package/dist/esm/api/resources/valueModels/client/requests/ListValueModelVersionsRequest.mjs +2 -0
  1157. package/dist/esm/api/resources/valueModels/client/requests/RefreshValueModelBackfillRequest.d.mts +5 -0
  1158. package/dist/esm/api/resources/valueModels/client/requests/RefreshValueModelBackfillRequest.mjs +2 -0
  1159. package/dist/esm/api/resources/valueModels/client/requests/ValueModelUploadRequest.d.mts +44 -0
  1160. package/dist/esm/api/resources/valueModels/client/requests/ValueModelUploadRequest.mjs +2 -0
  1161. package/dist/esm/api/resources/valueModels/client/requests/index.d.mts +4 -0
  1162. package/dist/esm/api/resources/valueModels/client/requests/index.mjs +1 -0
  1163. package/dist/esm/api/resources/valueModels/index.d.mts +1 -0
  1164. package/dist/esm/api/resources/valueModels/index.mjs +1 -0
  1165. package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +42 -11
  1166. package/dist/esm/api/resources/valueReceipts/client/Client.mjs +153 -43
  1167. package/dist/esm/api/resources/valueReceipts/client/requests/index.d.mts +0 -1
  1168. package/dist/esm/api/resources/webhooks/client/Client.d.mts +17 -2
  1169. package/dist/esm/api/resources/webhooks/client/Client.mjs +69 -1
  1170. package/dist/esm/api/resources/webhooks/client/requests/RotateWebhookSecretRequest.d.mts +5 -0
  1171. package/dist/esm/api/resources/webhooks/client/requests/RotateWebhookSecretRequest.mjs +2 -0
  1172. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
  1173. package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.d.mts +2 -0
  1174. package/dist/esm/api/resources/webhooks/types/TestWebhookRequestWebhookName.mjs +2 -0
  1175. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.d.mts +2 -0
  1176. package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequestWebhookName.mjs +2 -0
  1177. package/dist/esm/api/types/AddAttributeIntent.d.mts +45 -0
  1178. package/dist/esm/api/types/AddAttributeIntent.mjs +21 -0
  1179. package/dist/esm/api/types/AddFromCatalogIntent.d.mts +22 -0
  1180. package/dist/esm/api/types/AddFromCatalogIntent.mjs +10 -0
  1181. package/dist/esm/api/types/AddMembersResponse.d.mts +5 -0
  1182. package/dist/esm/api/types/AddMembersResponse.mjs +2 -0
  1183. package/dist/esm/api/types/AmendmentAddAttributeOptions.d.mts +9 -0
  1184. package/dist/esm/api/types/AmendmentAddAttributeOptions.mjs +2 -0
  1185. package/dist/esm/api/types/AmendmentAddAxisOptions.d.mts +10 -0
  1186. package/dist/esm/api/types/AmendmentAddAxisOptions.mjs +2 -0
  1187. package/dist/esm/api/types/AmendmentAttributeOptions.d.mts +14 -0
  1188. package/dist/esm/api/types/AmendmentAttributeOptions.mjs +2 -0
  1189. package/dist/esm/api/types/AmendmentAttributeState.d.mts +24 -0
  1190. package/dist/esm/api/types/AmendmentAttributeState.mjs +2 -0
  1191. package/dist/esm/api/types/AmendmentAxisChoiceValue.d.mts +10 -0
  1192. package/dist/esm/api/types/AmendmentAxisChoiceValue.mjs +10 -0
  1193. package/dist/esm/api/types/AmendmentAxisId.d.mts +8 -0
  1194. package/dist/esm/api/types/AmendmentAxisId.mjs +8 -0
  1195. package/dist/esm/api/types/AmendmentAxisOptions.d.mts +16 -0
  1196. package/dist/esm/api/types/AmendmentAxisOptions.mjs +2 -0
  1197. package/dist/esm/api/types/AmendmentAxisRelevance.d.mts +6 -0
  1198. package/dist/esm/api/types/AmendmentAxisRelevance.mjs +6 -0
  1199. package/dist/esm/api/types/AmendmentBillingType.d.mts +6 -0
  1200. package/dist/esm/api/types/AmendmentBillingType.mjs +6 -0
  1201. package/dist/esm/api/types/AmendmentChargeType.d.mts +8 -0
  1202. package/dist/esm/api/types/AmendmentChargeType.mjs +8 -0
  1203. package/dist/esm/api/types/AmendmentCreditEffectKind.d.mts +6 -0
  1204. package/dist/esm/api/types/AmendmentCreditEffectKind.mjs +6 -0
  1205. package/dist/esm/api/types/AmendmentErrorResponse.d.mts +7 -0
  1206. package/dist/esm/api/types/AmendmentErrorResponse.mjs +2 -0
  1207. package/dist/esm/api/types/AmendmentIntentKind.d.mts +10 -0
  1208. package/dist/esm/api/types/AmendmentIntentKind.mjs +10 -0
  1209. package/dist/esm/api/types/AmendmentIntentOptions.d.mts +7 -0
  1210. package/dist/esm/api/types/AmendmentIntentOptions.mjs +2 -0
  1211. package/dist/esm/api/types/AmendmentLineOptions.d.mts +12 -0
  1212. package/dist/esm/api/types/AmendmentLineOptions.mjs +2 -0
  1213. package/dist/esm/api/types/AmendmentMoneyBilling.d.mts +6 -0
  1214. package/dist/esm/api/types/AmendmentMoneyBilling.mjs +6 -0
  1215. package/dist/esm/api/types/AmendmentOptions.d.mts +26 -0
  1216. package/dist/esm/api/types/AmendmentOptions.mjs +2 -0
  1217. package/dist/esm/api/types/AmendmentPlan.d.mts +24 -0
  1218. package/dist/esm/api/types/AmendmentPlan.mjs +2 -0
  1219. package/dist/esm/api/types/AmendmentPlanAttributeDiff.d.mts +18 -0
  1220. package/dist/esm/api/types/AmendmentPlanAttributeDiff.mjs +2 -0
  1221. package/dist/esm/api/types/AmendmentPlanChange.d.mts +9 -0
  1222. package/dist/esm/api/types/AmendmentPlanChange.mjs +9 -0
  1223. package/dist/esm/api/types/AmendmentPlanCreditEffect.d.mts +15 -0
  1224. package/dist/esm/api/types/AmendmentPlanCreditEffect.mjs +2 -0
  1225. package/dist/esm/api/types/AmendmentPlanLineType.d.mts +8 -0
  1226. package/dist/esm/api/types/AmendmentPlanLineType.mjs +8 -0
  1227. package/dist/esm/api/types/AmendmentPlanMoneyEffect.d.mts +31 -0
  1228. package/dist/esm/api/types/AmendmentPlanMoneyEffect.mjs +10 -0
  1229. package/dist/esm/api/types/AmendmentPlanTreatmentResolution.d.mts +12 -0
  1230. package/dist/esm/api/types/AmendmentPlanTreatmentResolution.mjs +2 -0
  1231. package/dist/esm/api/types/AmendmentPlanUsageEffect.d.mts +17 -0
  1232. package/dist/esm/api/types/AmendmentPlanUsageEffect.mjs +9 -0
  1233. package/dist/esm/api/types/AmendmentPricingClause.d.mts +14 -0
  1234. package/dist/esm/api/types/AmendmentPricingClause.mjs +2 -0
  1235. package/dist/esm/api/types/AmendmentPricingModel.d.mts +11 -0
  1236. package/dist/esm/api/types/AmendmentPricingModel.mjs +11 -0
  1237. package/dist/esm/api/types/AmendmentTreatmentSource.d.mts +7 -0
  1238. package/dist/esm/api/types/AmendmentTreatmentSource.mjs +7 -0
  1239. package/dist/esm/api/types/AnalyticsColumn.d.mts +5 -0
  1240. package/dist/esm/api/types/AnalyticsColumn.mjs +2 -0
  1241. package/dist/esm/api/types/AnalyticsQueryRequest.d.mts +4 -0
  1242. package/dist/esm/api/types/AnalyticsQueryRequest.mjs +2 -0
  1243. package/dist/esm/api/types/AnalyticsQueryResponse.d.mts +15 -0
  1244. package/dist/esm/api/types/AnalyticsQueryResponse.mjs +2 -0
  1245. package/dist/esm/api/types/AnalyticsSchemaColumn.d.mts +6 -0
  1246. package/dist/esm/api/types/AnalyticsSchemaColumn.mjs +2 -0
  1247. package/dist/esm/api/types/AnalyticsSchemaResponse.d.mts +4 -0
  1248. package/dist/esm/api/types/AnalyticsSchemaResponse.mjs +2 -0
  1249. package/dist/esm/api/types/AnalyticsSchemaView.d.mts +6 -0
  1250. package/dist/esm/api/types/AnalyticsSchemaView.mjs +2 -0
  1251. package/dist/esm/api/types/BackfillResponse.d.mts +4 -0
  1252. package/dist/esm/api/types/BackfillResponse.mjs +2 -0
  1253. package/dist/esm/api/types/ChargeStubAddAxisOptions.d.mts +34 -0
  1254. package/dist/esm/api/types/ChargeStubAddAxisOptions.mjs +16 -0
  1255. package/dist/esm/api/types/ChargeStubAxisOptions.d.mts +33 -0
  1256. package/dist/esm/api/types/ChargeStubAxisOptions.mjs +16 -0
  1257. package/dist/esm/api/types/Checkout.d.mts +2 -0
  1258. package/dist/esm/api/types/CheckoutCustomCard.d.mts +10 -0
  1259. package/dist/esm/api/types/CheckoutCustomCard.mjs +2 -0
  1260. package/dist/esm/api/types/CheckoutCustomCardInput.d.mts +10 -0
  1261. package/dist/esm/api/types/CheckoutCustomCardInput.mjs +2 -0
  1262. package/dist/esm/api/types/CheckoutDetails.d.mts +3 -0
  1263. package/dist/esm/api/types/CheckoutPlan.d.mts +4 -0
  1264. package/dist/esm/api/types/CheckoutPlan.mjs +2 -0
  1265. package/dist/esm/api/types/CheckoutPlanInput.d.mts +6 -0
  1266. package/dist/esm/api/types/CheckoutPlanInput.mjs +2 -0
  1267. package/dist/esm/api/types/CheckoutProduct.d.mts +3 -0
  1268. package/dist/esm/api/types/CheckoutProductInput.d.mts +3 -0
  1269. package/dist/esm/api/types/CheckoutSelectedProduct.d.mts +8 -0
  1270. package/dist/esm/api/types/CheckoutSelectedProduct.mjs +2 -0
  1271. package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +38 -5
  1272. package/dist/esm/api/types/CreateOrderLineAttributeRequest.mjs +8 -0
  1273. package/dist/esm/api/types/CreateOrderLineRequest.d.mts +4 -0
  1274. package/dist/esm/api/types/CreditBalance.d.mts +3 -1
  1275. package/dist/esm/api/types/CreditBenefitInput.d.mts +7 -5
  1276. package/dist/esm/api/types/CreditBenefitOutput.d.mts +6 -6
  1277. package/dist/esm/api/types/CreditCurrency.d.mts +17 -0
  1278. package/dist/esm/api/types/CreditCurrency.mjs +8 -1
  1279. package/dist/esm/api/types/CreditGrant.d.mts +3 -0
  1280. package/dist/esm/api/types/CreditGrantAddAxisOptions.d.mts +24 -0
  1281. package/dist/esm/api/types/CreditGrantAddAxisOptions.mjs +2 -0
  1282. package/dist/esm/api/types/CreditGrantAxisOptions.d.mts +23 -0
  1283. package/dist/esm/api/types/CreditGrantAxisOptions.mjs +2 -0
  1284. package/dist/esm/api/types/CreditGrantCreateRequest.d.mts +10 -0
  1285. package/dist/esm/api/types/CreditGrantCreateRequest.mjs +2 -0
  1286. package/dist/esm/api/types/CreditGrantCurrency.d.mts +6 -0
  1287. package/dist/esm/api/types/CreditGrantCurrency.mjs +2 -0
  1288. package/dist/esm/api/types/CreditGrantCustomer.d.mts +6 -0
  1289. package/dist/esm/api/types/CreditGrantCustomer.mjs +2 -0
  1290. package/dist/esm/api/types/CreditGrantResult.d.mts +19 -0
  1291. package/dist/esm/api/types/CreditGrantResult.mjs +8 -0
  1292. package/dist/esm/api/types/CreditGrantValue.d.mts +7 -0
  1293. package/dist/esm/api/types/CreditGrantValue.mjs +7 -0
  1294. package/dist/esm/api/types/CreditTransaction.d.mts +31 -0
  1295. package/dist/esm/api/types/CreditTransaction.mjs +10 -0
  1296. package/dist/esm/api/types/CreditTransactionCurrency.d.mts +6 -0
  1297. package/dist/esm/api/types/CreditTransactionCurrency.mjs +2 -0
  1298. package/dist/esm/api/types/CreditTransactionCustomer.d.mts +6 -0
  1299. package/dist/esm/api/types/CreditTransactionCustomer.mjs +2 -0
  1300. package/dist/esm/api/types/CreditTransactionListResponse.d.mts +6 -0
  1301. package/dist/esm/api/types/CreditTransactionListResponse.mjs +2 -0
  1302. package/dist/esm/api/types/CreditTransactionProduct.d.mts +11 -0
  1303. package/dist/esm/api/types/CreditTransactionProduct.mjs +2 -0
  1304. package/dist/esm/api/types/CurrencyCode.d.mts +4 -0
  1305. package/dist/esm/api/types/CurrencyCode.mjs +2 -0
  1306. package/dist/esm/api/types/CustomView.d.mts +25 -0
  1307. package/dist/esm/api/types/CustomView.mjs +14 -0
  1308. package/dist/esm/api/types/CustomViewAuthoringDetail.d.mts +69 -0
  1309. package/dist/esm/api/types/CustomViewAuthoringDetail.mjs +27 -0
  1310. package/dist/esm/api/types/CustomViewAuthoringGuide.d.mts +6 -0
  1311. package/dist/esm/api/types/CustomViewAuthoringGuide.mjs +2 -0
  1312. package/dist/esm/api/types/CustomViewDetail.d.mts +60 -0
  1313. package/dist/esm/api/types/CustomViewDetail.mjs +27 -0
  1314. package/dist/esm/api/types/CustomViewEmbedTokenResponse.d.mts +6 -0
  1315. package/dist/esm/api/types/CustomViewEmbedTokenResponse.mjs +2 -0
  1316. package/dist/esm/api/types/CustomViewFilter.d.mts +6 -0
  1317. package/dist/esm/api/types/CustomViewFilter.mjs +2 -0
  1318. package/dist/esm/api/types/CustomViewListResponse.d.mts +4 -0
  1319. package/dist/esm/api/types/CustomViewListResponse.mjs +2 -0
  1320. package/dist/esm/api/types/CustomViewPreviewHarness.d.mts +4 -0
  1321. package/dist/esm/api/types/CustomViewPreviewHarness.mjs +2 -0
  1322. package/dist/esm/api/types/CustomViewPreviewHarnessColumn.d.mts +16 -0
  1323. package/dist/esm/api/types/CustomViewPreviewHarnessColumn.mjs +11 -0
  1324. package/dist/esm/api/types/CustomViewPreviewHarnessRequest.d.mts +11 -0
  1325. package/dist/esm/api/types/CustomViewPreviewHarnessRequest.mjs +2 -0
  1326. package/dist/esm/api/types/CustomViewQuery.d.mts +6 -0
  1327. package/dist/esm/api/types/CustomViewQuery.mjs +2 -0
  1328. package/dist/esm/api/types/CustomViewSummary.d.mts +57 -0
  1329. package/dist/esm/api/types/CustomViewSummary.mjs +27 -0
  1330. package/dist/esm/api/types/CustomViewValidationFinding.d.mts +8 -0
  1331. package/dist/esm/api/types/CustomViewValidationFinding.mjs +2 -0
  1332. package/dist/esm/api/types/Customer.d.mts +14 -2
  1333. package/dist/esm/api/types/Customer.mjs +8 -1
  1334. package/dist/esm/api/types/CustomerAlias.d.mts +10 -0
  1335. package/dist/esm/api/types/CustomerAlias.mjs +2 -0
  1336. package/dist/esm/api/types/CustomerAliasCreateRequest.d.mts +8 -0
  1337. package/dist/esm/api/types/CustomerAliasCreateRequest.mjs +2 -0
  1338. package/dist/esm/api/types/CustomerAliasListResponse.d.mts +5 -0
  1339. package/dist/esm/api/types/CustomerAliasListResponse.mjs +2 -0
  1340. package/dist/{cjs/api/types/CustomerBillingAddress.d.ts → esm/api/types/CustomerBillingAddressInput.d.mts} +1 -1
  1341. package/dist/esm/api/types/CustomerBillingAddressInput.mjs +2 -0
  1342. package/dist/esm/api/types/CustomerBillingAddressResponse.d.mts +11 -0
  1343. package/dist/esm/api/types/CustomerBillingAddressResponse.mjs +2 -0
  1344. package/dist/esm/api/types/CustomerConnections.d.mts +7 -0
  1345. package/dist/esm/api/types/CustomerConnections.mjs +2 -0
  1346. package/dist/esm/api/types/CustomerGroupDeleteResponse.d.mts +4 -0
  1347. package/dist/esm/api/types/CustomerGroupDeleteResponse.mjs +2 -0
  1348. package/dist/esm/api/types/CustomerGroupDetail.d.mts +10 -0
  1349. package/dist/esm/api/types/CustomerGroupDetail.mjs +2 -0
  1350. package/dist/esm/api/types/CustomerGroupListResponse.d.mts +5 -0
  1351. package/dist/esm/api/types/CustomerGroupListResponse.mjs +2 -0
  1352. package/dist/esm/api/types/CustomerGroupMember.d.mts +5 -0
  1353. package/dist/esm/api/types/CustomerGroupMember.mjs +2 -0
  1354. package/dist/esm/api/types/CustomerGroupSummary.d.mts +8 -0
  1355. package/dist/esm/api/types/CustomerGroupSummary.mjs +2 -0
  1356. package/dist/esm/api/types/CustomerState.d.mts +10 -0
  1357. package/dist/esm/api/types/CustomerState.mjs +2 -0
  1358. package/dist/esm/api/types/CustomerStateCheckoutLink.d.mts +18 -0
  1359. package/dist/esm/api/types/CustomerStateCheckoutLink.mjs +10 -0
  1360. package/dist/esm/api/types/CustomerStateCreditBalance.d.mts +6 -0
  1361. package/dist/esm/api/types/CustomerStateCreditBalance.mjs +2 -0
  1362. package/dist/esm/api/types/CustomerStateCreditSummary.d.mts +4 -0
  1363. package/dist/esm/api/types/CustomerStateCreditSummary.mjs +2 -0
  1364. package/dist/esm/api/types/CustomerStateCustomer.d.mts +8 -0
  1365. package/dist/esm/api/types/CustomerStateCustomer.mjs +2 -0
  1366. package/dist/esm/api/types/CustomerStateOrder.d.mts +21 -0
  1367. package/dist/esm/api/types/CustomerStateOrder.mjs +10 -0
  1368. package/dist/esm/api/types/CustomerStateProductRef.d.mts +5 -0
  1369. package/dist/esm/api/types/CustomerStateProductRef.mjs +2 -0
  1370. package/dist/esm/api/types/CustomerStateSeat.d.mts +17 -0
  1371. package/dist/esm/api/types/CustomerStateSeat.mjs +8 -0
  1372. package/dist/esm/api/types/CustomerStateSeatAssignee.d.mts +6 -0
  1373. package/dist/esm/api/types/CustomerStateSeatAssignee.mjs +2 -0
  1374. package/dist/esm/api/types/CustomerStateSeats.d.mts +7 -0
  1375. package/dist/esm/api/types/CustomerStateSeats.mjs +2 -0
  1376. package/dist/esm/api/types/CustomerUnit.d.mts +25 -0
  1377. package/dist/esm/api/types/CustomerUnit.mjs +9 -0
  1378. package/dist/esm/api/types/CustomerUnitAttribution.d.mts +7 -0
  1379. package/dist/esm/api/types/CustomerUnitAttribution.mjs +2 -0
  1380. package/dist/esm/api/types/CustomerUnitCapCurrentPeriod.d.mts +11 -0
  1381. package/dist/esm/api/types/CustomerUnitCapCurrentPeriod.mjs +2 -0
  1382. package/dist/esm/api/types/CustomerUnitCapEndResponse.d.mts +12 -0
  1383. package/dist/esm/api/types/CustomerUnitCapEndResponse.mjs +2 -0
  1384. package/dist/esm/api/types/CustomerUnitCapEndedPolicy.d.mts +24 -0
  1385. package/dist/esm/api/types/CustomerUnitCapEndedPolicy.mjs +8 -0
  1386. package/dist/esm/api/types/CustomerUnitCapOpenPolicy.d.mts +29 -0
  1387. package/dist/esm/api/types/CustomerUnitCapOpenPolicy.mjs +12 -0
  1388. package/dist/esm/api/types/CustomerUnitCapPeriod.d.mts +6 -0
  1389. package/dist/esm/api/types/CustomerUnitCapPeriod.mjs +2 -0
  1390. package/dist/esm/api/types/CustomerUnitCapPolicy.d.mts +24 -0
  1391. package/dist/esm/api/types/CustomerUnitCapPolicy.mjs +8 -0
  1392. package/dist/esm/api/types/CustomerUnitCapResponse.d.mts +11 -0
  1393. package/dist/esm/api/types/CustomerUnitCapResponse.mjs +2 -0
  1394. package/dist/esm/api/types/CustomerUnitCapSet.d.mts +17 -0
  1395. package/dist/esm/api/types/CustomerUnitCapSet.mjs +8 -0
  1396. package/dist/esm/api/types/CustomerUnitCapSetResponse.d.mts +11 -0
  1397. package/dist/esm/api/types/CustomerUnitCapSetResponse.mjs +2 -0
  1398. package/dist/esm/api/types/CustomerUnitCreate.d.mts +12 -0
  1399. package/dist/esm/api/types/CustomerUnitCreate.mjs +2 -0
  1400. package/dist/esm/api/types/CustomerUnitListResponse.d.mts +6 -0
  1401. package/dist/esm/api/types/CustomerUnitListResponse.mjs +2 -0
  1402. package/dist/esm/api/types/CustomerUnitUpdate.d.mts +10 -0
  1403. package/dist/esm/api/types/CustomerUnitUpdate.mjs +2 -0
  1404. package/dist/esm/api/types/EndAttributeIntent.d.mts +16 -0
  1405. package/dist/esm/api/types/EndAttributeIntent.mjs +11 -0
  1406. package/dist/esm/api/types/GrantCustomerCreditsResponse.d.mts +9 -0
  1407. package/dist/esm/api/types/GrantCustomerCreditsResponse.mjs +2 -0
  1408. package/dist/esm/api/types/Invoice.d.mts +3 -0
  1409. package/dist/esm/api/types/MemberRequest.d.mts +4 -0
  1410. package/dist/esm/api/types/MemberRequest.mjs +2 -0
  1411. package/dist/esm/api/types/MoneyAxisOptions.d.mts +23 -0
  1412. package/dist/esm/api/types/MoneyAxisOptions.mjs +2 -0
  1413. package/dist/esm/api/types/MoneyAxisValue.d.mts +6 -0
  1414. package/dist/esm/api/types/MoneyAxisValue.mjs +6 -0
  1415. package/dist/esm/api/types/Order.d.mts +1 -0
  1416. package/dist/esm/api/types/OrderLine.d.mts +2 -0
  1417. package/dist/esm/api/types/OrderLineType.d.mts +7 -0
  1418. package/dist/esm/api/types/OrderLineType.mjs +7 -0
  1419. package/dist/esm/api/types/Payment.d.mts +30 -0
  1420. package/dist/esm/api/types/Payment.mjs +2 -0
  1421. package/dist/esm/api/types/PaymentAllocation.d.mts +21 -0
  1422. package/dist/esm/api/types/PaymentAllocation.mjs +2 -0
  1423. package/dist/esm/api/types/PaymentAllocationCreateResponse.d.mts +4 -0
  1424. package/dist/esm/api/types/PaymentAllocationCreateResponse.mjs +2 -0
  1425. package/dist/esm/api/types/PaymentAllocationInput.d.mts +8 -0
  1426. package/dist/esm/api/types/PaymentAllocationInput.mjs +2 -0
  1427. package/dist/esm/api/types/PaymentAllocationListResponse.d.mts +5 -0
  1428. package/dist/esm/api/types/PaymentAllocationListResponse.mjs +2 -0
  1429. package/dist/esm/api/types/PaymentCreateStatus.d.mts +6 -0
  1430. package/dist/esm/api/types/PaymentCreateStatus.mjs +6 -0
  1431. package/dist/esm/api/types/PaymentListResponse.d.mts +5 -0
  1432. package/dist/esm/api/types/PaymentListResponse.mjs +2 -0
  1433. package/dist/esm/api/types/PaymentMethod.d.mts +15 -0
  1434. package/dist/esm/api/types/PaymentMethod.mjs +2 -0
  1435. package/dist/esm/api/types/PaymentMethodCard.d.mts +13 -0
  1436. package/dist/esm/api/types/PaymentMethodCard.mjs +2 -0
  1437. package/dist/esm/api/types/PaymentMethodListResponse.d.mts +5 -0
  1438. package/dist/esm/api/types/PaymentMethodListResponse.mjs +2 -0
  1439. package/dist/esm/api/types/PaymentMethodSetup.d.mts +21 -0
  1440. package/dist/esm/api/types/PaymentMethodSetup.mjs +2 -0
  1441. package/dist/esm/api/types/PaymentType.d.mts +9 -0
  1442. package/dist/esm/api/types/PaymentType.mjs +9 -0
  1443. package/dist/esm/api/types/PendingCreditConsumption.d.mts +16 -0
  1444. package/dist/esm/api/types/PendingCreditConsumption.mjs +2 -0
  1445. package/dist/esm/api/types/PendingCreditConsumptionCurrency.d.mts +9 -0
  1446. package/dist/esm/api/types/PendingCreditConsumptionCurrency.mjs +2 -0
  1447. package/dist/esm/api/types/PendingCreditConsumptionListResponse.d.mts +6 -0
  1448. package/dist/esm/api/types/PendingCreditConsumptionListResponse.mjs +2 -0
  1449. package/dist/esm/api/types/Plan.d.mts +22 -0
  1450. package/dist/esm/api/types/Plan.mjs +8 -0
  1451. package/dist/esm/api/types/PlanAttribute.d.mts +8 -0
  1452. package/dist/esm/api/types/PlanAttribute.mjs +2 -0
  1453. package/dist/esm/api/types/PlanAttributeInput.d.mts +7 -0
  1454. package/dist/esm/api/types/PlanAttributeInput.mjs +2 -0
  1455. package/dist/esm/api/types/PlanCreditBenefit.d.mts +37 -0
  1456. package/dist/esm/api/types/PlanCreditBenefit.mjs +21 -0
  1457. package/dist/esm/api/types/PlanListResponse.d.mts +5 -0
  1458. package/dist/esm/api/types/PlanListResponse.mjs +2 -0
  1459. package/dist/esm/api/types/PlanPricing.d.mts +31 -0
  1460. package/dist/esm/api/types/PlanPricing.mjs +21 -0
  1461. package/dist/esm/api/types/PlanRef.d.mts +5 -0
  1462. package/dist/esm/api/types/PlanRef.mjs +2 -0
  1463. package/dist/esm/api/types/PlanUpgradePathGroup.d.mts +4 -0
  1464. package/dist/esm/api/types/PlanUpgradePathGroup.mjs +2 -0
  1465. package/dist/esm/api/types/PlanUpgradePathResponse.d.mts +4 -0
  1466. package/dist/esm/api/types/PlanUpgradePathResponse.mjs +2 -0
  1467. package/dist/esm/api/types/PlannedAdd.d.mts +28 -0
  1468. package/dist/esm/api/types/PlannedAdd.mjs +10 -0
  1469. package/dist/esm/api/types/PlannedCopy.d.mts +10 -0
  1470. package/dist/esm/api/types/PlannedCopy.mjs +2 -0
  1471. package/dist/esm/api/types/PlannedEnd.d.mts +10 -0
  1472. package/dist/esm/api/types/PlannedEnd.mjs +2 -0
  1473. package/dist/esm/api/types/PlannedOperations.d.mts +13 -0
  1474. package/dist/esm/api/types/PlannedOperations.mjs +2 -0
  1475. package/dist/esm/api/types/PlannedOrderTerm.d.mts +10 -0
  1476. package/dist/esm/api/types/PlannedOrderTerm.mjs +2 -0
  1477. package/dist/esm/api/types/PlannedReplace.d.mts +15 -0
  1478. package/dist/esm/api/types/PlannedReplace.mjs +2 -0
  1479. package/dist/esm/api/types/PricingInput.d.mts +4 -1
  1480. package/dist/esm/api/types/PricingOutput.d.mts +7 -0
  1481. package/dist/esm/api/types/PricingOutput.mjs +5 -0
  1482. package/dist/esm/api/types/PricingPricePointOutput.d.mts +2 -22
  1483. package/dist/esm/api/types/PricingPricePointOutput.mjs +1 -13
  1484. package/dist/esm/api/types/PricingTierOutput.d.mts +16 -0
  1485. package/dist/esm/api/types/PricingTierOutput.mjs +8 -0
  1486. package/dist/esm/api/types/ProductAttributeOutput.d.mts +8 -0
  1487. package/dist/esm/api/types/ProductAttributeOutput.mjs +2 -0
  1488. package/dist/esm/api/types/ProductAttributeUpsert.d.mts +9 -0
  1489. package/dist/esm/api/types/ProductAttributeUpsert.mjs +2 -0
  1490. package/dist/esm/api/types/ProductCreditBenefitInput.d.mts +32 -0
  1491. package/dist/esm/api/types/ProductCreditBenefitInput.mjs +17 -0
  1492. package/dist/esm/api/types/ProductCreditBenefitOutput.d.mts +13 -0
  1493. package/dist/esm/api/types/ProductCreditBenefitOutput.mjs +2 -0
  1494. package/dist/esm/api/types/ProductDetail.d.mts +14 -0
  1495. package/dist/esm/api/types/ProductDetail.mjs +2 -0
  1496. package/dist/esm/api/types/ProductOneTimePerUnitInput.d.mts +21 -0
  1497. package/dist/esm/api/types/ProductOneTimePerUnitInput.mjs +15 -0
  1498. package/dist/esm/api/types/ProductPricePointOutput.d.mts +9 -0
  1499. package/dist/esm/api/types/ProductPricePointOutput.mjs +2 -0
  1500. package/dist/esm/api/types/ProductPricingInput.d.mts +49 -0
  1501. package/dist/esm/api/types/ProductPricingInput.mjs +2 -0
  1502. package/dist/esm/api/types/ProductPricingOutput.d.mts +43 -0
  1503. package/dist/esm/api/types/ProductPricingOutput.mjs +25 -0
  1504. package/dist/esm/api/types/ProductPricingTierOutput.d.mts +16 -0
  1505. package/dist/esm/api/types/ProductPricingTierOutput.mjs +8 -0
  1506. package/dist/esm/api/types/ProductRecurringGraduatedInput.d.mts +22 -0
  1507. package/dist/esm/api/types/ProductRecurringGraduatedInput.mjs +15 -0
  1508. package/dist/esm/api/types/ProductRecurringPerUnitInput.d.mts +22 -0
  1509. package/dist/esm/api/types/ProductRecurringPerUnitInput.mjs +15 -0
  1510. package/dist/esm/api/types/ProductRecurringPercentOfTotalInput.d.mts +23 -0
  1511. package/dist/esm/api/types/ProductRecurringPercentOfTotalInput.mjs +15 -0
  1512. package/dist/esm/api/types/ProductRecurringVolumeInput.d.mts +22 -0
  1513. package/dist/esm/api/types/ProductRecurringVolumeInput.mjs +15 -0
  1514. package/dist/esm/api/types/ProductSeatBasedGraduatedInput.d.mts +22 -0
  1515. package/dist/esm/api/types/ProductSeatBasedGraduatedInput.mjs +15 -0
  1516. package/dist/esm/api/types/ProductSeatBasedPerUnitInput.d.mts +22 -0
  1517. package/dist/esm/api/types/ProductSeatBasedPerUnitInput.mjs +15 -0
  1518. package/dist/esm/api/types/ProductSeatBasedPrepaidCreditsInput.d.mts +26 -0
  1519. package/dist/esm/api/types/ProductSeatBasedPrepaidCreditsInput.mjs +15 -0
  1520. package/dist/esm/api/types/ProductSeatBasedVolumeInput.d.mts +22 -0
  1521. package/dist/esm/api/types/ProductSeatBasedVolumeInput.mjs +15 -0
  1522. package/dist/esm/api/types/ProductSimplePricePoint.d.mts +29 -0
  1523. package/dist/esm/api/types/ProductSimplePricePoint.mjs +14 -0
  1524. package/dist/esm/api/types/ProductTieredPricePoint.d.mts +29 -0
  1525. package/dist/esm/api/types/ProductTieredPricePoint.mjs +14 -0
  1526. package/dist/esm/api/types/ProductUsageBracketedPrepaidCreditsInput.d.mts +57 -0
  1527. package/dist/esm/api/types/ProductUsageBracketedPrepaidCreditsInput.mjs +25 -0
  1528. package/dist/esm/api/types/ProductUsageCostPlusInput.d.mts +29 -0
  1529. package/dist/esm/api/types/ProductUsageCostPlusInput.mjs +19 -0
  1530. package/dist/esm/api/types/ProductUsageGraduatedInput.d.mts +29 -0
  1531. package/dist/esm/api/types/ProductUsageGraduatedInput.mjs +19 -0
  1532. package/dist/esm/api/types/ProductUsagePerUnitInput.d.mts +29 -0
  1533. package/dist/esm/api/types/ProductUsagePerUnitInput.mjs +19 -0
  1534. package/dist/esm/api/types/ProductUsagePrepaidCreditsInput.d.mts +45 -0
  1535. package/dist/esm/api/types/ProductUsagePrepaidCreditsInput.mjs +25 -0
  1536. package/dist/esm/api/types/ProductUsageVolumeInput.d.mts +29 -0
  1537. package/dist/esm/api/types/ProductUsageVolumeInput.mjs +19 -0
  1538. package/dist/esm/api/types/RemoveMembersResponse.d.mts +5 -0
  1539. package/dist/esm/api/types/RemoveMembersResponse.mjs +2 -0
  1540. package/dist/esm/api/types/RenderBundleEdit.d.mts +8 -0
  1541. package/dist/esm/api/types/RenderBundleEdit.mjs +2 -0
  1542. package/dist/esm/api/types/RotateWebhookSecretResponse.d.mts +4 -0
  1543. package/dist/esm/api/types/RotateWebhookSecretResponse.mjs +2 -0
  1544. package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.d.mts +1 -0
  1545. package/dist/esm/api/types/SetMembersResponse.d.mts +6 -0
  1546. package/dist/esm/api/types/SetMembersResponse.mjs +2 -0
  1547. package/dist/esm/api/types/Signal.d.mts +1 -0
  1548. package/dist/esm/api/types/SignalListItem.d.mts +20 -0
  1549. package/dist/esm/api/types/SignalListItem.mjs +2 -0
  1550. package/dist/esm/api/types/SignalListResponse.d.mts +5 -0
  1551. package/dist/esm/api/types/SignalListResponse.mjs +2 -0
  1552. package/dist/esm/api/types/SignalsMetadataResponse.d.mts +28 -0
  1553. package/dist/esm/api/types/SignalsMetadataResponse.mjs +2 -0
  1554. package/dist/esm/api/types/StripeConnection.d.mts +7 -0
  1555. package/dist/esm/api/types/StripeConnection.mjs +2 -0
  1556. package/dist/esm/api/{resources/valueReceipts/client/requests → types}/SyncValueReceiptRequest.d.mts +0 -7
  1557. package/dist/esm/api/types/SyncValueReceiptRequest.mjs +2 -0
  1558. package/dist/esm/api/types/UnifiedAmendmentIntent.d.mts +25 -0
  1559. package/dist/esm/api/types/UnifiedAmendmentIntent.mjs +2 -0
  1560. package/dist/esm/api/types/UnifiedAmendmentResponse.d.mts +19 -0
  1561. package/dist/esm/api/types/UnifiedAmendmentResponse.mjs +2 -0
  1562. package/dist/esm/api/types/UpdateCustomerRequest.d.mts +1 -1
  1563. package/dist/esm/api/types/UpdateLineTermIntent.d.mts +18 -0
  1564. package/dist/esm/api/types/UpdateLineTermIntent.mjs +11 -0
  1565. package/dist/esm/api/types/UpdateOrderTermIntent.d.mts +18 -0
  1566. package/dist/esm/api/types/UpdateOrderTermIntent.mjs +11 -0
  1567. package/dist/esm/api/types/UpdatePlanRequest.d.mts +18 -0
  1568. package/dist/esm/api/types/UpdatePlanRequest.mjs +9 -0
  1569. package/dist/esm/api/types/UpdatePricingIntent.d.mts +22 -0
  1570. package/dist/esm/api/types/UpdatePricingIntent.mjs +11 -0
  1571. package/dist/esm/api/types/UpdateProductRequest.d.mts +2 -0
  1572. package/dist/esm/api/types/UpdateQuantityIntent.d.mts +18 -0
  1573. package/dist/esm/api/types/UpdateQuantityIntent.mjs +11 -0
  1574. package/dist/esm/api/types/UsageAttributionAxisOptions.d.mts +23 -0
  1575. package/dist/esm/api/types/UsageAttributionAxisOptions.mjs +2 -0
  1576. package/dist/esm/api/types/UsageAttributionAxisValue.d.mts +6 -0
  1577. package/dist/esm/api/types/UsageAttributionAxisValue.mjs +6 -0
  1578. package/dist/esm/api/types/UsageBracketedPrepaidCreditsInput.d.mts +57 -0
  1579. package/dist/esm/api/types/UsageBracketedPrepaidCreditsInput.mjs +25 -0
  1580. package/dist/esm/api/types/UsageCostPlusInput.d.mts +6 -0
  1581. package/dist/esm/api/types/UsageCostPlusInput.mjs +4 -0
  1582. package/dist/esm/api/types/UsageGraduatedInput.d.mts +6 -0
  1583. package/dist/esm/api/types/UsageGraduatedInput.mjs +4 -0
  1584. package/dist/esm/api/types/UsagePerUnitInput.d.mts +6 -0
  1585. package/dist/esm/api/types/UsagePerUnitInput.mjs +4 -0
  1586. package/dist/esm/api/types/UsagePrepaidCreditsInput.d.mts +19 -0
  1587. package/dist/esm/api/types/UsagePrepaidCreditsInput.mjs +10 -0
  1588. package/dist/esm/api/types/UsageVolumeInput.d.mts +6 -0
  1589. package/dist/esm/api/types/UsageVolumeInput.mjs +4 -0
  1590. package/dist/esm/api/types/ValidateCustomViewRequest.d.mts +51 -0
  1591. package/dist/esm/api/types/ValidateCustomViewRequest.mjs +23 -0
  1592. package/dist/esm/api/types/ValidateCustomViewResponse.d.mts +7 -0
  1593. package/dist/esm/api/types/ValidateCustomViewResponse.mjs +2 -0
  1594. package/dist/esm/api/types/ValueMetricDetail.d.mts +47 -0
  1595. package/dist/esm/api/types/ValueMetricDetail.mjs +2 -0
  1596. package/dist/esm/api/types/ValueMetricFormula.d.mts +9 -0
  1597. package/dist/esm/api/types/ValueMetricFormula.mjs +2 -0
  1598. package/dist/esm/api/types/ValueMetricFormulaVariable.d.mts +31 -0
  1599. package/dist/esm/api/types/ValueMetricFormulaVariable.mjs +21 -0
  1600. package/dist/esm/api/types/ValueMetricListResponse.d.mts +5 -0
  1601. package/dist/esm/api/types/ValueMetricListResponse.mjs +2 -0
  1602. package/dist/esm/api/types/ValueMetricMonetaryConversion.d.mts +6 -0
  1603. package/dist/esm/api/types/ValueMetricMonetaryConversion.mjs +2 -0
  1604. package/dist/esm/api/types/ValueMetricSignalBinding.d.mts +14 -0
  1605. package/dist/esm/api/types/ValueMetricSignalBinding.mjs +2 -0
  1606. package/dist/esm/api/types/ValueMetricSummary.d.mts +30 -0
  1607. package/dist/esm/api/types/ValueMetricSummary.mjs +2 -0
  1608. package/dist/esm/api/types/ValueMetricUnit.d.mts +27 -0
  1609. package/dist/esm/api/types/ValueMetricUnit.mjs +17 -0
  1610. package/dist/esm/api/types/ValueMetricValidationResponse.d.mts +13 -0
  1611. package/dist/esm/api/types/ValueMetricValidationResponse.mjs +2 -0
  1612. package/dist/esm/api/types/ValueMetricVariableEdit.d.mts +26 -0
  1613. package/dist/esm/api/types/ValueMetricVariableEdit.mjs +16 -0
  1614. package/dist/esm/api/types/ValueMetricWriteAck.d.mts +6 -0
  1615. package/dist/esm/api/types/ValueMetricWriteAck.mjs +2 -0
  1616. package/dist/esm/api/types/ValueModelAuthoringGuide.d.mts +22 -0
  1617. package/dist/esm/api/types/ValueModelAuthoringGuide.mjs +2 -0
  1618. package/dist/esm/api/types/ValueModelContent.d.mts +357 -0
  1619. package/dist/esm/api/types/ValueModelContent.mjs +138 -0
  1620. package/dist/esm/api/types/ValueModelDetail.d.mts +12 -0
  1621. package/dist/esm/api/types/ValueModelDetail.mjs +2 -0
  1622. package/dist/esm/api/types/ValueModelSummary.d.mts +18 -0
  1623. package/dist/esm/api/types/ValueModelSummary.mjs +9 -0
  1624. package/dist/esm/api/types/ValueModelVersionListResponse.d.mts +5 -0
  1625. package/dist/esm/api/types/ValueModelVersionListResponse.mjs +2 -0
  1626. package/dist/esm/api/types/ValueReceiptSyncResponse.d.mts +1 -0
  1627. package/dist/esm/api/types/ViewDataResponse.d.mts +4 -0
  1628. package/dist/esm/api/types/ViewDataResponse.mjs +2 -0
  1629. package/dist/esm/api/types/Webhook.d.mts +2 -0
  1630. package/dist/esm/api/types/Webhook.mjs +2 -0
  1631. package/dist/esm/api/types/WebhookListResponse.d.mts +2 -0
  1632. package/dist/esm/api/types/WebhookUpdateResponse.d.mts +28 -0
  1633. package/dist/esm/api/types/WebhookUpdateResponse.mjs +17 -0
  1634. package/dist/esm/api/types/WritableOrderLineType.d.mts +6 -0
  1635. package/dist/esm/api/types/WritableOrderLineType.mjs +6 -0
  1636. package/dist/esm/api/types/index.d.mts +209 -1
  1637. package/dist/esm/api/types/index.mjs +209 -1
  1638. package/dist/esm/tracing/aiSdkSpanProcessor.mjs +17 -0
  1639. package/dist/esm/version.d.mts +1 -1
  1640. package/dist/esm/version.mjs +1 -1
  1641. package/package.json +1 -1
  1642. package/reference.md +6237 -375
  1643. /package/dist/cjs/api/resources/{valueReceipts/client/requests/SyncValueReceiptRequest.js → amendments/client/requests/GetOrderAmendmentOptionsRequest.js} +0 -0
  1644. /package/dist/cjs/api/{types/CustomerBillingAddress.js → resources/analytics/client/requests/GetSignalsMetadataRequest.js} +0 -0
  1645. /package/dist/esm/api/resources/{valueReceipts/client/requests/SyncValueReceiptRequest.mjs → amendments/client/requests/GetOrderAmendmentOptionsRequest.mjs} +0 -0
  1646. /package/dist/esm/api/{types/CustomerBillingAddress.mjs → resources/analytics/client/requests/GetSignalsMetadataRequest.mjs} +0 -0
@@ -0,0 +1,688 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ exports.CustomViewsExperimental = void 0;
58
+ const headers_js_1 = require("../../../../core/headers.js");
59
+ const core = __importStar(require("../../../../core/index.js"));
60
+ const environments = __importStar(require("../../../../environments.js"));
61
+ const errors = __importStar(require("../../../../errors/index.js"));
62
+ const Paid = __importStar(require("../../../index.js"));
63
+ class CustomViewsExperimental {
64
+ constructor(_options) {
65
+ this._options = _options;
66
+ }
67
+ /**
68
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
69
+ *
70
+ * Lists the organization's custom views (newest first) with lightweight summary info — name, status, query count, default date range, created date. Does not return the SQL or render bundle; fetch a single view via getCustomView for those.
71
+ *
72
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
73
+ *
74
+ * @throws {@link Paid.ForbiddenError}
75
+ * @throws {@link Paid.InternalServerError}
76
+ *
77
+ * @example
78
+ * await client.customViewsExperimental.listCustomViews()
79
+ */
80
+ listCustomViews(requestOptions) {
81
+ return core.HttpResponsePromise.fromPromise(this.__listCustomViews(requestOptions));
82
+ }
83
+ __listCustomViews(requestOptions) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ var _a, _b, _c, _d, _e, _f, _g, _h;
86
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
+ const _response = yield core.fetcher({
88
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, "experimental/views/"),
89
+ method: "GET",
90
+ headers: _headers,
91
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
92
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
93
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
94
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
95
+ });
96
+ if (_response.ok) {
97
+ return { data: _response.body, rawResponse: _response.rawResponse };
98
+ }
99
+ if (_response.error.reason === "status-code") {
100
+ switch (_response.error.statusCode) {
101
+ case 403:
102
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
103
+ case 500:
104
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
105
+ default:
106
+ throw new errors.PaidError({
107
+ statusCode: _response.error.statusCode,
108
+ body: _response.error.body,
109
+ rawResponse: _response.rawResponse,
110
+ });
111
+ }
112
+ }
113
+ switch (_response.error.reason) {
114
+ case "non-json":
115
+ throw new errors.PaidError({
116
+ statusCode: _response.error.statusCode,
117
+ body: _response.error.rawBody,
118
+ rawResponse: _response.rawResponse,
119
+ });
120
+ case "timeout":
121
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling GET /experimental/views/.");
122
+ case "unknown":
123
+ throw new errors.PaidError({
124
+ message: _response.error.errorMessage,
125
+ rawResponse: _response.rawResponse,
126
+ });
127
+ }
128
+ });
129
+ }
130
+ /**
131
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
132
+ *
133
+ * ⚠️ Only call this when the user has EXPLICITLY asked to save or create the view. After generating or previewing a dashboard, do NOT automatically save it — show it to the user and wait for them to ask you to save it. A customer-scoped view is created as a DRAFT — creating it is NOT permission to publish; never chain a publish onto a create. An organization-scoped view is created already PUBLISHED instead: it has no draft state and no publish step at all (never call publishCustomView on one — it's a no-op, and unpublishView refuses it outright). After saving, hand the user the previewUrl and wait for their feedback before doing anything else. Saves named analytics queries + a self-contained HTML render bundle. **Call getCustomViewAuthoringGuide (GET /experimental/views/authoring-guide) first** — it returns the full guide and a copy-paste interactive template. Key rules: (1) Do NOT add a customer filter to the SQL — the database scopes every query to the viewing customer at embed time. (2) Each query's SQL must be SELECT-only; return clearly-named columns. Compute metric VALUES in SQL (e.g. (count()*2)/5 AS custom_metric) — derive a number in the render bundle only when it depends on user interaction (toggle/filter/hover) or is pure formatting of a value a query already returns. (3) The render bundle must be SELF-CONTAINED — inline all CSS/JS/charting, NO external loads or fetch (the sandbox has connect-src 'none'); it must listen for the `paid:data` message (data keyed by query id) and re-render on each one. (4) Make it INTERACTIVE — mousemove hover tooltips and at least one addEventListener-wired control that re-renders (a static chart feels broken). (5) The render bundle is the single source of truth — BEFORE saving, preview the EXACT bundle in the user's current client (call getCustomViewPreviewHarness with your bundle + sample data and render the HTML it returns) and show it to the user; that preview in the current client is how the user first sees the dashboard. Do NOT save a draft just to preview it in Paid — creating writes to the user's real account and is never a preview step. Do NOT build a separate chart, and only show numbers that come from a declared query. (6) A view is a FULL dashboard — include as many charts/KPIs as the analysis has. Keep every element derived from the single viewing customer (KPIs, trends, type mix); drop only cross-customer comparisons (rankings, share-of-total, 'N customers'). Don't simplify to one chart. (7) To make the date range adjustable (e.g. the user says 'last month'), write the date boundary as `{period_start:DateTime}` / `{period_end:DateTime}` placeholders in the SQL and pass a default `period` (relative like {kind:'relative',unit:'month',amount:1}, or absolute start/end). The org user can then change it in Paid without re-authoring. A query using the placeholders REQUIRES a period. Do NOT add your own date-range picker to the render bundle — Paid owns the timeframe and the bundle receives already-filtered data; a second in-bundle picker cannot re-run the SQL. (8) Check your draft with validateCustomView (POST /experimental/views/validate) BEFORE asking the user to save — it runs these same gates without persisting and reports every problem at once. The response returns a `previewUrl` — give it to the user so they can open the new view in Paid.
134
+ *
135
+ * @param {Paid.CreateCustomViewRequest} request
136
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
137
+ *
138
+ * @throws {@link Paid.BadRequestError}
139
+ * @throws {@link Paid.ForbiddenError}
140
+ * @throws {@link Paid.InternalServerError}
141
+ *
142
+ * @example
143
+ * await client.customViewsExperimental.createCustomView({
144
+ * name: "Usage over time",
145
+ * queries: [{
146
+ * id: "usage",
147
+ * sql: "SELECT toDate(created_at) AS day, count() AS signals FROM fact_signal GROUP BY day ORDER BY day"
148
+ * }],
149
+ * renderBundle: "<!doctype html><body>\u2026</body>"
150
+ * })
151
+ */
152
+ createCustomView(request, requestOptions) {
153
+ return core.HttpResponsePromise.fromPromise(this.__createCustomView(request, requestOptions));
154
+ }
155
+ __createCustomView(request, requestOptions) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ var _a, _b, _c, _d, _e, _f, _g, _h;
158
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
+ const _response = yield core.fetcher({
160
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, "experimental/views/"),
161
+ method: "POST",
162
+ headers: _headers,
163
+ contentType: "application/json",
164
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
165
+ requestType: "json",
166
+ body: request,
167
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
168
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
169
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
170
+ });
171
+ if (_response.ok) {
172
+ return { data: _response.body, rawResponse: _response.rawResponse };
173
+ }
174
+ if (_response.error.reason === "status-code") {
175
+ switch (_response.error.statusCode) {
176
+ case 400:
177
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
178
+ case 403:
179
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
180
+ case 500:
181
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
182
+ default:
183
+ throw new errors.PaidError({
184
+ statusCode: _response.error.statusCode,
185
+ body: _response.error.body,
186
+ rawResponse: _response.rawResponse,
187
+ });
188
+ }
189
+ }
190
+ switch (_response.error.reason) {
191
+ case "non-json":
192
+ throw new errors.PaidError({
193
+ statusCode: _response.error.statusCode,
194
+ body: _response.error.rawBody,
195
+ rawResponse: _response.rawResponse,
196
+ });
197
+ case "timeout":
198
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling POST /experimental/views/.");
199
+ case "unknown":
200
+ throw new errors.PaidError({
201
+ message: _response.error.errorMessage,
202
+ rawResponse: _response.rawResponse,
203
+ });
204
+ }
205
+ });
206
+ }
207
+ /**
208
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
209
+ *
210
+ * ⚠️ Never publish as an automatic follow-up to creating or generating a view. Only call this after you have shown the user the built/previewed view and they have EXPLICITLY approved publishing — building and publishing are separate user decisions, and answering an earlier question (e.g. the view's scope) is NOT publish approval. Flips the view from DRAFT to PUBLISHED. Only PUBLISHED views are served on the embed data path — this is the gate that stops an unreviewed view reaching end-customers. Idempotent: publishing an already-published view is a no-op success. The response returns a `previewUrl` — give it to the user so they can open the view in Paid.
211
+ *
212
+ * @param {Paid.PublishCustomViewRequest} request
213
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
214
+ *
215
+ * @throws {@link Paid.ForbiddenError}
216
+ * @throws {@link Paid.NotFoundError}
217
+ * @throws {@link Paid.InternalServerError}
218
+ *
219
+ * @example
220
+ * await client.customViewsExperimental.publishCustomView({
221
+ * displayId: "displayId"
222
+ * })
223
+ */
224
+ publishCustomView(request, requestOptions) {
225
+ return core.HttpResponsePromise.fromPromise(this.__publishCustomView(request, requestOptions));
226
+ }
227
+ __publishCustomView(request, requestOptions) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ var _a, _b, _c, _d, _e, _f, _g, _h;
230
+ const { displayId } = request, _body = __rest(request, ["displayId"]);
231
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
232
+ const _response = yield core.fetcher({
233
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}/publish`),
234
+ method: "POST",
235
+ headers: _headers,
236
+ contentType: "application/json",
237
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
238
+ requestType: "json",
239
+ body: _body,
240
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
241
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
242
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
243
+ });
244
+ if (_response.ok) {
245
+ return { data: _response.body, rawResponse: _response.rawResponse };
246
+ }
247
+ if (_response.error.reason === "status-code") {
248
+ switch (_response.error.statusCode) {
249
+ case 403:
250
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
251
+ case 404:
252
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
253
+ case 500:
254
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
255
+ default:
256
+ throw new errors.PaidError({
257
+ statusCode: _response.error.statusCode,
258
+ body: _response.error.body,
259
+ rawResponse: _response.rawResponse,
260
+ });
261
+ }
262
+ }
263
+ switch (_response.error.reason) {
264
+ case "non-json":
265
+ throw new errors.PaidError({
266
+ statusCode: _response.error.statusCode,
267
+ body: _response.error.rawBody,
268
+ rawResponse: _response.rawResponse,
269
+ });
270
+ case "timeout":
271
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling POST /experimental/views/{displayId}/publish.");
272
+ case "unknown":
273
+ throw new errors.PaidError({
274
+ message: _response.error.errorMessage,
275
+ rawResponse: _response.rawResponse,
276
+ });
277
+ }
278
+ });
279
+ }
280
+ /**
281
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
282
+ *
283
+ * Updates the view's default date range (the period applied to queries that use the `{period_start:DateTime}` / `{period_end:DateTime}` placeholders). Accepts a relative rolling window (e.g. last 30 days) or a fixed start/end range. Lets the period be changed after deployment without re-authoring the SQL. Applies to DRAFT or PUBLISHED views.
284
+ *
285
+ * @param {Paid.UpdateCustomViewPeriodRequest} request
286
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
287
+ *
288
+ * @throws {@link Paid.BadRequestError}
289
+ * @throws {@link Paid.ForbiddenError}
290
+ * @throws {@link Paid.NotFoundError}
291
+ * @throws {@link Paid.InternalServerError}
292
+ *
293
+ * @example
294
+ * await client.customViewsExperimental.updateCustomViewPeriod({
295
+ * displayId: "displayId",
296
+ * period: {
297
+ * kind: "relative"
298
+ * }
299
+ * })
300
+ */
301
+ updateCustomViewPeriod(request, requestOptions) {
302
+ return core.HttpResponsePromise.fromPromise(this.__updateCustomViewPeriod(request, requestOptions));
303
+ }
304
+ __updateCustomViewPeriod(request, requestOptions) {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
+ var _a, _b, _c, _d, _e, _f, _g, _h;
307
+ const { displayId } = request, _body = __rest(request, ["displayId"]);
308
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
309
+ const _response = yield core.fetcher({
310
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}/period`),
311
+ method: "PATCH",
312
+ headers: _headers,
313
+ contentType: "application/json",
314
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
315
+ requestType: "json",
316
+ body: _body,
317
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
318
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
319
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
320
+ });
321
+ if (_response.ok) {
322
+ return { data: _response.body, rawResponse: _response.rawResponse };
323
+ }
324
+ if (_response.error.reason === "status-code") {
325
+ switch (_response.error.statusCode) {
326
+ case 400:
327
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
328
+ case 403:
329
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
330
+ case 404:
331
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
332
+ case 500:
333
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
334
+ default:
335
+ throw new errors.PaidError({
336
+ statusCode: _response.error.statusCode,
337
+ body: _response.error.body,
338
+ rawResponse: _response.rawResponse,
339
+ });
340
+ }
341
+ }
342
+ switch (_response.error.reason) {
343
+ case "non-json":
344
+ throw new errors.PaidError({
345
+ statusCode: _response.error.statusCode,
346
+ body: _response.error.rawBody,
347
+ rawResponse: _response.rawResponse,
348
+ });
349
+ case "timeout":
350
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling PATCH /experimental/views/{displayId}/period.");
351
+ case "unknown":
352
+ throw new errors.PaidError({
353
+ message: _response.error.errorMessage,
354
+ rawResponse: _response.rawResponse,
355
+ });
356
+ }
357
+ });
358
+ }
359
+ /**
360
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
361
+ *
362
+ * Returns the view's name, status, query ids, and the author render bundle for the owning organization (DRAFT or PUBLISHED). Used by the trusted preview/embed frame to render the sandbox; the per-customer data is fetched separately via /:displayId/data.
363
+ *
364
+ * @param {Paid.GetCustomViewRequest} request
365
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
366
+ *
367
+ * @throws {@link Paid.ForbiddenError}
368
+ * @throws {@link Paid.NotFoundError}
369
+ * @throws {@link Paid.InternalServerError}
370
+ *
371
+ * @example
372
+ * await client.customViewsExperimental.getCustomView({
373
+ * displayId: "displayId"
374
+ * })
375
+ */
376
+ getCustomView(request, requestOptions) {
377
+ return core.HttpResponsePromise.fromPromise(this.__getCustomView(request, requestOptions));
378
+ }
379
+ __getCustomView(request, requestOptions) {
380
+ return __awaiter(this, void 0, void 0, function* () {
381
+ var _a, _b, _c, _d, _e, _f, _g, _h;
382
+ const { displayId } = request;
383
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
384
+ const _response = yield core.fetcher({
385
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}`),
386
+ method: "GET",
387
+ headers: _headers,
388
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
389
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
390
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
391
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
392
+ });
393
+ if (_response.ok) {
394
+ return { data: _response.body, rawResponse: _response.rawResponse };
395
+ }
396
+ if (_response.error.reason === "status-code") {
397
+ switch (_response.error.statusCode) {
398
+ case 403:
399
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
400
+ case 404:
401
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
402
+ case 500:
403
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
404
+ default:
405
+ throw new errors.PaidError({
406
+ statusCode: _response.error.statusCode,
407
+ body: _response.error.body,
408
+ rawResponse: _response.rawResponse,
409
+ });
410
+ }
411
+ }
412
+ switch (_response.error.reason) {
413
+ case "non-json":
414
+ throw new errors.PaidError({
415
+ statusCode: _response.error.statusCode,
416
+ body: _response.error.rawBody,
417
+ rawResponse: _response.rawResponse,
418
+ });
419
+ case "timeout":
420
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling GET /experimental/views/{displayId}.");
421
+ case "unknown":
422
+ throw new errors.PaidError({
423
+ message: _response.error.errorMessage,
424
+ rawResponse: _response.rawResponse,
425
+ });
426
+ }
427
+ });
428
+ }
429
+ /**
430
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
431
+ *
432
+ * Partially updates a view. Omitted fields are left unchanged. For REVISIONS, prefer the incremental fields — `bundleEdits` (exact search-and-replace on the stored render bundle) and `queryUpserts`/`queryRemovals` (per-query changes) — so you transmit only what changed instead of re-sending the whole payload. The full-replacement fields remain for rewrites: `renderBundle`, and `queries` (a FULL replacement of the query list — never drop queries the user didn't ask to remove). Replacement and incremental forms of the same aspect cannot be combined. The resulting SQL and bundle pass the same validation as createCustomView (SELECT-only, size cap, self-contained, paid:data listener). Works on DRAFT or PUBLISHED views — published embeds pick the change up on their next load.
433
+ *
434
+ * @param {Paid.UpdateCustomViewRequest} request
435
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
436
+ *
437
+ * @throws {@link Paid.BadRequestError}
438
+ * @throws {@link Paid.ForbiddenError}
439
+ * @throws {@link Paid.NotFoundError}
440
+ * @throws {@link Paid.InternalServerError}
441
+ *
442
+ * @example
443
+ * await client.customViewsExperimental.updateCustomView({
444
+ * displayId: "displayId"
445
+ * })
446
+ */
447
+ updateCustomView(request, requestOptions) {
448
+ return core.HttpResponsePromise.fromPromise(this.__updateCustomView(request, requestOptions));
449
+ }
450
+ __updateCustomView(request, requestOptions) {
451
+ return __awaiter(this, void 0, void 0, function* () {
452
+ var _a, _b, _c, _d, _e, _f, _g, _h;
453
+ const { displayId } = request, _body = __rest(request, ["displayId"]);
454
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
455
+ const _response = yield core.fetcher({
456
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}`),
457
+ method: "PATCH",
458
+ headers: _headers,
459
+ contentType: "application/json",
460
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
461
+ requestType: "json",
462
+ body: _body,
463
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
464
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
465
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
466
+ });
467
+ if (_response.ok) {
468
+ return { data: _response.body, rawResponse: _response.rawResponse };
469
+ }
470
+ if (_response.error.reason === "status-code") {
471
+ switch (_response.error.statusCode) {
472
+ case 400:
473
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
474
+ case 403:
475
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
476
+ case 404:
477
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
478
+ case 500:
479
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
480
+ default:
481
+ throw new errors.PaidError({
482
+ statusCode: _response.error.statusCode,
483
+ body: _response.error.body,
484
+ rawResponse: _response.rawResponse,
485
+ });
486
+ }
487
+ }
488
+ switch (_response.error.reason) {
489
+ case "non-json":
490
+ throw new errors.PaidError({
491
+ statusCode: _response.error.statusCode,
492
+ body: _response.error.rawBody,
493
+ rawResponse: _response.rawResponse,
494
+ });
495
+ case "timeout":
496
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling PATCH /experimental/views/{displayId}.");
497
+ case "unknown":
498
+ throw new errors.PaidError({
499
+ message: _response.error.errorMessage,
500
+ rawResponse: _response.rawResponse,
501
+ });
502
+ }
503
+ });
504
+ }
505
+ /**
506
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
507
+ *
508
+ * Runs every stored query of the view on the read-only analytics database and returns the result sets keyed by query id. For a customer-scoped view (the default), the query is scoped to the caller's organization AND the given `customerId` (both enforced as ClickHouse row filters) — `customerId` is required. For an organization-scoped view, the data is org-wide (scoped only to the caller's organization) and `customerId` is ignored. The scope is enforced by the database — it cannot be widened by the stored SQL. If the view declares filters, pass per-request values as `filter_<name>` query parameters (e.g. `filter_region=eu`); undeclared names or disallowed values are rejected with 400. Filters narrow data within the scope — never widen it.
509
+ *
510
+ * @param {Paid.GetCustomViewDataRequest} request
511
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
512
+ *
513
+ * @throws {@link Paid.BadRequestError}
514
+ * @throws {@link Paid.ForbiddenError}
515
+ * @throws {@link Paid.NotFoundError}
516
+ * @throws {@link Paid.RequestTimeoutError}
517
+ * @throws {@link Paid.TooManyRequestsError}
518
+ * @throws {@link Paid.InternalServerError}
519
+ *
520
+ * @example
521
+ * await client.customViewsExperimental.getCustomViewData({
522
+ * displayId: "displayId"
523
+ * })
524
+ */
525
+ getCustomViewData(request, requestOptions) {
526
+ return core.HttpResponsePromise.fromPromise(this.__getCustomViewData(request, requestOptions));
527
+ }
528
+ __getCustomViewData(request, requestOptions) {
529
+ return __awaiter(this, void 0, void 0, function* () {
530
+ var _a, _b, _c, _d, _e, _f, _g, _h;
531
+ const { displayId, customerId, periodKind, periodUnit, periodAmount, periodStart, periodEnd } = request;
532
+ const _queryParams = {};
533
+ if (customerId != null) {
534
+ _queryParams.customerId = customerId;
535
+ }
536
+ if (periodKind != null) {
537
+ _queryParams.periodKind = periodKind;
538
+ }
539
+ if (periodUnit != null) {
540
+ _queryParams.periodUnit = periodUnit;
541
+ }
542
+ if (periodAmount != null) {
543
+ _queryParams.periodAmount = periodAmount.toString();
544
+ }
545
+ if (periodStart != null) {
546
+ _queryParams.periodStart = periodStart;
547
+ }
548
+ if (periodEnd != null) {
549
+ _queryParams.periodEnd = periodEnd;
550
+ }
551
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
552
+ const _response = yield core.fetcher({
553
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}/data`),
554
+ method: "GET",
555
+ headers: _headers,
556
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
557
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
558
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
559
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
560
+ });
561
+ if (_response.ok) {
562
+ return { data: _response.body, rawResponse: _response.rawResponse };
563
+ }
564
+ if (_response.error.reason === "status-code") {
565
+ switch (_response.error.statusCode) {
566
+ case 400:
567
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
568
+ case 403:
569
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
570
+ case 404:
571
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
572
+ case 408:
573
+ throw new Paid.RequestTimeoutError(_response.error.body, _response.rawResponse);
574
+ case 429:
575
+ throw new Paid.TooManyRequestsError(_response.error.body, _response.rawResponse);
576
+ case 500:
577
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
578
+ default:
579
+ throw new errors.PaidError({
580
+ statusCode: _response.error.statusCode,
581
+ body: _response.error.body,
582
+ rawResponse: _response.rawResponse,
583
+ });
584
+ }
585
+ }
586
+ switch (_response.error.reason) {
587
+ case "non-json":
588
+ throw new errors.PaidError({
589
+ statusCode: _response.error.statusCode,
590
+ body: _response.error.rawBody,
591
+ rawResponse: _response.rawResponse,
592
+ });
593
+ case "timeout":
594
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling GET /experimental/views/{displayId}/data.");
595
+ case "unknown":
596
+ throw new errors.PaidError({
597
+ message: _response.error.errorMessage,
598
+ rawResponse: _response.rawResponse,
599
+ });
600
+ }
601
+ });
602
+ }
603
+ /**
604
+ * ⚠️ **Experimental** — this endpoint may change or be removed without notice and is not subject to v2 backwards-compatibility guarantees. Do not build production-critical integrations against it yet.
605
+ *
606
+ * Mints a short-lived, customer-scoped token for embedding a published custom view. Call this from your server with your API key, then pass the returned token to the embed SDK. Organization-scoped views cannot be embedded per-customer — this returns a 400 (`ORG_SCOPED_VIEW_NOT_EMBEDDABLE`) for one.
607
+ *
608
+ * @param {Paid.GetCustomViewEmbedTokenRequest} request
609
+ * @param {CustomViewsExperimental.RequestOptions} requestOptions - Request-specific configuration.
610
+ *
611
+ * @throws {@link Paid.BadRequestError}
612
+ * @throws {@link Paid.ForbiddenError}
613
+ * @throws {@link Paid.NotFoundError}
614
+ * @throws {@link Paid.InternalServerError}
615
+ *
616
+ * @example
617
+ * await client.customViewsExperimental.getCustomViewEmbedToken({
618
+ * displayId: "displayId",
619
+ * customerId: "customerId"
620
+ * })
621
+ */
622
+ getCustomViewEmbedToken(request, requestOptions) {
623
+ return core.HttpResponsePromise.fromPromise(this.__getCustomViewEmbedToken(request, requestOptions));
624
+ }
625
+ __getCustomViewEmbedToken(request, requestOptions) {
626
+ return __awaiter(this, void 0, void 0, function* () {
627
+ var _a, _b, _c, _d, _e, _f, _g, _h;
628
+ const { displayId, customerId, ttlSeconds } = request;
629
+ const _queryParams = {};
630
+ _queryParams.customerId = customerId;
631
+ if (ttlSeconds != null) {
632
+ _queryParams.ttlSeconds = ttlSeconds.toString();
633
+ }
634
+ const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
635
+ const _response = yield core.fetcher({
636
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PaidEnvironment.Default, `experimental/views/${core.url.encodePathParam(displayId)}/embed-token`),
637
+ method: "GET",
638
+ headers: _headers,
639
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
640
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
641
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
642
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
643
+ });
644
+ if (_response.ok) {
645
+ return { data: _response.body, rawResponse: _response.rawResponse };
646
+ }
647
+ if (_response.error.reason === "status-code") {
648
+ switch (_response.error.statusCode) {
649
+ case 400:
650
+ throw new Paid.BadRequestError(_response.error.body, _response.rawResponse);
651
+ case 403:
652
+ throw new Paid.ForbiddenError(_response.error.body, _response.rawResponse);
653
+ case 404:
654
+ throw new Paid.NotFoundError(_response.error.body, _response.rawResponse);
655
+ case 500:
656
+ throw new Paid.InternalServerError(_response.error.body, _response.rawResponse);
657
+ default:
658
+ throw new errors.PaidError({
659
+ statusCode: _response.error.statusCode,
660
+ body: _response.error.body,
661
+ rawResponse: _response.rawResponse,
662
+ });
663
+ }
664
+ }
665
+ switch (_response.error.reason) {
666
+ case "non-json":
667
+ throw new errors.PaidError({
668
+ statusCode: _response.error.statusCode,
669
+ body: _response.error.rawBody,
670
+ rawResponse: _response.rawResponse,
671
+ });
672
+ case "timeout":
673
+ throw new errors.PaidTimeoutError("Timeout exceeded when calling GET /experimental/views/{displayId}/embed-token.");
674
+ case "unknown":
675
+ throw new errors.PaidError({
676
+ message: _response.error.errorMessage,
677
+ rawResponse: _response.rawResponse,
678
+ });
679
+ }
680
+ });
681
+ }
682
+ _getAuthorizationHeader() {
683
+ return __awaiter(this, void 0, void 0, function* () {
684
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
685
+ });
686
+ }
687
+ }
688
+ exports.CustomViewsExperimental = CustomViewsExperimental;